SoXX
8f6ca691bf
All checks were successful
Gitea Build Check / Build (push) Successful in 2m0s
fully tested post & tags. Also found bugs with the tests. Those are now fixed.
14 lines
362 B
Go
14 lines
362 B
Go
package models
|
|
|
|
type UserFavorite struct {
|
|
BaseModel[UserFavoriteID]
|
|
UserID UserID `json:"user_id"`
|
|
PostID PostID `json:"post_id"`
|
|
UserSourceID UserSourceID `json:"user_source_id"`
|
|
UserSource UserSource `json:"-" gorm:"foreignKey:ID;references:UserSourceID"`
|
|
}
|
|
|
|
func (UserFavorite) TableName() string {
|
|
return "UserFavorites"
|
|
}
|