Blogs listing + Categories
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user