holy shit i FUCKING HATE golang io.Readers
This commit is contained in:
parent
bb52442373
commit
f348e7d40f
2 changed files with 16 additions and 36 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue