一物一码
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_address.go 1020 B

2 years ago
123456789101112131415161718
  1. package model
  2. type UserAddress struct {
  3. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  4. Uid int `json:"uid" xorm:"comment('用户id') index INT(11)"`
  5. ProvinceId string `json:"province_id" xorm:"VARCHAR(12)"`
  6. CityId string `json:"city_id" xorm:"VARCHAR(12)"`
  7. CountyId string `json:"county_id" xorm:"VARCHAR(12)"`
  8. ProvinceName string `json:"province_name" xorm:"VARCHAR(12)"`
  9. CityName string `json:"city_name" xorm:"VARCHAR(64)"`
  10. CountyName string `json:"county_name" xorm:"VARCHAR(64)"`
  11. Detail string `json:"detail" xorm:"VARCHAR(64)"`
  12. Tag string `json:"tag" xorm:"comment('地址标签') VARCHAR(255)"`
  13. PostCode string `json:"post_code" xorm:"comment('邮编') VARCHAR(255)"`
  14. Phone string `json:"phone" xorm:"comment('手机号') VARCHAR(20)"`
  15. Receiver string `json:"receiver" xorm:"comment('收货人') VARCHAR(255)"`
  16. IsDefault int `json:"is_default" xorm:"not null default 0 comment('是否为默认') TINYINT(1)"`
  17. }