domain

package
v0.0.0-...-4c8fc35 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	//
	ID          string  `db:"id"`
	Name        string  `db:"name"`
	Address     string  `db:"address"`
	City        string  `db:"city"`
	State       string  `db:"state"`
	PostalCode  string  `db:"postal_code"`
	Latitude    float64 `db:"latitude"`
	Longitude   float64 `db:"longitude"`
	IsPrimary   bool    `db:"is_primary"`
	PhoneNumber string  `db:"phone_number"`
	CreatedAt   int64   `db:"created_at"`
	UpdatedAt   int64   `db:"updated_at"`
	UserID      string  `db:"user_id"`
}

func (Address) TableName

func (e Address) TableName() string

type Cart

type Cart struct {
	//
	ID        string `db:"id"`
	Quantity  uint   `db:"quantity"`
	CreatedAt int64  `db:"created_at"`
	UpdatedAt int64  `db:"updated_at"`
	UserID    string `db:"user_id"`
	ProductID string `db:"product_id"`
}

func (Cart) TableName

func (e Cart) TableName() string

type Product

type Product struct {
	ID          string `db:"id"`
	Name        string `db:"name"`
	Description string `db:"description"`
	Quantity    uint   `db:"quantity"`
	Price       int64  `db:"price"`
	CreatedAt   int64  `db:"created_at"`
	UpdatedAt   int64  `db:"updated_at"`
	CategoryID  string `db:"category_id"`
}

func (Product) TableName

func (e Product) TableName() string

type PropertyWishlist

type PropertyWishlist struct {
	//
	ID         string `json:"id" db:"id"`
	CreatedAt  int64  `json:"created_at" db:"created_at"`
	UserID     string `json:"user_id" db:"user_id"`
	PropertyID string `json:"property_id" db:"property_id"`
}

func (PropertyWishlist) TableName

func (e PropertyWishlist) TableName() string

type Refresh

type Refresh struct {
	//
	ID            string `db:"id"`
	Token         string `db:"token"`
	CreatedAt     int64  `db:"created_at"`
	LastRefreshAt int64  `db:"last_refresh_at"`
	UserID        string `db:"user_id"`
}

func (Refresh) TableName

func (e Refresh) TableName() string

type User

type User struct {
	ID          string `json:"id" db:"id"`
	Name        string `json:"name" db:"name"`
	Username    string `json:"username" db:"username"`
	Email       string `json:"email" db:"email"`
	Password    string `json:"password" db:"password"`
	PhoneNumber string `json:"phone_number" db:"phone_number"`
	Status      string `json:"status" db:"status"`
	IsGoogle    bool   `json:"is_google" db:"is_google"`
	IsFacebook  bool   `json:"is_facebook" db:"is_facebook"`
	PhotoUrl    string `json:"photo_url" db:"photo_url"`
	CreatedAt   int64  `json:"created_at" db:"created_at"`
	UpdatedAt   int64  `json:"updated_at" db:"updated_at"`
}

func (User) TableName

func (e User) TableName() string

type Wishlist

type Wishlist struct {
	//
	ID        string `json:"id" db:"id"`
	CreatedAt int64  `json:"created_at" db:"created_at"`
	UserID    string `json:"user_id" db:"user_id"`
	ProductID string `json:"product_id" db:"product_id"`
}

func (Wishlist) TableName

func (e Wishlist) TableName() string

Jump to

Keyboard shortcuts

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