Files
geekai/api/store/model/config.go
2025-07-18 21:19:59 +08:00

12 lines
312 B
Go

package model
type Config struct {
Id uint `gorm:"column:id;primaryKey;autoIncrement"`
Name string `gorm:"column:name;type:varchar(20);uniqueIndex;not null;comment:配置名称"`
Value string `gorm:"column:value;type:text;not null"`
}
func (m *Config) TableName() string {
return "chatgpt_configs"
}