biz.go 1.0 KB

123456789101112131415161718192021
  1. package datamodels
  2. import "time"
  3. type Biz struct {
  4. BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('Biz ID') "`
  5. BizTitle string `json:"bizTitle" xorm:"'biz_title' varchar(50) comment('Biz Title') "`
  6. BizDesc string `json:"bizDesc" xorm:"'biz_desc' varchar(50) comment('Biz Desc') "`
  7. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint comment('Is Fixed') "`
  8. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  9. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  10. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  11. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  12. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  13. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  14. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  15. }
  16. func (t *Biz) TableName() string {
  17. return "biz"
  18. }