oc_type.go 1.1 KB

123456789101112131415161718192021
  1. package datamodel
  2. import "time"
  3. type OcType struct {
  4. OcTypeId int64 `json:"ocTypeId" xorm:"'oc_type_id' bigint pk comment('主键ID') "`
  5. OcTypeTitle string `json:"ocTypeTitle" xorm:"'oc_type_title' varchar(50) comment('OC类型名称') "`
  6. OcTypeDesc string `json:"ocTypeDesc" xorm:"'oc_type_desc' varchar(50) comment('描述') "`
  7. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
  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 *OcType) TableName() string {
  17. return "oc_type"
  18. }