biz_object_oam.go 2.3 KB

12345678910111213141516171819202122232425262728293031
  1. package datamodel
  2. import "time"
  3. type BizObjectOAM struct {
  4. BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('主键ID') "`
  5. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('Object ID') "`
  6. OamId int64 `json:"oamId" xorm:"'oam_id' bigint pk comment('OAM ID') "`
  7. OamTitle string `json:"oamTitle" xorm:"'oam_title' varchar(127) comment('OAMTitle') "`
  8. OamCode string `json:"oamCode" xorm:"'oam_code' varchar(127) comment('OAMCode') "`
  9. OamType int64 `json:"oamType" xorm:"'oam_type' bigint comment('Oam Type') "`
  10. SqlType int64 `json:"sqlType" xorm:"'sql_type' bigint comment('Sql Type') "`
  11. SqlStatement string `json:"sqlStatement" xorm:"'sql_statement' varchar(1023) comment('Statement') "`
  12. SqlSelect string `json:"sqlSelect" xorm:"'sql_select' varchar(1023) comment('Sql Select') "`
  13. SqlFrom string `json:"sqlFrom" xorm:"'sql_from' varchar(1023) comment('Sql From') "`
  14. SqlWhere string `json:"sqlWhere" xorm:"'sql_where' varchar(1023) comment('Sql Where') "`
  15. SqlOrder string `json:"sqlOrder" xorm:"'sql_order' varchar(1023) comment('Sql Order') "`
  16. SqlCount string `json:"sqlCount" xorm:"'sql_count' varchar(1023) comment('Sql Count') "`
  17. OamDesc string `json:"oamDesc" xorm:"'oam_desc' varchar(1023) comment('描述') "`
  18. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  19. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  20. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  21. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  22. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  23. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  24. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  25. }
  26. func (t *BizObjectOAM) TableName() string {
  27. return "biz_object_oam"
  28. }