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
+19
View File
@@ -0,0 +1,19 @@
package models
import "gorm.io/gorm"
// AboutPage stores the "O klubu" (About Club) page content
type AboutPage struct {
gorm.Model
Title string `json:"title"` // Page title
Subtitle string `json:"subtitle"` // Optional subtitle
Style string `json:"style" gorm:"default:'default'"` // Style: default, modern, timeline, custom
Content string `json:"content" gorm:"type:text"` // HTML content
HeroImage string `json:"hero_image"` // Hero/banner image URL
Sections string `json:"sections" gorm:"type:text"` // JSON array of sections for structured styles
Published bool `json:"published" gorm:"default:false"` // Whether page is published
SEOTitle string `json:"seo_title"` // SEO meta title
SEODesc string `json:"seo_description" gorm:"type:text"` // SEO meta description
}
func (AboutPage) TableName() string { return "about_pages" }