Use table name constant in Cols for type safety
This commit is contained in:
28
app/model/dbmodel/ps_access.go
Normal file
28
app/model/dbmodel/ps_access.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAccess = "ps_access"
|
||||
|
||||
// PsAccess mapped from table <ps_access>
|
||||
type PsAccess struct {
|
||||
IDProfile int32 `gorm:"column:id_profile;primaryKey" json:"id_profile"`
|
||||
IDAuthorizationRole int32 `gorm:"column:id_authorization_role;primaryKey" json:"id_authorization_role"`
|
||||
}
|
||||
|
||||
// TableName PsAccess's table name
|
||||
func (*PsAccess) TableName() string {
|
||||
return TableNamePsAccess
|
||||
}
|
||||
|
||||
var PsAccessCols = struct {
|
||||
IDProfile gormcol.Field
|
||||
IDAuthorizationRole gormcol.Field
|
||||
}{
|
||||
IDProfile: gormcol.Field{Table: TableNamePsAccess, Column: "id_profile"},
|
||||
IDAuthorizationRole: gormcol.Field{Table: TableNamePsAccess, Column: "id_authorization_role"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_accessory.go
Normal file
28
app/model/dbmodel/ps_accessory.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAccessory = "ps_accessory"
|
||||
|
||||
// PsAccessory mapped from table <ps_accessory>
|
||||
type PsAccessory struct {
|
||||
IDProduct1 int32 `gorm:"column:id_product_1;not null;index:accessory_product,priority:1" json:"id_product_1"`
|
||||
IDProduct2 int32 `gorm:"column:id_product_2;not null;index:accessory_product,priority:2" json:"id_product_2"`
|
||||
}
|
||||
|
||||
// TableName PsAccessory's table name
|
||||
func (*PsAccessory) TableName() string {
|
||||
return TableNamePsAccessory
|
||||
}
|
||||
|
||||
var PsAccessoryCols = struct {
|
||||
IDProduct1 gormcol.Field
|
||||
IDProduct2 gormcol.Field
|
||||
}{
|
||||
IDProduct1: gormcol.Field{Table: TableNamePsAccessory, Column: "id_product_1"},
|
||||
IDProduct2: gormcol.Field{Table: TableNamePsAccessory, Column: "id_product_2"},
|
||||
}
|
||||
100
app/model/dbmodel/ps_address.go
Normal file
100
app/model/dbmodel/ps_address.go
Normal file
@@ -0,0 +1,100 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsAddress = "ps_address"
|
||||
|
||||
// PsAddress mapped from table <ps_address>
|
||||
type PsAddress struct {
|
||||
IDAddress int32 `gorm:"column:id_address;primaryKey;autoIncrement:true" json:"id_address"`
|
||||
IDCountry int32 `gorm:"column:id_country;not null;index:id_country,priority:1" json:"id_country"`
|
||||
IDState *int32 `gorm:"column:id_state;index:id_state,priority:1" json:"id_state"`
|
||||
IDCustomer int32 `gorm:"column:id_customer;not null;index:address_customer,priority:1" json:"id_customer"`
|
||||
IDManufacturer int32 `gorm:"column:id_manufacturer;not null;index:id_manufacturer,priority:1" json:"id_manufacturer"`
|
||||
IDSupplier int32 `gorm:"column:id_supplier;not null;index:id_supplier,priority:1" json:"id_supplier"`
|
||||
IDWarehouse int32 `gorm:"column:id_warehouse;not null;index:id_warehouse,priority:1" json:"id_warehouse"`
|
||||
Alias string `gorm:"column:alias;not null" json:"alias"`
|
||||
Company *string `gorm:"column:company" json:"company"`
|
||||
Lastname string `gorm:"column:lastname;not null" json:"lastname"`
|
||||
Firstname string `gorm:"column:firstname;not null" json:"firstname"`
|
||||
Address1 string `gorm:"column:address1;not null" json:"address1"`
|
||||
Address2 *string `gorm:"column:address2" json:"address2"`
|
||||
Postcode *string `gorm:"column:postcode" json:"postcode"`
|
||||
City string `gorm:"column:city;not null" json:"city"`
|
||||
Other *string `gorm:"column:other" json:"other"`
|
||||
Phone *string `gorm:"column:phone" json:"phone"`
|
||||
PhoneMobile *string `gorm:"column:phone_mobile" json:"phone_mobile"`
|
||||
VatNumber *string `gorm:"column:vat_number" json:"vat_number"`
|
||||
Dni *string `gorm:"column:dni" json:"dni"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
Active bool `gorm:"column:active;not null;default:1" json:"active"`
|
||||
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
|
||||
IsNovat int32 `gorm:"column:is_novat;not null" json:"is_novat"`
|
||||
}
|
||||
|
||||
// TableName PsAddress's table name
|
||||
func (*PsAddress) TableName() string {
|
||||
return TableNamePsAddress
|
||||
}
|
||||
|
||||
var PsAddressCols = struct {
|
||||
IDAddress gormcol.Field
|
||||
IDCountry gormcol.Field
|
||||
IDState gormcol.Field
|
||||
IDCustomer gormcol.Field
|
||||
IDManufacturer gormcol.Field
|
||||
IDSupplier gormcol.Field
|
||||
IDWarehouse gormcol.Field
|
||||
Alias gormcol.Field
|
||||
Company gormcol.Field
|
||||
Lastname gormcol.Field
|
||||
Firstname gormcol.Field
|
||||
Address1 gormcol.Field
|
||||
Address2 gormcol.Field
|
||||
Postcode gormcol.Field
|
||||
City gormcol.Field
|
||||
Other gormcol.Field
|
||||
Phone gormcol.Field
|
||||
PhoneMobile gormcol.Field
|
||||
VatNumber gormcol.Field
|
||||
Dni gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
Active gormcol.Field
|
||||
Deleted gormcol.Field
|
||||
IsNovat gormcol.Field
|
||||
}{
|
||||
IDAddress: gormcol.Field{Table: TableNamePsAddress, Column: "id_address"},
|
||||
IDCountry: gormcol.Field{Table: TableNamePsAddress, Column: "id_country"},
|
||||
IDState: gormcol.Field{Table: TableNamePsAddress, Column: "id_state"},
|
||||
IDCustomer: gormcol.Field{Table: TableNamePsAddress, Column: "id_customer"},
|
||||
IDManufacturer: gormcol.Field{Table: TableNamePsAddress, Column: "id_manufacturer"},
|
||||
IDSupplier: gormcol.Field{Table: TableNamePsAddress, Column: "id_supplier"},
|
||||
IDWarehouse: gormcol.Field{Table: TableNamePsAddress, Column: "id_warehouse"},
|
||||
Alias: gormcol.Field{Table: TableNamePsAddress, Column: "alias"},
|
||||
Company: gormcol.Field{Table: TableNamePsAddress, Column: "company"},
|
||||
Lastname: gormcol.Field{Table: TableNamePsAddress, Column: "lastname"},
|
||||
Firstname: gormcol.Field{Table: TableNamePsAddress, Column: "firstname"},
|
||||
Address1: gormcol.Field{Table: TableNamePsAddress, Column: "address1"},
|
||||
Address2: gormcol.Field{Table: TableNamePsAddress, Column: "address2"},
|
||||
Postcode: gormcol.Field{Table: TableNamePsAddress, Column: "postcode"},
|
||||
City: gormcol.Field{Table: TableNamePsAddress, Column: "city"},
|
||||
Other: gormcol.Field{Table: TableNamePsAddress, Column: "other"},
|
||||
Phone: gormcol.Field{Table: TableNamePsAddress, Column: "phone"},
|
||||
PhoneMobile: gormcol.Field{Table: TableNamePsAddress, Column: "phone_mobile"},
|
||||
VatNumber: gormcol.Field{Table: TableNamePsAddress, Column: "vat_number"},
|
||||
Dni: gormcol.Field{Table: TableNamePsAddress, Column: "dni"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsAddress, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsAddress, Column: "date_upd"},
|
||||
Active: gormcol.Field{Table: TableNamePsAddress, Column: "active"},
|
||||
Deleted: gormcol.Field{Table: TableNamePsAddress, Column: "deleted"},
|
||||
IsNovat: gormcol.Field{Table: TableNamePsAddress, Column: "is_novat"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_address_format.go
Normal file
28
app/model/dbmodel/ps_address_format.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAddressFormat = "ps_address_format"
|
||||
|
||||
// PsAddressFormat mapped from table <ps_address_format>
|
||||
type PsAddressFormat struct {
|
||||
IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"`
|
||||
Format string `gorm:"column:format;not null" json:"format"`
|
||||
}
|
||||
|
||||
// TableName PsAddressFormat's table name
|
||||
func (*PsAddressFormat) TableName() string {
|
||||
return TableNamePsAddressFormat
|
||||
}
|
||||
|
||||
var PsAddressFormatCols = struct {
|
||||
IDCountry gormcol.Field
|
||||
Format gormcol.Field
|
||||
}{
|
||||
IDCountry: gormcol.Field{Table: TableNamePsAddressFormat, Column: "id_country"},
|
||||
Format: gormcol.Field{Table: TableNamePsAddressFormat, Column: "format"},
|
||||
}
|
||||
43
app/model/dbmodel/ps_admin_filter.go
Normal file
43
app/model/dbmodel/ps_admin_filter.go
Normal file
@@ -0,0 +1,43 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAdminFilter = "ps_admin_filter"
|
||||
|
||||
// PsAdminFilter mapped from table <ps_admin_filter>
|
||||
type PsAdminFilter struct {
|
||||
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
||||
Employee int32 `gorm:"column:employee;not null;uniqueIndex:admin_filter_search_id_idx,priority:1" json:"employee"`
|
||||
Shop int32 `gorm:"column:shop;not null;uniqueIndex:admin_filter_search_id_idx,priority:2" json:"shop"`
|
||||
Controller string `gorm:"column:controller;not null;uniqueIndex:admin_filter_search_id_idx,priority:3" json:"controller"`
|
||||
Action string `gorm:"column:action;not null;uniqueIndex:admin_filter_search_id_idx,priority:4" json:"action"`
|
||||
Filter string `gorm:"column:filter;not null" json:"filter"`
|
||||
FilterID string `gorm:"column:filter_id;not null;uniqueIndex:admin_filter_search_id_idx,priority:5" json:"filter_id"`
|
||||
}
|
||||
|
||||
// TableName PsAdminFilter's table name
|
||||
func (*PsAdminFilter) TableName() string {
|
||||
return TableNamePsAdminFilter
|
||||
}
|
||||
|
||||
var PsAdminFilterCols = struct {
|
||||
ID gormcol.Field
|
||||
Employee gormcol.Field
|
||||
Shop gormcol.Field
|
||||
Controller gormcol.Field
|
||||
Action gormcol.Field
|
||||
Filter gormcol.Field
|
||||
FilterID gormcol.Field
|
||||
}{
|
||||
ID: gormcol.Field{Table: TableNamePsAdminFilter, Column: "id"},
|
||||
Employee: gormcol.Field{Table: TableNamePsAdminFilter, Column: "employee"},
|
||||
Shop: gormcol.Field{Table: TableNamePsAdminFilter, Column: "shop"},
|
||||
Controller: gormcol.Field{Table: TableNamePsAdminFilter, Column: "controller"},
|
||||
Action: gormcol.Field{Table: TableNamePsAdminFilter, Column: "action"},
|
||||
Filter: gormcol.Field{Table: TableNamePsAdminFilter, Column: "filter"},
|
||||
FilterID: gormcol.Field{Table: TableNamePsAdminFilter, Column: "filter_id"},
|
||||
}
|
||||
55
app/model/dbmodel/ps_advice.go
Normal file
55
app/model/dbmodel/ps_advice.go
Normal file
@@ -0,0 +1,55 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAdvice = "ps_advice"
|
||||
|
||||
// PsAdvice mapped from table <ps_advice>
|
||||
type PsAdvice struct {
|
||||
IDAdvice int32 `gorm:"column:id_advice;primaryKey;autoIncrement:true" json:"id_advice"`
|
||||
IDPsAdvice int32 `gorm:"column:id_ps_advice;not null" json:"id_ps_advice"`
|
||||
IDTab int32 `gorm:"column:id_tab;not null" json:"id_tab"`
|
||||
IdsTab *string `gorm:"column:ids_tab" json:"ids_tab"`
|
||||
Validated bool `gorm:"column:validated;not null" json:"validated"`
|
||||
Hide bool `gorm:"column:hide;not null" json:"hide"`
|
||||
Location string `gorm:"column:location;not null" json:"location"`
|
||||
Selector *string `gorm:"column:selector" json:"selector"`
|
||||
StartDay int32 `gorm:"column:start_day;not null" json:"start_day"`
|
||||
StopDay int32 `gorm:"column:stop_day;not null" json:"stop_day"`
|
||||
Weight *int32 `gorm:"column:weight;default:1" json:"weight"`
|
||||
}
|
||||
|
||||
// TableName PsAdvice's table name
|
||||
func (*PsAdvice) TableName() string {
|
||||
return TableNamePsAdvice
|
||||
}
|
||||
|
||||
var PsAdviceCols = struct {
|
||||
IDAdvice gormcol.Field
|
||||
IDPsAdvice gormcol.Field
|
||||
IDTab gormcol.Field
|
||||
IdsTab gormcol.Field
|
||||
Validated gormcol.Field
|
||||
Hide gormcol.Field
|
||||
Location gormcol.Field
|
||||
Selector gormcol.Field
|
||||
StartDay gormcol.Field
|
||||
StopDay gormcol.Field
|
||||
Weight gormcol.Field
|
||||
}{
|
||||
IDAdvice: gormcol.Field{Table: TableNamePsAdvice, Column: "id_advice"},
|
||||
IDPsAdvice: gormcol.Field{Table: TableNamePsAdvice, Column: "id_ps_advice"},
|
||||
IDTab: gormcol.Field{Table: TableNamePsAdvice, Column: "id_tab"},
|
||||
IdsTab: gormcol.Field{Table: TableNamePsAdvice, Column: "ids_tab"},
|
||||
Validated: gormcol.Field{Table: TableNamePsAdvice, Column: "validated"},
|
||||
Hide: gormcol.Field{Table: TableNamePsAdvice, Column: "hide"},
|
||||
Location: gormcol.Field{Table: TableNamePsAdvice, Column: "location"},
|
||||
Selector: gormcol.Field{Table: TableNamePsAdvice, Column: "selector"},
|
||||
StartDay: gormcol.Field{Table: TableNamePsAdvice, Column: "start_day"},
|
||||
StopDay: gormcol.Field{Table: TableNamePsAdvice, Column: "stop_day"},
|
||||
Weight: gormcol.Field{Table: TableNamePsAdvice, Column: "weight"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_advice_lang.go
Normal file
31
app/model/dbmodel/ps_advice_lang.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAdviceLang = "ps_advice_lang"
|
||||
|
||||
// PsAdviceLang mapped from table <ps_advice_lang>
|
||||
type PsAdviceLang struct {
|
||||
IDAdvice int32 `gorm:"column:id_advice;primaryKey" json:"id_advice"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
HTML *string `gorm:"column:html" json:"html"`
|
||||
}
|
||||
|
||||
// TableName PsAdviceLang's table name
|
||||
func (*PsAdviceLang) TableName() string {
|
||||
return TableNamePsAdviceLang
|
||||
}
|
||||
|
||||
var PsAdviceLangCols = struct {
|
||||
IDAdvice gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
HTML gormcol.Field
|
||||
}{
|
||||
IDAdvice: gormcol.Field{Table: TableNamePsAdviceLang, Column: "id_advice"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsAdviceLang, Column: "id_lang"},
|
||||
HTML: gormcol.Field{Table: TableNamePsAdviceLang, Column: "html"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_alias.go
Normal file
34
app/model/dbmodel/ps_alias.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAlias = "ps_alias"
|
||||
|
||||
// PsAlias mapped from table <ps_alias>
|
||||
type PsAlias struct {
|
||||
IDAlias int32 `gorm:"column:id_alias;primaryKey;autoIncrement:true" json:"id_alias"`
|
||||
Alias string `gorm:"column:alias;not null;uniqueIndex:alias,priority:1" json:"alias"`
|
||||
Search string `gorm:"column:search;not null" json:"search"`
|
||||
Active bool `gorm:"column:active;not null;default:1" json:"active"`
|
||||
}
|
||||
|
||||
// TableName PsAlias's table name
|
||||
func (*PsAlias) TableName() string {
|
||||
return TableNamePsAlias
|
||||
}
|
||||
|
||||
var PsAliasCols = struct {
|
||||
IDAlias gormcol.Field
|
||||
Alias gormcol.Field
|
||||
Search gormcol.Field
|
||||
Active gormcol.Field
|
||||
}{
|
||||
IDAlias: gormcol.Field{Table: TableNamePsAlias, Column: "id_alias"},
|
||||
Alias: gormcol.Field{Table: TableNamePsAlias, Column: "alias"},
|
||||
Search: gormcol.Field{Table: TableNamePsAlias, Column: "search"},
|
||||
Active: gormcol.Field{Table: TableNamePsAlias, Column: "active"},
|
||||
}
|
||||
37
app/model/dbmodel/ps_attachment.go
Normal file
37
app/model/dbmodel/ps_attachment.go
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttachment = "ps_attachment"
|
||||
|
||||
// PsAttachment mapped from table <ps_attachment>
|
||||
type PsAttachment struct {
|
||||
IDAttachment int32 `gorm:"column:id_attachment;primaryKey;autoIncrement:true" json:"id_attachment"`
|
||||
File string `gorm:"column:file;not null" json:"file"`
|
||||
FileName string `gorm:"column:file_name;not null" json:"file_name"`
|
||||
FileSize int64 `gorm:"column:file_size;not null" json:"file_size"`
|
||||
Mime string `gorm:"column:mime;not null" json:"mime"`
|
||||
}
|
||||
|
||||
// TableName PsAttachment's table name
|
||||
func (*PsAttachment) TableName() string {
|
||||
return TableNamePsAttachment
|
||||
}
|
||||
|
||||
var PsAttachmentCols = struct {
|
||||
IDAttachment gormcol.Field
|
||||
File gormcol.Field
|
||||
FileName gormcol.Field
|
||||
FileSize gormcol.Field
|
||||
Mime gormcol.Field
|
||||
}{
|
||||
IDAttachment: gormcol.Field{Table: TableNamePsAttachment, Column: "id_attachment"},
|
||||
File: gormcol.Field{Table: TableNamePsAttachment, Column: "file"},
|
||||
FileName: gormcol.Field{Table: TableNamePsAttachment, Column: "file_name"},
|
||||
FileSize: gormcol.Field{Table: TableNamePsAttachment, Column: "file_size"},
|
||||
Mime: gormcol.Field{Table: TableNamePsAttachment, Column: "mime"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_attachment_lang.go
Normal file
34
app/model/dbmodel/ps_attachment_lang.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttachmentLang = "ps_attachment_lang"
|
||||
|
||||
// PsAttachmentLang mapped from table <ps_attachment_lang>
|
||||
type PsAttachmentLang struct {
|
||||
IDAttachment int32 `gorm:"column:id_attachment;primaryKey;autoIncrement:true" json:"id_attachment"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name *string `gorm:"column:name" json:"name"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
}
|
||||
|
||||
// TableName PsAttachmentLang's table name
|
||||
func (*PsAttachmentLang) TableName() string {
|
||||
return TableNamePsAttachmentLang
|
||||
}
|
||||
|
||||
var PsAttachmentLangCols = struct {
|
||||
IDAttachment gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
}{
|
||||
IDAttachment: gormcol.Field{Table: TableNamePsAttachmentLang, Column: "id_attachment"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsAttachmentLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsAttachmentLang, Column: "name"},
|
||||
Description: gormcol.Field{Table: TableNamePsAttachmentLang, Column: "description"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_attribute.go
Normal file
34
app/model/dbmodel/ps_attribute.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttribute = "ps_attribute"
|
||||
|
||||
// PsAttribute mapped from table <ps_attribute>
|
||||
type PsAttribute struct {
|
||||
IDAttribute int32 `gorm:"column:id_attribute;primaryKey;autoIncrement:true" json:"id_attribute"`
|
||||
IDAttributeGroup int32 `gorm:"column:id_attribute_group;not null;index:attribute_group,priority:1" json:"id_attribute_group"`
|
||||
Color string `gorm:"column:color;not null" json:"color"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
}
|
||||
|
||||
// TableName PsAttribute's table name
|
||||
func (*PsAttribute) TableName() string {
|
||||
return TableNamePsAttribute
|
||||
}
|
||||
|
||||
var PsAttributeCols = struct {
|
||||
IDAttribute gormcol.Field
|
||||
IDAttributeGroup gormcol.Field
|
||||
Color gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDAttribute: gormcol.Field{Table: TableNamePsAttribute, Column: "id_attribute"},
|
||||
IDAttributeGroup: gormcol.Field{Table: TableNamePsAttribute, Column: "id_attribute_group"},
|
||||
Color: gormcol.Field{Table: TableNamePsAttribute, Column: "color"},
|
||||
Position: gormcol.Field{Table: TableNamePsAttribute, Column: "position"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_attribute_group.go
Normal file
34
app/model/dbmodel/ps_attribute_group.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeGroup = "ps_attribute_group"
|
||||
|
||||
// PsAttributeGroup mapped from table <ps_attribute_group>
|
||||
type PsAttributeGroup struct {
|
||||
IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey;autoIncrement:true" json:"id_attribute_group"`
|
||||
IsColorGroup bool `gorm:"column:is_color_group;not null" json:"is_color_group"`
|
||||
GroupType string `gorm:"column:group_type;not null" json:"group_type"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
}
|
||||
|
||||
// TableName PsAttributeGroup's table name
|
||||
func (*PsAttributeGroup) TableName() string {
|
||||
return TableNamePsAttributeGroup
|
||||
}
|
||||
|
||||
var PsAttributeGroupCols = struct {
|
||||
IDAttributeGroup gormcol.Field
|
||||
IsColorGroup gormcol.Field
|
||||
GroupType gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDAttributeGroup: gormcol.Field{Table: TableNamePsAttributeGroup, Column: "id_attribute_group"},
|
||||
IsColorGroup: gormcol.Field{Table: TableNamePsAttributeGroup, Column: "is_color_group"},
|
||||
GroupType: gormcol.Field{Table: TableNamePsAttributeGroup, Column: "group_type"},
|
||||
Position: gormcol.Field{Table: TableNamePsAttributeGroup, Column: "position"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_attribute_group_lang.go
Normal file
34
app/model/dbmodel/ps_attribute_group_lang.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeGroupLang = "ps_attribute_group_lang"
|
||||
|
||||
// PsAttributeGroupLang mapped from table <ps_attribute_group_lang>
|
||||
type PsAttributeGroupLang struct {
|
||||
IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey;index:IDX_4653726C67A664FB,priority:1" json:"id_attribute_group"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey;index:IDX_4653726CBA299860,priority:1" json:"id_lang"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
PublicName string `gorm:"column:public_name;not null" json:"public_name"`
|
||||
}
|
||||
|
||||
// TableName PsAttributeGroupLang's table name
|
||||
func (*PsAttributeGroupLang) TableName() string {
|
||||
return TableNamePsAttributeGroupLang
|
||||
}
|
||||
|
||||
var PsAttributeGroupLangCols = struct {
|
||||
IDAttributeGroup gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
PublicName gormcol.Field
|
||||
}{
|
||||
IDAttributeGroup: gormcol.Field{Table: TableNamePsAttributeGroupLang, Column: "id_attribute_group"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsAttributeGroupLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsAttributeGroupLang, Column: "name"},
|
||||
PublicName: gormcol.Field{Table: TableNamePsAttributeGroupLang, Column: "public_name"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_attribute_group_shop.go
Normal file
28
app/model/dbmodel/ps_attribute_group_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeGroupShop = "ps_attribute_group_shop"
|
||||
|
||||
// PsAttributeGroupShop mapped from table <ps_attribute_group_shop>
|
||||
type PsAttributeGroupShop struct {
|
||||
IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey;index:IDX_DB30BAAC67A664FB,priority:1" json:"id_attribute_group"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:IDX_DB30BAAC274A50A0,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsAttributeGroupShop's table name
|
||||
func (*PsAttributeGroupShop) TableName() string {
|
||||
return TableNamePsAttributeGroupShop
|
||||
}
|
||||
|
||||
var PsAttributeGroupShopCols = struct {
|
||||
IDAttributeGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDAttributeGroup: gormcol.Field{Table: TableNamePsAttributeGroupShop, Column: "id_attribute_group"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsAttributeGroupShop, Column: "id_shop"},
|
||||
}
|
||||
37
app/model/dbmodel/ps_attribute_impact.go
Normal file
37
app/model/dbmodel/ps_attribute_impact.go
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeImpact = "ps_attribute_impact"
|
||||
|
||||
// PsAttributeImpact mapped from table <ps_attribute_impact>
|
||||
type PsAttributeImpact struct {
|
||||
IDAttributeImpact int32 `gorm:"column:id_attribute_impact;primaryKey;autoIncrement:true" json:"id_attribute_impact"`
|
||||
IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"`
|
||||
IDAttribute int32 `gorm:"column:id_attribute;not null;uniqueIndex:id_product,priority:2" json:"id_attribute"`
|
||||
Weight float64 `gorm:"column:weight;not null" json:"weight"`
|
||||
Price float64 `gorm:"column:price;not null" json:"price"`
|
||||
}
|
||||
|
||||
// TableName PsAttributeImpact's table name
|
||||
func (*PsAttributeImpact) TableName() string {
|
||||
return TableNamePsAttributeImpact
|
||||
}
|
||||
|
||||
var PsAttributeImpactCols = struct {
|
||||
IDAttributeImpact gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
IDAttribute gormcol.Field
|
||||
Weight gormcol.Field
|
||||
Price gormcol.Field
|
||||
}{
|
||||
IDAttributeImpact: gormcol.Field{Table: TableNamePsAttributeImpact, Column: "id_attribute_impact"},
|
||||
IDProduct: gormcol.Field{Table: TableNamePsAttributeImpact, Column: "id_product"},
|
||||
IDAttribute: gormcol.Field{Table: TableNamePsAttributeImpact, Column: "id_attribute"},
|
||||
Weight: gormcol.Field{Table: TableNamePsAttributeImpact, Column: "weight"},
|
||||
Price: gormcol.Field{Table: TableNamePsAttributeImpact, Column: "price"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_attribute_lang.go
Normal file
31
app/model/dbmodel/ps_attribute_lang.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeLang = "ps_attribute_lang"
|
||||
|
||||
// PsAttributeLang mapped from table <ps_attribute_lang>
|
||||
type PsAttributeLang struct {
|
||||
IDAttribute int32 `gorm:"column:id_attribute;primaryKey;index:IDX_3ABE46A77A4F53DC,priority:1" json:"id_attribute"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey;index:IDX_3ABE46A7BA299860,priority:1" json:"id_lang"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
}
|
||||
|
||||
// TableName PsAttributeLang's table name
|
||||
func (*PsAttributeLang) TableName() string {
|
||||
return TableNamePsAttributeLang
|
||||
}
|
||||
|
||||
var PsAttributeLangCols = struct {
|
||||
IDAttribute gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDAttribute: gormcol.Field{Table: TableNamePsAttributeLang, Column: "id_attribute"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsAttributeLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsAttributeLang, Column: "name"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_attribute_shop.go
Normal file
28
app/model/dbmodel/ps_attribute_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeShop = "ps_attribute_shop"
|
||||
|
||||
// PsAttributeShop mapped from table <ps_attribute_shop>
|
||||
type PsAttributeShop struct {
|
||||
IDAttribute int32 `gorm:"column:id_attribute;primaryKey;index:IDX_A7DD8E677A4F53DC,priority:1" json:"id_attribute"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:IDX_A7DD8E67274A50A0,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsAttributeShop's table name
|
||||
func (*PsAttributeShop) TableName() string {
|
||||
return TableNamePsAttributeShop
|
||||
}
|
||||
|
||||
var PsAttributeShopCols = struct {
|
||||
IDAttribute gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDAttribute: gormcol.Field{Table: TableNamePsAttributeShop, Column: "id_attribute"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsAttributeShop, Column: "id_shop"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_authorization_role.go
Normal file
28
app/model/dbmodel/ps_authorization_role.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAuthorizationRole = "ps_authorization_role"
|
||||
|
||||
// PsAuthorizationRole mapped from table <ps_authorization_role>
|
||||
type PsAuthorizationRole struct {
|
||||
IDAuthorizationRole int32 `gorm:"column:id_authorization_role;primaryKey;autoIncrement:true" json:"id_authorization_role"`
|
||||
Slug string `gorm:"column:slug;not null;uniqueIndex:slug,priority:1" json:"slug"`
|
||||
}
|
||||
|
||||
// TableName PsAuthorizationRole's table name
|
||||
func (*PsAuthorizationRole) TableName() string {
|
||||
return TableNamePsAuthorizationRole
|
||||
}
|
||||
|
||||
var PsAuthorizationRoleCols = struct {
|
||||
IDAuthorizationRole gormcol.Field
|
||||
Slug gormcol.Field
|
||||
}{
|
||||
IDAuthorizationRole: gormcol.Field{Table: TableNamePsAuthorizationRole, Column: "id_authorization_role"},
|
||||
Slug: gormcol.Field{Table: TableNamePsAuthorizationRole, Column: "slug"},
|
||||
}
|
||||
46
app/model/dbmodel/ps_badge.go
Normal file
46
app/model/dbmodel/ps_badge.go
Normal file
@@ -0,0 +1,46 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsBadge = "ps_badge"
|
||||
|
||||
// PsBadge mapped from table <ps_badge>
|
||||
type PsBadge struct {
|
||||
IDBadge int32 `gorm:"column:id_badge;primaryKey;autoIncrement:true" json:"id_badge"`
|
||||
IDPsBadge int32 `gorm:"column:id_ps_badge;not null" json:"id_ps_badge"`
|
||||
Type string `gorm:"column:type;not null" json:"type"`
|
||||
IDGroup int32 `gorm:"column:id_group;not null" json:"id_group"`
|
||||
GroupPosition int32 `gorm:"column:group_position;not null" json:"group_position"`
|
||||
Scoring int32 `gorm:"column:scoring;not null" json:"scoring"`
|
||||
Awb *int32 `gorm:"column:awb" json:"awb"`
|
||||
Validated bool `gorm:"column:validated;not null" json:"validated"`
|
||||
}
|
||||
|
||||
// TableName PsBadge's table name
|
||||
func (*PsBadge) TableName() string {
|
||||
return TableNamePsBadge
|
||||
}
|
||||
|
||||
var PsBadgeCols = struct {
|
||||
IDBadge gormcol.Field
|
||||
IDPsBadge gormcol.Field
|
||||
Type gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
GroupPosition gormcol.Field
|
||||
Scoring gormcol.Field
|
||||
Awb gormcol.Field
|
||||
Validated gormcol.Field
|
||||
}{
|
||||
IDBadge: gormcol.Field{Table: TableNamePsBadge, Column: "id_badge"},
|
||||
IDPsBadge: gormcol.Field{Table: TableNamePsBadge, Column: "id_ps_badge"},
|
||||
Type: gormcol.Field{Table: TableNamePsBadge, Column: "type"},
|
||||
IDGroup: gormcol.Field{Table: TableNamePsBadge, Column: "id_group"},
|
||||
GroupPosition: gormcol.Field{Table: TableNamePsBadge, Column: "group_position"},
|
||||
Scoring: gormcol.Field{Table: TableNamePsBadge, Column: "scoring"},
|
||||
Awb: gormcol.Field{Table: TableNamePsBadge, Column: "awb"},
|
||||
Validated: gormcol.Field{Table: TableNamePsBadge, Column: "validated"},
|
||||
}
|
||||
37
app/model/dbmodel/ps_badge_lang.go
Normal file
37
app/model/dbmodel/ps_badge_lang.go
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsBadgeLang = "ps_badge_lang"
|
||||
|
||||
// PsBadgeLang mapped from table <ps_badge_lang>
|
||||
type PsBadgeLang struct {
|
||||
IDBadge int32 `gorm:"column:id_badge;primaryKey" json:"id_badge"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name *string `gorm:"column:name" json:"name"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
GroupName *string `gorm:"column:group_name" json:"group_name"`
|
||||
}
|
||||
|
||||
// TableName PsBadgeLang's table name
|
||||
func (*PsBadgeLang) TableName() string {
|
||||
return TableNamePsBadgeLang
|
||||
}
|
||||
|
||||
var PsBadgeLangCols = struct {
|
||||
IDBadge gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
GroupName gormcol.Field
|
||||
}{
|
||||
IDBadge: gormcol.Field{Table: TableNamePsBadgeLang, Column: "id_badge"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsBadgeLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsBadgeLang, Column: "name"},
|
||||
Description: gormcol.Field{Table: TableNamePsBadgeLang, Column: "description"},
|
||||
GroupName: gormcol.Field{Table: TableNamePsBadgeLang, Column: "group_name"},
|
||||
}
|
||||
85
app/model/dbmodel/ps_carrier.go
Normal file
85
app/model/dbmodel/ps_carrier.go
Normal file
@@ -0,0 +1,85 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrier = "ps_carrier"
|
||||
|
||||
// PsCarrier mapped from table <ps_carrier>
|
||||
type PsCarrier struct {
|
||||
IDCarrier int32 `gorm:"column:id_carrier;primaryKey;autoIncrement:true" json:"id_carrier"`
|
||||
IDReference int32 `gorm:"column:id_reference;not null;index:reference,priority:1" json:"id_reference"`
|
||||
IDTaxRulesGroup *int32 `gorm:"column:id_tax_rules_group;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
URL *string `gorm:"column:url" json:"url"`
|
||||
Active bool `gorm:"column:active;not null;index:deleted,priority:2;index:reference,priority:3" json:"active"`
|
||||
Deleted bool `gorm:"column:deleted;not null;index:deleted,priority:1;index:reference,priority:2" json:"deleted"`
|
||||
ShippingHandling bool `gorm:"column:shipping_handling;not null;default:1" json:"shipping_handling"`
|
||||
RangeBehavior bool `gorm:"column:range_behavior;not null" json:"range_behavior"`
|
||||
IsModule bool `gorm:"column:is_module;not null" json:"is_module"`
|
||||
IsFree bool `gorm:"column:is_free;not null" json:"is_free"`
|
||||
ShippingExternal bool `gorm:"column:shipping_external;not null" json:"shipping_external"`
|
||||
NeedRange bool `gorm:"column:need_range;not null" json:"need_range"`
|
||||
ExternalModuleName *string `gorm:"column:external_module_name" json:"external_module_name"`
|
||||
ShippingMethod int32 `gorm:"column:shipping_method;not null" json:"shipping_method"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
MaxWidth *int32 `gorm:"column:max_width" json:"max_width"`
|
||||
MaxHeight *int32 `gorm:"column:max_height" json:"max_height"`
|
||||
MaxDepth *int32 `gorm:"column:max_depth" json:"max_depth"`
|
||||
MaxWeight *float64 `gorm:"column:max_weight;default:0.000000" json:"max_weight"`
|
||||
Grade *int32 `gorm:"column:grade" json:"grade"`
|
||||
}
|
||||
|
||||
// TableName PsCarrier's table name
|
||||
func (*PsCarrier) TableName() string {
|
||||
return TableNamePsCarrier
|
||||
}
|
||||
|
||||
var PsCarrierCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDReference gormcol.Field
|
||||
IDTaxRulesGroup gormcol.Field
|
||||
Name gormcol.Field
|
||||
URL gormcol.Field
|
||||
Active gormcol.Field
|
||||
Deleted gormcol.Field
|
||||
ShippingHandling gormcol.Field
|
||||
RangeBehavior gormcol.Field
|
||||
IsModule gormcol.Field
|
||||
IsFree gormcol.Field
|
||||
ShippingExternal gormcol.Field
|
||||
NeedRange gormcol.Field
|
||||
ExternalModuleName gormcol.Field
|
||||
ShippingMethod gormcol.Field
|
||||
Position gormcol.Field
|
||||
MaxWidth gormcol.Field
|
||||
MaxHeight gormcol.Field
|
||||
MaxDepth gormcol.Field
|
||||
MaxWeight gormcol.Field
|
||||
Grade gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsCarrier, Column: "id_carrier"},
|
||||
IDReference: gormcol.Field{Table: TableNamePsCarrier, Column: "id_reference"},
|
||||
IDTaxRulesGroup: gormcol.Field{Table: TableNamePsCarrier, Column: "id_tax_rules_group"},
|
||||
Name: gormcol.Field{Table: TableNamePsCarrier, Column: "name"},
|
||||
URL: gormcol.Field{Table: TableNamePsCarrier, Column: "url"},
|
||||
Active: gormcol.Field{Table: TableNamePsCarrier, Column: "active"},
|
||||
Deleted: gormcol.Field{Table: TableNamePsCarrier, Column: "deleted"},
|
||||
ShippingHandling: gormcol.Field{Table: TableNamePsCarrier, Column: "shipping_handling"},
|
||||
RangeBehavior: gormcol.Field{Table: TableNamePsCarrier, Column: "range_behavior"},
|
||||
IsModule: gormcol.Field{Table: TableNamePsCarrier, Column: "is_module"},
|
||||
IsFree: gormcol.Field{Table: TableNamePsCarrier, Column: "is_free"},
|
||||
ShippingExternal: gormcol.Field{Table: TableNamePsCarrier, Column: "shipping_external"},
|
||||
NeedRange: gormcol.Field{Table: TableNamePsCarrier, Column: "need_range"},
|
||||
ExternalModuleName: gormcol.Field{Table: TableNamePsCarrier, Column: "external_module_name"},
|
||||
ShippingMethod: gormcol.Field{Table: TableNamePsCarrier, Column: "shipping_method"},
|
||||
Position: gormcol.Field{Table: TableNamePsCarrier, Column: "position"},
|
||||
MaxWidth: gormcol.Field{Table: TableNamePsCarrier, Column: "max_width"},
|
||||
MaxHeight: gormcol.Field{Table: TableNamePsCarrier, Column: "max_height"},
|
||||
MaxDepth: gormcol.Field{Table: TableNamePsCarrier, Column: "max_depth"},
|
||||
MaxWeight: gormcol.Field{Table: TableNamePsCarrier, Column: "max_weight"},
|
||||
Grade: gormcol.Field{Table: TableNamePsCarrier, Column: "grade"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_carrier_group.go
Normal file
28
app/model/dbmodel/ps_carrier_group.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierGroup = "ps_carrier_group"
|
||||
|
||||
// PsCarrierGroup mapped from table <ps_carrier_group>
|
||||
type PsCarrierGroup struct {
|
||||
IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"`
|
||||
IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"`
|
||||
}
|
||||
|
||||
// TableName PsCarrierGroup's table name
|
||||
func (*PsCarrierGroup) TableName() string {
|
||||
return TableNamePsCarrierGroup
|
||||
}
|
||||
|
||||
var PsCarrierGroupCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsCarrierGroup, Column: "id_carrier"},
|
||||
IDGroup: gormcol.Field{Table: TableNamePsCarrierGroup, Column: "id_group"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_carrier_lang.go
Normal file
34
app/model/dbmodel/ps_carrier_lang.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierLang = "ps_carrier_lang"
|
||||
|
||||
// PsCarrierLang mapped from table <ps_carrier_lang>
|
||||
type PsCarrierLang struct {
|
||||
IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Delay *string `gorm:"column:delay" json:"delay"`
|
||||
}
|
||||
|
||||
// TableName PsCarrierLang's table name
|
||||
func (*PsCarrierLang) TableName() string {
|
||||
return TableNamePsCarrierLang
|
||||
}
|
||||
|
||||
var PsCarrierLangCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Delay gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsCarrierLang, Column: "id_carrier"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCarrierLang, Column: "id_shop"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCarrierLang, Column: "id_lang"},
|
||||
Delay: gormcol.Field{Table: TableNamePsCarrierLang, Column: "delay"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_carrier_shop.go
Normal file
28
app/model/dbmodel/ps_carrier_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierShop = "ps_carrier_shop"
|
||||
|
||||
// PsCarrierShop mapped from table <ps_carrier_shop>
|
||||
type PsCarrierShop struct {
|
||||
IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsCarrierShop's table name
|
||||
func (*PsCarrierShop) TableName() string {
|
||||
return TableNamePsCarrierShop
|
||||
}
|
||||
|
||||
var PsCarrierShopCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsCarrierShop, Column: "id_carrier"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCarrierShop, Column: "id_shop"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_carrier_tax_rules_group_shop.go
Normal file
31
app/model/dbmodel/ps_carrier_tax_rules_group_shop.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierTaxRulesGroupShop = "ps_carrier_tax_rules_group_shop"
|
||||
|
||||
// PsCarrierTaxRulesGroupShop mapped from table <ps_carrier_tax_rules_group_shop>
|
||||
type PsCarrierTaxRulesGroupShop struct {
|
||||
IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"`
|
||||
IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;primaryKey" json:"id_tax_rules_group"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsCarrierTaxRulesGroupShop's table name
|
||||
func (*PsCarrierTaxRulesGroupShop) TableName() string {
|
||||
return TableNamePsCarrierTaxRulesGroupShop
|
||||
}
|
||||
|
||||
var PsCarrierTaxRulesGroupShopCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDTaxRulesGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsCarrierTaxRulesGroupShop, Column: "id_carrier"},
|
||||
IDTaxRulesGroup: gormcol.Field{Table: TableNamePsCarrierTaxRulesGroupShop, Column: "id_tax_rules_group"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCarrierTaxRulesGroupShop, Column: "id_shop"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_carrier_zone.go
Normal file
28
app/model/dbmodel/ps_carrier_zone.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierZone = "ps_carrier_zone"
|
||||
|
||||
// PsCarrierZone mapped from table <ps_carrier_zone>
|
||||
type PsCarrierZone struct {
|
||||
IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"`
|
||||
IDZone int32 `gorm:"column:id_zone;primaryKey" json:"id_zone"`
|
||||
}
|
||||
|
||||
// TableName PsCarrierZone's table name
|
||||
func (*PsCarrierZone) TableName() string {
|
||||
return TableNamePsCarrierZone
|
||||
}
|
||||
|
||||
var PsCarrierZoneCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDZone gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsCarrierZone, Column: "id_carrier"},
|
||||
IDZone: gormcol.Field{Table: TableNamePsCarrierZone, Column: "id_zone"},
|
||||
}
|
||||
94
app/model/dbmodel/ps_cart.go
Normal file
94
app/model/dbmodel/ps_cart.go
Normal file
@@ -0,0 +1,94 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCart = "ps_cart"
|
||||
|
||||
// PsCart mapped from table <ps_cart>
|
||||
type PsCart struct {
|
||||
IDCart int32 `gorm:"column:id_cart;primaryKey;autoIncrement:true" json:"id_cart"`
|
||||
IDShopGroup int32 `gorm:"column:id_shop_group;not null;index:id_shop_group,priority:1;default:1" json:"id_shop_group"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;index:id_shop_2,priority:1;default:1" json:"id_shop"`
|
||||
IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"`
|
||||
DeliveryOption string `gorm:"column:delivery_option;not null" json:"delivery_option"`
|
||||
IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"`
|
||||
IDAddressDelivery int32 `gorm:"column:id_address_delivery;not null;index:id_address_delivery,priority:1" json:"id_address_delivery"`
|
||||
IDAddressInvoice int32 `gorm:"column:id_address_invoice;not null;index:id_address_invoice,priority:1" json:"id_address_invoice"`
|
||||
IDCurrency int32 `gorm:"column:id_currency;not null;index:id_currency,priority:1" json:"id_currency"`
|
||||
IDCustomer int32 `gorm:"column:id_customer;not null;index:cart_customer,priority:1" json:"id_customer"`
|
||||
IDGuest int32 `gorm:"column:id_guest;not null;index:id_guest,priority:1" json:"id_guest"`
|
||||
SecureKey string `gorm:"column:secure_key;not null;default:-1" json:"secure_key"`
|
||||
Recyclable bool `gorm:"column:recyclable;not null;default:1" json:"recyclable"`
|
||||
Gift bool `gorm:"column:gift;not null" json:"gift"`
|
||||
GiftMessage *string `gorm:"column:gift_message" json:"gift_message"`
|
||||
MobileTheme bool `gorm:"column:mobile_theme;not null" json:"mobile_theme"`
|
||||
AllowSeperatedPackage bool `gorm:"column:allow_seperated_package;not null" json:"allow_seperated_package"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null;index:id_shop,priority:2" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null;index:id_shop_2,priority:2" json:"date_upd"`
|
||||
CheckoutSessionData *string `gorm:"column:checkout_session_data" json:"checkout_session_data"`
|
||||
CustomeShippingPriceNetto *float64 `gorm:"column:custome_shipping_price_netto" json:"custome_shipping_price_netto"`
|
||||
CustomeShippingPrice *float64 `gorm:"column:custome_shipping_price" json:"custome_shipping_price"`
|
||||
CustomeShippingTaxRate *float64 `gorm:"column:custome_shipping_tax_rate" json:"custome_shipping_tax_rate"`
|
||||
}
|
||||
|
||||
// TableName PsCart's table name
|
||||
func (*PsCart) TableName() string {
|
||||
return TableNamePsCart
|
||||
}
|
||||
|
||||
var PsCartCols = struct {
|
||||
IDCart gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
DeliveryOption gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDAddressDelivery gormcol.Field
|
||||
IDAddressInvoice gormcol.Field
|
||||
IDCurrency gormcol.Field
|
||||
IDCustomer gormcol.Field
|
||||
IDGuest gormcol.Field
|
||||
SecureKey gormcol.Field
|
||||
Recyclable gormcol.Field
|
||||
Gift gormcol.Field
|
||||
GiftMessage gormcol.Field
|
||||
MobileTheme gormcol.Field
|
||||
AllowSeperatedPackage gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
CheckoutSessionData gormcol.Field
|
||||
CustomeShippingPriceNetto gormcol.Field
|
||||
CustomeShippingPrice gormcol.Field
|
||||
CustomeShippingTaxRate gormcol.Field
|
||||
}{
|
||||
IDCart: gormcol.Field{Table: TableNamePsCart, Column: "id_cart"},
|
||||
IDShopGroup: gormcol.Field{Table: TableNamePsCart, Column: "id_shop_group"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCart, Column: "id_shop"},
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsCart, Column: "id_carrier"},
|
||||
DeliveryOption: gormcol.Field{Table: TableNamePsCart, Column: "delivery_option"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCart, Column: "id_lang"},
|
||||
IDAddressDelivery: gormcol.Field{Table: TableNamePsCart, Column: "id_address_delivery"},
|
||||
IDAddressInvoice: gormcol.Field{Table: TableNamePsCart, Column: "id_address_invoice"},
|
||||
IDCurrency: gormcol.Field{Table: TableNamePsCart, Column: "id_currency"},
|
||||
IDCustomer: gormcol.Field{Table: TableNamePsCart, Column: "id_customer"},
|
||||
IDGuest: gormcol.Field{Table: TableNamePsCart, Column: "id_guest"},
|
||||
SecureKey: gormcol.Field{Table: TableNamePsCart, Column: "secure_key"},
|
||||
Recyclable: gormcol.Field{Table: TableNamePsCart, Column: "recyclable"},
|
||||
Gift: gormcol.Field{Table: TableNamePsCart, Column: "gift"},
|
||||
GiftMessage: gormcol.Field{Table: TableNamePsCart, Column: "gift_message"},
|
||||
MobileTheme: gormcol.Field{Table: TableNamePsCart, Column: "mobile_theme"},
|
||||
AllowSeperatedPackage: gormcol.Field{Table: TableNamePsCart, Column: "allow_seperated_package"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsCart, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsCart, Column: "date_upd"},
|
||||
CheckoutSessionData: gormcol.Field{Table: TableNamePsCart, Column: "checkout_session_data"},
|
||||
CustomeShippingPriceNetto: gormcol.Field{Table: TableNamePsCart, Column: "custome_shipping_price_netto"},
|
||||
CustomeShippingPrice: gormcol.Field{Table: TableNamePsCart, Column: "custome_shipping_price"},
|
||||
CustomeShippingTaxRate: gormcol.Field{Table: TableNamePsCart, Column: "custome_shipping_tax_rate"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_cart_cart_rule.go
Normal file
28
app/model/dbmodel/ps_cart_cart_rule.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartCartRule = "ps_cart_cart_rule"
|
||||
|
||||
// PsCartCartRule mapped from table <ps_cart_cart_rule>
|
||||
type PsCartCartRule struct {
|
||||
IDCart int32 `gorm:"column:id_cart;primaryKey" json:"id_cart"`
|
||||
IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey;index:id_cart_rule,priority:1" json:"id_cart_rule"`
|
||||
}
|
||||
|
||||
// TableName PsCartCartRule's table name
|
||||
func (*PsCartCartRule) TableName() string {
|
||||
return TableNamePsCartCartRule
|
||||
}
|
||||
|
||||
var PsCartCartRuleCols = struct {
|
||||
IDCart gormcol.Field
|
||||
IDCartRule gormcol.Field
|
||||
}{
|
||||
IDCart: gormcol.Field{Table: TableNamePsCartCartRule, Column: "id_cart"},
|
||||
IDCartRule: gormcol.Field{Table: TableNamePsCartCartRule, Column: "id_cart_rule"},
|
||||
}
|
||||
49
app/model/dbmodel/ps_cart_product.go
Normal file
49
app/model/dbmodel/ps_cart_product.go
Normal file
@@ -0,0 +1,49 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCartProduct = "ps_cart_product"
|
||||
|
||||
// PsCartProduct mapped from table <ps_cart_product>
|
||||
type PsCartProduct struct {
|
||||
IDCart int32 `gorm:"column:id_cart;primaryKey;index:id_cart_order,priority:1" json:"id_cart"`
|
||||
IDProduct int32 `gorm:"column:id_product;primaryKey;index:id_cart_order,priority:3" json:"id_product"`
|
||||
IDAddressDelivery int32 `gorm:"column:id_address_delivery;primaryKey" json:"id_address_delivery"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"`
|
||||
IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey;index:id_cart_order,priority:4;index:id_product_attribute,priority:1" json:"id_product_attribute"`
|
||||
IDCustomization int32 `gorm:"column:id_customization;primaryKey" json:"id_customization"`
|
||||
Quantity int32 `gorm:"column:quantity;not null" json:"quantity"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null;index:id_cart_order,priority:2" json:"date_add"`
|
||||
}
|
||||
|
||||
// TableName PsCartProduct's table name
|
||||
func (*PsCartProduct) TableName() string {
|
||||
return TableNamePsCartProduct
|
||||
}
|
||||
|
||||
var PsCartProductCols = struct {
|
||||
IDCart gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
IDAddressDelivery gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDProductAttribute gormcol.Field
|
||||
IDCustomization gormcol.Field
|
||||
Quantity gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
}{
|
||||
IDCart: gormcol.Field{Table: TableNamePsCartProduct, Column: "id_cart"},
|
||||
IDProduct: gormcol.Field{Table: TableNamePsCartProduct, Column: "id_product"},
|
||||
IDAddressDelivery: gormcol.Field{Table: TableNamePsCartProduct, Column: "id_address_delivery"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCartProduct, Column: "id_shop"},
|
||||
IDProductAttribute: gormcol.Field{Table: TableNamePsCartProduct, Column: "id_product_attribute"},
|
||||
IDCustomization: gormcol.Field{Table: TableNamePsCartProduct, Column: "id_customization"},
|
||||
Quantity: gormcol.Field{Table: TableNamePsCartProduct, Column: "quantity"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsCartProduct, Column: "date_add"},
|
||||
}
|
||||
124
app/model/dbmodel/ps_cart_rule.go
Normal file
124
app/model/dbmodel/ps_cart_rule.go
Normal file
@@ -0,0 +1,124 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCartRule = "ps_cart_rule"
|
||||
|
||||
// PsCartRule mapped from table <ps_cart_rule>
|
||||
type PsCartRule struct {
|
||||
IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey;autoIncrement:true" json:"id_cart_rule"`
|
||||
IDCustomer int32 `gorm:"column:id_customer;not null;index:id_customer,priority:1;index:id_customer_2,priority:1" json:"id_customer"`
|
||||
DateFrom time.Time `gorm:"column:date_from;not null;index:date_from,priority:1" json:"date_from"`
|
||||
DateTo time.Time `gorm:"column:date_to;not null;index:date_to,priority:1;index:group_restriction,priority:3;index:group_restriction_2,priority:4;index:id_customer,priority:3;index:id_customer_2,priority:4" json:"date_to"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
Quantity int32 `gorm:"column:quantity;not null" json:"quantity"`
|
||||
QuantityPerUser int32 `gorm:"column:quantity_per_user;not null" json:"quantity_per_user"`
|
||||
Priority int32 `gorm:"column:priority;not null;default:1" json:"priority"`
|
||||
PartialUse bool `gorm:"column:partial_use;not null" json:"partial_use"`
|
||||
Code string `gorm:"column:code;not null" json:"code"`
|
||||
MinimumAmount float64 `gorm:"column:minimum_amount;not null;default:0.00" json:"minimum_amount"`
|
||||
MinimumAmountTax bool `gorm:"column:minimum_amount_tax;not null" json:"minimum_amount_tax"`
|
||||
MinimumAmountCurrency int32 `gorm:"column:minimum_amount_currency;not null" json:"minimum_amount_currency"`
|
||||
MinimumAmountShipping bool `gorm:"column:minimum_amount_shipping;not null" json:"minimum_amount_shipping"`
|
||||
CountryRestriction bool `gorm:"column:country_restriction;not null" json:"country_restriction"`
|
||||
CarrierRestriction bool `gorm:"column:carrier_restriction;not null" json:"carrier_restriction"`
|
||||
GroupRestriction bool `gorm:"column:group_restriction;not null;index:group_restriction,priority:1;index:group_restriction_2,priority:1" json:"group_restriction"`
|
||||
CartRuleRestriction bool `gorm:"column:cart_rule_restriction;not null" json:"cart_rule_restriction"`
|
||||
ProductRestriction bool `gorm:"column:product_restriction;not null" json:"product_restriction"`
|
||||
ShopRestriction bool `gorm:"column:shop_restriction;not null" json:"shop_restriction"`
|
||||
FreeShipping bool `gorm:"column:free_shipping;not null" json:"free_shipping"`
|
||||
ReductionPercent float64 `gorm:"column:reduction_percent;not null;default:0.00" json:"reduction_percent"`
|
||||
ReductionAmount float64 `gorm:"column:reduction_amount;not null;default:0.00" json:"reduction_amount"`
|
||||
ReductionTax bool `gorm:"column:reduction_tax;not null" json:"reduction_tax"`
|
||||
ReductionCurrency int32 `gorm:"column:reduction_currency;not null" json:"reduction_currency"`
|
||||
ReductionProduct int32 `gorm:"column:reduction_product;not null" json:"reduction_product"`
|
||||
ReductionExcludeSpecial bool `gorm:"column:reduction_exclude_special;not null" json:"reduction_exclude_special"`
|
||||
GiftProduct int32 `gorm:"column:gift_product;not null" json:"gift_product"`
|
||||
GiftProductAttribute int32 `gorm:"column:gift_product_attribute;not null" json:"gift_product_attribute"`
|
||||
Highlight bool `gorm:"column:highlight;not null;index:group_restriction_2,priority:3;index:id_customer_2,priority:3" json:"highlight"`
|
||||
Active bool `gorm:"column:active;not null;index:group_restriction,priority:2;index:group_restriction_2,priority:2;index:id_customer,priority:2;index:id_customer_2,priority:2" json:"active"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsCartRule's table name
|
||||
func (*PsCartRule) TableName() string {
|
||||
return TableNamePsCartRule
|
||||
}
|
||||
|
||||
var PsCartRuleCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDCustomer gormcol.Field
|
||||
DateFrom gormcol.Field
|
||||
DateTo gormcol.Field
|
||||
Description gormcol.Field
|
||||
Quantity gormcol.Field
|
||||
QuantityPerUser gormcol.Field
|
||||
Priority gormcol.Field
|
||||
PartialUse gormcol.Field
|
||||
Code gormcol.Field
|
||||
MinimumAmount gormcol.Field
|
||||
MinimumAmountTax gormcol.Field
|
||||
MinimumAmountCurrency gormcol.Field
|
||||
MinimumAmountShipping gormcol.Field
|
||||
CountryRestriction gormcol.Field
|
||||
CarrierRestriction gormcol.Field
|
||||
GroupRestriction gormcol.Field
|
||||
CartRuleRestriction gormcol.Field
|
||||
ProductRestriction gormcol.Field
|
||||
ShopRestriction gormcol.Field
|
||||
FreeShipping gormcol.Field
|
||||
ReductionPercent gormcol.Field
|
||||
ReductionAmount gormcol.Field
|
||||
ReductionTax gormcol.Field
|
||||
ReductionCurrency gormcol.Field
|
||||
ReductionProduct gormcol.Field
|
||||
ReductionExcludeSpecial gormcol.Field
|
||||
GiftProduct gormcol.Field
|
||||
GiftProductAttribute gormcol.Field
|
||||
Highlight gormcol.Field
|
||||
Active gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{Table: TableNamePsCartRule, Column: "id_cart_rule"},
|
||||
IDCustomer: gormcol.Field{Table: TableNamePsCartRule, Column: "id_customer"},
|
||||
DateFrom: gormcol.Field{Table: TableNamePsCartRule, Column: "date_from"},
|
||||
DateTo: gormcol.Field{Table: TableNamePsCartRule, Column: "date_to"},
|
||||
Description: gormcol.Field{Table: TableNamePsCartRule, Column: "description"},
|
||||
Quantity: gormcol.Field{Table: TableNamePsCartRule, Column: "quantity"},
|
||||
QuantityPerUser: gormcol.Field{Table: TableNamePsCartRule, Column: "quantity_per_user"},
|
||||
Priority: gormcol.Field{Table: TableNamePsCartRule, Column: "priority"},
|
||||
PartialUse: gormcol.Field{Table: TableNamePsCartRule, Column: "partial_use"},
|
||||
Code: gormcol.Field{Table: TableNamePsCartRule, Column: "code"},
|
||||
MinimumAmount: gormcol.Field{Table: TableNamePsCartRule, Column: "minimum_amount"},
|
||||
MinimumAmountTax: gormcol.Field{Table: TableNamePsCartRule, Column: "minimum_amount_tax"},
|
||||
MinimumAmountCurrency: gormcol.Field{Table: TableNamePsCartRule, Column: "minimum_amount_currency"},
|
||||
MinimumAmountShipping: gormcol.Field{Table: TableNamePsCartRule, Column: "minimum_amount_shipping"},
|
||||
CountryRestriction: gormcol.Field{Table: TableNamePsCartRule, Column: "country_restriction"},
|
||||
CarrierRestriction: gormcol.Field{Table: TableNamePsCartRule, Column: "carrier_restriction"},
|
||||
GroupRestriction: gormcol.Field{Table: TableNamePsCartRule, Column: "group_restriction"},
|
||||
CartRuleRestriction: gormcol.Field{Table: TableNamePsCartRule, Column: "cart_rule_restriction"},
|
||||
ProductRestriction: gormcol.Field{Table: TableNamePsCartRule, Column: "product_restriction"},
|
||||
ShopRestriction: gormcol.Field{Table: TableNamePsCartRule, Column: "shop_restriction"},
|
||||
FreeShipping: gormcol.Field{Table: TableNamePsCartRule, Column: "free_shipping"},
|
||||
ReductionPercent: gormcol.Field{Table: TableNamePsCartRule, Column: "reduction_percent"},
|
||||
ReductionAmount: gormcol.Field{Table: TableNamePsCartRule, Column: "reduction_amount"},
|
||||
ReductionTax: gormcol.Field{Table: TableNamePsCartRule, Column: "reduction_tax"},
|
||||
ReductionCurrency: gormcol.Field{Table: TableNamePsCartRule, Column: "reduction_currency"},
|
||||
ReductionProduct: gormcol.Field{Table: TableNamePsCartRule, Column: "reduction_product"},
|
||||
ReductionExcludeSpecial: gormcol.Field{Table: TableNamePsCartRule, Column: "reduction_exclude_special"},
|
||||
GiftProduct: gormcol.Field{Table: TableNamePsCartRule, Column: "gift_product"},
|
||||
GiftProductAttribute: gormcol.Field{Table: TableNamePsCartRule, Column: "gift_product_attribute"},
|
||||
Highlight: gormcol.Field{Table: TableNamePsCartRule, Column: "highlight"},
|
||||
Active: gormcol.Field{Table: TableNamePsCartRule, Column: "active"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsCartRule, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsCartRule, Column: "date_upd"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_cart_rule_carrier.go
Normal file
28
app/model/dbmodel/ps_cart_rule_carrier.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleCarrier = "ps_cart_rule_carrier"
|
||||
|
||||
// PsCartRuleCarrier mapped from table <ps_cart_rule_carrier>
|
||||
type PsCartRuleCarrier struct {
|
||||
IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"`
|
||||
IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"`
|
||||
}
|
||||
|
||||
// TableName PsCartRuleCarrier's table name
|
||||
func (*PsCartRuleCarrier) TableName() string {
|
||||
return TableNamePsCartRuleCarrier
|
||||
}
|
||||
|
||||
var PsCartRuleCarrierCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{Table: TableNamePsCartRuleCarrier, Column: "id_cart_rule"},
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsCartRuleCarrier, Column: "id_carrier"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_cart_rule_combination.go
Normal file
28
app/model/dbmodel/ps_cart_rule_combination.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleCombination = "ps_cart_rule_combination"
|
||||
|
||||
// PsCartRuleCombination mapped from table <ps_cart_rule_combination>
|
||||
type PsCartRuleCombination struct {
|
||||
IDCartRule1 int32 `gorm:"column:id_cart_rule_1;primaryKey;index:id_cart_rule_1,priority:1" json:"id_cart_rule_1"`
|
||||
IDCartRule2 int32 `gorm:"column:id_cart_rule_2;primaryKey;index:id_cart_rule_2,priority:1" json:"id_cart_rule_2"`
|
||||
}
|
||||
|
||||
// TableName PsCartRuleCombination's table name
|
||||
func (*PsCartRuleCombination) TableName() string {
|
||||
return TableNamePsCartRuleCombination
|
||||
}
|
||||
|
||||
var PsCartRuleCombinationCols = struct {
|
||||
IDCartRule1 gormcol.Field
|
||||
IDCartRule2 gormcol.Field
|
||||
}{
|
||||
IDCartRule1: gormcol.Field{Table: TableNamePsCartRuleCombination, Column: "id_cart_rule_1"},
|
||||
IDCartRule2: gormcol.Field{Table: TableNamePsCartRuleCombination, Column: "id_cart_rule_2"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_cart_rule_country.go
Normal file
28
app/model/dbmodel/ps_cart_rule_country.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleCountry = "ps_cart_rule_country"
|
||||
|
||||
// PsCartRuleCountry mapped from table <ps_cart_rule_country>
|
||||
type PsCartRuleCountry struct {
|
||||
IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"`
|
||||
IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"`
|
||||
}
|
||||
|
||||
// TableName PsCartRuleCountry's table name
|
||||
func (*PsCartRuleCountry) TableName() string {
|
||||
return TableNamePsCartRuleCountry
|
||||
}
|
||||
|
||||
var PsCartRuleCountryCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDCountry gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{Table: TableNamePsCartRuleCountry, Column: "id_cart_rule"},
|
||||
IDCountry: gormcol.Field{Table: TableNamePsCartRuleCountry, Column: "id_country"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_cart_rule_group.go
Normal file
28
app/model/dbmodel/ps_cart_rule_group.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleGroup = "ps_cart_rule_group"
|
||||
|
||||
// PsCartRuleGroup mapped from table <ps_cart_rule_group>
|
||||
type PsCartRuleGroup struct {
|
||||
IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"`
|
||||
IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"`
|
||||
}
|
||||
|
||||
// TableName PsCartRuleGroup's table name
|
||||
func (*PsCartRuleGroup) TableName() string {
|
||||
return TableNamePsCartRuleGroup
|
||||
}
|
||||
|
||||
var PsCartRuleGroupCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{Table: TableNamePsCartRuleGroup, Column: "id_cart_rule"},
|
||||
IDGroup: gormcol.Field{Table: TableNamePsCartRuleGroup, Column: "id_group"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_cart_rule_lang.go
Normal file
31
app/model/dbmodel/ps_cart_rule_lang.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleLang = "ps_cart_rule_lang"
|
||||
|
||||
// PsCartRuleLang mapped from table <ps_cart_rule_lang>
|
||||
type PsCartRuleLang struct {
|
||||
IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
}
|
||||
|
||||
// TableName PsCartRuleLang's table name
|
||||
func (*PsCartRuleLang) TableName() string {
|
||||
return TableNamePsCartRuleLang
|
||||
}
|
||||
|
||||
var PsCartRuleLangCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{Table: TableNamePsCartRuleLang, Column: "id_cart_rule"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCartRuleLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsCartRuleLang, Column: "name"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_cart_rule_product_rule.go
Normal file
31
app/model/dbmodel/ps_cart_rule_product_rule.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleProductRule = "ps_cart_rule_product_rule"
|
||||
|
||||
// PsCartRuleProductRule mapped from table <ps_cart_rule_product_rule>
|
||||
type PsCartRuleProductRule struct {
|
||||
IDProductRule int32 `gorm:"column:id_product_rule;primaryKey;autoIncrement:true" json:"id_product_rule"`
|
||||
IDProductRuleGroup int32 `gorm:"column:id_product_rule_group;not null" json:"id_product_rule_group"`
|
||||
Type string `gorm:"column:type;not null" json:"type"`
|
||||
}
|
||||
|
||||
// TableName PsCartRuleProductRule's table name
|
||||
func (*PsCartRuleProductRule) TableName() string {
|
||||
return TableNamePsCartRuleProductRule
|
||||
}
|
||||
|
||||
var PsCartRuleProductRuleCols = struct {
|
||||
IDProductRule gormcol.Field
|
||||
IDProductRuleGroup gormcol.Field
|
||||
Type gormcol.Field
|
||||
}{
|
||||
IDProductRule: gormcol.Field{Table: TableNamePsCartRuleProductRule, Column: "id_product_rule"},
|
||||
IDProductRuleGroup: gormcol.Field{Table: TableNamePsCartRuleProductRule, Column: "id_product_rule_group"},
|
||||
Type: gormcol.Field{Table: TableNamePsCartRuleProductRule, Column: "type"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_cart_rule_product_rule_group.go
Normal file
31
app/model/dbmodel/ps_cart_rule_product_rule_group.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleProductRuleGroup = "ps_cart_rule_product_rule_group"
|
||||
|
||||
// PsCartRuleProductRuleGroup mapped from table <ps_cart_rule_product_rule_group>
|
||||
type PsCartRuleProductRuleGroup struct {
|
||||
IDProductRuleGroup int32 `gorm:"column:id_product_rule_group;primaryKey;autoIncrement:true" json:"id_product_rule_group"`
|
||||
IDCartRule int32 `gorm:"column:id_cart_rule;not null" json:"id_cart_rule"`
|
||||
Quantity int32 `gorm:"column:quantity;not null;default:1" json:"quantity"`
|
||||
}
|
||||
|
||||
// TableName PsCartRuleProductRuleGroup's table name
|
||||
func (*PsCartRuleProductRuleGroup) TableName() string {
|
||||
return TableNamePsCartRuleProductRuleGroup
|
||||
}
|
||||
|
||||
var PsCartRuleProductRuleGroupCols = struct {
|
||||
IDProductRuleGroup gormcol.Field
|
||||
IDCartRule gormcol.Field
|
||||
Quantity gormcol.Field
|
||||
}{
|
||||
IDProductRuleGroup: gormcol.Field{Table: TableNamePsCartRuleProductRuleGroup, Column: "id_product_rule_group"},
|
||||
IDCartRule: gormcol.Field{Table: TableNamePsCartRuleProductRuleGroup, Column: "id_cart_rule"},
|
||||
Quantity: gormcol.Field{Table: TableNamePsCartRuleProductRuleGroup, Column: "quantity"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_cart_rule_product_rule_value.go
Normal file
28
app/model/dbmodel/ps_cart_rule_product_rule_value.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleProductRuleValue = "ps_cart_rule_product_rule_value"
|
||||
|
||||
// PsCartRuleProductRuleValue mapped from table <ps_cart_rule_product_rule_value>
|
||||
type PsCartRuleProductRuleValue struct {
|
||||
IDProductRule int32 `gorm:"column:id_product_rule;primaryKey" json:"id_product_rule"`
|
||||
IDItem int32 `gorm:"column:id_item;primaryKey" json:"id_item"`
|
||||
}
|
||||
|
||||
// TableName PsCartRuleProductRuleValue's table name
|
||||
func (*PsCartRuleProductRuleValue) TableName() string {
|
||||
return TableNamePsCartRuleProductRuleValue
|
||||
}
|
||||
|
||||
var PsCartRuleProductRuleValueCols = struct {
|
||||
IDProductRule gormcol.Field
|
||||
IDItem gormcol.Field
|
||||
}{
|
||||
IDProductRule: gormcol.Field{Table: TableNamePsCartRuleProductRuleValue, Column: "id_product_rule"},
|
||||
IDItem: gormcol.Field{Table: TableNamePsCartRuleProductRuleValue, Column: "id_item"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_cart_rule_shop.go
Normal file
28
app/model/dbmodel/ps_cart_rule_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleShop = "ps_cart_rule_shop"
|
||||
|
||||
// PsCartRuleShop mapped from table <ps_cart_rule_shop>
|
||||
type PsCartRuleShop struct {
|
||||
IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsCartRuleShop's table name
|
||||
func (*PsCartRuleShop) TableName() string {
|
||||
return TableNamePsCartRuleShop
|
||||
}
|
||||
|
||||
var PsCartRuleShopCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{Table: TableNamePsCartRuleShop, Column: "id_cart_rule"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCartRuleShop, Column: "id_shop"},
|
||||
}
|
||||
58
app/model/dbmodel/ps_category.go
Normal file
58
app/model/dbmodel/ps_category.go
Normal file
@@ -0,0 +1,58 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCategory = "ps_category"
|
||||
|
||||
// PsCategory mapped from table <ps_category>
|
||||
type PsCategory struct {
|
||||
IDCategory int32 `gorm:"column:id_category;primaryKey;autoIncrement:true;index:idx_category,priority:1" json:"id_category"`
|
||||
IDParent int32 `gorm:"column:id_parent;not null;index:category_parent,priority:1" json:"id_parent"`
|
||||
IDShopDefault int32 `gorm:"column:id_shop_default;not null;default:1" json:"id_shop_default"`
|
||||
LevelDepth int32 `gorm:"column:level_depth;not null;index:level_depth,priority:1" json:"level_depth"`
|
||||
Nleft int32 `gorm:"column:nleft;not null;index:activenleft,priority:2;index:idx_category,priority:3;index:nleftrightactive,priority:1" json:"nleft"`
|
||||
Nright int32 `gorm:"column:nright;not null;index:activenright,priority:2;index:idx_category,priority:4;index:nleftrightactive,priority:2;index:nright,priority:1" json:"nright"`
|
||||
Active bool `gorm:"column:active;not null;index:activenleft,priority:1;index:activenright,priority:1;index:idx_category,priority:2;index:idx_ps_category_active,priority:1;index:nleftrightactive,priority:3" json:"active"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
IsRootCategory bool `gorm:"column:is_root_category;not null" json:"is_root_category"`
|
||||
}
|
||||
|
||||
// TableName PsCategory's table name
|
||||
func (*PsCategory) TableName() string {
|
||||
return TableNamePsCategory
|
||||
}
|
||||
|
||||
var PsCategoryCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDParent gormcol.Field
|
||||
IDShopDefault gormcol.Field
|
||||
LevelDepth gormcol.Field
|
||||
Nleft gormcol.Field
|
||||
Nright gormcol.Field
|
||||
Active gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
Position gormcol.Field
|
||||
IsRootCategory gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{Table: TableNamePsCategory, Column: "id_category"},
|
||||
IDParent: gormcol.Field{Table: TableNamePsCategory, Column: "id_parent"},
|
||||
IDShopDefault: gormcol.Field{Table: TableNamePsCategory, Column: "id_shop_default"},
|
||||
LevelDepth: gormcol.Field{Table: TableNamePsCategory, Column: "level_depth"},
|
||||
Nleft: gormcol.Field{Table: TableNamePsCategory, Column: "nleft"},
|
||||
Nright: gormcol.Field{Table: TableNamePsCategory, Column: "nright"},
|
||||
Active: gormcol.Field{Table: TableNamePsCategory, Column: "active"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsCategory, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsCategory, Column: "date_upd"},
|
||||
Position: gormcol.Field{Table: TableNamePsCategory, Column: "position"},
|
||||
IsRootCategory: gormcol.Field{Table: TableNamePsCategory, Column: "is_root_category"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_category_group.go
Normal file
28
app/model/dbmodel/ps_category_group.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCategoryGroup = "ps_category_group"
|
||||
|
||||
// PsCategoryGroup mapped from table <ps_category_group>
|
||||
type PsCategoryGroup struct {
|
||||
IDCategory int32 `gorm:"column:id_category;primaryKey;index:id_category,priority:1" json:"id_category"`
|
||||
IDGroup int32 `gorm:"column:id_group;primaryKey;index:id_group,priority:1" json:"id_group"`
|
||||
}
|
||||
|
||||
// TableName PsCategoryGroup's table name
|
||||
func (*PsCategoryGroup) TableName() string {
|
||||
return TableNamePsCategoryGroup
|
||||
}
|
||||
|
||||
var PsCategoryGroupCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{Table: TableNamePsCategoryGroup, Column: "id_category"},
|
||||
IDGroup: gormcol.Field{Table: TableNamePsCategoryGroup, Column: "id_group"},
|
||||
}
|
||||
49
app/model/dbmodel/ps_category_lang.go
Normal file
49
app/model/dbmodel/ps_category_lang.go
Normal file
@@ -0,0 +1,49 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCategoryLang = "ps_category_lang"
|
||||
|
||||
// PsCategoryLang mapped from table <ps_category_lang>
|
||||
type PsCategoryLang struct {
|
||||
IDCategory int32 `gorm:"column:id_category;primaryKey" json:"id_category"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name string `gorm:"column:name;not null;index:category_name,priority:1" json:"name"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"`
|
||||
MetaTitle *string `gorm:"column:meta_title" json:"meta_title"`
|
||||
MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"`
|
||||
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
|
||||
}
|
||||
|
||||
// TableName PsCategoryLang's table name
|
||||
func (*PsCategoryLang) TableName() string {
|
||||
return TableNamePsCategoryLang
|
||||
}
|
||||
|
||||
var PsCategoryLangCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
LinkRewrite gormcol.Field
|
||||
MetaTitle gormcol.Field
|
||||
MetaKeywords gormcol.Field
|
||||
MetaDescription gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{Table: TableNamePsCategoryLang, Column: "id_category"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCategoryLang, Column: "id_shop"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCategoryLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsCategoryLang, Column: "name"},
|
||||
Description: gormcol.Field{Table: TableNamePsCategoryLang, Column: "description"},
|
||||
LinkRewrite: gormcol.Field{Table: TableNamePsCategoryLang, Column: "link_rewrite"},
|
||||
MetaTitle: gormcol.Field{Table: TableNamePsCategoryLang, Column: "meta_title"},
|
||||
MetaKeywords: gormcol.Field{Table: TableNamePsCategoryLang, Column: "meta_keywords"},
|
||||
MetaDescription: gormcol.Field{Table: TableNamePsCategoryLang, Column: "meta_description"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_category_product.go
Normal file
31
app/model/dbmodel/ps_category_product.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCategoryProduct = "ps_category_product"
|
||||
|
||||
// PsCategoryProduct mapped from table <ps_category_product>
|
||||
type PsCategoryProduct struct {
|
||||
IDCategory int32 `gorm:"column:id_category;primaryKey;index:idx_category_product,priority:2;index:id_category,priority:1" json:"id_category"`
|
||||
IDProduct int32 `gorm:"column:id_product;primaryKey;index:idx_category_product,priority:1;index:id_product,priority:1" json:"id_product"`
|
||||
Position int32 `gorm:"column:position;not null;index:id_category,priority:2" json:"position"`
|
||||
}
|
||||
|
||||
// TableName PsCategoryProduct's table name
|
||||
func (*PsCategoryProduct) TableName() string {
|
||||
return TableNamePsCategoryProduct
|
||||
}
|
||||
|
||||
var PsCategoryProductCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{Table: TableNamePsCategoryProduct, Column: "id_category"},
|
||||
IDProduct: gormcol.Field{Table: TableNamePsCategoryProduct, Column: "id_product"},
|
||||
Position: gormcol.Field{Table: TableNamePsCategoryProduct, Column: "position"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_category_shop.go
Normal file
31
app/model/dbmodel/ps_category_shop.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCategoryShop = "ps_category_shop"
|
||||
|
||||
// PsCategoryShop mapped from table <ps_category_shop>
|
||||
type PsCategoryShop struct {
|
||||
IDCategory int32 `gorm:"column:id_category;primaryKey" json:"id_category"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
}
|
||||
|
||||
// TableName PsCategoryShop's table name
|
||||
func (*PsCategoryShop) TableName() string {
|
||||
return TableNamePsCategoryShop
|
||||
}
|
||||
|
||||
var PsCategoryShopCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{Table: TableNamePsCategoryShop, Column: "id_category"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCategoryShop, Column: "id_shop"},
|
||||
Position: gormcol.Field{Table: TableNamePsCategoryShop, Column: "position"},
|
||||
}
|
||||
37
app/model/dbmodel/ps_cms.go
Normal file
37
app/model/dbmodel/ps_cms.go
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCm = "ps_cms"
|
||||
|
||||
// PsCm mapped from table <ps_cms>
|
||||
type PsCm struct {
|
||||
IDCms int32 `gorm:"column:id_cms;primaryKey;autoIncrement:true" json:"id_cms"`
|
||||
IDCmsCategory int32 `gorm:"column:id_cms_category;not null" json:"id_cms_category"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
Active bool `gorm:"column:active;not null" json:"active"`
|
||||
Indexation bool `gorm:"column:indexation;not null;default:1" json:"indexation"`
|
||||
}
|
||||
|
||||
// TableName PsCm's table name
|
||||
func (*PsCm) TableName() string {
|
||||
return TableNamePsCm
|
||||
}
|
||||
|
||||
var PsCmCols = struct {
|
||||
IDCms gormcol.Field
|
||||
IDCmsCategory gormcol.Field
|
||||
Position gormcol.Field
|
||||
Active gormcol.Field
|
||||
Indexation gormcol.Field
|
||||
}{
|
||||
IDCms: gormcol.Field{Table: TableNamePsCm, Column: "id_cms"},
|
||||
IDCmsCategory: gormcol.Field{Table: TableNamePsCm, Column: "id_cms_category"},
|
||||
Position: gormcol.Field{Table: TableNamePsCm, Column: "position"},
|
||||
Active: gormcol.Field{Table: TableNamePsCm, Column: "active"},
|
||||
Indexation: gormcol.Field{Table: TableNamePsCm, Column: "indexation"},
|
||||
}
|
||||
46
app/model/dbmodel/ps_cms_category.go
Normal file
46
app/model/dbmodel/ps_cms_category.go
Normal file
@@ -0,0 +1,46 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCmsCategory = "ps_cms_category"
|
||||
|
||||
// PsCmsCategory mapped from table <ps_cms_category>
|
||||
type PsCmsCategory struct {
|
||||
IDCmsCategory int32 `gorm:"column:id_cms_category;primaryKey;autoIncrement:true" json:"id_cms_category"`
|
||||
IDParent int32 `gorm:"column:id_parent;not null;index:category_parent,priority:1" json:"id_parent"`
|
||||
LevelDepth int32 `gorm:"column:level_depth;not null" json:"level_depth"`
|
||||
Active bool `gorm:"column:active;not null" json:"active"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
}
|
||||
|
||||
// TableName PsCmsCategory's table name
|
||||
func (*PsCmsCategory) TableName() string {
|
||||
return TableNamePsCmsCategory
|
||||
}
|
||||
|
||||
var PsCmsCategoryCols = struct {
|
||||
IDCmsCategory gormcol.Field
|
||||
IDParent gormcol.Field
|
||||
LevelDepth gormcol.Field
|
||||
Active gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDCmsCategory: gormcol.Field{Table: TableNamePsCmsCategory, Column: "id_cms_category"},
|
||||
IDParent: gormcol.Field{Table: TableNamePsCmsCategory, Column: "id_parent"},
|
||||
LevelDepth: gormcol.Field{Table: TableNamePsCmsCategory, Column: "level_depth"},
|
||||
Active: gormcol.Field{Table: TableNamePsCmsCategory, Column: "active"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsCmsCategory, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsCmsCategory, Column: "date_upd"},
|
||||
Position: gormcol.Field{Table: TableNamePsCmsCategory, Column: "position"},
|
||||
}
|
||||
49
app/model/dbmodel/ps_cms_category_lang.go
Normal file
49
app/model/dbmodel/ps_cms_category_lang.go
Normal file
@@ -0,0 +1,49 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsCategoryLang = "ps_cms_category_lang"
|
||||
|
||||
// PsCmsCategoryLang mapped from table <ps_cms_category_lang>
|
||||
type PsCmsCategoryLang struct {
|
||||
IDCmsCategory int32 `gorm:"column:id_cms_category;primaryKey" json:"id_cms_category"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
|
||||
Name string `gorm:"column:name;not null;index:category_name,priority:1" json:"name"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"`
|
||||
MetaTitle *string `gorm:"column:meta_title" json:"meta_title"`
|
||||
MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"`
|
||||
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
|
||||
}
|
||||
|
||||
// TableName PsCmsCategoryLang's table name
|
||||
func (*PsCmsCategoryLang) TableName() string {
|
||||
return TableNamePsCmsCategoryLang
|
||||
}
|
||||
|
||||
var PsCmsCategoryLangCols = struct {
|
||||
IDCmsCategory gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
LinkRewrite gormcol.Field
|
||||
MetaTitle gormcol.Field
|
||||
MetaKeywords gormcol.Field
|
||||
MetaDescription gormcol.Field
|
||||
}{
|
||||
IDCmsCategory: gormcol.Field{Table: TableNamePsCmsCategoryLang, Column: "id_cms_category"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCmsCategoryLang, Column: "id_lang"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCmsCategoryLang, Column: "id_shop"},
|
||||
Name: gormcol.Field{Table: TableNamePsCmsCategoryLang, Column: "name"},
|
||||
Description: gormcol.Field{Table: TableNamePsCmsCategoryLang, Column: "description"},
|
||||
LinkRewrite: gormcol.Field{Table: TableNamePsCmsCategoryLang, Column: "link_rewrite"},
|
||||
MetaTitle: gormcol.Field{Table: TableNamePsCmsCategoryLang, Column: "meta_title"},
|
||||
MetaKeywords: gormcol.Field{Table: TableNamePsCmsCategoryLang, Column: "meta_keywords"},
|
||||
MetaDescription: gormcol.Field{Table: TableNamePsCmsCategoryLang, Column: "meta_description"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_cms_category_shop.go
Normal file
28
app/model/dbmodel/ps_cms_category_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsCategoryShop = "ps_cms_category_shop"
|
||||
|
||||
// PsCmsCategoryShop mapped from table <ps_cms_category_shop>
|
||||
type PsCmsCategoryShop struct {
|
||||
IDCmsCategory int32 `gorm:"column:id_cms_category;primaryKey;autoIncrement:true" json:"id_cms_category"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsCmsCategoryShop's table name
|
||||
func (*PsCmsCategoryShop) TableName() string {
|
||||
return TableNamePsCmsCategoryShop
|
||||
}
|
||||
|
||||
var PsCmsCategoryShopCols = struct {
|
||||
IDCmsCategory gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCmsCategory: gormcol.Field{Table: TableNamePsCmsCategoryShop, Column: "id_cms_category"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCmsCategoryShop, Column: "id_shop"},
|
||||
}
|
||||
49
app/model/dbmodel/ps_cms_lang.go
Normal file
49
app/model/dbmodel/ps_cms_lang.go
Normal file
@@ -0,0 +1,49 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsLang = "ps_cms_lang"
|
||||
|
||||
// PsCmsLang mapped from table <ps_cms_lang>
|
||||
type PsCmsLang struct {
|
||||
IDCms int32 `gorm:"column:id_cms;primaryKey" json:"id_cms"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
|
||||
MetaTitle string `gorm:"column:meta_title;not null" json:"meta_title"`
|
||||
HeadSeoTitle *string `gorm:"column:head_seo_title" json:"head_seo_title"`
|
||||
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
|
||||
MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"`
|
||||
Content *string `gorm:"column:content" json:"content"`
|
||||
LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"`
|
||||
}
|
||||
|
||||
// TableName PsCmsLang's table name
|
||||
func (*PsCmsLang) TableName() string {
|
||||
return TableNamePsCmsLang
|
||||
}
|
||||
|
||||
var PsCmsLangCols = struct {
|
||||
IDCms gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
MetaTitle gormcol.Field
|
||||
HeadSeoTitle gormcol.Field
|
||||
MetaDescription gormcol.Field
|
||||
MetaKeywords gormcol.Field
|
||||
Content gormcol.Field
|
||||
LinkRewrite gormcol.Field
|
||||
}{
|
||||
IDCms: gormcol.Field{Table: TableNamePsCmsLang, Column: "id_cms"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCmsLang, Column: "id_lang"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCmsLang, Column: "id_shop"},
|
||||
MetaTitle: gormcol.Field{Table: TableNamePsCmsLang, Column: "meta_title"},
|
||||
HeadSeoTitle: gormcol.Field{Table: TableNamePsCmsLang, Column: "head_seo_title"},
|
||||
MetaDescription: gormcol.Field{Table: TableNamePsCmsLang, Column: "meta_description"},
|
||||
MetaKeywords: gormcol.Field{Table: TableNamePsCmsLang, Column: "meta_keywords"},
|
||||
Content: gormcol.Field{Table: TableNamePsCmsLang, Column: "content"},
|
||||
LinkRewrite: gormcol.Field{Table: TableNamePsCmsLang, Column: "link_rewrite"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_cms_role.go
Normal file
31
app/model/dbmodel/ps_cms_role.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsRole = "ps_cms_role"
|
||||
|
||||
// PsCmsRole mapped from table <ps_cms_role>
|
||||
type PsCmsRole struct {
|
||||
IDCmsRole int32 `gorm:"column:id_cms_role;primaryKey;autoIncrement:true" json:"id_cms_role"`
|
||||
Name string `gorm:"column:name;not null;uniqueIndex:name,priority:1" json:"name"`
|
||||
IDCms int32 `gorm:"column:id_cms;primaryKey" json:"id_cms"`
|
||||
}
|
||||
|
||||
// TableName PsCmsRole's table name
|
||||
func (*PsCmsRole) TableName() string {
|
||||
return TableNamePsCmsRole
|
||||
}
|
||||
|
||||
var PsCmsRoleCols = struct {
|
||||
IDCmsRole gormcol.Field
|
||||
Name gormcol.Field
|
||||
IDCms gormcol.Field
|
||||
}{
|
||||
IDCmsRole: gormcol.Field{Table: TableNamePsCmsRole, Column: "id_cms_role"},
|
||||
Name: gormcol.Field{Table: TableNamePsCmsRole, Column: "name"},
|
||||
IDCms: gormcol.Field{Table: TableNamePsCmsRole, Column: "id_cms"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_cms_role_lang.go
Normal file
34
app/model/dbmodel/ps_cms_role_lang.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsRoleLang = "ps_cms_role_lang"
|
||||
|
||||
// PsCmsRoleLang mapped from table <ps_cms_role_lang>
|
||||
type PsCmsRoleLang struct {
|
||||
IDCmsRole int32 `gorm:"column:id_cms_role;primaryKey" json:"id_cms_role"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"`
|
||||
Name *string `gorm:"column:name" json:"name"`
|
||||
}
|
||||
|
||||
// TableName PsCmsRoleLang's table name
|
||||
func (*PsCmsRoleLang) TableName() string {
|
||||
return TableNamePsCmsRoleLang
|
||||
}
|
||||
|
||||
var PsCmsRoleLangCols = struct {
|
||||
IDCmsRole gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDCmsRole: gormcol.Field{Table: TableNamePsCmsRoleLang, Column: "id_cms_role"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCmsRoleLang, Column: "id_lang"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCmsRoleLang, Column: "id_shop"},
|
||||
Name: gormcol.Field{Table: TableNamePsCmsRoleLang, Column: "name"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_cms_shop.go
Normal file
28
app/model/dbmodel/ps_cms_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsShop = "ps_cms_shop"
|
||||
|
||||
// PsCmsShop mapped from table <ps_cms_shop>
|
||||
type PsCmsShop struct {
|
||||
IDCms int32 `gorm:"column:id_cms;primaryKey" json:"id_cms"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsCmsShop's table name
|
||||
func (*PsCmsShop) TableName() string {
|
||||
return TableNamePsCmsShop
|
||||
}
|
||||
|
||||
var PsCmsShopCols = struct {
|
||||
IDCms gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCms: gormcol.Field{Table: TableNamePsCmsShop, Column: "id_cms"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCmsShop, Column: "id_shop"},
|
||||
}
|
||||
61
app/model/dbmodel/ps_condition.go
Normal file
61
app/model/dbmodel/ps_condition.go
Normal file
@@ -0,0 +1,61 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCondition = "ps_condition"
|
||||
|
||||
// PsCondition mapped from table <ps_condition>
|
||||
type PsCondition struct {
|
||||
IDCondition int32 `gorm:"column:id_condition;primaryKey;autoIncrement:true" json:"id_condition"`
|
||||
IDPsCondition int32 `gorm:"column:id_ps_condition;primaryKey" json:"id_ps_condition"`
|
||||
Type string `gorm:"column:type;not null" json:"type"`
|
||||
Request *string `gorm:"column:request" json:"request"`
|
||||
Operator *string `gorm:"column:operator" json:"operator"`
|
||||
Value *string `gorm:"column:value" json:"value"`
|
||||
Result *string `gorm:"column:result" json:"result"`
|
||||
CalculationType *string `gorm:"column:calculation_type" json:"calculation_type"`
|
||||
CalculationDetail *string `gorm:"column:calculation_detail" json:"calculation_detail"`
|
||||
Validated bool `gorm:"column:validated;not null" json:"validated"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsCondition's table name
|
||||
func (*PsCondition) TableName() string {
|
||||
return TableNamePsCondition
|
||||
}
|
||||
|
||||
var PsConditionCols = struct {
|
||||
IDCondition gormcol.Field
|
||||
IDPsCondition gormcol.Field
|
||||
Type gormcol.Field
|
||||
Request gormcol.Field
|
||||
Operator gormcol.Field
|
||||
Value gormcol.Field
|
||||
Result gormcol.Field
|
||||
CalculationType gormcol.Field
|
||||
CalculationDetail gormcol.Field
|
||||
Validated gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDCondition: gormcol.Field{Table: TableNamePsCondition, Column: "id_condition"},
|
||||
IDPsCondition: gormcol.Field{Table: TableNamePsCondition, Column: "id_ps_condition"},
|
||||
Type: gormcol.Field{Table: TableNamePsCondition, Column: "type"},
|
||||
Request: gormcol.Field{Table: TableNamePsCondition, Column: "request"},
|
||||
Operator: gormcol.Field{Table: TableNamePsCondition, Column: "operator"},
|
||||
Value: gormcol.Field{Table: TableNamePsCondition, Column: "value"},
|
||||
Result: gormcol.Field{Table: TableNamePsCondition, Column: "result"},
|
||||
CalculationType: gormcol.Field{Table: TableNamePsCondition, Column: "calculation_type"},
|
||||
CalculationDetail: gormcol.Field{Table: TableNamePsCondition, Column: "calculation_detail"},
|
||||
Validated: gormcol.Field{Table: TableNamePsCondition, Column: "validated"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsCondition, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsCondition, Column: "date_upd"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_condition_advice.go
Normal file
31
app/model/dbmodel/ps_condition_advice.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsConditionAdvice = "ps_condition_advice"
|
||||
|
||||
// PsConditionAdvice mapped from table <ps_condition_advice>
|
||||
type PsConditionAdvice struct {
|
||||
IDCondition int32 `gorm:"column:id_condition;primaryKey" json:"id_condition"`
|
||||
IDAdvice int32 `gorm:"column:id_advice;primaryKey" json:"id_advice"`
|
||||
Display bool `gorm:"column:display;not null" json:"display"`
|
||||
}
|
||||
|
||||
// TableName PsConditionAdvice's table name
|
||||
func (*PsConditionAdvice) TableName() string {
|
||||
return TableNamePsConditionAdvice
|
||||
}
|
||||
|
||||
var PsConditionAdviceCols = struct {
|
||||
IDCondition gormcol.Field
|
||||
IDAdvice gormcol.Field
|
||||
Display gormcol.Field
|
||||
}{
|
||||
IDCondition: gormcol.Field{Table: TableNamePsConditionAdvice, Column: "id_condition"},
|
||||
IDAdvice: gormcol.Field{Table: TableNamePsConditionAdvice, Column: "id_advice"},
|
||||
Display: gormcol.Field{Table: TableNamePsConditionAdvice, Column: "display"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_condition_badge.go
Normal file
28
app/model/dbmodel/ps_condition_badge.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsConditionBadge = "ps_condition_badge"
|
||||
|
||||
// PsConditionBadge mapped from table <ps_condition_badge>
|
||||
type PsConditionBadge struct {
|
||||
IDCondition int32 `gorm:"column:id_condition;primaryKey" json:"id_condition"`
|
||||
IDBadge int32 `gorm:"column:id_badge;primaryKey" json:"id_badge"`
|
||||
}
|
||||
|
||||
// TableName PsConditionBadge's table name
|
||||
func (*PsConditionBadge) TableName() string {
|
||||
return TableNamePsConditionBadge
|
||||
}
|
||||
|
||||
var PsConditionBadgeCols = struct {
|
||||
IDCondition gormcol.Field
|
||||
IDBadge gormcol.Field
|
||||
}{
|
||||
IDCondition: gormcol.Field{Table: TableNamePsConditionBadge, Column: "id_condition"},
|
||||
IDBadge: gormcol.Field{Table: TableNamePsConditionBadge, Column: "id_badge"},
|
||||
}
|
||||
46
app/model/dbmodel/ps_configuration.go
Normal file
46
app/model/dbmodel/ps_configuration.go
Normal file
@@ -0,0 +1,46 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsConfiguration = "ps_configuration"
|
||||
|
||||
// PsConfiguration mapped from table <ps_configuration>
|
||||
type PsConfiguration struct {
|
||||
IDConfiguration int32 `gorm:"column:id_configuration;primaryKey;autoIncrement:true" json:"id_configuration"`
|
||||
IDShopGroup *int32 `gorm:"column:id_shop_group;index:id_shop_group,priority:1" json:"id_shop_group"`
|
||||
IDShop *int32 `gorm:"column:id_shop;index:id_shop,priority:1" json:"id_shop"`
|
||||
Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"`
|
||||
Value *string `gorm:"column:value" json:"value"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsConfiguration's table name
|
||||
func (*PsConfiguration) TableName() string {
|
||||
return TableNamePsConfiguration
|
||||
}
|
||||
|
||||
var PsConfigurationCols = struct {
|
||||
IDConfiguration gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
Value gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDConfiguration: gormcol.Field{Table: TableNamePsConfiguration, Column: "id_configuration"},
|
||||
IDShopGroup: gormcol.Field{Table: TableNamePsConfiguration, Column: "id_shop_group"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsConfiguration, Column: "id_shop"},
|
||||
Name: gormcol.Field{Table: TableNamePsConfiguration, Column: "name"},
|
||||
Value: gormcol.Field{Table: TableNamePsConfiguration, Column: "value"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsConfiguration, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsConfiguration, Column: "date_upd"},
|
||||
}
|
||||
46
app/model/dbmodel/ps_configuration_kpi.go
Normal file
46
app/model/dbmodel/ps_configuration_kpi.go
Normal file
@@ -0,0 +1,46 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsConfigurationKpi = "ps_configuration_kpi"
|
||||
|
||||
// PsConfigurationKpi mapped from table <ps_configuration_kpi>
|
||||
type PsConfigurationKpi struct {
|
||||
IDConfigurationKpi int32 `gorm:"column:id_configuration_kpi;primaryKey;autoIncrement:true" json:"id_configuration_kpi"`
|
||||
IDShopGroup *int32 `gorm:"column:id_shop_group;index:id_shop_group,priority:1" json:"id_shop_group"`
|
||||
IDShop *int32 `gorm:"column:id_shop;index:id_shop,priority:1" json:"id_shop"`
|
||||
Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"`
|
||||
Value *string `gorm:"column:value" json:"value"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsConfigurationKpi's table name
|
||||
func (*PsConfigurationKpi) TableName() string {
|
||||
return TableNamePsConfigurationKpi
|
||||
}
|
||||
|
||||
var PsConfigurationKpiCols = struct {
|
||||
IDConfigurationKpi gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
Value gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDConfigurationKpi: gormcol.Field{Table: TableNamePsConfigurationKpi, Column: "id_configuration_kpi"},
|
||||
IDShopGroup: gormcol.Field{Table: TableNamePsConfigurationKpi, Column: "id_shop_group"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsConfigurationKpi, Column: "id_shop"},
|
||||
Name: gormcol.Field{Table: TableNamePsConfigurationKpi, Column: "name"},
|
||||
Value: gormcol.Field{Table: TableNamePsConfigurationKpi, Column: "value"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsConfigurationKpi, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsConfigurationKpi, Column: "date_upd"},
|
||||
}
|
||||
37
app/model/dbmodel/ps_configuration_kpi_lang.go
Normal file
37
app/model/dbmodel/ps_configuration_kpi_lang.go
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsConfigurationKpiLang = "ps_configuration_kpi_lang"
|
||||
|
||||
// PsConfigurationKpiLang mapped from table <ps_configuration_kpi_lang>
|
||||
type PsConfigurationKpiLang struct {
|
||||
IDConfigurationKpi int32 `gorm:"column:id_configuration_kpi;primaryKey" json:"id_configuration_kpi"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Value *string `gorm:"column:value" json:"value"`
|
||||
DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsConfigurationKpiLang's table name
|
||||
func (*PsConfigurationKpiLang) TableName() string {
|
||||
return TableNamePsConfigurationKpiLang
|
||||
}
|
||||
|
||||
var PsConfigurationKpiLangCols = struct {
|
||||
IDConfigurationKpi gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Value gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDConfigurationKpi: gormcol.Field{Table: TableNamePsConfigurationKpiLang, Column: "id_configuration_kpi"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsConfigurationKpiLang, Column: "id_lang"},
|
||||
Value: gormcol.Field{Table: TableNamePsConfigurationKpiLang, Column: "value"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsConfigurationKpiLang, Column: "date_upd"},
|
||||
}
|
||||
37
app/model/dbmodel/ps_configuration_lang.go
Normal file
37
app/model/dbmodel/ps_configuration_lang.go
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsConfigurationLang = "ps_configuration_lang"
|
||||
|
||||
// PsConfigurationLang mapped from table <ps_configuration_lang>
|
||||
type PsConfigurationLang struct {
|
||||
IDConfiguration int32 `gorm:"column:id_configuration;primaryKey" json:"id_configuration"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Value *string `gorm:"column:value" json:"value"`
|
||||
DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsConfigurationLang's table name
|
||||
func (*PsConfigurationLang) TableName() string {
|
||||
return TableNamePsConfigurationLang
|
||||
}
|
||||
|
||||
var PsConfigurationLangCols = struct {
|
||||
IDConfiguration gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Value gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDConfiguration: gormcol.Field{Table: TableNamePsConfigurationLang, Column: "id_configuration"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsConfigurationLang, Column: "id_lang"},
|
||||
Value: gormcol.Field{Table: TableNamePsConfigurationLang, Column: "value"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsConfigurationLang, Column: "date_upd"},
|
||||
}
|
||||
49
app/model/dbmodel/ps_connections.go
Normal file
49
app/model/dbmodel/ps_connections.go
Normal file
@@ -0,0 +1,49 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsConnection = "ps_connections"
|
||||
|
||||
// PsConnection mapped from table <ps_connections>
|
||||
type PsConnection struct {
|
||||
IDConnections int32 `gorm:"column:id_connections;primaryKey;autoIncrement:true" json:"id_connections"`
|
||||
IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"`
|
||||
IDGuest int32 `gorm:"column:id_guest;not null;index:id_guest,priority:1" json:"id_guest"`
|
||||
IDPage int32 `gorm:"column:id_page;not null;index:id_page,priority:1" json:"id_page"`
|
||||
IPAddress *int64 `gorm:"column:ip_address" json:"ip_address"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"`
|
||||
HTTPReferer *string `gorm:"column:http_referer" json:"http_referer"`
|
||||
}
|
||||
|
||||
// TableName PsConnection's table name
|
||||
func (*PsConnection) TableName() string {
|
||||
return TableNamePsConnection
|
||||
}
|
||||
|
||||
var PsConnectionCols = struct {
|
||||
IDConnections gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDGuest gormcol.Field
|
||||
IDPage gormcol.Field
|
||||
IPAddress gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
HTTPReferer gormcol.Field
|
||||
}{
|
||||
IDConnections: gormcol.Field{Table: TableNamePsConnection, Column: "id_connections"},
|
||||
IDShopGroup: gormcol.Field{Table: TableNamePsConnection, Column: "id_shop_group"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsConnection, Column: "id_shop"},
|
||||
IDGuest: gormcol.Field{Table: TableNamePsConnection, Column: "id_guest"},
|
||||
IDPage: gormcol.Field{Table: TableNamePsConnection, Column: "id_page"},
|
||||
IPAddress: gormcol.Field{Table: TableNamePsConnection, Column: "ip_address"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsConnection, Column: "date_add"},
|
||||
HTTPReferer: gormcol.Field{Table: TableNamePsConnection, Column: "http_referer"},
|
||||
}
|
||||
37
app/model/dbmodel/ps_connections_page.go
Normal file
37
app/model/dbmodel/ps_connections_page.go
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsConnectionsPage = "ps_connections_page"
|
||||
|
||||
// PsConnectionsPage mapped from table <ps_connections_page>
|
||||
type PsConnectionsPage struct {
|
||||
IDConnections int32 `gorm:"column:id_connections;primaryKey" json:"id_connections"`
|
||||
IDPage int32 `gorm:"column:id_page;primaryKey" json:"id_page"`
|
||||
TimeStart time.Time `gorm:"column:time_start;primaryKey" json:"time_start"`
|
||||
TimeEnd *time.Time `gorm:"column:time_end" json:"time_end"`
|
||||
}
|
||||
|
||||
// TableName PsConnectionsPage's table name
|
||||
func (*PsConnectionsPage) TableName() string {
|
||||
return TableNamePsConnectionsPage
|
||||
}
|
||||
|
||||
var PsConnectionsPageCols = struct {
|
||||
IDConnections gormcol.Field
|
||||
IDPage gormcol.Field
|
||||
TimeStart gormcol.Field
|
||||
TimeEnd gormcol.Field
|
||||
}{
|
||||
IDConnections: gormcol.Field{Table: TableNamePsConnectionsPage, Column: "id_connections"},
|
||||
IDPage: gormcol.Field{Table: TableNamePsConnectionsPage, Column: "id_page"},
|
||||
TimeStart: gormcol.Field{Table: TableNamePsConnectionsPage, Column: "time_start"},
|
||||
TimeEnd: gormcol.Field{Table: TableNamePsConnectionsPage, Column: "time_end"},
|
||||
}
|
||||
43
app/model/dbmodel/ps_connections_source.go
Normal file
43
app/model/dbmodel/ps_connections_source.go
Normal file
@@ -0,0 +1,43 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsConnectionsSource = "ps_connections_source"
|
||||
|
||||
// PsConnectionsSource mapped from table <ps_connections_source>
|
||||
type PsConnectionsSource struct {
|
||||
IDConnectionsSource int32 `gorm:"column:id_connections_source;primaryKey;autoIncrement:true" json:"id_connections_source"`
|
||||
IDConnections int32 `gorm:"column:id_connections;not null;index:connections,priority:1" json:"id_connections"`
|
||||
HTTPReferer *string `gorm:"column:http_referer;index:http_referer,priority:1" json:"http_referer"`
|
||||
RequestURI *string `gorm:"column:request_uri;index:request_uri,priority:1" json:"request_uri"`
|
||||
Keywords *string `gorm:"column:keywords" json:"keywords"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null;index:orderby,priority:1" json:"date_add"`
|
||||
}
|
||||
|
||||
// TableName PsConnectionsSource's table name
|
||||
func (*PsConnectionsSource) TableName() string {
|
||||
return TableNamePsConnectionsSource
|
||||
}
|
||||
|
||||
var PsConnectionsSourceCols = struct {
|
||||
IDConnectionsSource gormcol.Field
|
||||
IDConnections gormcol.Field
|
||||
HTTPReferer gormcol.Field
|
||||
RequestURI gormcol.Field
|
||||
Keywords gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
}{
|
||||
IDConnectionsSource: gormcol.Field{Table: TableNamePsConnectionsSource, Column: "id_connections_source"},
|
||||
IDConnections: gormcol.Field{Table: TableNamePsConnectionsSource, Column: "id_connections"},
|
||||
HTTPReferer: gormcol.Field{Table: TableNamePsConnectionsSource, Column: "http_referer"},
|
||||
RequestURI: gormcol.Field{Table: TableNamePsConnectionsSource, Column: "request_uri"},
|
||||
Keywords: gormcol.Field{Table: TableNamePsConnectionsSource, Column: "keywords"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsConnectionsSource, Column: "date_add"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_contact.go
Normal file
34
app/model/dbmodel/ps_contact.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsContact = "ps_contact"
|
||||
|
||||
// PsContact mapped from table <ps_contact>
|
||||
type PsContact struct {
|
||||
IDContact int32 `gorm:"column:id_contact;primaryKey;autoIncrement:true" json:"id_contact"`
|
||||
Email string `gorm:"column:email;not null" json:"email"`
|
||||
CustomerService bool `gorm:"column:customer_service;not null" json:"customer_service"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
}
|
||||
|
||||
// TableName PsContact's table name
|
||||
func (*PsContact) TableName() string {
|
||||
return TableNamePsContact
|
||||
}
|
||||
|
||||
var PsContactCols = struct {
|
||||
IDContact gormcol.Field
|
||||
Email gormcol.Field
|
||||
CustomerService gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDContact: gormcol.Field{Table: TableNamePsContact, Column: "id_contact"},
|
||||
Email: gormcol.Field{Table: TableNamePsContact, Column: "email"},
|
||||
CustomerService: gormcol.Field{Table: TableNamePsContact, Column: "customer_service"},
|
||||
Position: gormcol.Field{Table: TableNamePsContact, Column: "position"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_contact_lang.go
Normal file
34
app/model/dbmodel/ps_contact_lang.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsContactLang = "ps_contact_lang"
|
||||
|
||||
// PsContactLang mapped from table <ps_contact_lang>
|
||||
type PsContactLang struct {
|
||||
IDContact int32 `gorm:"column:id_contact;primaryKey" json:"id_contact"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
}
|
||||
|
||||
// TableName PsContactLang's table name
|
||||
func (*PsContactLang) TableName() string {
|
||||
return TableNamePsContactLang
|
||||
}
|
||||
|
||||
var PsContactLangCols = struct {
|
||||
IDContact gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
}{
|
||||
IDContact: gormcol.Field{Table: TableNamePsContactLang, Column: "id_contact"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsContactLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsContactLang, Column: "name"},
|
||||
Description: gormcol.Field{Table: TableNamePsContactLang, Column: "description"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_contact_shop.go
Normal file
28
app/model/dbmodel/ps_contact_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsContactShop = "ps_contact_shop"
|
||||
|
||||
// PsContactShop mapped from table <ps_contact_shop>
|
||||
type PsContactShop struct {
|
||||
IDContact int32 `gorm:"column:id_contact;primaryKey" json:"id_contact"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsContactShop's table name
|
||||
func (*PsContactShop) TableName() string {
|
||||
return TableNamePsContactShop
|
||||
}
|
||||
|
||||
var PsContactShopCols = struct {
|
||||
IDContact gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDContact: gormcol.Field{Table: TableNamePsContactShop, Column: "id_contact"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsContactShop, Column: "id_shop"},
|
||||
}
|
||||
55
app/model/dbmodel/ps_country.go
Normal file
55
app/model/dbmodel/ps_country.go
Normal file
@@ -0,0 +1,55 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCountry = "ps_country"
|
||||
|
||||
// PsCountry mapped from table <ps_country>
|
||||
type PsCountry struct {
|
||||
IDCountry int32 `gorm:"column:id_country;primaryKey;autoIncrement:true" json:"id_country"`
|
||||
IDZone int32 `gorm:"column:id_zone;not null;index:country_,priority:1" json:"id_zone"`
|
||||
IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"`
|
||||
IsoCode string `gorm:"column:iso_code;not null;index:country_iso_code,priority:1" json:"iso_code"`
|
||||
CallPrefix int32 `gorm:"column:call_prefix;not null" json:"call_prefix"`
|
||||
Active bool `gorm:"column:active;not null" json:"active"`
|
||||
ContainsStates bool `gorm:"column:contains_states;not null" json:"contains_states"`
|
||||
NeedIdentificationNumber bool `gorm:"column:need_identification_number;not null" json:"need_identification_number"`
|
||||
NeedZipCode bool `gorm:"column:need_zip_code;not null;default:1" json:"need_zip_code"`
|
||||
ZipCodeFormat string `gorm:"column:zip_code_format;not null" json:"zip_code_format"`
|
||||
DisplayTaxLabel bool `gorm:"column:display_tax_label;not null" json:"display_tax_label"`
|
||||
}
|
||||
|
||||
// TableName PsCountry's table name
|
||||
func (*PsCountry) TableName() string {
|
||||
return TableNamePsCountry
|
||||
}
|
||||
|
||||
var PsCountryCols = struct {
|
||||
IDCountry gormcol.Field
|
||||
IDZone gormcol.Field
|
||||
IDCurrency gormcol.Field
|
||||
IsoCode gormcol.Field
|
||||
CallPrefix gormcol.Field
|
||||
Active gormcol.Field
|
||||
ContainsStates gormcol.Field
|
||||
NeedIdentificationNumber gormcol.Field
|
||||
NeedZipCode gormcol.Field
|
||||
ZipCodeFormat gormcol.Field
|
||||
DisplayTaxLabel gormcol.Field
|
||||
}{
|
||||
IDCountry: gormcol.Field{Table: TableNamePsCountry, Column: "id_country"},
|
||||
IDZone: gormcol.Field{Table: TableNamePsCountry, Column: "id_zone"},
|
||||
IDCurrency: gormcol.Field{Table: TableNamePsCountry, Column: "id_currency"},
|
||||
IsoCode: gormcol.Field{Table: TableNamePsCountry, Column: "iso_code"},
|
||||
CallPrefix: gormcol.Field{Table: TableNamePsCountry, Column: "call_prefix"},
|
||||
Active: gormcol.Field{Table: TableNamePsCountry, Column: "active"},
|
||||
ContainsStates: gormcol.Field{Table: TableNamePsCountry, Column: "contains_states"},
|
||||
NeedIdentificationNumber: gormcol.Field{Table: TableNamePsCountry, Column: "need_identification_number"},
|
||||
NeedZipCode: gormcol.Field{Table: TableNamePsCountry, Column: "need_zip_code"},
|
||||
ZipCodeFormat: gormcol.Field{Table: TableNamePsCountry, Column: "zip_code_format"},
|
||||
DisplayTaxLabel: gormcol.Field{Table: TableNamePsCountry, Column: "display_tax_label"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_country_lang.go
Normal file
31
app/model/dbmodel/ps_country_lang.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCountryLang = "ps_country_lang"
|
||||
|
||||
// PsCountryLang mapped from table <ps_country_lang>
|
||||
type PsCountryLang struct {
|
||||
IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
}
|
||||
|
||||
// TableName PsCountryLang's table name
|
||||
func (*PsCountryLang) TableName() string {
|
||||
return TableNamePsCountryLang
|
||||
}
|
||||
|
||||
var PsCountryLangCols = struct {
|
||||
IDCountry gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDCountry: gormcol.Field{Table: TableNamePsCountryLang, Column: "id_country"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCountryLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsCountryLang, Column: "name"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_country_shop.go
Normal file
28
app/model/dbmodel/ps_country_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCountryShop = "ps_country_shop"
|
||||
|
||||
// PsCountryShop mapped from table <ps_country_shop>
|
||||
type PsCountryShop struct {
|
||||
IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsCountryShop's table name
|
||||
func (*PsCountryShop) TableName() string {
|
||||
return TableNamePsCountryShop
|
||||
}
|
||||
|
||||
var PsCountryShopCols = struct {
|
||||
IDCountry gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCountry: gormcol.Field{Table: TableNamePsCountryShop, Column: "id_country"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCountryShop, Column: "id_shop"},
|
||||
}
|
||||
46
app/model/dbmodel/ps_currency.go
Normal file
46
app/model/dbmodel/ps_currency.go
Normal file
@@ -0,0 +1,46 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCurrency = "ps_currency"
|
||||
|
||||
// PsCurrency mapped from table <ps_currency>
|
||||
type PsCurrency struct {
|
||||
IDCurrency int32 `gorm:"column:id_currency;primaryKey;autoIncrement:true" json:"id_currency"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
IsoCode string `gorm:"column:iso_code;not null;index:currency_iso_code,priority:1;default:0" json:"iso_code"`
|
||||
NumericIsoCode *string `gorm:"column:numeric_iso_code" json:"numeric_iso_code"`
|
||||
Precision int32 `gorm:"column:precision;not null;default:6" json:"precision"`
|
||||
ConversionRate float64 `gorm:"column:conversion_rate;not null" json:"conversion_rate"`
|
||||
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
|
||||
Active bool `gorm:"column:active;not null;default:1" json:"active"`
|
||||
}
|
||||
|
||||
// TableName PsCurrency's table name
|
||||
func (*PsCurrency) TableName() string {
|
||||
return TableNamePsCurrency
|
||||
}
|
||||
|
||||
var PsCurrencyCols = struct {
|
||||
IDCurrency gormcol.Field
|
||||
Name gormcol.Field
|
||||
IsoCode gormcol.Field
|
||||
NumericIsoCode gormcol.Field
|
||||
Precision gormcol.Field
|
||||
ConversionRate gormcol.Field
|
||||
Deleted gormcol.Field
|
||||
Active gormcol.Field
|
||||
}{
|
||||
IDCurrency: gormcol.Field{Table: TableNamePsCurrency, Column: "id_currency"},
|
||||
Name: gormcol.Field{Table: TableNamePsCurrency, Column: "name"},
|
||||
IsoCode: gormcol.Field{Table: TableNamePsCurrency, Column: "iso_code"},
|
||||
NumericIsoCode: gormcol.Field{Table: TableNamePsCurrency, Column: "numeric_iso_code"},
|
||||
Precision: gormcol.Field{Table: TableNamePsCurrency, Column: "precision"},
|
||||
ConversionRate: gormcol.Field{Table: TableNamePsCurrency, Column: "conversion_rate"},
|
||||
Deleted: gormcol.Field{Table: TableNamePsCurrency, Column: "deleted"},
|
||||
Active: gormcol.Field{Table: TableNamePsCurrency, Column: "active"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_currency_lang.go
Normal file
34
app/model/dbmodel/ps_currency_lang.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCurrencyLang = "ps_currency_lang"
|
||||
|
||||
// PsCurrencyLang mapped from table <ps_currency_lang>
|
||||
type PsCurrencyLang struct {
|
||||
IDCurrency int32 `gorm:"column:id_currency;primaryKey" json:"id_currency"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
Symbol string `gorm:"column:symbol;not null" json:"symbol"`
|
||||
}
|
||||
|
||||
// TableName PsCurrencyLang's table name
|
||||
func (*PsCurrencyLang) TableName() string {
|
||||
return TableNamePsCurrencyLang
|
||||
}
|
||||
|
||||
var PsCurrencyLangCols = struct {
|
||||
IDCurrency gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Symbol gormcol.Field
|
||||
}{
|
||||
IDCurrency: gormcol.Field{Table: TableNamePsCurrencyLang, Column: "id_currency"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCurrencyLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsCurrencyLang, Column: "name"},
|
||||
Symbol: gormcol.Field{Table: TableNamePsCurrencyLang, Column: "symbol"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_currency_shop.go
Normal file
31
app/model/dbmodel/ps_currency_shop.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCurrencyShop = "ps_currency_shop"
|
||||
|
||||
// PsCurrencyShop mapped from table <ps_currency_shop>
|
||||
type PsCurrencyShop struct {
|
||||
IDCurrency int32 `gorm:"column:id_currency;primaryKey" json:"id_currency"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
||||
ConversionRate float64 `gorm:"column:conversion_rate;not null" json:"conversion_rate"`
|
||||
}
|
||||
|
||||
// TableName PsCurrencyShop's table name
|
||||
func (*PsCurrencyShop) TableName() string {
|
||||
return TableNamePsCurrencyShop
|
||||
}
|
||||
|
||||
var PsCurrencyShopCols = struct {
|
||||
IDCurrency gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
ConversionRate gormcol.Field
|
||||
}{
|
||||
IDCurrency: gormcol.Field{Table: TableNamePsCurrencyShop, Column: "id_currency"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCurrencyShop, Column: "id_shop"},
|
||||
ConversionRate: gormcol.Field{Table: TableNamePsCurrencyShop, Column: "conversion_rate"},
|
||||
}
|
||||
124
app/model/dbmodel/ps_customer.go
Normal file
124
app/model/dbmodel/ps_customer.go
Normal file
@@ -0,0 +1,124 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCustomer = "ps_customer"
|
||||
|
||||
// PsCustomer mapped from table <ps_customer>
|
||||
type PsCustomer struct {
|
||||
IDCustomer int32 `gorm:"column:id_customer;primaryKey;autoIncrement:true;index:id_customer_passwd,priority:1" json:"id_customer"`
|
||||
IDShopGroup int32 `gorm:"column:id_shop_group;not null;index:id_shop_group,priority:1;default:1" json:"id_shop_group"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;default:1" json:"id_shop"`
|
||||
IDGender int32 `gorm:"column:id_gender;not null;index:id_gender,priority:1" json:"id_gender"`
|
||||
IDDefaultGroup int32 `gorm:"column:id_default_group;not null;default:1" json:"id_default_group"`
|
||||
IDLang *int32 `gorm:"column:id_lang" json:"id_lang"`
|
||||
IDRisk int32 `gorm:"column:id_risk;not null;default:1" json:"id_risk"`
|
||||
Company *string `gorm:"column:company" json:"company"`
|
||||
Siret *string `gorm:"column:siret" json:"siret"`
|
||||
Ape *string `gorm:"column:ape" json:"ape"`
|
||||
Firstname string `gorm:"column:firstname;not null" json:"firstname"`
|
||||
Lastname string `gorm:"column:lastname;not null" json:"lastname"`
|
||||
Email string `gorm:"column:email;not null;index:customer_email,priority:1;index:customer_login,priority:1" json:"email"`
|
||||
Passwd string `gorm:"column:passwd;not null;index:customer_login,priority:2;index:id_customer_passwd,priority:2" json:"passwd"`
|
||||
LastPasswdGen time.Time `gorm:"column:last_passwd_gen;not null;default:current_timestamp()" json:"last_passwd_gen"`
|
||||
Birthday *time.Time `gorm:"column:birthday" json:"birthday"`
|
||||
Newsletter bool `gorm:"column:newsletter;not null" json:"newsletter"`
|
||||
IPRegistrationNewsletter *string `gorm:"column:ip_registration_newsletter" json:"ip_registration_newsletter"`
|
||||
NewsletterDateAdd *time.Time `gorm:"column:newsletter_date_add" json:"newsletter_date_add"`
|
||||
Optin bool `gorm:"column:optin;not null" json:"optin"`
|
||||
Website *string `gorm:"column:website" json:"website"`
|
||||
OutstandingAllowAmount float64 `gorm:"column:outstanding_allow_amount;not null;default:0.000000" json:"outstanding_allow_amount"`
|
||||
ShowPublicPrices bool `gorm:"column:show_public_prices;not null" json:"show_public_prices"`
|
||||
MaxPaymentDays int32 `gorm:"column:max_payment_days;not null;default:60" json:"max_payment_days"`
|
||||
SecureKey string `gorm:"column:secure_key;not null;default:-1" json:"secure_key"`
|
||||
Note *string `gorm:"column:note" json:"note"`
|
||||
Active bool `gorm:"column:active;not null" json:"active"`
|
||||
IsGuest bool `gorm:"column:is_guest;not null" json:"is_guest"`
|
||||
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null;index:id_shop,priority:2" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
ResetPasswordToken *string `gorm:"column:reset_password_token" json:"reset_password_token"`
|
||||
ResetPasswordValidity *time.Time `gorm:"column:reset_password_validity" json:"reset_password_validity"`
|
||||
}
|
||||
|
||||
// TableName PsCustomer's table name
|
||||
func (*PsCustomer) TableName() string {
|
||||
return TableNamePsCustomer
|
||||
}
|
||||
|
||||
var PsCustomerCols = struct {
|
||||
IDCustomer gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDGender gormcol.Field
|
||||
IDDefaultGroup gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDRisk gormcol.Field
|
||||
Company gormcol.Field
|
||||
Siret gormcol.Field
|
||||
Ape gormcol.Field
|
||||
Firstname gormcol.Field
|
||||
Lastname gormcol.Field
|
||||
Email gormcol.Field
|
||||
Passwd gormcol.Field
|
||||
LastPasswdGen gormcol.Field
|
||||
Birthday gormcol.Field
|
||||
Newsletter gormcol.Field
|
||||
IPRegistrationNewsletter gormcol.Field
|
||||
NewsletterDateAdd gormcol.Field
|
||||
Optin gormcol.Field
|
||||
Website gormcol.Field
|
||||
OutstandingAllowAmount gormcol.Field
|
||||
ShowPublicPrices gormcol.Field
|
||||
MaxPaymentDays gormcol.Field
|
||||
SecureKey gormcol.Field
|
||||
Note gormcol.Field
|
||||
Active gormcol.Field
|
||||
IsGuest gormcol.Field
|
||||
Deleted gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
ResetPasswordToken gormcol.Field
|
||||
ResetPasswordValidity gormcol.Field
|
||||
}{
|
||||
IDCustomer: gormcol.Field{Table: TableNamePsCustomer, Column: "id_customer"},
|
||||
IDShopGroup: gormcol.Field{Table: TableNamePsCustomer, Column: "id_shop_group"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCustomer, Column: "id_shop"},
|
||||
IDGender: gormcol.Field{Table: TableNamePsCustomer, Column: "id_gender"},
|
||||
IDDefaultGroup: gormcol.Field{Table: TableNamePsCustomer, Column: "id_default_group"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCustomer, Column: "id_lang"},
|
||||
IDRisk: gormcol.Field{Table: TableNamePsCustomer, Column: "id_risk"},
|
||||
Company: gormcol.Field{Table: TableNamePsCustomer, Column: "company"},
|
||||
Siret: gormcol.Field{Table: TableNamePsCustomer, Column: "siret"},
|
||||
Ape: gormcol.Field{Table: TableNamePsCustomer, Column: "ape"},
|
||||
Firstname: gormcol.Field{Table: TableNamePsCustomer, Column: "firstname"},
|
||||
Lastname: gormcol.Field{Table: TableNamePsCustomer, Column: "lastname"},
|
||||
Email: gormcol.Field{Table: TableNamePsCustomer, Column: "email"},
|
||||
Passwd: gormcol.Field{Table: TableNamePsCustomer, Column: "passwd"},
|
||||
LastPasswdGen: gormcol.Field{Table: TableNamePsCustomer, Column: "last_passwd_gen"},
|
||||
Birthday: gormcol.Field{Table: TableNamePsCustomer, Column: "birthday"},
|
||||
Newsletter: gormcol.Field{Table: TableNamePsCustomer, Column: "newsletter"},
|
||||
IPRegistrationNewsletter: gormcol.Field{Table: TableNamePsCustomer, Column: "ip_registration_newsletter"},
|
||||
NewsletterDateAdd: gormcol.Field{Table: TableNamePsCustomer, Column: "newsletter_date_add"},
|
||||
Optin: gormcol.Field{Table: TableNamePsCustomer, Column: "optin"},
|
||||
Website: gormcol.Field{Table: TableNamePsCustomer, Column: "website"},
|
||||
OutstandingAllowAmount: gormcol.Field{Table: TableNamePsCustomer, Column: "outstanding_allow_amount"},
|
||||
ShowPublicPrices: gormcol.Field{Table: TableNamePsCustomer, Column: "show_public_prices"},
|
||||
MaxPaymentDays: gormcol.Field{Table: TableNamePsCustomer, Column: "max_payment_days"},
|
||||
SecureKey: gormcol.Field{Table: TableNamePsCustomer, Column: "secure_key"},
|
||||
Note: gormcol.Field{Table: TableNamePsCustomer, Column: "note"},
|
||||
Active: gormcol.Field{Table: TableNamePsCustomer, Column: "active"},
|
||||
IsGuest: gormcol.Field{Table: TableNamePsCustomer, Column: "is_guest"},
|
||||
Deleted: gormcol.Field{Table: TableNamePsCustomer, Column: "deleted"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsCustomer, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsCustomer, Column: "date_upd"},
|
||||
ResetPasswordToken: gormcol.Field{Table: TableNamePsCustomer, Column: "reset_password_token"},
|
||||
ResetPasswordValidity: gormcol.Field{Table: TableNamePsCustomer, Column: "reset_password_validity"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_customer_group.go
Normal file
28
app/model/dbmodel/ps_customer_group.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomerGroup = "ps_customer_group"
|
||||
|
||||
// PsCustomerGroup mapped from table <ps_customer_group>
|
||||
type PsCustomerGroup struct {
|
||||
IDCustomer int32 `gorm:"column:id_customer;primaryKey;index:id_customer,priority:1" json:"id_customer"`
|
||||
IDGroup int32 `gorm:"column:id_group;primaryKey;index:customer_login,priority:1" json:"id_group"`
|
||||
}
|
||||
|
||||
// TableName PsCustomerGroup's table name
|
||||
func (*PsCustomerGroup) TableName() string {
|
||||
return TableNamePsCustomerGroup
|
||||
}
|
||||
|
||||
var PsCustomerGroupCols = struct {
|
||||
IDCustomer gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
}{
|
||||
IDCustomer: gormcol.Field{Table: TableNamePsCustomerGroup, Column: "id_customer"},
|
||||
IDGroup: gormcol.Field{Table: TableNamePsCustomerGroup, Column: "id_group"},
|
||||
}
|
||||
61
app/model/dbmodel/ps_customer_message.go
Normal file
61
app/model/dbmodel/ps_customer_message.go
Normal file
@@ -0,0 +1,61 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCustomerMessage = "ps_customer_message"
|
||||
|
||||
// PsCustomerMessage mapped from table <ps_customer_message>
|
||||
type PsCustomerMessage struct {
|
||||
IDCustomerMessage int32 `gorm:"column:id_customer_message;primaryKey;autoIncrement:true" json:"id_customer_message"`
|
||||
IDCustomerThread *int32 `gorm:"column:id_customer_thread;index:id_customer_thread,priority:1" json:"id_customer_thread"`
|
||||
IDEmployee *int32 `gorm:"column:id_employee;index:id_employee,priority:1" json:"id_employee"`
|
||||
Message string `gorm:"column:message;not null" json:"message"`
|
||||
FileName *string `gorm:"column:file_name" json:"file_name"`
|
||||
IPAddress *string `gorm:"column:ip_address" json:"ip_address"`
|
||||
UserAgent *string `gorm:"column:user_agent" json:"user_agent"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
Private int32 `gorm:"column:private;not null" json:"private"`
|
||||
Read bool `gorm:"column:read;not null" json:"read"`
|
||||
Product *string `gorm:"column:product" json:"product"`
|
||||
}
|
||||
|
||||
// TableName PsCustomerMessage's table name
|
||||
func (*PsCustomerMessage) TableName() string {
|
||||
return TableNamePsCustomerMessage
|
||||
}
|
||||
|
||||
var PsCustomerMessageCols = struct {
|
||||
IDCustomerMessage gormcol.Field
|
||||
IDCustomerThread gormcol.Field
|
||||
IDEmployee gormcol.Field
|
||||
Message gormcol.Field
|
||||
FileName gormcol.Field
|
||||
IPAddress gormcol.Field
|
||||
UserAgent gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
Private gormcol.Field
|
||||
Read gormcol.Field
|
||||
Product gormcol.Field
|
||||
}{
|
||||
IDCustomerMessage: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "id_customer_message"},
|
||||
IDCustomerThread: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "id_customer_thread"},
|
||||
IDEmployee: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "id_employee"},
|
||||
Message: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "message"},
|
||||
FileName: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "file_name"},
|
||||
IPAddress: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "ip_address"},
|
||||
UserAgent: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "user_agent"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "date_upd"},
|
||||
Private: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "private"},
|
||||
Read: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "read"},
|
||||
Product: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "product"},
|
||||
}
|
||||
25
app/model/dbmodel/ps_customer_message_sync_imap.go
Normal file
25
app/model/dbmodel/ps_customer_message_sync_imap.go
Normal file
@@ -0,0 +1,25 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomerMessageSyncImap = "ps_customer_message_sync_imap"
|
||||
|
||||
// PsCustomerMessageSyncImap mapped from table <ps_customer_message_sync_imap>
|
||||
type PsCustomerMessageSyncImap struct {
|
||||
Md5Header []byte `gorm:"column:md5_header;not null;index:md5_header_index,priority:1" json:"md5_header"`
|
||||
}
|
||||
|
||||
// TableName PsCustomerMessageSyncImap's table name
|
||||
func (*PsCustomerMessageSyncImap) TableName() string {
|
||||
return TableNamePsCustomerMessageSyncImap
|
||||
}
|
||||
|
||||
var PsCustomerMessageSyncImapCols = struct {
|
||||
Md5Header gormcol.Field
|
||||
}{
|
||||
Md5Header: gormcol.Field{Table: TableNamePsCustomerMessageSyncImap, Column: "md5_header"},
|
||||
}
|
||||
61
app/model/dbmodel/ps_customer_thread.go
Normal file
61
app/model/dbmodel/ps_customer_thread.go
Normal file
@@ -0,0 +1,61 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCustomerThread = "ps_customer_thread"
|
||||
|
||||
// PsCustomerThread mapped from table <ps_customer_thread>
|
||||
type PsCustomerThread struct {
|
||||
IDCustomerThread int32 `gorm:"column:id_customer_thread;primaryKey;autoIncrement:true" json:"id_customer_thread"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;default:1" json:"id_shop"`
|
||||
IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"`
|
||||
IDContact int32 `gorm:"column:id_contact;not null;index:id_contact,priority:1" json:"id_contact"`
|
||||
IDCustomer *int32 `gorm:"column:id_customer;index:id_customer,priority:1" json:"id_customer"`
|
||||
IDOrder *int32 `gorm:"column:id_order;index:id_order,priority:1" json:"id_order"`
|
||||
IDProduct *int32 `gorm:"column:id_product;index:id_product,priority:1" json:"id_product"`
|
||||
Status string `gorm:"column:status;not null;default:open" json:"status"`
|
||||
Email string `gorm:"column:email;not null" json:"email"`
|
||||
Token *string `gorm:"column:token" json:"token"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsCustomerThread's table name
|
||||
func (*PsCustomerThread) TableName() string {
|
||||
return TableNamePsCustomerThread
|
||||
}
|
||||
|
||||
var PsCustomerThreadCols = struct {
|
||||
IDCustomerThread gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDContact gormcol.Field
|
||||
IDCustomer gormcol.Field
|
||||
IDOrder gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
Status gormcol.Field
|
||||
Email gormcol.Field
|
||||
Token gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDCustomerThread: gormcol.Field{Table: TableNamePsCustomerThread, Column: "id_customer_thread"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCustomerThread, Column: "id_shop"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCustomerThread, Column: "id_lang"},
|
||||
IDContact: gormcol.Field{Table: TableNamePsCustomerThread, Column: "id_contact"},
|
||||
IDCustomer: gormcol.Field{Table: TableNamePsCustomerThread, Column: "id_customer"},
|
||||
IDOrder: gormcol.Field{Table: TableNamePsCustomerThread, Column: "id_order"},
|
||||
IDProduct: gormcol.Field{Table: TableNamePsCustomerThread, Column: "id_product"},
|
||||
Status: gormcol.Field{Table: TableNamePsCustomerThread, Column: "status"},
|
||||
Email: gormcol.Field{Table: TableNamePsCustomerThread, Column: "email"},
|
||||
Token: gormcol.Field{Table: TableNamePsCustomerThread, Column: "token"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsCustomerThread, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsCustomerThread, Column: "date_upd"},
|
||||
}
|
||||
49
app/model/dbmodel/ps_customization.go
Normal file
49
app/model/dbmodel/ps_customization.go
Normal file
@@ -0,0 +1,49 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomization = "ps_customization"
|
||||
|
||||
// PsCustomization mapped from table <ps_customization>
|
||||
type PsCustomization struct {
|
||||
IDCustomization int32 `gorm:"column:id_customization;primaryKey;autoIncrement:true" json:"id_customization"`
|
||||
IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;index:id_cart_product,priority:3;index:id_product_attribute,priority:1" json:"id_product_attribute"`
|
||||
IDAddressDelivery int32 `gorm:"column:id_address_delivery;primaryKey" json:"id_address_delivery"`
|
||||
IDCart int32 `gorm:"column:id_cart;primaryKey;index:id_cart_product,priority:1" json:"id_cart"`
|
||||
IDProduct int32 `gorm:"column:id_product;primaryKey;index:id_cart_product,priority:2" json:"id_product"`
|
||||
Quantity int32 `gorm:"column:quantity;not null" json:"quantity"`
|
||||
QuantityRefunded int32 `gorm:"column:quantity_refunded;not null" json:"quantity_refunded"`
|
||||
QuantityReturned int32 `gorm:"column:quantity_returned;not null" json:"quantity_returned"`
|
||||
InCart bool `gorm:"column:in_cart;not null" json:"in_cart"`
|
||||
}
|
||||
|
||||
// TableName PsCustomization's table name
|
||||
func (*PsCustomization) TableName() string {
|
||||
return TableNamePsCustomization
|
||||
}
|
||||
|
||||
var PsCustomizationCols = struct {
|
||||
IDCustomization gormcol.Field
|
||||
IDProductAttribute gormcol.Field
|
||||
IDAddressDelivery gormcol.Field
|
||||
IDCart gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
Quantity gormcol.Field
|
||||
QuantityRefunded gormcol.Field
|
||||
QuantityReturned gormcol.Field
|
||||
InCart gormcol.Field
|
||||
}{
|
||||
IDCustomization: gormcol.Field{Table: TableNamePsCustomization, Column: "id_customization"},
|
||||
IDProductAttribute: gormcol.Field{Table: TableNamePsCustomization, Column: "id_product_attribute"},
|
||||
IDAddressDelivery: gormcol.Field{Table: TableNamePsCustomization, Column: "id_address_delivery"},
|
||||
IDCart: gormcol.Field{Table: TableNamePsCustomization, Column: "id_cart"},
|
||||
IDProduct: gormcol.Field{Table: TableNamePsCustomization, Column: "id_product"},
|
||||
Quantity: gormcol.Field{Table: TableNamePsCustomization, Column: "quantity"},
|
||||
QuantityRefunded: gormcol.Field{Table: TableNamePsCustomization, Column: "quantity_refunded"},
|
||||
QuantityReturned: gormcol.Field{Table: TableNamePsCustomization, Column: "quantity_returned"},
|
||||
InCart: gormcol.Field{Table: TableNamePsCustomization, Column: "in_cart"},
|
||||
}
|
||||
40
app/model/dbmodel/ps_customization_field.go
Normal file
40
app/model/dbmodel/ps_customization_field.go
Normal file
@@ -0,0 +1,40 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomizationField = "ps_customization_field"
|
||||
|
||||
// PsCustomizationField mapped from table <ps_customization_field>
|
||||
type PsCustomizationField struct {
|
||||
IDCustomizationField int32 `gorm:"column:id_customization_field;primaryKey;autoIncrement:true" json:"id_customization_field"`
|
||||
IDProduct int32 `gorm:"column:id_product;not null;index:id_product,priority:1" json:"id_product"`
|
||||
Type bool `gorm:"column:type;not null" json:"type"`
|
||||
Required bool `gorm:"column:required;not null" json:"required"`
|
||||
IsModule bool `gorm:"column:is_module;not null" json:"is_module"`
|
||||
IsDeleted bool `gorm:"column:is_deleted;not null" json:"is_deleted"`
|
||||
}
|
||||
|
||||
// TableName PsCustomizationField's table name
|
||||
func (*PsCustomizationField) TableName() string {
|
||||
return TableNamePsCustomizationField
|
||||
}
|
||||
|
||||
var PsCustomizationFieldCols = struct {
|
||||
IDCustomizationField gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
Type gormcol.Field
|
||||
Required gormcol.Field
|
||||
IsModule gormcol.Field
|
||||
IsDeleted gormcol.Field
|
||||
}{
|
||||
IDCustomizationField: gormcol.Field{Table: TableNamePsCustomizationField, Column: "id_customization_field"},
|
||||
IDProduct: gormcol.Field{Table: TableNamePsCustomizationField, Column: "id_product"},
|
||||
Type: gormcol.Field{Table: TableNamePsCustomizationField, Column: "type"},
|
||||
Required: gormcol.Field{Table: TableNamePsCustomizationField, Column: "required"},
|
||||
IsModule: gormcol.Field{Table: TableNamePsCustomizationField, Column: "is_module"},
|
||||
IsDeleted: gormcol.Field{Table: TableNamePsCustomizationField, Column: "is_deleted"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_customization_field_lang.go
Normal file
34
app/model/dbmodel/ps_customization_field_lang.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomizationFieldLang = "ps_customization_field_lang"
|
||||
|
||||
// PsCustomizationFieldLang mapped from table <ps_customization_field_lang>
|
||||
type PsCustomizationFieldLang struct {
|
||||
IDCustomizationField int32 `gorm:"column:id_customization_field;primaryKey" json:"id_customization_field"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
}
|
||||
|
||||
// TableName PsCustomizationFieldLang's table name
|
||||
func (*PsCustomizationFieldLang) TableName() string {
|
||||
return TableNamePsCustomizationFieldLang
|
||||
}
|
||||
|
||||
var PsCustomizationFieldLangCols = struct {
|
||||
IDCustomizationField gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDCustomizationField: gormcol.Field{Table: TableNamePsCustomizationFieldLang, Column: "id_customization_field"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsCustomizationFieldLang, Column: "id_lang"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsCustomizationFieldLang, Column: "id_shop"},
|
||||
Name: gormcol.Field{Table: TableNamePsCustomizationFieldLang, Column: "name"},
|
||||
}
|
||||
43
app/model/dbmodel/ps_customized_data.go
Normal file
43
app/model/dbmodel/ps_customized_data.go
Normal file
@@ -0,0 +1,43 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomizedDatum = "ps_customized_data"
|
||||
|
||||
// PsCustomizedDatum mapped from table <ps_customized_data>
|
||||
type PsCustomizedDatum struct {
|
||||
IDCustomization int32 `gorm:"column:id_customization;primaryKey" json:"id_customization"`
|
||||
Type bool `gorm:"column:type;primaryKey" json:"type"`
|
||||
Index int32 `gorm:"column:index;primaryKey" json:"index"`
|
||||
Value string `gorm:"column:value;not null" json:"value"`
|
||||
IDModule int32 `gorm:"column:id_module;not null" json:"id_module"`
|
||||
Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"`
|
||||
Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"`
|
||||
}
|
||||
|
||||
// TableName PsCustomizedDatum's table name
|
||||
func (*PsCustomizedDatum) TableName() string {
|
||||
return TableNamePsCustomizedDatum
|
||||
}
|
||||
|
||||
var PsCustomizedDatumCols = struct {
|
||||
IDCustomization gormcol.Field
|
||||
Type gormcol.Field
|
||||
Index gormcol.Field
|
||||
Value gormcol.Field
|
||||
IDModule gormcol.Field
|
||||
Price gormcol.Field
|
||||
Weight gormcol.Field
|
||||
}{
|
||||
IDCustomization: gormcol.Field{Table: TableNamePsCustomizedDatum, Column: "id_customization"},
|
||||
Type: gormcol.Field{Table: TableNamePsCustomizedDatum, Column: "type"},
|
||||
Index: gormcol.Field{Table: TableNamePsCustomizedDatum, Column: "index"},
|
||||
Value: gormcol.Field{Table: TableNamePsCustomizedDatum, Column: "value"},
|
||||
IDModule: gormcol.Field{Table: TableNamePsCustomizedDatum, Column: "id_module"},
|
||||
Price: gormcol.Field{Table: TableNamePsCustomizedDatum, Column: "price"},
|
||||
Weight: gormcol.Field{Table: TableNamePsCustomizedDatum, Column: "weight"},
|
||||
}
|
||||
34
app/model/dbmodel/ps_date_range.go
Normal file
34
app/model/dbmodel/ps_date_range.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDateRange = "ps_date_range"
|
||||
|
||||
// PsDateRange mapped from table <ps_date_range>
|
||||
type PsDateRange struct {
|
||||
IDDateRange int32 `gorm:"column:id_date_range;primaryKey;autoIncrement:true" json:"id_date_range"`
|
||||
TimeStart time.Time `gorm:"column:time_start;not null" json:"time_start"`
|
||||
TimeEnd time.Time `gorm:"column:time_end;not null" json:"time_end"`
|
||||
}
|
||||
|
||||
// TableName PsDateRange's table name
|
||||
func (*PsDateRange) TableName() string {
|
||||
return TableNamePsDateRange
|
||||
}
|
||||
|
||||
var PsDateRangeCols = struct {
|
||||
IDDateRange gormcol.Field
|
||||
TimeStart gormcol.Field
|
||||
TimeEnd gormcol.Field
|
||||
}{
|
||||
IDDateRange: gormcol.Field{Table: TableNamePsDateRange, Column: "id_date_range"},
|
||||
TimeStart: gormcol.Field{Table: TableNamePsDateRange, Column: "time_start"},
|
||||
TimeEnd: gormcol.Field{Table: TableNamePsDateRange, Column: "time_end"},
|
||||
}
|
||||
46
app/model/dbmodel/ps_delivery.go
Normal file
46
app/model/dbmodel/ps_delivery.go
Normal file
@@ -0,0 +1,46 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsDelivery = "ps_delivery"
|
||||
|
||||
// PsDelivery mapped from table <ps_delivery>
|
||||
type PsDelivery struct {
|
||||
IDDelivery int32 `gorm:"column:id_delivery;primaryKey;autoIncrement:true" json:"id_delivery"`
|
||||
IDShop *int32 `gorm:"column:id_shop" json:"id_shop"`
|
||||
IDShopGroup *int32 `gorm:"column:id_shop_group" json:"id_shop_group"`
|
||||
IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"`
|
||||
IDRangePrice *int32 `gorm:"column:id_range_price;index:id_range_price,priority:1" json:"id_range_price"`
|
||||
IDRangeWeight *int32 `gorm:"column:id_range_weight;index:id_range_weight,priority:1" json:"id_range_weight"`
|
||||
IDZone int32 `gorm:"column:id_zone;not null;index:id_carrier,priority:2;index:id_zone,priority:1" json:"id_zone"`
|
||||
Price float64 `gorm:"column:price;not null" json:"price"`
|
||||
}
|
||||
|
||||
// TableName PsDelivery's table name
|
||||
func (*PsDelivery) TableName() string {
|
||||
return TableNamePsDelivery
|
||||
}
|
||||
|
||||
var PsDeliveryCols = struct {
|
||||
IDDelivery gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
IDRangePrice gormcol.Field
|
||||
IDRangeWeight gormcol.Field
|
||||
IDZone gormcol.Field
|
||||
Price gormcol.Field
|
||||
}{
|
||||
IDDelivery: gormcol.Field{Table: TableNamePsDelivery, Column: "id_delivery"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsDelivery, Column: "id_shop"},
|
||||
IDShopGroup: gormcol.Field{Table: TableNamePsDelivery, Column: "id_shop_group"},
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsDelivery, Column: "id_carrier"},
|
||||
IDRangePrice: gormcol.Field{Table: TableNamePsDelivery, Column: "id_range_price"},
|
||||
IDRangeWeight: gormcol.Field{Table: TableNamePsDelivery, Column: "id_range_weight"},
|
||||
IDZone: gormcol.Field{Table: TableNamePsDelivery, Column: "id_zone"},
|
||||
Price: gormcol.Field{Table: TableNamePsDelivery, Column: "price"},
|
||||
}
|
||||
40
app/model/dbmodel/ps_dpdpoland_carrier.go
Normal file
40
app/model/dbmodel/ps_dpdpoland_carrier.go
Normal file
@@ -0,0 +1,40 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandCarrier = "ps_dpdpoland_carrier"
|
||||
|
||||
// PsDpdpolandCarrier mapped from table <ps_dpdpoland_carrier>
|
||||
type PsDpdpolandCarrier struct {
|
||||
IDDpdpolandCarrier int32 `gorm:"column:id_dpdpoland_carrier;primaryKey;autoIncrement:true" json:"id_dpdpoland_carrier"`
|
||||
IDCarrier int32 `gorm:"column:id_carrier;not null" json:"id_carrier"`
|
||||
IDReference int32 `gorm:"column:id_reference;not null" json:"id_reference"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandCarrier's table name
|
||||
func (*PsDpdpolandCarrier) TableName() string {
|
||||
return TableNamePsDpdpolandCarrier
|
||||
}
|
||||
|
||||
var PsDpdpolandCarrierCols = struct {
|
||||
IDDpdpolandCarrier gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
IDReference gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDDpdpolandCarrier: gormcol.Field{Table: TableNamePsDpdpolandCarrier, Column: "id_dpdpoland_carrier"},
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsDpdpolandCarrier, Column: "id_carrier"},
|
||||
IDReference: gormcol.Field{Table: TableNamePsDpdpolandCarrier, Column: "id_reference"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandCarrier, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandCarrier, Column: "date_upd"},
|
||||
}
|
||||
43
app/model/dbmodel/ps_dpdpoland_country.go
Normal file
43
app/model/dbmodel/ps_dpdpoland_country.go
Normal file
@@ -0,0 +1,43 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandCountry = "ps_dpdpoland_country"
|
||||
|
||||
// PsDpdpolandCountry mapped from table <ps_dpdpoland_country>
|
||||
type PsDpdpolandCountry struct {
|
||||
IDDpdpolandCountry int32 `gorm:"column:id_dpdpoland_country;primaryKey;autoIncrement:true" json:"id_dpdpoland_country"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"`
|
||||
IDCountry int32 `gorm:"column:id_country;not null" json:"id_country"`
|
||||
Enabled bool `gorm:"column:enabled;not null" json:"enabled"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandCountry's table name
|
||||
func (*PsDpdpolandCountry) TableName() string {
|
||||
return TableNamePsDpdpolandCountry
|
||||
}
|
||||
|
||||
var PsDpdpolandCountryCols = struct {
|
||||
IDDpdpolandCountry gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDCountry gormcol.Field
|
||||
Enabled gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDDpdpolandCountry: gormcol.Field{Table: TableNamePsDpdpolandCountry, Column: "id_dpdpoland_country"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsDpdpolandCountry, Column: "id_shop"},
|
||||
IDCountry: gormcol.Field{Table: TableNamePsDpdpolandCountry, Column: "id_country"},
|
||||
Enabled: gormcol.Field{Table: TableNamePsDpdpolandCountry, Column: "enabled"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandCountry, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandCountry, Column: "date_upd"},
|
||||
}
|
||||
40
app/model/dbmodel/ps_dpdpoland_manifest.go
Normal file
40
app/model/dbmodel/ps_dpdpoland_manifest.go
Normal file
@@ -0,0 +1,40 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandManifest = "ps_dpdpoland_manifest"
|
||||
|
||||
// PsDpdpolandManifest mapped from table <ps_dpdpoland_manifest>
|
||||
type PsDpdpolandManifest struct {
|
||||
IDManifest int32 `gorm:"column:id_manifest;primaryKey;autoIncrement:true" json:"id_manifest"`
|
||||
IDManifestWs int32 `gorm:"column:id_manifest_ws;not null;uniqueIndex:id_manifest_ws,priority:1" json:"id_manifest_ws"`
|
||||
IDPackageWs int32 `gorm:"column:id_package_ws;not null;uniqueIndex:id_manifest_ws,priority:2" json:"id_package_ws"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandManifest's table name
|
||||
func (*PsDpdpolandManifest) TableName() string {
|
||||
return TableNamePsDpdpolandManifest
|
||||
}
|
||||
|
||||
var PsDpdpolandManifestCols = struct {
|
||||
IDManifest gormcol.Field
|
||||
IDManifestWs gormcol.Field
|
||||
IDPackageWs gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDManifest: gormcol.Field{Table: TableNamePsDpdpolandManifest, Column: "id_manifest"},
|
||||
IDManifestWs: gormcol.Field{Table: TableNamePsDpdpolandManifest, Column: "id_manifest_ws"},
|
||||
IDPackageWs: gormcol.Field{Table: TableNamePsDpdpolandManifest, Column: "id_package_ws"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandManifest, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandManifest, Column: "date_upd"},
|
||||
}
|
||||
88
app/model/dbmodel/ps_dpdpoland_package.go
Normal file
88
app/model/dbmodel/ps_dpdpoland_package.go
Normal file
@@ -0,0 +1,88 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandPackage = "ps_dpdpoland_package"
|
||||
|
||||
// PsDpdpolandPackage mapped from table <ps_dpdpoland_package>
|
||||
type PsDpdpolandPackage struct {
|
||||
IDPackage int32 `gorm:"column:id_package;primaryKey;autoIncrement:true" json:"id_package"`
|
||||
IDPackageWs int32 `gorm:"column:id_package_ws;not null;uniqueIndex:id_package_ws,priority:1" json:"id_package_ws"`
|
||||
IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"`
|
||||
SessionID int32 `gorm:"column:sessionId;not null" json:"sessionId"`
|
||||
SessionType string `gorm:"column:sessionType;not null" json:"sessionType"`
|
||||
PayerNumber string `gorm:"column:payerNumber;not null" json:"payerNumber"`
|
||||
IDAddressSender int32 `gorm:"column:id_address_sender;not null" json:"id_address_sender"`
|
||||
IDAddressDelivery int32 `gorm:"column:id_address_delivery;not null" json:"id_address_delivery"`
|
||||
CodAmount *float64 `gorm:"column:cod_amount" json:"cod_amount"`
|
||||
DeclaredValueAmount *float64 `gorm:"column:declaredValue_amount" json:"declaredValue_amount"`
|
||||
Ref1 *string `gorm:"column:ref1" json:"ref1"`
|
||||
Ref2 *string `gorm:"column:ref2" json:"ref2"`
|
||||
AdditionalInfo *string `gorm:"column:additional_info" json:"additional_info"`
|
||||
LabelsPrinted bool `gorm:"column:labels_printed;not null" json:"labels_printed"`
|
||||
IDSenderAddress int32 `gorm:"column:id_sender_address;not null" json:"id_sender_address"`
|
||||
Cud bool `gorm:"column:cud;not null" json:"cud"`
|
||||
Rod bool `gorm:"column:rod;not null" json:"rod"`
|
||||
Dpde bool `gorm:"column:dpde;not null" json:"dpde"`
|
||||
Dpdnd bool `gorm:"column:dpdnd;not null" json:"dpdnd"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandPackage's table name
|
||||
func (*PsDpdpolandPackage) TableName() string {
|
||||
return TableNamePsDpdpolandPackage
|
||||
}
|
||||
|
||||
var PsDpdpolandPackageCols = struct {
|
||||
IDPackage gormcol.Field
|
||||
IDPackageWs gormcol.Field
|
||||
IDOrder gormcol.Field
|
||||
SessionID gormcol.Field
|
||||
SessionType gormcol.Field
|
||||
PayerNumber gormcol.Field
|
||||
IDAddressSender gormcol.Field
|
||||
IDAddressDelivery gormcol.Field
|
||||
CodAmount gormcol.Field
|
||||
DeclaredValueAmount gormcol.Field
|
||||
Ref1 gormcol.Field
|
||||
Ref2 gormcol.Field
|
||||
AdditionalInfo gormcol.Field
|
||||
LabelsPrinted gormcol.Field
|
||||
IDSenderAddress gormcol.Field
|
||||
Cud gormcol.Field
|
||||
Rod gormcol.Field
|
||||
Dpde gormcol.Field
|
||||
Dpdnd gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDPackage: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "id_package"},
|
||||
IDPackageWs: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "id_package_ws"},
|
||||
IDOrder: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "id_order"},
|
||||
SessionID: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "sessionId"},
|
||||
SessionType: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "sessionType"},
|
||||
PayerNumber: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "payerNumber"},
|
||||
IDAddressSender: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "id_address_sender"},
|
||||
IDAddressDelivery: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "id_address_delivery"},
|
||||
CodAmount: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "cod_amount"},
|
||||
DeclaredValueAmount: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "declaredValue_amount"},
|
||||
Ref1: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "ref1"},
|
||||
Ref2: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "ref2"},
|
||||
AdditionalInfo: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "additional_info"},
|
||||
LabelsPrinted: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "labels_printed"},
|
||||
IDSenderAddress: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "id_sender_address"},
|
||||
Cud: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "cud"},
|
||||
Rod: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "rod"},
|
||||
Dpde: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "dpde"},
|
||||
Dpdnd: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "dpdnd"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandPackage, Column: "date_upd"},
|
||||
}
|
||||
58
app/model/dbmodel/ps_dpdpoland_parcel.go
Normal file
58
app/model/dbmodel/ps_dpdpoland_parcel.go
Normal file
@@ -0,0 +1,58 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandParcel = "ps_dpdpoland_parcel"
|
||||
|
||||
// PsDpdpolandParcel mapped from table <ps_dpdpoland_parcel>
|
||||
type PsDpdpolandParcel struct {
|
||||
IDParcel int32 `gorm:"column:id_parcel;primaryKey" json:"id_parcel"`
|
||||
IDPackageWs int32 `gorm:"column:id_package_ws;not null" json:"id_package_ws"`
|
||||
Waybill string `gorm:"column:waybill;not null" json:"waybill"`
|
||||
Content string `gorm:"column:content;not null" json:"content"`
|
||||
Weight float64 `gorm:"column:weight;not null" json:"weight"`
|
||||
Height float64 `gorm:"column:height;not null" json:"height"`
|
||||
Length float64 `gorm:"column:length;not null" json:"length"`
|
||||
Width float64 `gorm:"column:width;not null" json:"width"`
|
||||
Number int32 `gorm:"column:number;not null" json:"number"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandParcel's table name
|
||||
func (*PsDpdpolandParcel) TableName() string {
|
||||
return TableNamePsDpdpolandParcel
|
||||
}
|
||||
|
||||
var PsDpdpolandParcelCols = struct {
|
||||
IDParcel gormcol.Field
|
||||
IDPackageWs gormcol.Field
|
||||
Waybill gormcol.Field
|
||||
Content gormcol.Field
|
||||
Weight gormcol.Field
|
||||
Height gormcol.Field
|
||||
Length gormcol.Field
|
||||
Width gormcol.Field
|
||||
Number gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDParcel: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "id_parcel"},
|
||||
IDPackageWs: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "id_package_ws"},
|
||||
Waybill: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "waybill"},
|
||||
Content: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "content"},
|
||||
Weight: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "weight"},
|
||||
Height: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "height"},
|
||||
Length: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "length"},
|
||||
Width: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "width"},
|
||||
Number: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "number"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandParcel, Column: "date_upd"},
|
||||
}
|
||||
49
app/model/dbmodel/ps_dpdpoland_parcel_product.go
Normal file
49
app/model/dbmodel/ps_dpdpoland_parcel_product.go
Normal file
@@ -0,0 +1,49 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandParcelProduct = "ps_dpdpoland_parcel_product"
|
||||
|
||||
// PsDpdpolandParcelProduct mapped from table <ps_dpdpoland_parcel_product>
|
||||
type PsDpdpolandParcelProduct struct {
|
||||
IDParcelProduct int32 `gorm:"column:id_parcel_product;primaryKey;autoIncrement:true" json:"id_parcel_product"`
|
||||
IDParcel int32 `gorm:"column:id_parcel;not null" json:"id_parcel"`
|
||||
IDProduct int32 `gorm:"column:id_product;not null" json:"id_product"`
|
||||
IDProductAttribute int32 `gorm:"column:id_product_attribute;not null" json:"id_product_attribute"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
Weight float64 `gorm:"column:weight;not null" json:"weight"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandParcelProduct's table name
|
||||
func (*PsDpdpolandParcelProduct) TableName() string {
|
||||
return TableNamePsDpdpolandParcelProduct
|
||||
}
|
||||
|
||||
var PsDpdpolandParcelProductCols = struct {
|
||||
IDParcelProduct gormcol.Field
|
||||
IDParcel gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
IDProductAttribute gormcol.Field
|
||||
Name gormcol.Field
|
||||
Weight gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDParcelProduct: gormcol.Field{Table: TableNamePsDpdpolandParcelProduct, Column: "id_parcel_product"},
|
||||
IDParcel: gormcol.Field{Table: TableNamePsDpdpolandParcelProduct, Column: "id_parcel"},
|
||||
IDProduct: gormcol.Field{Table: TableNamePsDpdpolandParcelProduct, Column: "id_product"},
|
||||
IDProductAttribute: gormcol.Field{Table: TableNamePsDpdpolandParcelProduct, Column: "id_product_attribute"},
|
||||
Name: gormcol.Field{Table: TableNamePsDpdpolandParcelProduct, Column: "name"},
|
||||
Weight: gormcol.Field{Table: TableNamePsDpdpolandParcelProduct, Column: "weight"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandParcelProduct, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandParcelProduct, Column: "date_upd"},
|
||||
}
|
||||
43
app/model/dbmodel/ps_dpdpoland_payer_number.go
Normal file
43
app/model/dbmodel/ps_dpdpoland_payer_number.go
Normal file
@@ -0,0 +1,43 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandPayerNumber = "ps_dpdpoland_payer_number"
|
||||
|
||||
// PsDpdpolandPayerNumber mapped from table <ps_dpdpoland_payer_number>
|
||||
type PsDpdpolandPayerNumber struct {
|
||||
IDDpdpolandPayerNumber int32 `gorm:"column:id_dpdpoland_payer_number;primaryKey;autoIncrement:true" json:"id_dpdpoland_payer_number"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"`
|
||||
PayerNumber string `gorm:"column:payer_number;not null" json:"payer_number"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandPayerNumber's table name
|
||||
func (*PsDpdpolandPayerNumber) TableName() string {
|
||||
return TableNamePsDpdpolandPayerNumber
|
||||
}
|
||||
|
||||
var PsDpdpolandPayerNumberCols = struct {
|
||||
IDDpdpolandPayerNumber gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
PayerNumber gormcol.Field
|
||||
Name gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDDpdpolandPayerNumber: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "id_dpdpoland_payer_number"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "id_shop"},
|
||||
PayerNumber: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "payer_number"},
|
||||
Name: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "name"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "date_upd"},
|
||||
}
|
||||
61
app/model/dbmodel/ps_dpdpoland_price_rule.go
Normal file
61
app/model/dbmodel/ps_dpdpoland_price_rule.go
Normal file
@@ -0,0 +1,61 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandPriceRule = "ps_dpdpoland_price_rule"
|
||||
|
||||
// PsDpdpolandPriceRule mapped from table <ps_dpdpoland_price_rule>
|
||||
type PsDpdpolandPriceRule struct {
|
||||
IDCsv int32 `gorm:"column:id_csv;primaryKey;autoIncrement:true" json:"id_csv"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"`
|
||||
DateAdd *time.Time `gorm:"column:date_add" json:"date_add"`
|
||||
DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"`
|
||||
IsoCountry string `gorm:"column:iso_country;not null" json:"iso_country"`
|
||||
PriceFrom float64 `gorm:"column:price_from;not null" json:"price_from"`
|
||||
PriceTo float64 `gorm:"column:price_to;not null" json:"price_to"`
|
||||
WeightFrom float64 `gorm:"column:weight_from;not null" json:"weight_from"`
|
||||
WeightTo float64 `gorm:"column:weight_to;not null" json:"weight_to"`
|
||||
ParcelPrice float32 `gorm:"column:parcel_price;not null" json:"parcel_price"`
|
||||
CodPrice string `gorm:"column:cod_price;not null" json:"cod_price"`
|
||||
IDCarrier string `gorm:"column:id_carrier;not null" json:"id_carrier"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandPriceRule's table name
|
||||
func (*PsDpdpolandPriceRule) TableName() string {
|
||||
return TableNamePsDpdpolandPriceRule
|
||||
}
|
||||
|
||||
var PsDpdpolandPriceRuleCols = struct {
|
||||
IDCsv gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
IsoCountry gormcol.Field
|
||||
PriceFrom gormcol.Field
|
||||
PriceTo gormcol.Field
|
||||
WeightFrom gormcol.Field
|
||||
WeightTo gormcol.Field
|
||||
ParcelPrice gormcol.Field
|
||||
CodPrice gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
}{
|
||||
IDCsv: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "id_csv"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "id_shop"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "date_upd"},
|
||||
IsoCountry: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "iso_country"},
|
||||
PriceFrom: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "price_from"},
|
||||
PriceTo: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "price_to"},
|
||||
WeightFrom: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "weight_from"},
|
||||
WeightTo: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "weight_to"},
|
||||
ParcelPrice: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "parcel_price"},
|
||||
CodPrice: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "cod_price"},
|
||||
IDCarrier: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "id_carrier"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_dpdpoland_pudo_cart.go
Normal file
28
app/model/dbmodel/ps_dpdpoland_pudo_cart.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsDpdpolandPudoCart = "ps_dpdpoland_pudo_cart"
|
||||
|
||||
// PsDpdpolandPudoCart mapped from table <ps_dpdpoland_pudo_cart>
|
||||
type PsDpdpolandPudoCart struct {
|
||||
PudoCode string `gorm:"column:pudo_code;not null" json:"pudo_code"`
|
||||
IDCart int32 `gorm:"column:id_cart;primaryKey" json:"id_cart"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandPudoCart's table name
|
||||
func (*PsDpdpolandPudoCart) TableName() string {
|
||||
return TableNamePsDpdpolandPudoCart
|
||||
}
|
||||
|
||||
var PsDpdpolandPudoCartCols = struct {
|
||||
PudoCode gormcol.Field
|
||||
IDCart gormcol.Field
|
||||
}{
|
||||
PudoCode: gormcol.Field{Table: TableNamePsDpdpolandPudoCart, Column: "pudo_code"},
|
||||
IDCart: gormcol.Field{Table: TableNamePsDpdpolandPudoCart, Column: "id_cart"},
|
||||
}
|
||||
61
app/model/dbmodel/ps_dpdpoland_sender_address.go
Normal file
61
app/model/dbmodel/ps_dpdpoland_sender_address.go
Normal file
@@ -0,0 +1,61 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandSenderAddress = "ps_dpdpoland_sender_address"
|
||||
|
||||
// PsDpdpolandSenderAddress mapped from table <ps_dpdpoland_sender_address>
|
||||
type PsDpdpolandSenderAddress struct {
|
||||
IDSenderAddress int32 `gorm:"column:id_sender_address;primaryKey;autoIncrement:true" json:"id_sender_address"`
|
||||
Alias string `gorm:"column:alias;not null" json:"alias"`
|
||||
Company string `gorm:"column:company;not null" json:"company"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
Address string `gorm:"column:address;not null" json:"address"`
|
||||
City string `gorm:"column:city;not null" json:"city"`
|
||||
Email string `gorm:"column:email;not null" json:"email"`
|
||||
Postcode string `gorm:"column:postcode;not null" json:"postcode"`
|
||||
Phone string `gorm:"column:phone;not null" json:"phone"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandSenderAddress's table name
|
||||
func (*PsDpdpolandSenderAddress) TableName() string {
|
||||
return TableNamePsDpdpolandSenderAddress
|
||||
}
|
||||
|
||||
var PsDpdpolandSenderAddressCols = struct {
|
||||
IDSenderAddress gormcol.Field
|
||||
Alias gormcol.Field
|
||||
Company gormcol.Field
|
||||
Name gormcol.Field
|
||||
Address gormcol.Field
|
||||
City gormcol.Field
|
||||
Email gormcol.Field
|
||||
Postcode gormcol.Field
|
||||
Phone gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDSenderAddress: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "id_sender_address"},
|
||||
Alias: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "alias"},
|
||||
Company: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "company"},
|
||||
Name: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "name"},
|
||||
Address: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "address"},
|
||||
City: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "city"},
|
||||
Email: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "email"},
|
||||
Postcode: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "postcode"},
|
||||
Phone: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "phone"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "id_shop"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "date_upd"},
|
||||
}
|
||||
52
app/model/dbmodel/ps_emailsubscription.go
Normal file
52
app/model/dbmodel/ps_emailsubscription.go
Normal file
@@ -0,0 +1,52 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsEmailsubscription = "ps_emailsubscription"
|
||||
|
||||
// PsEmailsubscription mapped from table <ps_emailsubscription>
|
||||
type PsEmailsubscription struct {
|
||||
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"`
|
||||
IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"`
|
||||
Email string `gorm:"column:email;not null" json:"email"`
|
||||
NewsletterDateAdd *time.Time `gorm:"column:newsletter_date_add" json:"newsletter_date_add"`
|
||||
IPRegistrationNewsletter string `gorm:"column:ip_registration_newsletter;not null" json:"ip_registration_newsletter"`
|
||||
HTTPReferer *string `gorm:"column:http_referer" json:"http_referer"`
|
||||
Active bool `gorm:"column:active;not null" json:"active"`
|
||||
IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"`
|
||||
}
|
||||
|
||||
// TableName PsEmailsubscription's table name
|
||||
func (*PsEmailsubscription) TableName() string {
|
||||
return TableNamePsEmailsubscription
|
||||
}
|
||||
|
||||
var PsEmailsubscriptionCols = struct {
|
||||
ID gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
Email gormcol.Field
|
||||
NewsletterDateAdd gormcol.Field
|
||||
IPRegistrationNewsletter gormcol.Field
|
||||
HTTPReferer gormcol.Field
|
||||
Active gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
}{
|
||||
ID: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "id"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "id_shop"},
|
||||
IDShopGroup: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "id_shop_group"},
|
||||
Email: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "email"},
|
||||
NewsletterDateAdd: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "newsletter_date_add"},
|
||||
IPRegistrationNewsletter: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "ip_registration_newsletter"},
|
||||
HTTPReferer: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "http_referer"},
|
||||
Active: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "active"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "id_lang"},
|
||||
}
|
||||
109
app/model/dbmodel/ps_employee.go
Normal file
109
app/model/dbmodel/ps_employee.go
Normal file
@@ -0,0 +1,109 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsEmployee = "ps_employee"
|
||||
|
||||
// PsEmployee mapped from table <ps_employee>
|
||||
type PsEmployee struct {
|
||||
IDEmployee int32 `gorm:"column:id_employee;primaryKey;autoIncrement:true;index:id_employee_passwd,priority:1" json:"id_employee"`
|
||||
IDProfile int32 `gorm:"column:id_profile;not null;index:id_profile,priority:1" json:"id_profile"`
|
||||
IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"`
|
||||
Lastname string `gorm:"column:lastname;not null" json:"lastname"`
|
||||
Firstname string `gorm:"column:firstname;not null" json:"firstname"`
|
||||
Email string `gorm:"column:email;not null;index:employee_login,priority:1" json:"email"`
|
||||
Passwd string `gorm:"column:passwd;not null;index:employee_login,priority:2;index:id_employee_passwd,priority:2" json:"passwd"`
|
||||
LastPasswdGen time.Time `gorm:"column:last_passwd_gen;not null;default:current_timestamp()" json:"last_passwd_gen"`
|
||||
StatsDateFrom *time.Time `gorm:"column:stats_date_from" json:"stats_date_from"`
|
||||
StatsDateTo *time.Time `gorm:"column:stats_date_to" json:"stats_date_to"`
|
||||
StatsCompareFrom *time.Time `gorm:"column:stats_compare_from" json:"stats_compare_from"`
|
||||
StatsCompareTo *time.Time `gorm:"column:stats_compare_to" json:"stats_compare_to"`
|
||||
StatsCompareOption int32 `gorm:"column:stats_compare_option;not null;default:1" json:"stats_compare_option"`
|
||||
PreselectDateRange *string `gorm:"column:preselect_date_range" json:"preselect_date_range"`
|
||||
BoColor *string `gorm:"column:bo_color" json:"bo_color"`
|
||||
BoTheme *string `gorm:"column:bo_theme" json:"bo_theme"`
|
||||
BoCSS *string `gorm:"column:bo_css" json:"bo_css"`
|
||||
DefaultTab int32 `gorm:"column:default_tab;not null" json:"default_tab"`
|
||||
BoWidth int32 `gorm:"column:bo_width;not null" json:"bo_width"`
|
||||
BoMenu bool `gorm:"column:bo_menu;not null;default:1" json:"bo_menu"`
|
||||
Active bool `gorm:"column:active;not null" json:"active"`
|
||||
Optin bool `gorm:"column:optin;not null;default:1" json:"optin"`
|
||||
IDLastOrder int32 `gorm:"column:id_last_order;not null" json:"id_last_order"`
|
||||
IDLastCustomerMessage int32 `gorm:"column:id_last_customer_message;not null" json:"id_last_customer_message"`
|
||||
IDLastCustomer int32 `gorm:"column:id_last_customer;not null" json:"id_last_customer"`
|
||||
LastConnectionDate *time.Time `gorm:"column:last_connection_date" json:"last_connection_date"`
|
||||
ResetPasswordToken *string `gorm:"column:reset_password_token" json:"reset_password_token"`
|
||||
ResetPasswordValidity *time.Time `gorm:"column:reset_password_validity" json:"reset_password_validity"`
|
||||
}
|
||||
|
||||
// TableName PsEmployee's table name
|
||||
func (*PsEmployee) TableName() string {
|
||||
return TableNamePsEmployee
|
||||
}
|
||||
|
||||
var PsEmployeeCols = struct {
|
||||
IDEmployee gormcol.Field
|
||||
IDProfile gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Lastname gormcol.Field
|
||||
Firstname gormcol.Field
|
||||
Email gormcol.Field
|
||||
Passwd gormcol.Field
|
||||
LastPasswdGen gormcol.Field
|
||||
StatsDateFrom gormcol.Field
|
||||
StatsDateTo gormcol.Field
|
||||
StatsCompareFrom gormcol.Field
|
||||
StatsCompareTo gormcol.Field
|
||||
StatsCompareOption gormcol.Field
|
||||
PreselectDateRange gormcol.Field
|
||||
BoColor gormcol.Field
|
||||
BoTheme gormcol.Field
|
||||
BoCSS gormcol.Field
|
||||
DefaultTab gormcol.Field
|
||||
BoWidth gormcol.Field
|
||||
BoMenu gormcol.Field
|
||||
Active gormcol.Field
|
||||
Optin gormcol.Field
|
||||
IDLastOrder gormcol.Field
|
||||
IDLastCustomerMessage gormcol.Field
|
||||
IDLastCustomer gormcol.Field
|
||||
LastConnectionDate gormcol.Field
|
||||
ResetPasswordToken gormcol.Field
|
||||
ResetPasswordValidity gormcol.Field
|
||||
}{
|
||||
IDEmployee: gormcol.Field{Table: TableNamePsEmployee, Column: "id_employee"},
|
||||
IDProfile: gormcol.Field{Table: TableNamePsEmployee, Column: "id_profile"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsEmployee, Column: "id_lang"},
|
||||
Lastname: gormcol.Field{Table: TableNamePsEmployee, Column: "lastname"},
|
||||
Firstname: gormcol.Field{Table: TableNamePsEmployee, Column: "firstname"},
|
||||
Email: gormcol.Field{Table: TableNamePsEmployee, Column: "email"},
|
||||
Passwd: gormcol.Field{Table: TableNamePsEmployee, Column: "passwd"},
|
||||
LastPasswdGen: gormcol.Field{Table: TableNamePsEmployee, Column: "last_passwd_gen"},
|
||||
StatsDateFrom: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_date_from"},
|
||||
StatsDateTo: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_date_to"},
|
||||
StatsCompareFrom: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_compare_from"},
|
||||
StatsCompareTo: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_compare_to"},
|
||||
StatsCompareOption: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_compare_option"},
|
||||
PreselectDateRange: gormcol.Field{Table: TableNamePsEmployee, Column: "preselect_date_range"},
|
||||
BoColor: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_color"},
|
||||
BoTheme: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_theme"},
|
||||
BoCSS: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_css"},
|
||||
DefaultTab: gormcol.Field{Table: TableNamePsEmployee, Column: "default_tab"},
|
||||
BoWidth: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_width"},
|
||||
BoMenu: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_menu"},
|
||||
Active: gormcol.Field{Table: TableNamePsEmployee, Column: "active"},
|
||||
Optin: gormcol.Field{Table: TableNamePsEmployee, Column: "optin"},
|
||||
IDLastOrder: gormcol.Field{Table: TableNamePsEmployee, Column: "id_last_order"},
|
||||
IDLastCustomerMessage: gormcol.Field{Table: TableNamePsEmployee, Column: "id_last_customer_message"},
|
||||
IDLastCustomer: gormcol.Field{Table: TableNamePsEmployee, Column: "id_last_customer"},
|
||||
LastConnectionDate: gormcol.Field{Table: TableNamePsEmployee, Column: "last_connection_date"},
|
||||
ResetPasswordToken: gormcol.Field{Table: TableNamePsEmployee, Column: "reset_password_token"},
|
||||
ResetPasswordValidity: gormcol.Field{Table: TableNamePsEmployee, Column: "reset_password_validity"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_employee_shop.go
Normal file
28
app/model/dbmodel/ps_employee_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsEmployeeShop = "ps_employee_shop"
|
||||
|
||||
// PsEmployeeShop mapped from table <ps_employee_shop>
|
||||
type PsEmployeeShop struct {
|
||||
IDEmployee int32 `gorm:"column:id_employee;primaryKey" json:"id_employee"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsEmployeeShop's table name
|
||||
func (*PsEmployeeShop) TableName() string {
|
||||
return TableNamePsEmployeeShop
|
||||
}
|
||||
|
||||
var PsEmployeeShopCols = struct {
|
||||
IDEmployee gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDEmployee: gormcol.Field{Table: TableNamePsEmployeeShop, Column: "id_employee"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsEmployeeShop, Column: "id_shop"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_export_invoice.go
Normal file
31
app/model/dbmodel/ps_export_invoice.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsExportInvoice = "ps_export_invoice"
|
||||
|
||||
// PsExportInvoice mapped from table <ps_export_invoice>
|
||||
type PsExportInvoice struct {
|
||||
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
||||
IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"`
|
||||
IsExport bool `gorm:"column:is_export;not null" json:"is_export"`
|
||||
}
|
||||
|
||||
// TableName PsExportInvoice's table name
|
||||
func (*PsExportInvoice) TableName() string {
|
||||
return TableNamePsExportInvoice
|
||||
}
|
||||
|
||||
var PsExportInvoiceCols = struct {
|
||||
ID gormcol.Field
|
||||
IDOrder gormcol.Field
|
||||
IsExport gormcol.Field
|
||||
}{
|
||||
ID: gormcol.Field{Table: TableNamePsExportInvoice, Column: "id"},
|
||||
IDOrder: gormcol.Field{Table: TableNamePsExportInvoice, Column: "id_order"},
|
||||
IsExport: gormcol.Field{Table: TableNamePsExportInvoice, Column: "is_export"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_feature.go
Normal file
28
app/model/dbmodel/ps_feature.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsFeature = "ps_feature"
|
||||
|
||||
// PsFeature mapped from table <ps_feature>
|
||||
type PsFeature struct {
|
||||
IDFeature int32 `gorm:"column:id_feature;primaryKey;autoIncrement:true" json:"id_feature"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
}
|
||||
|
||||
// TableName PsFeature's table name
|
||||
func (*PsFeature) TableName() string {
|
||||
return TableNamePsFeature
|
||||
}
|
||||
|
||||
var PsFeatureCols = struct {
|
||||
IDFeature gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDFeature: gormcol.Field{Table: TableNamePsFeature, Column: "id_feature"},
|
||||
Position: gormcol.Field{Table: TableNamePsFeature, Column: "position"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_feature_lang.go
Normal file
31
app/model/dbmodel/ps_feature_lang.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsFeatureLang = "ps_feature_lang"
|
||||
|
||||
// PsFeatureLang mapped from table <ps_feature_lang>
|
||||
type PsFeatureLang struct {
|
||||
IDFeature int32 `gorm:"column:id_feature;primaryKey" json:"id_feature"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey;index:id_lang,priority:1" json:"id_lang"`
|
||||
Name *string `gorm:"column:name;index:id_lang,priority:2" json:"name"`
|
||||
}
|
||||
|
||||
// TableName PsFeatureLang's table name
|
||||
func (*PsFeatureLang) TableName() string {
|
||||
return TableNamePsFeatureLang
|
||||
}
|
||||
|
||||
var PsFeatureLangCols = struct {
|
||||
IDFeature gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDFeature: gormcol.Field{Table: TableNamePsFeatureLang, Column: "id_feature"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsFeatureLang, Column: "id_lang"},
|
||||
Name: gormcol.Field{Table: TableNamePsFeatureLang, Column: "name"},
|
||||
}
|
||||
31
app/model/dbmodel/ps_feature_product.go
Normal file
31
app/model/dbmodel/ps_feature_product.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsFeatureProduct = "ps_feature_product"
|
||||
|
||||
// PsFeatureProduct mapped from table <ps_feature_product>
|
||||
type PsFeatureProduct struct {
|
||||
IDFeature int32 `gorm:"column:id_feature;primaryKey;index:idx_ps_feature_product,priority:2" json:"id_feature"`
|
||||
IDProduct int32 `gorm:"column:id_product;primaryKey;index:idx_ps_feature_product,priority:1;index:id_product,priority:1" json:"id_product"`
|
||||
IDFeatureValue int32 `gorm:"column:id_feature_value;primaryKey;index:idx_ps_feature_product,priority:3;index:id_feature_value,priority:1" json:"id_feature_value"`
|
||||
}
|
||||
|
||||
// TableName PsFeatureProduct's table name
|
||||
func (*PsFeatureProduct) TableName() string {
|
||||
return TableNamePsFeatureProduct
|
||||
}
|
||||
|
||||
var PsFeatureProductCols = struct {
|
||||
IDFeature gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
IDFeatureValue gormcol.Field
|
||||
}{
|
||||
IDFeature: gormcol.Field{Table: TableNamePsFeatureProduct, Column: "id_feature"},
|
||||
IDProduct: gormcol.Field{Table: TableNamePsFeatureProduct, Column: "id_product"},
|
||||
IDFeatureValue: gormcol.Field{Table: TableNamePsFeatureProduct, Column: "id_feature_value"},
|
||||
}
|
||||
28
app/model/dbmodel/ps_feature_shop.go
Normal file
28
app/model/dbmodel/ps_feature_shop.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsFeatureShop = "ps_feature_shop"
|
||||
|
||||
// PsFeatureShop mapped from table <ps_feature_shop>
|
||||
type PsFeatureShop struct {
|
||||
IDFeature int32 `gorm:"column:id_feature;primaryKey" json:"id_feature"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsFeatureShop's table name
|
||||
func (*PsFeatureShop) TableName() string {
|
||||
return TableNamePsFeatureShop
|
||||
}
|
||||
|
||||
var PsFeatureShopCols = struct {
|
||||
IDFeature gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDFeature: gormcol.Field{Table: TableNamePsFeatureShop, Column: "id_feature"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsFeatureShop, Column: "id_shop"},
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user