database

package
v0.0.0-...-423f668 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrateCmd = &cobra.Command{
	Use:   "migrate",
	Short: "start migration",
	RunE:  dbMigrate,
}

Functions

func New

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

Types

type Cart

type Cart struct {
	CartId      string `gorm:"primaryKey;type:uuid;default:uuid_generate_v4();" json:"cartId,omitempty"`
	ProductCode string `json:"kodeProduk,omitempty"`
	ProductName string `json:"namaProduk,omitempty"`
	Quantity    int    `json:"kuantitas,omitempty"`
}

type Carts

type Carts []Cart

Jump to

Keyboard shortcuts

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