SDK v3 #8

Merged
SoXX merged 77 commits from dev/issue-5 into main 2024-08-14 13:27:35 +00:00
Showing only changes of commit b6c037cb22 - Show all commits

View File

@ -1,16 +1,13 @@
package models
import "time"
type UserFavorites struct {
type UserFavorite struct {
BaseModel[UserFavoriteID]
UserID string `json:"user_id"`
PostID string `json:"post_id"`
UserSourceID UserSourceID `json:"user_source_id"`
UserSource UserSource `json:"-" gorm:"foreignKey:ID;references:UserSourceID"`
CreatedAt time.Time `json:"created_at"`
}
func (UserFavorites) TableName() string {
func (UserFavorite) TableName() string {
return "UserFavorites"
}