biz_object.go 1.3 KB

1234567891011121314151617181920212223
  1. package datamodels
  2. import "time"
  3. type BizObject struct {
  4. BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('Biz ID') "`
  5. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('Object ID') "`
  6. ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Object Type') "`
  7. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title') "`
  8. ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('Object Code') "`
  9. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('Comment') "`
  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 *BizObject) TableName() string {
  19. return "biz_object"
  20. }