aboutsummaryrefslogtreecommitdiff
path: root/src/post/post_model.go
blob: fc5dc2af3bc2085bee605d0f03d2fe6a84bacea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package post

import (
	"time"

	"gitlab.com/alexkavon/newsstand/src/user"
)

type Post struct {
	Title   string    `json:"title"`
	Body    string    `json:"body"`
	User    user.User `json:"user"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}