Files
b2b/app/model/dbmodel/ps_order_cart_rule.go
2026-03-30 01:02:02 +02:00

45 lines
2.0 KiB
Go

// Code generated by gormcol. DO NOT EDIT.
package dbmodel
import "git.ma-al.com/goc_marek/gormcol"
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
}
var PsOrderCartRuleCols = struct {
IDOrderCartRule gormcol.Field
IDOrder gormcol.Field
IDCartRule gormcol.Field
IDOrderInvoice gormcol.Field
Name gormcol.Field
Value gormcol.Field
ValueTaxExcl gormcol.Field
FreeShipping gormcol.Field
}{
IDOrderCartRule: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "id_order_cart_rule"),
IDOrder: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "id_order"),
IDCartRule: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "id_cart_rule"),
IDOrderInvoice: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "id_order_invoice"),
Name: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "name"),
Value: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "value"),
ValueTaxExcl: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "value_tax_excl"),
FreeShipping: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "free_shipping"),
}