I am stupid and IDs should not be UUID but string
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:
Melody Becker 2025-04-12 09:16:35 +02:00
parent 98e842f0b1
commit d4f2f66807
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
3 changed files with 22 additions and 22 deletions

View file

@ -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)