SoXX
0e6a8fd61e
added more columns BREAKING-CHANGE: breaks database compatibility to older SDK versions
13 lines
247 B
Go
13 lines
247 B
Go
package models
|
|
|
|
// User model
|
|
type User struct {
|
|
BaseModel[UserID]
|
|
Favorites []UserFavorites `json:"-" gorm:"foreignKey:UserID"`
|
|
Sources []UserSource `json:"-" gorm:"foreignKey:UserID"`
|
|
}
|
|
|
|
func (User) TableName() string {
|
|
return "User"
|
|
}
|