// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package entity import ( "time" ) const TableNameFont = "fonts" // Font mapped from table type Font struct { ID int64 `gorm:"column:id;type:int;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;type:varchar(50);not null" json:"name"` // 字体名称 Code string `gorm:"column:code;type:varchar(100);not null" json:"code"` // 字体code Path string `gorm:"column:path;type:varchar(100);not null" json:"path"` // 字体路径 FileName string `gorm:"column:file_name;type:varchar(100);not null" json:"file_name"` // 文件名称 FileSize int64 `gorm:"column:file_size;type:int;not null" json:"file_size"` // 文件大小 Hash string `gorm:"column:hash;type:varchar(32);not null" json:"hash"` // 文件hash FileType string `gorm:"column:file_type;type:varchar(50);not null;default:application/octet-stream" json:"file_type"` // 文件类型 Status int64 `gorm:"column:status;type:tinyint;not null;default:1" json:"status"` // 文字状态 CreateAt time.Time `gorm:"column:create_at;type:timestamp;not null" json:"create_at"` // 创建时间 UpdateAt time.Time `gorm:"column:update_at;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"update_at"` // 更新时间 } // TableName Font's table name func (*Font) TableName() string { return TableNameFont }