mercury/internal/database/post.go

22 lines
443 B
Go
Raw Normal View History

2023-09-03 00:23:48 +02:00
package database
import "github.com/oklog/ulid/v2"
type PostVisibility string
const (
PublicVisibility PostVisibility = "public"
UnlistedVisibility PostVisibility = "unlisted"
FollowersVisibility PostVisibility = "followers"
DirectVisibility PostVisibility = "direct"
)
2023-09-03 00:23:48 +02:00
// Post is a single post.
type Post struct {
ID ulid.ULID
BlogID ulid.ULID
Content *string
Source *string
Visibility PostVisibility
2023-09-03 00:23:48 +02:00
}