// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package model import ( "time" "gorm.io/gorm" ) const TableNameContact = "contact" // Contact mapped from table type Contact struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期 UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期 Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期 WxWxid string `gorm:"column:wx_wxid;comment:属主微信id" json:"wx_wxid"` // 属主微信id Type int64 `gorm:"column:type;default:1;comment:联系人类型:1好友,2群组,3公众号,4企业微信联系人" json:"type"` // 联系人类型:1好友,2群组,3公众号,4企业微信联系人 Wxid string `gorm:"column:wxid;not null;comment:微信id 公众号微信ID" json:"wxid"` // 微信id 公众号微信ID Account string `gorm:"column:account;not null;comment:微信账号" json:"account"` // 微信账号 Nickname string `gorm:"column:nickname;not null;comment:微信昵称 群备注名称" json:"nickname"` // 微信昵称 群备注名称 Markname string `gorm:"column:markname;not null;comment:备注名" json:"markname"` // 备注名 Headimg string `gorm:"column:headimg;not null;comment:头像" json:"headimg"` // 头像 Sex int64 `gorm:"column:sex;not null;comment:性别 0未知 1男 2女" json:"sex"` // 性别 0未知 1男 2女 Starrole string `gorm:"column:starrole;not null;comment:星标 65/67=星标 1/3=未星标" json:"starrole"` // 星标 65/67=星标 1/3=未星标 Dontseeit int64 `gorm:"column:dontseeit;not null;comment:不让他看我的朋友圈 0可以看 1不让看" json:"dontseeit"` // 不让他看我的朋友圈 0可以看 1不让看 Dontseeme int64 `gorm:"column:dontseeme;not null;comment:不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天" json:"dontseeme"` // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天 Lag string `gorm:"column:lag;not null;comment:所属标签id清单,多开会用逗号隔开" json:"lag"` // 所属标签id清单,多开会用逗号隔开 Gid string `gorm:"column:gid;not null;comment:群组id" json:"gid"` // 群组id Gname string `gorm:"column:gname;not null;comment:群组名称" json:"gname"` // 群组名称 V3 string `gorm:"column:v3;not null;comment:v3数据" json:"v3"` // v3数据 OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID Ctype int64 `gorm:"column:ctype;default:1;comment:内容类型:1-微信 2-whatsapp 3-企微" json:"ctype"` // 内容类型:1-微信 2-whatsapp 3-企微 Cc string `gorm:"column:cc;comment:国家区号" json:"cc"` // 国家区号 Phone string `gorm:"column:phone;comment:手机号" json:"phone"` // 手机号 Cname string `gorm:"column:cname;comment:姓名" json:"cname"` // 姓名 Cage int64 `gorm:"column:cage;comment:年龄" json:"cage"` // 年龄 Carea string `gorm:"column:carea;comment:地区" json:"carea"` // 地区 Cbirthday string `gorm:"column:cbirthday;comment:出生日期" json:"cbirthday"` // 出生日期 Cbirtharea string `gorm:"column:cbirtharea;comment:出生地" json:"cbirtharea"` // 出生地 CidcardNo string `gorm:"column:cidcard_no;comment:身份证号" json:"cidcard_no"` // 身份证号 Ctitle string `gorm:"column:ctitle;comment:称呼" json:"ctitle"` // 称呼 } // TableName Contact's table name func (*Contact) TableName() string { return TableNameContact }