// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import (
	"git.ma-al.com/goc_marek/gormcol"
	"time"
)

const TableNamePsProductSale = "ps_product_sale"

// PsProductSale mapped from table <ps_product_sale>
type PsProductSale struct {
	IDProduct int32      `gorm:"column:id_product;primaryKey" json:"id_product"`
	Quantity  int32      `gorm:"column:quantity;not null;index:quantity,priority:1" json:"quantity"`
	SaleNbr   int32      `gorm:"column:sale_nbr;not null" json:"sale_nbr"`
	DateUpd   *time.Time `gorm:"column:date_upd" json:"date_upd"`
}

// TableName PsProductSale's table name
func (*PsProductSale) TableName() string {
	return TableNamePsProductSale
}

var PsProductSaleCols = struct {
	IDProduct gormcol.Field
	Quantity gormcol.Field
	SaleNbr gormcol.Field
	DateUpd gormcol.Field
}{
	IDProduct: gormcol.Field{}.Set((&PsProductSale{}).TableName(), "id_product"),
	Quantity: gormcol.Field{}.Set((&PsProductSale{}).TableName(), "quantity"),
	SaleNbr: gormcol.Field{}.Set((&PsProductSale{}).TableName(), "sale_nbr"),
	DateUpd: gormcol.Field{}.Set((&PsProductSale{}).TableName(), "date_upd"),
}
