add name to file struct
This commit is contained in:
parent
3a6b24cb57
commit
09d8ffa82c
2 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,7 @@ type StereoConfig struct {
|
|||
|
||||
type File struct {
|
||||
ID uuid.UUID `gorm:"type:uuid;primaryKey"`
|
||||
Name string `gorm:"not null;index"`
|
||||
Owner string `gorm:"not null;index"`
|
||||
Size int64 `gorm:"not null;type:bigint"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue