api_trans_unit.go 1.4 KB

1234567891011121314151617181920212223
  1. package datamodels
  2. import "time"
  3. type ApiTransUnit struct {
  4. ModuleId int64 `json:"moduleId" xorm:"'module_id' bigint pk comment('Module ID') "`
  5. ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('ApiId') "`
  6. AtuId int64 `json:"atuId" xorm:"'atu_id' bigint pk comment('AtuId') "`
  7. ModelId int64 `json:"modelId" xorm:"'model_id' bigint comment('ModelId') "`
  8. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint comment('ObjectId') "`
  9. OamId int64 `json:"oamId" xorm:"'oam_id' bigint comment('OAM ID') "`
  10. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  11. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  12. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  13. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  14. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  15. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  16. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  17. }
  18. func (t *ApiTransUnit) TableName() string {
  19. return "ps_api_trans_unit"
  20. }