Add authenticated content editing

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Daniel Noulet 2026-09-19 14:56:49 +02:00
parent fac7588d23
commit fd2877da9e
15 changed files with 581 additions and 37 deletions

View file

@ -6,6 +6,8 @@ type User struct {
ID uint
Email, Name string
Provider, ProviderSubject string
Role string
Editor bool
CreatedAt time.Time
}
type Admin struct {
@ -20,3 +22,22 @@ type Session struct {
AdminID *uint
ExpiresAt, CreatedAt time.Time
}
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
}