mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 18:52:56 +00:00
upload
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user