package
Version:
v0.0.0-...-131705e
Opens a new window with list of versions in this module.
Published: Dec 8, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func UserObject() map[string]interface{}
type Job struct {
gorm.Model
UserID int `gorm:"not null"`
Title string `gorm:"not null"`
Description string `gorm:"type:text"`
}
type Session struct {
gorm.Model
UserID int `gorm:"not null"`
AccessToken string `gorm:"not null"`
ServerIP string `gorm:"not null"`
AccessTokenExpiry time.Time `gorm:"not null"`
}
type User struct {
gorm.Model
UserName string `gorm:"unique"`
Email string `gorm:"unique;not null"`
Password string `gorm:"not null"`
FirstName string `gorm:"not null"`
LastName string `gorm:"not null"`
LoginAttempts *int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.