models

package
v0.0.0-...-381594c Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *gorm.DB
)

Functions

func MakeConnection

func MakeConnection()

Types

type User

type User struct {
	ID        int       `gorm:"column:id;primary_key;type:bigint(20) unsigned auto_increment"`
	Email     string    `gorm:"column:email;type:varchar(255);unique"`
	Password  string    `gorm:"column:password;type:varchar(255)"`
	ApiKey    string    `gorm:"column:api_key;type:varchar(255);unique"`
	CreatedAt time.Time `gorm:"column:created_at;type:timestamp"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp"`
}

Jump to

Keyboard shortcuts

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