25 lines
1.1 KiB
Go
25 lines
1.1 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
|
|
|
|
const TableNamePsOrderCartRule = "ps_order_cart_rule"
|
|
|
|
// PsOrderCartRule mapped from table <ps_order_cart_rule>
|
|
type PsOrderCartRule struct {
|
|
IDOrderCartRule int32 `gorm:"column:id_order_cart_rule;primaryKey;autoIncrement:true" json:"id_order_cart_rule"`
|
|
IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"`
|
|
IDCartRule int32 `gorm:"column:id_cart_rule;not null;index:id_cart_rule,priority:1" json:"id_cart_rule"`
|
|
IDOrderInvoice *int32 `gorm:"column:id_order_invoice" json:"id_order_invoice"`
|
|
Name string `gorm:"column:name;not null" json:"name"`
|
|
Value float64 `gorm:"column:value;not null;default:0.00" json:"value"`
|
|
ValueTaxExcl float64 `gorm:"column:value_tax_excl;not null;default:0.00" json:"value_tax_excl"`
|
|
FreeShipping bool `gorm:"column:free_shipping;not null" json:"free_shipping"`
|
|
}
|
|
|
|
// TableName PsOrderCartRule's table name
|
|
func (*PsOrderCartRule) TableName() string {
|
|
return TableNamePsOrderCartRule
|
|
}
|