chore: build
ci-api / test (push) Failing after 8m7s
ci-web / test (push) Failing after 5m5s

This commit is contained in:
Xor290
2026-09-20 12:18:33 +02:00
parent 8f4c7fa47a
commit 919c807004
174 changed files with 9669 additions and 1308 deletions
+6 -2
View File
@@ -17,8 +17,12 @@ type Media struct {
MimeType string `gorm:"not null"`
SizeBytes int64 `gorm:"not null"`
AltText string `gorm:"not null;default:''"`
CreatedAt time.Time
UpdatedAt time.Time
// ProductID isolates each media file to the single product it was
// uploaded for (nil for media not tied to any product, e.g. contact
// link icons) -- there is no shared cross-product media library.
ProductID *uuid.UUID `gorm:"type:uuid;index"`
CreatedAt time.Time
UpdatedAt time.Time
}
func (Media) TableName() string { return "media" }