api_trans_unit.go 1.5 KB

12345678910111213141516171819202122232425
  1. package datamodels
  2. import "time"
  3. type ApiTransUnit struct {
  4. ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('ApiId') "`
  5. AtuId int64 `json:"atuId" xorm:"'atu_id' bigint pk comment('AtuId') "`
  6. ModelId int64 `json:"modelIdId" xorm:"'model_id' bigint pk comment('ModelId') "`
  7. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('ObjectId') "`
  8. OamId int64 `json:"oamId" xorm:"'oam_id' bigint pk comment('OamId') "`
  9. AtuTitle string `json:"atuTitle" xorm:"'atu_title' varchar(127) comment('AtuTitle') "`
  10. AtuType string `json:"atuType" xorm:"'atu_type' bigint comment('AtuType') "`
  11. AtuDesc string `json:"atuDesc" xorm:"'atu_desc' varchar(2047) comment('AtuDesc') "`
  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 *ApiTransUnit) TableName() string {
  21. return "ps_api_trans_unit"
  22. }