object_oam.go 1.6 KB

12345678910111213141516171819202122232425
  1. package datamodels
  2. import "time"
  3. type ObjectOAM 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('Type') "`
  10. OamStatement string `json:"oamStatement" xorm:"'oam_statement' varchar(1023) comment('Statement') "`
  11. OamDesc string `json:"oamDesc" xorm:"'oam_desc' varchar(1023) comment('描述') "`
  12. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  13. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  14. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  15. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  16. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  17. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  18. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  19. }
  20. func (t *ObjectOAM) TableName() string {
  21. return "ds_object_oam"
  22. }