data

package
v0.0.0-...-6c63426 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database *gorm.DB

Functions

func Initialize

func Initialize(dsn string) error

Types

type Permission

type Permission struct {
	gorm.Model
	RoleID    uint
	Resource  string
	Action    string
	Permitted bool
}

type Role

type Role struct {
	gorm.Model
	Name string
}

type User

type User struct {
	gorm.Model
	Login string `gorm:"unique"`
	Email string `gorm:"unique"`
	//EmailVerified bool
	PasswordHash string `gorm:"unique"`
}

Jump to

Keyboard shortcuts

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