20 lines
592 B
Go
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" }
|