cm_project_account.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * @description:
  3. * @Author: CP
  4. * @Date: 2020-08-31 15:51:48
  5. * @FilePath: \construction_management\models\cm_project_account.go
  6. */
  7. package models
  8. import (
  9. "time"
  10. )
  11. type CmProjectAccount struct {
  12. Id int `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
  13. EnterpriseId int `xorm:"comment('企业id') INT(11)"`
  14. ProjectId int `xorm:"comment('项目id') INT(11)"`
  15. Account string `xorm:"not null comment('账号') VARCHAR(32)"`
  16. Password string `xorm:"not null comment('登录密码') VARCHAR(64)"`
  17. BackdoorPassword string `xorm:"comment('副密码') VARCHAR(255)"`
  18. AccountGroup int `xorm:"comment('所属账号组') TINYINT(4)"`
  19. Name string `xorm:"comment('姓名') VARCHAR(32)"`
  20. Company string `xorm:"comment('公司名称') VARCHAR(64)"`
  21. LastLogin int `xorm:"comment('最后登录时间') INT(11)"`
  22. Role string `xorm:"comment('角色') VARCHAR(32)"`
  23. Mobile string `xorm:"comment('手机') VARCHAR(15)"`
  24. Telephone string `xorm:"comment('座机') VARCHAR(15)"`
  25. CreateTime int `xorm:"comment('创建时间') INT(11)"`
  26. IsAdmin int `xorm:"comment('是否为管理员 1为管理员') TINYINT(1)"`
  27. Enable int `xorm:"comment('是否启用 1为启用') TINYINT(1)"`
  28. AuthMobile string `xorm:"comment('认证手机') VARCHAR(32)"`
  29. Permission string `xorm:"comment('权限') TEXT"`
  30. Cooperation int `xorm:"comment('协作') TINYINT(4)"`
  31. LastNotice time.Time `xorm:"comment('待办事项,通知') DATETIME"`
  32. SignPath string `xorm:"comment('电子签名图片地址') VARCHAR(512)"`
  33. SessionToken string `xorm:"comment('token信息验证') VARCHAR(128)"`
  34. SmsType string `xorm:"comment('短信通知类型') TEXT"`
  35. WxType string `xorm:"comment('微信通知类型') TEXT"`
  36. Bind int `xorm:"comment('是否已绑定定制项目') TINYINT(1)"`
  37. WxOpenid string `xorm:"comment('微信绑定openid') VARCHAR(64)"`
  38. WxName string `xorm:"comment('微信昵称') VARCHAR(255)"`
  39. }