package models import ( "time" ) type TDatashareSubscribe struct { IdInt int64 `xorm:"not null pk autoincr INT(11)"` Appid string `xorm:"not null comment('订阅者ID') unique(appid) CHAR(32)"` PublishAppid string `xorm:"not null comment('发布者APPID') unique(appid) CHAR(32)"` ItemId int64 `xorm:"not null comment('发布者的数据项目ID') unique(appid) INT(11)"` UpdateTs time.Time `xorm:"not null default 'current_timestamp()' comment('时间戳') TIMESTAMP"` }