models

package
v0.0.0-...-b4ac636 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupModels

func SetupModels() *gorm.DB

Types

type Customer

type Customer struct {
	ID           uint   `json:"id" gorm:"primary_key"`
	Name         string `json:"name" gorm:"unique_index:name_ndx"`
	EmailAddress string `json:"email_address" gorm:"unique_index:email_address_ndx"`
	Attention    string `json:"attention"`
	Address1     string `json:"address_1"`
	Address2     string `json:"address_2"`
}

Customer used to retreive customers

Jump to

Keyboard shortcuts

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