model

package
v0.0.0-...-1b864e3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func GetInstance

func GetInstance() *gorm.DB

Types

type MyLogger

type MyLogger struct {
}

func (*MyLogger) Print

func (logger *MyLogger) Print(values ...interface{})

type Order

type Order struct {
	gorm.Model
	UserId    int64
	ProductId int64
	Price     float64
}

type Product

type Product struct {
	gorm.Model
	Name    string
	Barcode string
	Price   float64
	Desc    string
}

type User

type User struct {
	gorm.Model
	Name    string
	Country string
	Age     sql.NullInt16
}

Jump to

Keyboard shortcuts

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