otter-space-sdk/pkg/models/user.go

13 lines
245 B
Go
Raw Normal View History

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"
}