model

package
v0.0.0-...-00eb66d Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGormDbSession

func NewGormDbSession(connstring string) (*gorm.DB, error)

Types

type Address

type Address struct {
	//gorm.Model -- overriding this with custom model for primary key
	Id          string         `gorm:"primary_key;type:text;default:gen_random_uuid()" json:"id"`
	CreatedAt   time.Time      `json:"createdAt"`
	UpdatedAt   time.Time      `json:"updatedAt"`
	DeletedAt   gorm.DeletedAt `gorm:"index" json:"deletedAt"`
	FirstName   string         `json:"firstName"`
	LastName    string         `json:"lastName"`
	CompanyName string         `json:"companyName"`
	Address     string         `json:"address"`
	City        string         `json:"city"`
	County      string         `json:"county"`
	State       string         `json:"state"`
	Zip         string         `json:"zip"`
	Phone1      string         `json:"phone1"`
	Phone2      string         `json:"phone2"`
	Email       string         `json:"email"`
	Web         string         `json:"web"`
}

Jump to

Keyboard shortcuts

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