contact.gen.go 5.7 KB

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