package
Version:
v0.0.0-...-5b5ecee
Opens a new window with list of versions in this module.
Published: Apr 28, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type User struct {
gorm.Model
FirstName string `gorm:"size:255"`
LastName string `gorm:"size:255"`
Email string `gorm:"NOT NULL; UNIQUE_INDEX"`
Password string `gorm:"NOT NULL"`
Role string `gorm:"NOT_NULL;size:255;DEFAULT:'standard'"`
Active bool `gorm:"NOT NULL; DEFAULT: true"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.