address_default.go 424 B

123456789101112131415
  1. package model
  2. import model2 "cold-delivery/common/model"
  3. type AddressDefault struct {
  4. model2.Model
  5. UserId int `json:"userId" gorm:"size:128;comment:用户id;uniqueIndex"` // 用户id
  6. AddressId int `json:"addressId" gorm:"size:128;comment:地址id"` // 仓库id
  7. model2.ControlBy `json:"-"`
  8. model2.ModelTime `json:"-"`
  9. }
  10. func (AddressDefault) TableName() string {
  11. return "address_default"
  12. }