otter-space-sdk/pkg/models/userFavorite.go
SoXX 8f6ca691bf
All checks were successful
Gitea Build Check / Build (push) Successful in 2m0s
feat(test): added post, tags & fixed issues
fully tested post & tags. Also found bugs with the tests. Those are now fixed.
2024-08-14 13:43:11 +02:00

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"
}