Fixed Pagination & modles #14

Merged
fenpaws merged 6 commits from develop/orchestrator-fixes into main 2024-07-16 11:14:09 +00:00
Showing only changes of commit 63f8902674 - Show all commits

View File

@ -4,9 +4,9 @@ package models
type Post struct { type Post struct {
BaseModel[AnthrovePostID] BaseModel[AnthrovePostID]
Rating Rating `json:"rating" gorm:"type:enum('safe','questionable','explicit')"` Rating Rating `json:"rating" gorm:"type:enum('safe','questionable','explicit')"`
Tags []Tag `json:"tags" gorm:"many2many:post_tags;"` Tags []Tag `json:"-" gorm:"many2many:post_tags;"`
Favorites []UserFavorites `json:"-" gorm:"foreignKey:PostID"` Favorites []UserFavorites `json:"-" gorm:"foreignKey:PostID"`
References []PostReference `json:"-" gorm:"foreignKey:PostID"` References []PostReference `json:"references" gorm:"foreignKey:PostID"`
} }
func (Post) TableName() string { func (Post) TableName() string {