models

package
v0.0.0-...-3120bc6 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabase

func GetDatabase() *gorm.DB

Get database

func Initialize

func Initialize() (*gorm.DB, error)

Initialize database

Types

type User

type User struct {
	Id    uint   `gorm:"primary_key;AUTO_INCREMENT" json:"id"`
	Name  string `gorm:"size:32" json:"name"`
	Email string `gorm:"size:255" json:"email"`
}

Jump to

Keyboard shortcuts

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