package
Version:
v0.0.0-...-aacfc5d
Opens a new window with list of versions in this module.
Published: May 9, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Identity struct {
gorm.Model
Identifier string `gorm:"uniqueIndex;default:null"`
UserID uint
}
type Resource struct {
gorm.Model
Redirect string `gorm:"default:null" json:"redirect"`
UserID uint
}
type User struct {
gorm.Model
Name string `gorm:"default:null" form:"name"`
Email string `gorm:"unique;" form:"email" binding:"required"`
Password string `form:"password"`
Resources []Resource
Identities []Identity
}
Exist checks and returns if a user with email already exist or not.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.