From 7c25870923988a58cbe1fc99377bbcbbbfa2b51e Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Tue, 28 Apr 2026 16:04:55 +0800 Subject: [PATCH] Go: update db model (#14423) ### What problem does this PR solve? As title. ### Type of change - [x] Refactoring Signed-off-by: Jin Hai --- internal/entity/tenant_model.go | 1 + internal/entity/tenant_model_instance.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 }