o2o公共业务代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.5 KiB

  1. package model
  2. import (
  3. "time"
  4. )
  5. type O2oMerchant struct {
  6. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  7. Pid int `json:"pid" xorm:"comment('主账号id') INT(11)"`
  8. AvatarUrl string `json:"avatar_url" xorm:"comment('用户头像') VARCHAR(255)"`
  9. Type string `json:"type" xorm:"not null comment('商家类型,可多个') VARCHAR(255)"`
  10. Phone string `json:"phone" xorm:"not null comment('商家手机号') VARCHAR(255)"`
  11. Wechat string `json:"wechat" xorm:"comment('微信号') VARCHAR(255)"`
  12. Password string `json:"password" xorm:"not null comment('密码') VARCHAR(255)"`
  13. Name string `json:"name" xorm:"not null comment('名称') VARCHAR(255)"`
  14. FunctionalAuthority string `json:"functional_authority" xorm:"not null comment('功能权限') VARCHAR(255)"`
  15. State int `json:"state" xorm:"default 1 comment('商家状态') TINYINT(1)"`
  16. Token string `json:"token" xorm:"comment('token') VARCHAR(520)"`
  17. Amount float64 `json:"amount" xorm:"comment('商家余额') DOUBLE(10,2)"`
  18. CreateTime time.Time `json:"create_time" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"`
  19. UpdateTime time.Time `json:"update_time" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"`
  20. DeletedTime time.Time `json:"deleted_time" xorm:"comment('删除时间') DATETIME"`
  21. }