go-tell/internal/domain/models.go

34 lines
565 B
Go
Raw Normal View History

package domain
import "time"
type Content struct {
ID uint
Slug, Title, Summary, Body string
Status string
Published bool
2026-09-19 15:11:12 +02:00
CategoryID uint
Category string
Badges []string
CreatedAt, UpdatedAt time.Time
}
2026-09-19 15:11:12 +02:00
type Category struct {
ID uint
Slug string
Name string
}
2026-09-19 15:14:16 +02:00
type Badge struct {
ID uint
Name string
}
type ContentHistory struct {
2026-09-19 16:45:24 +02:00
ID uint
ContentID uint
Operation string
CreatedAt time.Time
Snapshot string
}