ot_apps.gen.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package models
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameApp = "ot_apps"
  10. // App mapped from table <ot_apps>
  11. type App struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at" json:"createdat"`
  14. UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedat"`
  15. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deletedat"`
  16. CreateBy int64 `gorm:"column:create_by;comment:创建者" json:"createby"` // 创建者
  17. UpdateBy int64 `gorm:"column:update_by;comment:更新者" json:"updateby"` // 更新者
  18. Name string `gorm:"column:name;not null" json:"name"`
  19. Alias string `gorm:"column:alias;not null" json:"alias"`
  20. Desc string `gorm:"column:desc" json:"desc"`
  21. ImgURL string `gorm:"column:img_url" json:"imgurl"`
  22. ContractInfo string `gorm:"column:contract_info" json:"contractinfo"`
  23. ContractPhone string `gorm:"column:contract_phone" json:"contractphone"`
  24. }
  25. // TableName App's table name
  26. func (*App) TableName() string {
  27. return TableNameApp
  28. }