SoXX
85d7905e8a
- Update model references from `UserFavorites` to `UserFavorite` in multiple files. - Adjust database queries and struct definitions accordingly to maintain consistency.
13 lines
245 B
Go
13 lines
245 B
Go
package models
|
|
|
|
// User model
|
|
type User struct {
|
|
BaseModel[UserID]
|
|
Favorites []UserFavorite `json:"-" gorm:"foreignKey:UserID"`
|
|
Sources []UserSource `json:"-" gorm:"foreignKey:UserID"`
|
|
}
|
|
|
|
func (User) TableName() string {
|
|
return "User"
|
|
}
|