model_object_oam.go 2.1 KB

123456789101112131415161718192021222324252627282930
  1. package datamodel
  2. import "time"
  3. type ModelObjectOAM struct {
  4. ModelId int64 `json:"modelId" xorm:"'model_id' bigint pk comment('Model 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('Statement') "`
  13. SqlFrom string `json:"sqlFrom" xorm:"'sql_from' varchar(1023) comment('Statement') "`
  14. SqlWhere string `json:"sqlWhere" xorm:"'sql_where' varchar(1023) comment('Statement') "`
  15. SqlOrder string `json:"sqlOrder" xorm:"'sql_order' varchar(1023) comment('Statement') "`
  16. OamDesc string `json:"oamDesc" xorm:"'oam_desc' varchar(1023) comment('描述') "`
  17. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  18. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  19. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  20. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  21. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  22. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  23. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  24. }
  25. func (t *ModelObjectOAM) TableName() string {
  26. return "ds_object_oam"
  27. }