soxx
2a752adcac
All checks were successful
Gitea Build Check / Build (push) Successful in 10m49s
Signed-off-by: soxx <soxx@fenpa.ws>
15 lines
362 B
Go
15 lines
362 B
Go
package models
|
|
|
|
// Post model
|
|
type Post struct {
|
|
BaseModel
|
|
Rating Rating `gorm:"type:enum('safe','questionable','explicit')"`
|
|
Tags []Tag `gorm:"many2many:post_tags;"`
|
|
Favorites []UserFavorites `gorm:"foreignKey:PostID"`
|
|
References []PostReference `gorm:"foreignKey:PostID"`
|
|
}
|
|
|
|
func (Post) TableName() string {
|
|
return "Post"
|
|
}
|