Blogs listing + Categories

This commit is contained in:
cdricms
2025-02-25 00:13:53 +01:00
parent ae228710e1
commit 793e3748f9
21 changed files with 695 additions and 192 deletions

View File

@@ -18,6 +18,7 @@ type Blog struct {
Published time.Time `bun:"published,default:current_timestamp" json:"published"`
Summary string `bun:"summary" json:"summary"`
Image string `bun:"image" json:"image"`
Category string `bun:"category" json:"category,omitempty"`
Author User `bun:"rel:belongs-to,join:author_id=user_id" json:"author"`
}