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