2024-07-19 10:03:35 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
// User model
|
|
|
|
type User struct {
|
2024-08-09 21:37:54 +02:00
|
|
|
BaseModel[UserID]
|
2024-08-09 22:43:58 +02:00
|
|
|
Favorites []UserFavorite `json:"-" gorm:"foreignKey:UserID"`
|
|
|
|
Sources []UserSource `json:"-" gorm:"foreignKey:UserID"`
|
2024-07-19 10:03:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (User) TableName() string {
|
|
|
|
return "User"
|
|
|
|
}
|