model

package
v0.0.0-...-131705e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserObject

func UserObject() map[string]interface{}

Types

type Job

type Job struct {
	gorm.Model
	UserID      int    `gorm:"not null"`
	Title       string `gorm:"not null"`
	Description string `gorm:"type:text"`
}

type Session

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

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL