33 lines
1.6 KiB
Go
33 lines
1.6 KiB
Go
|
|
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
|
|||
|
|
package models
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"git.apinb.com/bsm-sdk/core/types"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
/*
|
|||
|
|
* OrderAddress
|
|||
|
|
* Comment:
|
|||
|
|
* Version: 10
|
|||
|
|
* Created: 2022-04-12 18:21:15 , Updated:0001-01-01 00:00:00
|
|||
|
|
*/
|
|||
|
|
type AddressLibrary struct {
|
|||
|
|
types.Std_IICUDS
|
|||
|
|
OwnerID uint `gorm:"column:owner_id;Index;" json:"owner_id"`
|
|||
|
|
OwnerIdentity string `gorm:"column:owner_identity;type:varchar(36);Index;" json:"owner_identity"` // 用户唯一标识,24位NanoID,36位为UUID
|
|||
|
|
Phone string `gorm:"column:phone;type:varchar(20);default:'';" json:"phone"` // 地址电话
|
|||
|
|
Country string `gorm:"column:country;type:varchar(255);default:'';" json:"country"` // 国家
|
|||
|
|
Province string `gorm:"column:province;type:varchar(255);default:'';" json:"province"` // 省
|
|||
|
|
City string `gorm:"column:city;type:varchar(255);default:'';" json:"city"` // 市
|
|||
|
|
Area string `gorm:"column:area;type:varchar(255);default:'';" json:"area"` // 区
|
|||
|
|
Detail string `gorm:"column:detail;type:varchar(255);default:'';" json:"detail"` // 详细地址
|
|||
|
|
Contact string `gorm:"column:contact;type:varchar(20);default:'';" json:"contact"` // 收件人
|
|||
|
|
Name string `gorm:"column:name;type:varchar(255);default:'';" json:"name"` // 名称
|
|||
|
|
Pics string `gorm:"column:pics;default:'';" json:"pics"` // 图片信息
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// TableName .
|
|||
|
|
func (table *AddressLibrary) TableName() string {
|
|||
|
|
return "address_library" //对应数据库表名
|
|||
|
|
}
|