40 lines
2.8 KiB
Go
40 lines
2.8 KiB
Go
package model
|
||
|
||
import "time"
|
||
|
||
const TableNameAiAdviceCustomer = "ai_advice_customer"
|
||
|
||
// AiAdviceCustomer mapped from table <ai_advice_customer>
|
||
type AiAdviceCustomer struct {
|
||
CustomerID int32 `gorm:"column:customer_id;primaryKey;autoIncrement:true" json:"customer_id"`
|
||
SelfWxid string `gorm:"column:self_wxid;not null;comment:登录微信的 wxid" json:"self_wxid"`
|
||
UserName string `gorm:"column:user_name;not null;comment:微信用户名" json:"user_name"`
|
||
NickName string `gorm:"column:nick_name;not null;comment:昵称" json:"nick_name"`
|
||
PyInitial string `gorm:"column:py_initial;not null;comment:拼音首字母" json:"py_initial"`
|
||
QuanPin string `gorm:"column:quan_pin;not null;comment:全拼" json:"quan_pin"`
|
||
Sex int8 `gorm:"column:sex;not null;default:0;comment:性别:0未知 1男 2女" json:"sex"`
|
||
Remark string `gorm:"column:remark;not null;comment:备注名" json:"remark"`
|
||
RemarkPyInitial string `gorm:"column:remark_py_initial;not null;comment:备注拼音首字母" json:"remark_py_initial"`
|
||
RemarkQuanPin string `gorm:"column:remark_quan_pin;not null;comment:备注全拼" json:"remark_quan_pin"`
|
||
Signature string `gorm:"column:signature;not null;comment:个性签名" json:"signature"`
|
||
Alias string `gorm:"column:alias;not null;comment:微信号(alias)" json:"alias"`
|
||
SnsBgImg string `gorm:"column:sns_bg_img;not null;comment:朋友圈背景图" json:"sns_bg_img"`
|
||
Country string `gorm:"column:country;not null;comment:国家" json:"country"`
|
||
BigHeadImgUrl string `gorm:"column:big_head_img_url;not null;comment:大头像 URL" json:"big_head_img_url"`
|
||
SmallHeadImgUrl string `gorm:"column:small_head_img_url;not null;comment:小头像 URL" json:"small_head_img_url"`
|
||
Description string `gorm:"column:description;not null;comment:描述" json:"description"`
|
||
CardImgUrl string `gorm:"column:card_img_url;not null;comment:名片图 URL" json:"card_img_url"`
|
||
LabelList string `gorm:"column:label_list;not null;comment:标签列表" json:"label_list"`
|
||
SessionId string `gorm:"column:session_id;not null;default:'';comment:当前活跃会话ID" json:"session_id"`
|
||
Province string `gorm:"column:province;not null;comment:省份" json:"province"`
|
||
City string `gorm:"column:city;not null;comment:城市" json:"city"`
|
||
PhoneNumList string `gorm:"column:phone_num_list;not null;comment:手机号列表" json:"phone_num_list"`
|
||
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 AiAdviceCustomer's table name
|
||
func (*AiAdviceCustomer) TableName() string {
|
||
return TableNameAiAdviceCustomer
|
||
}
|