mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
Go: update db model (#14423)
### What problem does this PR solve? As title. ### Type of change - [x] Refactoring Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -24,6 +24,7 @@ type TenantModel struct {
|
||||
InstanceID string `gorm:"column:instance_id;size:32;not null;index" json:"instance_id"`
|
||||
ModelType string `gorm:"column:model_type;size:32;not null" json:"model_type"`
|
||||
Status string `gorm:"column:status;size:32;default:'active'" json:"status"`
|
||||
Extra string `gorm:"column:extra;size:1024;default:'{}'" json:"extra"`
|
||||
BaseModel
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ type TenantModelInstance struct {
|
||||
ProviderID string `gorm:"column:provider_id;size:32;not null;uniqueIndex:idx_api_key_provider_id" json:"provider_id"`
|
||||
APIKey string `gorm:"column:api_key;size:512;not null;uniqueIndex:idx_api_key_provider_id" json:"api_key"`
|
||||
Status string `gorm:"column:status;size:32;default:'active'" json:"status"`
|
||||
Extra string `gorm:"column:extra;size:512;default:'active'" json:"extra"`
|
||||
Extra string `gorm:"column:extra;size:512;default:'{}'" json:"extra"`
|
||||
BaseModel
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user