package models import ( "time" ) type TDataexDataaccess struct { Id string `xorm:"not null pk comment('ID') VARCHAR(36)"` DatasourceId string `xorm:"not null comment('数据源ID') index VARCHAR(36)"` DatasourceCode string `xorm:"default 'NULL' VARCHAR(255)"` ConsumeSystemid string `xorm:"not null comment('数据使用系统ID') index VARCHAR(36)"` QueryFlag int32 `xorm:"not null default 1 comment('可查【1:是,-1:否】') INT(11)"` SetFlag int32 `xorm:"not null default -1 comment('可修改【1:是,-1:否】') INT(11)"` ConsumeType int32 `xorm:"not null comment('使用数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)"` ConsumeOrgid string `xorm:"not null comment('使用数据机构ID【-1:不限制】') 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)"` }