domain

package
v0.0.0-...-b30c35d Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buyer

type Buyer struct {
	gorm.Model
	UserID uint `gorm:"column:user_id" json:"user_id"`
}

Buyer ...

func (*Buyer) TableName

func (m *Buyer) TableName() string

TableName sets the insert table name for this struct type

type City

type City struct {
	gorm.Model
	CityCode   string `gorm:"column:city_code" json:"city_code"`
	CityName   string `gorm:"column:city_name" json:"city_name"`
	ProvinceID uint   `gorm:"column:province_id" json:"province_id"`
}

City ...

func (*City) TableName

func (m *City) TableName() string

TableName sets the insert table name for this struct type

type Country

type Country struct {
	gorm.Model
	CountryName string `gorm:"column:country_name" json:"country_name"`
	CountryCode string `gorm:"column:country_code" json:"country_code"`
}

Country ...

func (*Country) TableName

func (m *Country) TableName() string

TableName sets the insert table name for this struct type

type Products

type Products struct {
	gorm.Model
	Name        string  `gorm:"column:name" json:"name"`
	Category    string  `gorm:"column:category" json:"category"`
	VariantID   uint    `gorm:"column:variant_id" json:"variant_id"`
	Price       float32 `gorm:"column:price" json:"price"`
	Description string  `gorm:"column:description" json:"description"`
	Quantity    int32   `gorm:"column:quantity" json:"quantity"`
}

Products ...

func (*Products) TableName

func (m *Products) TableName() string

TableName sets the insert table name for this struct type

type Province

type Province struct {
	gorm.Model
	ProvinceName string `gorm:"column:province_name" json:"province_name"`
	ProvinceCode string `gorm:"column:province_code" json:"province_code"`
	CountryID    uint   `gorm:"column:country_id" json:"country_id"`
}

Province ...

func (*Province) TableName

func (m *Province) TableName() string

TableName sets the insert table name for this struct type

type Seller

type Seller struct {
	gorm.Model
	UserID uint `gorm:"column:user_id" json:"user_id"`
}

Seller ...

func (*Seller) TableName

func (m *Seller) TableName() string

TableName sets the insert table name for this struct type

type User

type User struct {
	gorm.Model
	Name      string `gorm:"column:name" json:"name"`
	Mobile    string `gorm:"column:mobile" json:"mobile"`
	Email     string `gorm:"column:email" json:"email"`
	Address   string `gorm:"column:address" json:"address"`
	Password  string `gorm:"column:password" json:"password"`
	Salt      string `gorm:"column:salt" json:"salt"`
	ZipCodeID uint   `gorm:"column:zipcode" json:"zipcode"`
}

User ...

func (*User) TableName

func (m *User) TableName() string

TableName sets the insert table name for this struct type

type Variants

type Variants struct {
	gorm.Model
	Size string `gorm:"column:size" json:"size"`
}

Variants ...

func (*Variants) TableName

func (m *Variants) TableName() string

TableName sets the insert table name for this struct type

type ZipCode

type ZipCode struct {
	gorm.Model
	ZipCode string `gorm:"column:zipcode" json:"zipcode"`
	CityID  uint   `gorm:"column:city_id" json:"city_id"`
}

ZipCode ...

func (*ZipCode) TableName

func (m *ZipCode) TableName() string

TableName sets the insert table name for this struct type

Jump to

Keyboard shortcuts

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