package models import ( "time" ) type TDataexDatasource struct { Id string `xorm:"not null pk comment('数据源ID') VARCHAR(36)"` SystemId string `xorm:"not null comment('数据提供系统ID【外键】') index VARCHAR(36)"` DatasourceName string `xorm:"not null comment('数据源名称') VARCHAR(100)"` DatasourceCode string `xorm:"not null comment('数据源编码') VARCHAR(8)"` DatasourceDetail string `xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)"` DataaddFlag int32 `xorm:"not null default 1 comment('可增【1:是,-1:否】') INT(11)"` DatasetFlag int32 `xorm:"not null default 1 comment('可改') INT(11)"` DatadelFlag int32 `xorm:"not null default 1 comment('可删') INT(11)"` ColectFlag int32 `xorm:"not null default 1 comment('可汇集') INT(11)"` ProvideType int32 `xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)"` ProvideOrgid string `xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)"` DatastoreType int32 `xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)"` DicId string `xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)"` CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"` ChangeTime time.Time `xorm:"default 'NULL' comment('最近修改时间') DATETIME"` DeleteTime time.Time `xorm:"default 'NULL' comment('删除时间') DATETIME"` DeleteFlag int32 `xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)"` EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)"` }