This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
otter-space-sdk/pkg/models/user.go
soxx 5aac1f2916
Some checks failed
Gitea Build Check / Build (push) Failing after 5m46s
feat(postgres): start implementing new generic orm model
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-25 09:09:18 +02:00

13 lines
237 B
Go

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