diff --git a/internal/entity/tenant_model.go b/internal/entity/tenant_model.go index 72e4b41a5a..7a34ed195d 100644 --- a/internal/entity/tenant_model.go +++ b/internal/entity/tenant_model.go @@ -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 } diff --git a/internal/entity/tenant_model_instance.go b/internal/entity/tenant_model_instance.go index 8a2ffaa6be..7563f7bd8d 100644 --- a/internal/entity/tenant_model_instance.go +++ b/internal/entity/tenant_model_instance.go @@ -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 }