holy shit i FUCKING HATE golang io.Readers

This commit is contained in:
hexlocation 2025-06-14 19:18:02 +02:00
parent bb52442373
commit f348e7d40f
2 changed files with 16 additions and 36 deletions

View file

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