mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-02-04 13:36:00 +08:00
12 lines
366 B
Go
12 lines
366 B
Go
package model
|
|
|
|
type Config struct {
|
|
Id uint `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
Key string `gorm:"column:marker;type:varchar(20);uniqueIndex;not null;comment:标识" json:"marker"`
|
|
Config string `gorm:"column:config_json;type:text;not null" json:"config_json"`
|
|
}
|
|
|
|
func (m *Config) TableName() string {
|
|
return "chatgpt_configs"
|
|
}
|