chore: build
This commit is contained in:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user