use thumbhash instead of blurhash
This commit is contained in:
parent
264739fd76
commit
997774c5de
4 changed files with 38 additions and 36 deletions
|
@ -53,8 +53,10 @@ type File struct {
|
|||
Owner string `gorm:"not null;index"`
|
||||
Size int64 `gorm:"not null;type:bigint"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime"`
|
||||
Mime string ` gorm:"type:text"`
|
||||
Blurhash string `gorm:"type:text"`
|
||||
Mime string `gorm:"type:text"`
|
||||
Hash string `gorm:"type:text"`
|
||||
Width int
|
||||
Height int
|
||||
}
|
||||
|
||||
func (f *File) BeforeCreate(tx *gorm.DB) (err error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue