schemas

package
v0.0.0-...-02fbc85 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	CategoryName string `example:"Category 1"`
	Description  string `example:"Description 1"`
}

type CategoryResponse

type CategoryResponse struct {
	ID           string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	CategoryName string `example:"Category 1"`
	Description  string `example:"Description 1"`
	Active       bool   `example:"false"`
}

type CreditCard

type CreditCard struct {
	Brand      string `example:"Visa"`
	Number     string `example:"4468467578025601"`
	CVV        string `example:"847"`
	MM         string `example:"07"`
	YYYY       string `example:"2025"`
	CustomerID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
}

type CreditCardResponse

type CreditCardResponse struct {
	ID         string `example:"5cc1f36f-1287-4c88-63fb-601feb9634be"`
	Brand      string `example:"Visa"`
	Number     string `example:"4468467578025601"`
	CVV        string `example:"847"`
	MM         string `example:"07"`
	YYYY       string `example:"2025"`
	CustomerID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
}

type Customer

type Customer struct {
	Name       string    `example:"Ramona Ellis"`
	Email      string    `example:"ramona.ellis@example.com"`
	DNI        string    `example:"105883636"`
	Address    string    `example:"6597 Westheimer Rd"`
	City       string    `example:"Billings"`
	Birthday   time.Time `example:"1990-01-02"`
	PostalCode string    `example:"63104"`
	Country    string    `example:"United States"`
	Phone      string    `example:"7097900"`
	UserName   string    `example:"yellowpeacock117"`
	Password   string    `example:"addison"`
}

type CustomerResponse

type CustomerResponse struct {
	ID         string    `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	Name       string    `example:"Ramona Ellis"`
	Email      string    `example:"ramona.ellis@example.com"`
	DNI        string    `example:"105883636"`
	Address    string    `example:"6597 Westheimer Rd"`
	City       string    `example:"Billings"`
	Birthday   time.Time `example:"1990-01-02"`
	PostalCode string    `example:"63104"`
	Country    string    `example:"United States"`
	Phone      string    `example:"7097900"`
	UserName   string    `example:"yellowpeacock117"`
	Password   string    `example:"addison"`
}

type Login

type Login struct {
	CustomerID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
}

type LoginResponse

type LoginResponse struct {
	ID         string `example:"9cc1g36t-6537-4d10-11fs-771may9224vv"`
	CustomerID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
}

type Order

type Order struct {
	OrderDate      time.Time `example:"1990-01-02"`
	RequiredDate   time.Time `example:"1990-01-02"`
	ShippedDate    time.Time `example:"1990-01-04"`
	ShipName       string    `example:"Servientrega"`
	ShipAddress    string    `example:"6597 Westheimer Rd"`
	ShipCity       string    `example:"Billings"`
	ShipPostalCode string    `example:"63104"`
	ShipCountry    string    `example:"United States"`
	CustomerID     string    `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	ShipperID      string    `example:"9cc1g36t-6537-4d10-11fs-771may9224vv"`
}

type OrderProduct

type OrderProduct struct {
	UnitPrice float32 `example:"32400"`
	Quantity  uint    `example:"5"`
	Discount  float32 `example:"2400"`
	ProductID string  `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	OrderID   string  `example:"9cc1g36t-6537-4d10-11fs-771may9224vv"`
}

type OrderProductResponse

type OrderProductResponse struct {
	ID        string  `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	UnitPrice float32 `example:"32400"`
	Quantity  uint    `example:"5"`
	Discount  float32 `example:"2400"`
	ProductID string  `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	OrderID   string  `example:"9cc1g36t-6537-4d10-11fs-771may9224vv"`
}

type OrderResponse

type OrderResponse struct {
	ID             string    `example:"2ld1f12f-2227-8s08-18cc-222fdb9634xx"`
	OrderDate      time.Time `example:"1990-01-02"`
	RequiredDate   time.Time `example:"1990-01-02"`
	ShippedDate    time.Time `example:"1990-01-04"`
	ShipName       string    `example:"not null"`
	ShipAddress    string    `example:"6597 Westheimer Rd"`
	ShipCity       string    `example:"Billings"`
	ShipPostalCode string    `example:"63104"`
	ShipCountry    string    `example:"United States"`
	CustomerID     string    `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	ShipperID      string    `example:"9cc1g36t-6537-4d10-11fs-771may9224vv"`
}

type Payment

type Payment struct {
	OrderID      string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	CreditCardID string `example:"5cc1f36f-1287-4c88-63fb-601feb9634be"`
}

type PaymentResponse

type PaymentResponse struct {
	ID           string `example:"2ld1f12f-2227-8s08-18cc-222fdb9634xx"`
	OrderID      string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	CreditCardID string `example:"5cc1f36f-1287-4c88-63fb-601feb9634be"`
}

type Product

type Product struct {
	ProductName     string `example:"Product 1"`
	QuantityPerUnit string `example:"2"`
	UnitsInStock    uint   `example:"10"`
	UnitsOnOrder    uint   `example:"3"`
	ReorderLevel    uint   `example:"1"`
	Discontinued    bool   `example:"false"`
	Quantity        uint   `example:"10"`
	SupplierID      string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	CategoryID      string `example:"5cc1f36f-1287-4c88-63fb-601feb9634be"`
}

type ProductResponse

type ProductResponse struct {
	ID              string `example:"2ld1f12f-2227-8s08-18cc-222fdb9634xx"`
	ProductName     string `example:"Product 1"`
	QuantityPerUnit string `example:"32400"`
	UnitsInStock    uint   `example:"10"`
	UnitsOnOrder    uint   `example:"3"`
	ReorderLevel    uint   `example:"1"`
	Discontinued    bool   `example:"false"`
	Quantity        uint   `example:"10"`
	SupplierID      string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	CategoryID      string `example:"5cc1f36f-1287-4c88-63fb-601feb9634be"`
}

type Shipper

type Shipper struct {
	CompanyName string `example:"Servientrega"`
	Phone       string `example:"6697901"`
}

type ShipperResponse

type ShipperResponse struct {
	ID          string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
	CompanyName string `example:"Servientrega"`
	Phone       string `example:"6697901"`
}

type Subcategory

type Subcategory struct {
	SubCategoryName string `example:"Subcategory 1"`
	Description     string `example:"Description about subcategory 1"`
	CategoryID      string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
}

type SubcategoryResponse

type SubcategoryResponse struct {
	ID              string `example:"2ld1f12f-2227-8s08-18cc-222fdb9634xx"`
	SubCategoryName string `example:"Subcategory 1"`
	Description     string `example:"Description about subcategory 1"`
	CategoryID      string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
}

type Supplier

type Supplier struct {
	CompanyName string `example:"Arthur Clark"`
	Address     string `example:"49 Spring St"`
	City        string `example:"Billings"`
	Country     string `example:"United States"`
	PostalCode  string `example:"63104"`
	Phone       string `example:"6475240"`
	HomePage    string `example:"arthur.clark.com"`
}

type SupplierResponse

type SupplierResponse struct {
	ID          string `example:"2ld1f12f-2227-8s08-18cc-222fdb9634xx"`
	CompanyName string `example:"Arthur Clark"`
	Address     string `example:"49 Spring St"`
	City        string `example:"Billings"`
	Country     string `example:"United States"`
	PostalCode  string `example:"63104"`
	Phone       string `example:"6475240"`
	HomePage    string `example:"arthur.clark.com"`
}

Jump to

Keyboard shortcuts

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