I am stupid and IDs should not be UUID but string
All checks were successful
/ docker (push) Successful in 3m58s
All checks were successful
/ docker (push) Successful in 3m58s
Other software might use different IDs that aren't UUIDs, so shouldn't lock own IDs into UUID either
This commit is contained in:
parent
98e842f0b1
commit
d4f2f66807
3 changed files with 22 additions and 22 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
// Instead, they are either stored on the remote server they originated from
|
||||
// or an s3 bucket if uploaded to Linstrom.
|
||||
type MediaMetadata struct {
|
||||
ID string `gorm:"primarykey;type:uuid;default:gen_random_uuid()"` // The unique ID of this media file
|
||||
ID string `gorm:"primarykey;default:gen_random_uuid()"` // The unique ID of this media file
|
||||
CreatedAt time.Time // When this entry was created
|
||||
UpdatedAt time.Time // When this entry was last updated
|
||||
// When this entry was deleted (for soft deletions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue