22 lines
945 B
Go
22 lines
945 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
const TableNameAiAdviceLabel = "ai_advice_label"
|
|
|
|
// AiAdviceLabel mapped from table <ai_advice_label>
|
|
type AiAdviceLabel struct {
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
|
SelfWxid string `gorm:"column:self_wxid;not null;comment:登录微信的 wxid" json:"self_wxid"`
|
|
LabelId int `gorm:"column:label_id;not null;comment:微信标签 ID" json:"label_id"`
|
|
LabelName string `gorm:"column:label_name;not null;comment:标签名称" json:"label_name"`
|
|
Hosting int8 `gorm:"column:hosting;not null;default:0;comment:是否托管中 0否1是" json:"hosting"`
|
|
CreateAt time.Time `gorm:"column:create_at;default:CURRENT_TIMESTAMP" json:"create_at"`
|
|
UpdateAt time.Time `gorm:"column:update_at;default:CURRENT_TIMESTAMP" json:"update_at"`
|
|
}
|
|
|
|
// TableName AiAdviceLabel's table name
|
|
func (*AiAdviceLabel) TableName() string {
|
|
return TableNameAiAdviceLabel
|
|
}
|