split single file id "<uid_name>" into 2 properties

This commit is contained in:
grngxd 2025-06-10 00:10:03 +01:00
parent 2b64d64f80
commit 9ef7760967
2 changed files with 96 additions and 49 deletions

View file

@ -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"`