add model identities and restore httpx router
This commit is contained in:
@@ -4,7 +4,9 @@ import "time"
|
||||
|
||||
type SenlinAgentAIKey struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
Identity string `gorm:"type:char(36);uniqueIndex"`
|
||||
UserID uint `gorm:"uniqueIndex;not null"`
|
||||
UserIdentity string `gorm:"type:char(36);index"`
|
||||
Provider string `gorm:"not null"`
|
||||
EncryptedAPIKey string `gorm:"not null"`
|
||||
CreatedAt time.Time
|
||||
|
||||
Reference in New Issue
Block a user