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.
20 lines
924 B
20 lines
924 B
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type TDmArea struct {
|
|
Id string `xorm:"not null pk comment('编号') CHAR(36)"`
|
|
AreaCode string `xorm:"not null comment('区域码') VARCHAR(255)"`
|
|
AreaName string `xorm:"not null comment('区域名称') VARCHAR(255)"`
|
|
ParentId string `xorm:"not null comment('父节点ID') index CHAR(36)"`
|
|
ProvinceId string `xorm:"not null comment('省ID') index CHAR(36)"`
|
|
CityId string `xorm:"not null comment('市ID') index CHAR(36)"`
|
|
AreaId string `xorm:"not null comment('县区ID') index CHAR(36)"`
|
|
LevelId int64 `xorm:"not null comment('级别') index INT(11)"`
|
|
UpdateTs time.Time `xorm:"not null default 'current_timestamp()' comment('时间戳') TIMESTAMP"`
|
|
SortId int64 `xorm:"not null default 1 comment('排序号') INT(11)"`
|
|
IdInt int64 `xorm:"not null autoincr comment('整数主键') unique INT(11)"`
|
|
}
|