123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- package wx_user
- import (
- "time"
- )
- type WxUser struct {
- UserID uint64 `gorm:"primaryKey;column:user_id;type:bigint(20) unsigned;not null" json:"userId"`
- OpenID string `gorm:"index:open_id;column:open_id;type:varchar(32)" json:"openId"`
- UnionID string `gorm:"column:union_id;type:varchar(64)" json:"unionId"`
- Subscribe int8 `gorm:"column:subscribe;type:tinyint(1)" json:"subscribe"`
- CompanyID int64 `gorm:"index:inx_company_id;column:company_id;type:bigint(20)" json:"companyId"`
- NickName string `gorm:"index:nick_name;column:nick_name;type:varchar(32)" json:"nickName"`
- RealName string `gorm:"column:real_name;type:varchar(32)" json:"realName"`
- UserCode string `gorm:"column:user_code;type:varchar(32)" json:"userCode"`
- Mobile string `gorm:"column:mobile;type:varchar(32)" json:"mobile"`
- BindAccount string `gorm:"column:bind_account;type:varchar(128);default:''" json:"bindAccount"`
- WxCode string `gorm:"column:wx_code;type:varchar(32)" json:"wxCode"`
- Profession string `gorm:"column:profession;type:varchar(32)" json:"profession"`
- Email string `gorm:"column:email;type:varchar(100)" json:"email"`
- Telephone string `gorm:"column:telephone;type:varchar(32)" json:"telephone"`
- Sex int64 `gorm:"column:sex;type:bigint(20)" json:"sex"`
- Province string `gorm:"index:province;column:province;type:varchar(30)" json:"province"`
- City string `gorm:"index:city;column:city;type:varchar(30)" json:"city"`
- Country string `gorm:"column:country;type:varchar(30)" json:"country"`
- SubscribeTime time.Time `gorm:"column:subscribe_time;type:datetime" json:"subscribeTime"`
- Remark string `gorm:"column:remark;type:varchar(128)" json:"remark"`
- Headimgurl string `gorm:"column:headimgurl;type:varchar(512)" json:"headimgurl"`
- Privilege string `gorm:"column:privilege;type:text" json:"privilege"`
- Unionid string `gorm:"column:unionid;type:varchar(32)" json:"unionid"`
- FirstLogin int8 `gorm:"column:first_login;type:tinyint(1);default:1" json:"firstLogin"`
- Enabled int8 `gorm:"column:enabled;type:tinyint(1);not null;default:1" json:"enabled"`
- CreatedTime time.Time `gorm:"index:created_time;column:created_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createdTime"`
- LastUpdatedTime time.Time `gorm:"index:last_updated_time;column:last_updated_time;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"lastUpdatedTime"`
- Seller string `gorm:"column:seller;type:varchar(200)" json:"seller"`
- Note string `gorm:"column:note;type:varchar(128)" json:"note"`
- IsNote int8 `gorm:"column:is_note;type:tinyint(1);default:0" json:"isNote"`
- FromType string `gorm:"column:from_type;type:varchar(30);default:report" json:"fromType"`
- ApplyMethod int8 `gorm:"column:apply_method;type:tinyint(2);default:0" json:"applyMethod"`
- Position string `gorm:"column:position;type:varchar(50);default:''" json:"position"`
- IsMaker int8 `gorm:"column:is_maker;type:tinyint(4);default:0" json:"isMaker"`
- BusinessCardURL string `gorm:"column:business_card_url;type:varchar(255);default:''" json:"businessCardUrl"`
- MobileTwo string `gorm:"column:mobile_two;type:varchar(32);default:''" json:"mobileTwo"`
- DepartmentName string `gorm:"column:department_name;type:varchar(50);default:''" json:"departmentName"`
- ReportLastViewTime time.Time `gorm:"column:report_last_view_time;type:datetime" json:"reportLastViewTime"`
- RegisterTime time.Time `gorm:"column:register_time;type:datetime" json:"registerTime"`
- IsFreeLogin int8 `gorm:"column:is_free_login;type:tinyint(4)" json:"isFreeLogin"`
- LoginTime time.Time `gorm:"column:login_time;type:datetime" json:"loginTime"`
- RegisterPlatform int8 `gorm:"column:register_platform;type:tinyint(4);default:1" json:"registerPlatform"`
- SessionKey string `gorm:"column:session_key;type:varchar(255)" json:"sessionKey"`
- CountryCode string `gorm:"column:country_code;type:varchar(255);default:''" json:"countryCode"`
- IsRegister int8 `gorm:"column:is_register;type:tinyint(4)" json:"isRegister"`
- Source int8 `gorm:"column:source;type:tinyint(4);default:0" json:"source"`
- IsDeal uint8 `gorm:"column:is_deal;type:tinyint(2) unsigned;default:0" json:"isDeal"`
- OutboundMobile string `gorm:"index:outbound_mobile;column:outbound_mobile;type:varchar(30);default:''" json:"outboundMobile"`
- OutboundCountryCode string `gorm:"column:outbound_country_code;type:varchar(10);default:''" json:"outboundCountryCode"`
- IsMsgOutboundMobile int8 `gorm:"column:is_msg_outbound_mobile;type:tinyint(1);not null;default:0" json:"isMsgOutboundMobile"`
- QaAvatarUrl string `gorm:"column:qa_avatar_url;type:varchar(255);not null;default:''" json:"qaAvatarUrl"`
- }
- func (wxUser *WxUser) TableName() string {
- return "wx_user"
- }
- var WxUserColumns = struct {
- UserID string
- OpenID string
- UnionID string
- Subscribe string
- CompanyID string
- NickName string
- RealName string
- UserCode string
- Mobile string
- BindAccount string
- WxCode string
- Profession string
- Email string
- Telephone string
- Sex string
- Province string
- City string
- Country string
- SubscribeTime string
- Remark string
- Headimgurl string
- Privilege string
- Unionid string
- FirstLogin string
- Enabled string
- CreatedTime string
- LastUpdatedTime string
- Seller string
- Note string
- IsNote string
- FromType string
- ApplyMethod string
- Position string
- IsMaker string
- BusinessCardURL string
- MobileTwo string
- DepartmentName string
- ReportLastViewTime string
- RegisterTime string
- IsFreeLogin string
- LoginTime string
- RegisterPlatform string
- SessionKey string
- CountryCode string
- IsRegister string
- Source string
- IsDeal string
- OutboundMobile string
- OutboundCountryCode string
- IsMsgOutboundMobile string
- }{
- UserID: "user_id",
- OpenID: "open_id",
- UnionID: "union_id",
- Subscribe: "subscribe",
- CompanyID: "company_id",
- NickName: "nick_name",
- RealName: "real_name",
- UserCode: "user_code",
- Mobile: "mobile",
- BindAccount: "bind_account",
- WxCode: "wx_code",
- Profession: "profession",
- Email: "email",
- Telephone: "telephone",
- Sex: "sex",
- Province: "province",
- City: "city",
- Country: "country",
- SubscribeTime: "subscribe_time",
- Remark: "remark",
- Headimgurl: "headimgurl",
- Privilege: "privilege",
- Unionid: "unionid",
- FirstLogin: "first_login",
- Enabled: "enabled",
- CreatedTime: "created_time",
- LastUpdatedTime: "last_updated_time",
- Seller: "seller",
- Note: "note",
- IsNote: "is_note",
- FromType: "from_type",
- ApplyMethod: "apply_method",
- Position: "position",
- IsMaker: "is_maker",
- BusinessCardURL: "business_card_url",
- MobileTwo: "mobile_two",
- DepartmentName: "department_name",
- ReportLastViewTime: "report_last_view_time",
- RegisterTime: "register_time",
- IsFreeLogin: "is_free_login",
- LoginTime: "login_time",
- RegisterPlatform: "register_platform",
- SessionKey: "session_key",
- CountryCode: "country_code",
- IsRegister: "is_register",
- Source: "source",
- IsDeal: "is_deal",
- OutboundMobile: "outbound_mobile",
- OutboundCountryCode: "outbound_country_code",
- IsMsgOutboundMobile: "is_msg_outbound_mobile",
- }
|