Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvatarStyle ¶
type AvatarStyle string
AvatarStyle define the avatar style
const ( // Gravatar is an avatar image generated from email Gravatar AvatarStyle = "gravatar" // Manual is an avatar uploaded by user Manual AvatarStyle = "manual" )
type Comment ¶
type Comment struct { gorm.Model Version int PostID int CreatorID int Creator User Text string Score int }
Comment data model
type Pool ¶
type Pool struct { gorm.Model Version int Names pq.StringArray `gorm:"type:text[]"` CategoryID int Category PoolCategory Posts []Post `gorm:"many2many:post_pools"` Description string }
Pool data model
type PoolCategory ¶
type PoolCategory struct { gorm.Model Version int Name string Color string Usages int IsDefault bool }
PoolCategory data model
type Post ¶
type Post struct { gorm.Model Version int Safety PostSafety Source string Type PostType Checksum string ChecksumMd5 string CanvasWidth int CanvasHeight int ContentUrl string ThumbnailUrl string Tags []Tag `gorm:"many2many:post_tags"` Relations []Post `gorm:"many2many:post_relations"` CreatorID int Creator User Score int TagCount int FavouriteCount int CommentCount int RelationCount int HasCustomThumbnail bool Comments []Comment Pools []Pool `gorm:"many2many:post_pools"` }
type PostSafety ¶
type PostSafety string
const ( Safe PostSafety = "safe" Sketchy PostSafety = "sketchy" Unsafe PostSafety = "unsafe" )
type Tag ¶
type Tag struct { gorm.Model Version int Names pq.StringArray `gorm:"type:text[]"` CategoryID int Category TagCategory Implications []Tag `gorm:"many2many:tag_implications"` Suggestions []Tag `gorm:"many2many:tag_suggestions"` Usages int Description string }
Tag data model
Click to show internal directories.
Click to hide internal directories.