This commit is contained in:
Tomáš Dvořák
2025-10-16 13:32:05 +02:00
commit 12cba639b9
663 changed files with 168914 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package models
import "gorm.io/gorm"
// Clothing represents a merchandising item
type Clothing struct {
gorm.Model
Title string `gorm:"not null" json:"title"`
Description string `gorm:"type:text" json:"description"`
Price float64 `json:"price"`
Currency string `gorm:"default:'Kč'" json:"currency"`
ImageURL string `json:"image_url"`
URL string `json:"url"`
IsActive bool `gorm:"default:true" json:"is_active"`
DisplayOrder int `gorm:"default:0" json:"display_order"`
}
// TableName specifies the table name for the Clothing model
func (Clothing) TableName() string {
return "clothing"
}