add blurhash

This commit is contained in:
grngxd 2025-08-01 08:43:25 +01:00
parent bc42a2bb75
commit 264739fd76
4 changed files with 22 additions and 1 deletions

View file

@ -53,7 +53,8 @@ type File struct {
Owner string `gorm:"not null;index"`
Size int64 `gorm:"not null;type:bigint"`
CreatedAt time.Time `gorm:"autoCreateTime"`
Mime string
Mime string ` gorm:"type:text"`
Blurhash string `gorm:"type:text"`
}
func (f *File) BeforeCreate(tx *gorm.DB) (err error) {