package models import ( "time" ) type Post struct { ID int64 `json:"id"` Title string `json:"title"` Body string `json:"body"` Author string `json:"author"` Published bool `json:"published"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } type CreatePostRequest struct { Title string `json:"title"` Body string `json:"body"` Author string `json:"author"` Published bool `json:"published"` } type UpdatePostRequest struct { Title *string `json:"title,omitempty"` Body *string `json:"body,omitempty"` Author *string `json:"author,omitempty"` Published *bool `json:"published,omitempty"` }