db

package
v8.7.9 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectionCompanies

func CollectionCompanies(ctx context.Context) (*mongo.Collection, error)

Types

type Company

type Company struct {
	ID              primitive.ObjectID `bson:"_id" json:"id"`
	Key             string             `bson:"key" json:"key"`
	Name            string             `bson:"name" json:"name"`
	Address1        string             `bson:"address1" json:"address1"`
	Address2        string             `bson:"address2" json:"address2"`
	Postcode        string             `bson:"postcode" json:"postcode"`
	City            string             `bson:"city" json:"city"`
	ContactName     string             `bson:"contactName" json:"contactName"`
	ContactEmail    string             `bson:"contactEmail" json:"contactEmail"`
	ContactPhone    string             `bson:"contactPhone" json:"contactPhone"`
	PartnerStoreKey string             `bson:"partnerStoreKey" json:"partnerStoreKey"`
}

Jump to

Keyboard shortcuts

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