Files
template-vitrine/backend/internal/modules/site/model.go
T
2026-09-14 20:50:19 +02:00

20 lines
592 B
Go

// Package site owns the minimal, config-driven site identity (name,
// description, slug). It is the proof of the "code defines capabilities,
// admin defines content" pattern: future modules (appearance, menu, pages,
// ...) will follow this same shape (single-row or keyed settings table +
// admin-only read/write endpoints).
package site
import "time"
type Settings struct {
ID int16 `gorm:"primaryKey"`
Name string
Description string
Slug string
CreatedAt time.Time
UpdatedAt time.Time
}
func (Settings) TableName() string { return "site_settings" }