bookstore

package
v0.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSchemaConfig

func NewSchemaConfig(pq pgxscan.Queryer) graphql.SchemaConfig

Types

type Address

type Address struct {
	AddressId    int
	StreetNumber string
	StreetName   string
	City         string
	CountryId    int
}

type AddressStatus

type AddressStatus struct {
	StatusId      int
	AddressStatus string
}

type Author

type Author struct {
	AuthorId   int
	AuthorName string
}

type Book

type Book struct {
	BookId          int
	Title           string
	Isbn13          string
	LanguageId      int
	NumPages        int
	PublicationDate time.Time
	PublisherId     int
}

type BookAuthor

type BookAuthor struct {
	BookId   int
	AuthorId int
}

type BookLanguage

type BookLanguage struct {
	LanguageId   int
	LanguageCode string
	LanguageName string
}

type Country

type Country struct {
	CountryId   int
	CountryName string
}

type CustOrder

type CustOrder struct {
	OrderId          int
	OrderDate        time.Time
	CustomerId       int
	ShippingMethodId int
	DestAddressId    int
}

type Customer

type Customer struct {
	CustomerId int
	FirstName  string
	LastName   string
	Email      string
}

type CustomerAddress

type CustomerAddress struct {
	CustomerId int
	AddressId  int
	StatusId   int
}

type OrderHistory

type OrderHistory struct {
	HistoryId  int
	OrderId    int
	StatusId   int
	StatusDate time.Time
}

type OrderLine

type OrderLine struct {
	LineId  int
	OrderId int
	BookId  int
	Price   pgtype.Numeric
}

type OrderStatus

type OrderStatus struct {
	StatusId    int
	StatusValue string
}

type Publisher

type Publisher struct {
	PublisherId   int
	PublisherName string
}

type ShippingMethod

type ShippingMethod struct {
	MethodId   int
	MethodName string
	Cost       pgtype.Numeric
}

Jump to

Keyboard shortcuts

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