Files
b2b/app/model/prestadb/ps_product_attribute.go

40 lines
2.5 KiB
Go

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package prestadb
import (
"time"
)
const TableNamePsProductAttribute = "ps_product_attribute"
// PsProductAttribute mapped from table <ps_product_attribute>
type PsProductAttribute struct {
IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey;autoIncrement:true;index:idx_product_attribute,priority:2;index:id_product_id_product_attribute,priority:1" json:"id_product_attribute"`
IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:product_default,priority:1;index:idx_id_product,priority:1;index:idx_product_attribute,priority:1;index:idx_ps_product_attribute,priority:1;index:id_product_id_product_attribute,priority:2;index:product_attribute_product,priority:1" json:"id_product"`
Reference *string `gorm:"column:reference;index:reference,priority:1" json:"reference"`
SupplierReference *string `gorm:"column:supplier_reference;index:supplier_reference,priority:1" json:"supplier_reference"`
Location *string `gorm:"column:location" json:"location"`
Ean13 *string `gorm:"column:ean13" json:"ean13"`
Isbn *string `gorm:"column:isbn" json:"isbn"`
Upc *string `gorm:"column:upc" json:"upc"`
WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"`
Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"`
Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"`
Quantity int32 `gorm:"column:quantity;not null" json:"quantity"`
Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"`
UnitPriceImpact float64 `gorm:"column:unit_price_impact;not null;default:0.000000" json:"unit_price_impact"`
DefaultOn *bool `gorm:"column:default_on;uniqueIndex:product_default,priority:2" json:"default_on"`
MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"`
LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"`
LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"`
AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"`
}
// TableName PsProductAttribute's table name
func (*PsProductAttribute) TableName() string {
return TableNamePsProductAttribute
}