models

package
v0.0.0-...-f7afd5f Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brand

type Brand struct {
	Id   uint
	Name string
}

type Offer

type Offer struct {
	Id        uint `db:"id"`
	StoreId   uint `db:"store_id"`
	ProductId uint `db:"product_id"`
	Quantity  uint `db:"quantity"`
	// Available represents the number of items available for the offer
	Available      uint      `db:"available"`
	Price          uint      `db:"price"`
	Description    string    `db:"description"`
	ExpirationDate time.Time `db:"expiration_date"`
	CreatedAt      time.Time `db:"created_at"`
	UpdatedAt      time.Time `db:"updated_at"`
}

type Product

type Product struct {
	Id          uint   `db:"id"`
	Name        string `db:"name"`
	Picture     string `db:"picture"`
	BrandId     uint   `db:"brand_id"`
	Description string `db:"description"`
}

type Store

type Store struct {
	Id      uint    `db:"id"`
	Name    string  `db:"name"`
	Address string  `db:"address"`
	Lat     float64 `db:"lat"`
	Lng     float64 `db:"lng"`
	Website string  `db:"website"`
	Phone   string  `db:"phone"`
	Email   string  `db:"email"`
}

Jump to

Keyboard shortcuts

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