Files
MyClub/internal/models/about_page.go
T
Tomáš Dvořák 12cba639b9 upload
2025-10-16 13:32:05 +02:00

20 lines
1.0 KiB
Go

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" }