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:
Jin Hai
2026-04-28 16:04:55 +08:00
committed by GitHub
parent 18fbfafca6
commit 7c25870923
2 changed files with 2 additions and 1 deletions

View File

@@ -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
}

View File

@@ -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
}