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