database

package
v0.0.0-...-604df70 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

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

Types

type Product

type Product struct {
	gorm.Model
	CompanyID        uint    `faker:"-"`
	Name             string  `gorm:"size:100;not null" faker:"name"`
	ShortDescription string  `gorm:"size:100;not null" faker:"sentence"`
	LongDescription  string  `gorm:"size:1000" faker:"paragraph"`
	ProductDetails   string  `gorm:"size:1000" faker:"paragraph"`
	ImagePath        string  `gorm:"size:1000" faker:"-"`
	Cost             float64 `gorm:"not null" faker:amount`
	Shippable        bool    `faker:"-"`
	FreeDelivery     bool    `faker:"-"`
}

Jump to

Keyboard shortcuts

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