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

13 lines
255 B
Go
Raw Normal View History

package models
// User model
type User struct {
BaseModel[AnthroveUserID]
Favorites []UserFavorites `json:"-" gorm:"foreignKey:UserID"`
Sources []UserSource `json:"-" gorm:"foreignKey:UserID"`
}
func (User) TableName() string {
return "User"
}