package models import ( "time" ) type TDataexMetadata struct { Id string `json:"id" xorm:"not null pk comment('ID') VARCHAR(36)"` DatasourceId string `json:"datasource_id" xorm:"default ''NULL'' comment('数据源ID') index VARCHAR(36)"` ItemName string `json:"item_name" xorm:"not null comment('数据项名称【英文】') VARCHAR(50)"` DicId string `json:"dic_id" xorm:"default ''NULL'' comment('数据字典ID') index VARCHAR(36)"` ItemType string `json:"item_type" xorm:"default ''NULL'' comment('数据项类型 【1:整数、2:浮点、3:字符、4:布尔、5:日期、6:时间、7:日期+时间】') VARCHAR(50)"` ItemLength int `json:"item_length" xorm:"default NULL comment('数据最大长度【UTF-8 字符长度】') INT(11)"` ItemPattern string `json:"item_pattern" xorm:"default 'NULL' comment('数据项模式') VARCHAR(255)"` ItemInfo string `json:"item_info" xorm:"not null comment('数据项说明') VARCHAR(50)"` CheckName int `json:"check_name" xorm:"not null default -1 comment('是否检测名称【1:是,-1:否】') INT(11)"` CheckDic int `json:"check_dic" xorm:"not null default -1 comment('是否检测字典') INT(11)"` CheckType int `json:"check_type" xorm:"not null default -1 comment('是否检测类型') INT(11)"` CheckPattern int `json:"check_pattern" xorm:"not null default -1 comment('是否检测模式') INT(11)"` CheckExist int `json:"check_exist" xorm:"not null default -1 comment('是否检测必填') INT(11)"` CreateTime time.Time `json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME"` ChangeTime time.Time `json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME"` DeleteTime time.Time `json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME"` DeleteFlag int `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)"` EnableFlag int `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)"` }