split single file id "<uid_name>" into 2 properties
This commit is contained in:
parent
2b64d64f80
commit
9ef7760967
2 changed files with 96 additions and 49 deletions
|
@ -25,7 +25,7 @@ type StereoConfig struct {
|
|||
}
|
||||
|
||||
type File struct {
|
||||
ID string `gorm:"primaryKey"`
|
||||
Name string `gorm:"primaryKey"`
|
||||
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