package models import "time" type AiModelItem struct { ID string `json:"id"` Name string `json:"name"` } type PlatformAiProvider struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` ProviderType string `orm:"column(provider_type);size(30)" json:"provider_type"` ApiType string `orm:"column(api_type);size(30)" json:"api_type"` Name string `orm:"column(name);size(100)" json:"name"` ApiBase string `orm:"column(api_base);size(255)" json:"api_base"` ApiKey string `orm:"column(api_key);size(500)" json:"-"` ApiKeyMasked string `orm:"-" json:"api_key_masked"` Models string `orm:"column(models);type(text)" json:"-"` ModelsList []AiModelItem `orm:"-" json:"models"` DefaultModel string `orm:"column(default_model);size(255)" json:"default_model"` IsDefault int8 `orm:"column(is_default);default(0)" json:"is_default"` Status int8 `orm:"column(status);default(1)" json:"status"` Remark string `orm:"column(remark);size(255)" json:"remark"` CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"` UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *PlatformAiProvider) TableName() string { return "yz_platform_ai_provider" }