附近小店
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.

user_relate.go 631 B

1 kuukausi sitten
12345678910111213
  1. package model
  2. import (
  3. "time"
  4. )
  5. type UserRelate struct {
  6. Id int64 `json:"id" xorm:"pk autoincr comment('主键') BIGINT(10)"`
  7. ParentUid int `json:"parent_uid" xorm:"not null default 0 comment('上级会员ID') unique(idx_union_u_p_id) INT(20)"`
  8. Uid int `json:"uid" xorm:"not null default 0 comment('关联UserID') unique(idx_union_u_p_id) INT(20)"`
  9. Level int `json:"level" xorm:"not null default 1 comment('推广等级(1直属,大于1非直属)') INT(10)"`
  10. InviteTime time.Time `json:"invite_time" xorm:"not null default CURRENT_TIMESTAMP comment('邀请时间') TIMESTAMP"`
  11. }