fonts.go 1.8 KB

1234567891011121314151617181920212223242526272829303132
  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 entity
  5. import (
  6. "time"
  7. )
  8. const TableNameFont = "fonts"
  9. // Font mapped from table <fonts>
  10. type Font struct {
  11. ID int64 `gorm:"column:id;type:int;primaryKey;autoIncrement:true" json:"id"`
  12. Name string `gorm:"column:name;type:varchar(50);not null" json:"name"` // 字体名称
  13. Code string `gorm:"column:code;type:varchar(100);not null" json:"code"` // 字体code
  14. Path string `gorm:"column:path;type:varchar(100);not null" json:"path"` // 字体路径
  15. FileName string `gorm:"column:file_name;type:varchar(100);not null" json:"file_name"` // 文件名称
  16. FileSize int64 `gorm:"column:file_size;type:int;not null" json:"file_size"` // 文件大小
  17. Hash string `gorm:"column:hash;type:varchar(32);not null" json:"hash"` // 文件hash
  18. FileType string `gorm:"column:file_type;type:varchar(50);not null;default:application/octet-stream" json:"file_type"` // 文件类型
  19. Status int64 `gorm:"column:status;type:tinyint;not null;default:1" json:"status"` // 文字状态
  20. CreateAt time.Time `gorm:"column:create_at;type:timestamp;not null" json:"create_at"` // 创建时间
  21. UpdateAt time.Time `gorm:"column:update_at;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"update_at"` // 更新时间
  22. }
  23. // TableName Font's table name
  24. func (*Font) TableName() string {
  25. return TableNameFont
  26. }