core

package
v0.0.0-...-de1b222 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb() (db *gorm.DB, err error)

Types

type GormModel

type GormModel struct {
	ID        uint       `gorm:"primary_key" json:"-"`
	CreatedAt time.Time  `json:"-"`
	UpdatedAt time.Time  `json:"-"`
	DeletedAt *time.Time `sql:"index" json:"-"`
}

type UserModel

type UserModel struct {
	gorm.Model
	Uuid           uuid.UUID
	Username       string `json:"username"`
	Password       string
	FirstName      string
	LastName       string
	Email          string `gorm:"index"`
	Salt           string
	HashedPassword string
	Ctime          int
	Mtime          int
	Status         int
}

Jump to

Keyboard shortcuts

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