hmn/src/models/thread.go

31 lines
778 B
Go
Raw Normal View History

package models
type ThreadType int
const (
ThreadTypeProjectBlogPost ThreadType = iota + 1
ThreadTypeForumPost
_ // formerly occupied by static pages, RIP
_ // formerly occupied by who the hell knows what, RIP
_ // formerly occupied by the wiki, RIP
_ // formerly occupied by library discussions, RIP
ThreadTypePersonalBlogPost
)
type Thread struct {
ID int `db:"id"`
Type ThreadType `db:"type"`
ProjectID int `db:"project_id"`
SubforumID *int `db:"subforum_id"`
PersonalArticleUserID *int `db:"personal_article_user_id"`
2021-07-04 22:48:08 +00:00
Title string `db:"title"`
Sticky bool `db:"sticky"`
Locked bool `db:"locked"`
Deleted bool `db:"deleted"`
2021-07-30 20:01:40 +00:00
FirstID int `db:"first_id"`
LastID int `db:"last_id"`
}