2026-09-19 14:17:27 +02:00
|
|
|
package domain
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type User struct {
|
|
|
|
|
ID uint
|
|
|
|
|
Email, Name string
|
|
|
|
|
Provider, ProviderSubject string
|
2026-09-19 14:56:49 +02:00
|
|
|
Role string
|
|
|
|
|
Editor bool
|
2026-09-19 14:17:27 +02:00
|
|
|
CreatedAt time.Time
|
|
|
|
|
}
|
|
|
|
|
type Admin struct {
|
|
|
|
|
ID uint
|
|
|
|
|
Email, Name string
|
|
|
|
|
CreatedAt time.Time
|
|
|
|
|
}
|
|
|
|
|
type Session struct {
|
|
|
|
|
ID uint
|
|
|
|
|
Token string
|
|
|
|
|
UserID *uint
|
|
|
|
|
AdminID *uint
|
|
|
|
|
ExpiresAt, CreatedAt time.Time
|
|
|
|
|
}
|
2026-09-19 14:56:49 +02:00
|
|
|
|
|
|
|
|
type Content struct {
|
|
|
|
|
ID uint
|
|
|
|
|
Slug, Title, Summary, Body string
|
|
|
|
|
Status string
|
|
|
|
|
Published bool
|
|
|
|
|
CreatedAt, UpdatedAt time.Time
|
|
|
|
|
CreatedBy, UpdatedBy uint
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ContentHistory struct {
|
|
|
|
|
ID uint
|
|
|
|
|
ContentID uint
|
|
|
|
|
Operation string
|
|
|
|
|
ActorID *uint
|
|
|
|
|
ActorAdminID *uint
|
|
|
|
|
CreatedAt time.Time
|
|
|
|
|
Snapshot string
|
|
|
|
|
}
|