diff --git a/app/model/dbmodel/ps_access.go b/app/model/dbmodel/ps_access.go new file mode 100644 index 0000000..2aaa89d --- /dev/null +++ b/app/model/dbmodel/ps_access.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_accessory.go b/app/model/dbmodel/ps_accessory.go new file mode 100644 index 0000000..60341a7 --- /dev/null +++ b/app/model/dbmodel/ps_accessory.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_address.go b/app/model/dbmodel/ps_address.go new file mode 100644 index 0000000..c76c5fb --- /dev/null +++ b/app/model/dbmodel/ps_address.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_address_format.go b/app/model/dbmodel/ps_address_format.go new file mode 100644 index 0000000..4aeaa20 --- /dev/null +++ b/app/model/dbmodel/ps_address_format.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_admin_filter.go b/app/model/dbmodel/ps_admin_filter.go new file mode 100644 index 0000000..733b18d --- /dev/null +++ b/app/model/dbmodel/ps_admin_filter.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_advice.go b/app/model/dbmodel/ps_advice.go new file mode 100644 index 0000000..753db0c --- /dev/null +++ b/app/model/dbmodel/ps_advice.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_advice_lang.go b/app/model/dbmodel/ps_advice_lang.go new file mode 100644 index 0000000..a9d1e2b --- /dev/null +++ b/app/model/dbmodel/ps_advice_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_alias.go b/app/model/dbmodel/ps_alias.go new file mode 100644 index 0000000..44dca9e --- /dev/null +++ b/app/model/dbmodel/ps_alias.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_attachment.go b/app/model/dbmodel/ps_attachment.go new file mode 100644 index 0000000..fda14e7 --- /dev/null +++ b/app/model/dbmodel/ps_attachment.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_attachment_lang.go b/app/model/dbmodel/ps_attachment_lang.go new file mode 100644 index 0000000..0d4e03d --- /dev/null +++ b/app/model/dbmodel/ps_attachment_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_attribute.go b/app/model/dbmodel/ps_attribute.go new file mode 100644 index 0000000..9940289 --- /dev/null +++ b/app/model/dbmodel/ps_attribute.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_attribute_group.go b/app/model/dbmodel/ps_attribute_group.go new file mode 100644 index 0000000..fd9834b --- /dev/null +++ b/app/model/dbmodel/ps_attribute_group.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_attribute_group_lang.go b/app/model/dbmodel/ps_attribute_group_lang.go new file mode 100644 index 0000000..9925d97 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_group_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_attribute_group_shop.go b/app/model/dbmodel/ps_attribute_group_shop.go new file mode 100644 index 0000000..f615094 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_group_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_attribute_impact.go b/app/model/dbmodel/ps_attribute_impact.go new file mode 100644 index 0000000..2237656 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_impact.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_attribute_lang.go b/app/model/dbmodel/ps_attribute_lang.go new file mode 100644 index 0000000..09ab2e8 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_attribute_shop.go b/app/model/dbmodel/ps_attribute_shop.go new file mode 100644 index 0000000..5441f1d --- /dev/null +++ b/app/model/dbmodel/ps_attribute_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_authorization_role.go b/app/model/dbmodel/ps_authorization_role.go new file mode 100644 index 0000000..2470b5a --- /dev/null +++ b/app/model/dbmodel/ps_authorization_role.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_badge.go b/app/model/dbmodel/ps_badge.go new file mode 100644 index 0000000..82974fa --- /dev/null +++ b/app/model/dbmodel/ps_badge.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_badge_lang.go b/app/model/dbmodel/ps_badge_lang.go new file mode 100644 index 0000000..b2b612d --- /dev/null +++ b/app/model/dbmodel/ps_badge_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_carrier.go b/app/model/dbmodel/ps_carrier.go new file mode 100644 index 0000000..abcd0ce --- /dev/null +++ b/app/model/dbmodel/ps_carrier.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_carrier_group.go b/app/model/dbmodel/ps_carrier_group.go new file mode 100644 index 0000000..1d98b90 --- /dev/null +++ b/app/model/dbmodel/ps_carrier_group.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_carrier_lang.go b/app/model/dbmodel/ps_carrier_lang.go new file mode 100644 index 0000000..152b9cf --- /dev/null +++ b/app/model/dbmodel/ps_carrier_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_carrier_shop.go b/app/model/dbmodel/ps_carrier_shop.go new file mode 100644 index 0000000..657ad10 --- /dev/null +++ b/app/model/dbmodel/ps_carrier_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_carrier_tax_rules_group_shop.go b/app/model/dbmodel/ps_carrier_tax_rules_group_shop.go new file mode 100644 index 0000000..63e2596 --- /dev/null +++ b/app/model/dbmodel/ps_carrier_tax_rules_group_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_carrier_zone.go b/app/model/dbmodel/ps_carrier_zone.go new file mode 100644 index 0000000..5898ba9 --- /dev/null +++ b/app/model/dbmodel/ps_carrier_zone.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart.go b/app/model/dbmodel/ps_cart.go new file mode 100644 index 0000000..470031d --- /dev/null +++ b/app/model/dbmodel/ps_cart.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_cart_rule.go b/app/model/dbmodel/ps_cart_cart_rule.go new file mode 100644 index 0000000..5f02d46 --- /dev/null +++ b/app/model/dbmodel/ps_cart_cart_rule.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_product.go b/app/model/dbmodel/ps_cart_product.go new file mode 100644 index 0000000..977e836 --- /dev/null +++ b/app/model/dbmodel/ps_cart_product.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule.go b/app/model/dbmodel/ps_cart_rule.go new file mode 100644 index 0000000..d6736ae --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule_carrier.go b/app/model/dbmodel/ps_cart_rule_carrier.go new file mode 100644 index 0000000..e612ca6 --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_carrier.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule_combination.go b/app/model/dbmodel/ps_cart_rule_combination.go new file mode 100644 index 0000000..4895271 --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_combination.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule_country.go b/app/model/dbmodel/ps_cart_rule_country.go new file mode 100644 index 0000000..a23fdda --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_country.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule_group.go b/app/model/dbmodel/ps_cart_rule_group.go new file mode 100644 index 0000000..9494a9e --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_group.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule_lang.go b/app/model/dbmodel/ps_cart_rule_lang.go new file mode 100644 index 0000000..eb5501e --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule_product_rule.go b/app/model/dbmodel/ps_cart_rule_product_rule.go new file mode 100644 index 0000000..d0a08e3 --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_product_rule.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule_product_rule_group.go b/app/model/dbmodel/ps_cart_rule_product_rule_group.go new file mode 100644 index 0000000..c9cdaab --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_product_rule_group.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule_product_rule_value.go b/app/model/dbmodel/ps_cart_rule_product_rule_value.go new file mode 100644 index 0000000..5638341 --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_product_rule_value.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cart_rule_shop.go b/app/model/dbmodel/ps_cart_rule_shop.go new file mode 100644 index 0000000..36eb2b3 --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_category.go b/app/model/dbmodel/ps_category.go new file mode 100644 index 0000000..73d618b --- /dev/null +++ b/app/model/dbmodel/ps_category.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_category_group.go b/app/model/dbmodel/ps_category_group.go new file mode 100644 index 0000000..0d6af09 --- /dev/null +++ b/app/model/dbmodel/ps_category_group.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_category_lang.go b/app/model/dbmodel/ps_category_lang.go new file mode 100644 index 0000000..e273f52 --- /dev/null +++ b/app/model/dbmodel/ps_category_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_category_product.go b/app/model/dbmodel/ps_category_product.go new file mode 100644 index 0000000..377a603 --- /dev/null +++ b/app/model/dbmodel/ps_category_product.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_category_shop.go b/app/model/dbmodel/ps_category_shop.go new file mode 100644 index 0000000..38c45cc --- /dev/null +++ b/app/model/dbmodel/ps_category_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cms.go b/app/model/dbmodel/ps_cms.go new file mode 100644 index 0000000..032f544 --- /dev/null +++ b/app/model/dbmodel/ps_cms.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cms_category.go b/app/model/dbmodel/ps_cms_category.go new file mode 100644 index 0000000..9bb4e70 --- /dev/null +++ b/app/model/dbmodel/ps_cms_category.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cms_category_lang.go b/app/model/dbmodel/ps_cms_category_lang.go new file mode 100644 index 0000000..f202754 --- /dev/null +++ b/app/model/dbmodel/ps_cms_category_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cms_category_shop.go b/app/model/dbmodel/ps_cms_category_shop.go new file mode 100644 index 0000000..895fe03 --- /dev/null +++ b/app/model/dbmodel/ps_cms_category_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cms_lang.go b/app/model/dbmodel/ps_cms_lang.go new file mode 100644 index 0000000..8630c08 --- /dev/null +++ b/app/model/dbmodel/ps_cms_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cms_role.go b/app/model/dbmodel/ps_cms_role.go new file mode 100644 index 0000000..861bed4 --- /dev/null +++ b/app/model/dbmodel/ps_cms_role.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cms_role_lang.go b/app/model/dbmodel/ps_cms_role_lang.go new file mode 100644 index 0000000..9153987 --- /dev/null +++ b/app/model/dbmodel/ps_cms_role_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_cms_shop.go b/app/model/dbmodel/ps_cms_shop.go new file mode 100644 index 0000000..c330ed3 --- /dev/null +++ b/app/model/dbmodel/ps_cms_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_condition.go b/app/model/dbmodel/ps_condition.go new file mode 100644 index 0000000..13fdf96 --- /dev/null +++ b/app/model/dbmodel/ps_condition.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_condition_advice.go b/app/model/dbmodel/ps_condition_advice.go new file mode 100644 index 0000000..f8d87d1 --- /dev/null +++ b/app/model/dbmodel/ps_condition_advice.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_condition_badge.go b/app/model/dbmodel/ps_condition_badge.go new file mode 100644 index 0000000..7eed7ad --- /dev/null +++ b/app/model/dbmodel/ps_condition_badge.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_configuration.go b/app/model/dbmodel/ps_configuration.go new file mode 100644 index 0000000..8cf854f --- /dev/null +++ b/app/model/dbmodel/ps_configuration.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_configuration_kpi.go b/app/model/dbmodel/ps_configuration_kpi.go new file mode 100644 index 0000000..880abfb --- /dev/null +++ b/app/model/dbmodel/ps_configuration_kpi.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_configuration_kpi_lang.go b/app/model/dbmodel/ps_configuration_kpi_lang.go new file mode 100644 index 0000000..aaa3939 --- /dev/null +++ b/app/model/dbmodel/ps_configuration_kpi_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_configuration_lang.go b/app/model/dbmodel/ps_configuration_lang.go new file mode 100644 index 0000000..a063f92 --- /dev/null +++ b/app/model/dbmodel/ps_configuration_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_connections.go b/app/model/dbmodel/ps_connections.go new file mode 100644 index 0000000..92f0ba4 --- /dev/null +++ b/app/model/dbmodel/ps_connections.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_connections_page.go b/app/model/dbmodel/ps_connections_page.go new file mode 100644 index 0000000..f57e210 --- /dev/null +++ b/app/model/dbmodel/ps_connections_page.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_connections_source.go b/app/model/dbmodel/ps_connections_source.go new file mode 100644 index 0000000..662d92f --- /dev/null +++ b/app/model/dbmodel/ps_connections_source.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_contact.go b/app/model/dbmodel/ps_contact.go new file mode 100644 index 0000000..8ac3931 --- /dev/null +++ b/app/model/dbmodel/ps_contact.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_contact_lang.go b/app/model/dbmodel/ps_contact_lang.go new file mode 100644 index 0000000..fa25f7d --- /dev/null +++ b/app/model/dbmodel/ps_contact_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_contact_shop.go b/app/model/dbmodel/ps_contact_shop.go new file mode 100644 index 0000000..55d6750 --- /dev/null +++ b/app/model/dbmodel/ps_contact_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_country.go b/app/model/dbmodel/ps_country.go new file mode 100644 index 0000000..3393994 --- /dev/null +++ b/app/model/dbmodel/ps_country.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_country_lang.go b/app/model/dbmodel/ps_country_lang.go new file mode 100644 index 0000000..544e15a --- /dev/null +++ b/app/model/dbmodel/ps_country_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_country_shop.go b/app/model/dbmodel/ps_country_shop.go new file mode 100644 index 0000000..2e6107a --- /dev/null +++ b/app/model/dbmodel/ps_country_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_currency.go b/app/model/dbmodel/ps_currency.go new file mode 100644 index 0000000..006e8ab --- /dev/null +++ b/app/model/dbmodel/ps_currency.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_currency_lang.go b/app/model/dbmodel/ps_currency_lang.go new file mode 100644 index 0000000..dd71d72 --- /dev/null +++ b/app/model/dbmodel/ps_currency_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_currency_shop.go b/app/model/dbmodel/ps_currency_shop.go new file mode 100644 index 0000000..23ec616 --- /dev/null +++ b/app/model/dbmodel/ps_currency_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_customer.go b/app/model/dbmodel/ps_customer.go new file mode 100644 index 0000000..85ea67f --- /dev/null +++ b/app/model/dbmodel/ps_customer.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_customer_group.go b/app/model/dbmodel/ps_customer_group.go new file mode 100644 index 0000000..92cbc5d --- /dev/null +++ b/app/model/dbmodel/ps_customer_group.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_customer_message.go b/app/model/dbmodel/ps_customer_message.go new file mode 100644 index 0000000..d404150 --- /dev/null +++ b/app/model/dbmodel/ps_customer_message.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_customer_message_sync_imap.go b/app/model/dbmodel/ps_customer_message_sync_imap.go new file mode 100644 index 0000000..e3539bf --- /dev/null +++ b/app/model/dbmodel/ps_customer_message_sync_imap.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_customer_thread.go b/app/model/dbmodel/ps_customer_thread.go new file mode 100644 index 0000000..96ea0a4 --- /dev/null +++ b/app/model/dbmodel/ps_customer_thread.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_customization.go b/app/model/dbmodel/ps_customization.go new file mode 100644 index 0000000..2a18998 --- /dev/null +++ b/app/model/dbmodel/ps_customization.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_customization_field.go b/app/model/dbmodel/ps_customization_field.go new file mode 100644 index 0000000..60a067e --- /dev/null +++ b/app/model/dbmodel/ps_customization_field.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_customization_field_lang.go b/app/model/dbmodel/ps_customization_field_lang.go new file mode 100644 index 0000000..8ee659c --- /dev/null +++ b/app/model/dbmodel/ps_customization_field_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_customized_data.go b/app/model/dbmodel/ps_customized_data.go new file mode 100644 index 0000000..09f960d --- /dev/null +++ b/app/model/dbmodel/ps_customized_data.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_date_range.go b/app/model/dbmodel/ps_date_range.go new file mode 100644 index 0000000..5ca7e69 --- /dev/null +++ b/app/model/dbmodel/ps_date_range.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_delivery.go b/app/model/dbmodel/ps_delivery.go new file mode 100644 index 0000000..232d367 --- /dev/null +++ b/app/model/dbmodel/ps_delivery.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_carrier.go b/app/model/dbmodel/ps_dpdpoland_carrier.go new file mode 100644 index 0000000..132648a --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_carrier.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_country.go b/app/model/dbmodel/ps_dpdpoland_country.go new file mode 100644 index 0000000..46d9363 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_country.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_manifest.go b/app/model/dbmodel/ps_dpdpoland_manifest.go new file mode 100644 index 0000000..4e9aeeb --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_manifest.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_package.go b/app/model/dbmodel/ps_dpdpoland_package.go new file mode 100644 index 0000000..d5c988a --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_package.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_parcel.go b/app/model/dbmodel/ps_dpdpoland_parcel.go new file mode 100644 index 0000000..4d177b5 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_parcel.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_parcel_product.go b/app/model/dbmodel/ps_dpdpoland_parcel_product.go new file mode 100644 index 0000000..84e8895 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_parcel_product.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_payer_number.go b/app/model/dbmodel/ps_dpdpoland_payer_number.go new file mode 100644 index 0000000..fdde562 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_payer_number.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_price_rule.go b/app/model/dbmodel/ps_dpdpoland_price_rule.go new file mode 100644 index 0000000..c094b9c --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_price_rule.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_pudo_cart.go b/app/model/dbmodel/ps_dpdpoland_pudo_cart.go new file mode 100644 index 0000000..1c5a7e9 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_pudo_cart.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_dpdpoland_sender_address.go b/app/model/dbmodel/ps_dpdpoland_sender_address.go new file mode 100644 index 0000000..c729e90 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_sender_address.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_emailsubscription.go b/app/model/dbmodel/ps_emailsubscription.go new file mode 100644 index 0000000..bbe3640 --- /dev/null +++ b/app/model/dbmodel/ps_emailsubscription.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_employee.go b/app/model/dbmodel/ps_employee.go new file mode 100644 index 0000000..8a3ab63 --- /dev/null +++ b/app/model/dbmodel/ps_employee.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_employee_shop.go b/app/model/dbmodel/ps_employee_shop.go new file mode 100644 index 0000000..5baaaaf --- /dev/null +++ b/app/model/dbmodel/ps_employee_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_export_invoice.go b/app/model/dbmodel/ps_export_invoice.go new file mode 100644 index 0000000..4d278aa --- /dev/null +++ b/app/model/dbmodel/ps_export_invoice.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_feature.go b/app/model/dbmodel/ps_feature.go new file mode 100644 index 0000000..528cdfc --- /dev/null +++ b/app/model/dbmodel/ps_feature.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_feature_lang.go b/app/model/dbmodel/ps_feature_lang.go new file mode 100644 index 0000000..abb1656 --- /dev/null +++ b/app/model/dbmodel/ps_feature_lang.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_feature_product.go b/app/model/dbmodel/ps_feature_product.go new file mode 100644 index 0000000..2f8a807 --- /dev/null +++ b/app/model/dbmodel/ps_feature_product.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_feature_shop.go b/app/model/dbmodel/ps_feature_shop.go new file mode 100644 index 0000000..75cda93 --- /dev/null +++ b/app/model/dbmodel/ps_feature_shop.go @@ -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 +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"}, +} diff --git a/app/model/dbmodel/ps_feature_value.go b/app/model/dbmodel/ps_feature_value.go new file mode 100644 index 0000000..c226a01 --- /dev/null +++ b/app/model/dbmodel/ps_feature_value.go @@ -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 TableNamePsFeatureValue = "ps_feature_value" + +// PsFeatureValue mapped from table +type PsFeatureValue struct { + IDFeatureValue int32 `gorm:"column:id_feature_value;primaryKey;autoIncrement:true" json:"id_feature_value"` + IDFeature int32 `gorm:"column:id_feature;not null;index:feature,priority:1" json:"id_feature"` + Custom *int32 `gorm:"column:custom" json:"custom"` +} + +// TableName PsFeatureValue's table name +func (*PsFeatureValue) TableName() string { + return TableNamePsFeatureValue +} + +var PsFeatureValueCols = struct { + IDFeatureValue gormcol.Field + IDFeature gormcol.Field + Custom gormcol.Field +}{ + IDFeatureValue: gormcol.Field{Table: TableNamePsFeatureValue, Column: "id_feature_value"}, + IDFeature: gormcol.Field{Table: TableNamePsFeatureValue, Column: "id_feature"}, + Custom: gormcol.Field{Table: TableNamePsFeatureValue, Column: "custom"}, +} diff --git a/app/model/dbmodel/ps_feature_value_lang.go b/app/model/dbmodel/ps_feature_value_lang.go new file mode 100644 index 0000000..6620f9a --- /dev/null +++ b/app/model/dbmodel/ps_feature_value_lang.go @@ -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 TableNamePsFeatureValueLang = "ps_feature_value_lang" + +// PsFeatureValueLang mapped from table +type PsFeatureValueLang struct { + IDFeatureValue int32 `gorm:"column:id_feature_value;primaryKey" json:"id_feature_value"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Value *string `gorm:"column:value" json:"value"` +} + +// TableName PsFeatureValueLang's table name +func (*PsFeatureValueLang) TableName() string { + return TableNamePsFeatureValueLang +} + +var PsFeatureValueLangCols = struct { + IDFeatureValue gormcol.Field + IDLang gormcol.Field + Value gormcol.Field +}{ + IDFeatureValue: gormcol.Field{Table: TableNamePsFeatureValueLang, Column: "id_feature_value"}, + IDLang: gormcol.Field{Table: TableNamePsFeatureValueLang, Column: "id_lang"}, + Value: gormcol.Field{Table: TableNamePsFeatureValueLang, Column: "value"}, +} diff --git a/app/model/dbmodel/ps_gender.go b/app/model/dbmodel/ps_gender.go new file mode 100644 index 0000000..8313496 --- /dev/null +++ b/app/model/dbmodel/ps_gender.go @@ -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 TableNamePsGender = "ps_gender" + +// PsGender mapped from table +type PsGender struct { + IDGender int32 `gorm:"column:id_gender;primaryKey;autoIncrement:true" json:"id_gender"` + Type bool `gorm:"column:type;not null" json:"type"` +} + +// TableName PsGender's table name +func (*PsGender) TableName() string { + return TableNamePsGender +} + +var PsGenderCols = struct { + IDGender gormcol.Field + Type gormcol.Field +}{ + IDGender: gormcol.Field{Table: TableNamePsGender, Column: "id_gender"}, + Type: gormcol.Field{Table: TableNamePsGender, Column: "type"}, +} diff --git a/app/model/dbmodel/ps_gender_lang.go b/app/model/dbmodel/ps_gender_lang.go new file mode 100644 index 0000000..8194a02 --- /dev/null +++ b/app/model/dbmodel/ps_gender_lang.go @@ -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 TableNamePsGenderLang = "ps_gender_lang" + +// PsGenderLang mapped from table +type PsGenderLang struct { + IDGender int32 `gorm:"column:id_gender;primaryKey;index:id_gender,priority:1" json:"id_gender"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsGenderLang's table name +func (*PsGenderLang) TableName() string { + return TableNamePsGenderLang +} + +var PsGenderLangCols = struct { + IDGender gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDGender: gormcol.Field{Table: TableNamePsGenderLang, Column: "id_gender"}, + IDLang: gormcol.Field{Table: TableNamePsGenderLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsGenderLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_group.go b/app/model/dbmodel/ps_group.go new file mode 100644 index 0000000..41acfda --- /dev/null +++ b/app/model/dbmodel/ps_group.go @@ -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 TableNamePsGroup = "ps_group" + +// PsGroup mapped from table +type PsGroup struct { + IDGroup int32 `gorm:"column:id_group;primaryKey;autoIncrement:true" json:"id_group"` + Reduction float64 `gorm:"column:reduction;not null;default:0.00" json:"reduction"` + PriceDisplayMethod int32 `gorm:"column:price_display_method;not null" json:"price_display_method"` + ShowPrices bool `gorm:"column:show_prices;not null;default:1" json:"show_prices"` + 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 PsGroup's table name +func (*PsGroup) TableName() string { + return TableNamePsGroup +} + +var PsGroupCols = struct { + IDGroup gormcol.Field + Reduction gormcol.Field + PriceDisplayMethod gormcol.Field + ShowPrices gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDGroup: gormcol.Field{Table: TableNamePsGroup, Column: "id_group"}, + Reduction: gormcol.Field{Table: TableNamePsGroup, Column: "reduction"}, + PriceDisplayMethod: gormcol.Field{Table: TableNamePsGroup, Column: "price_display_method"}, + ShowPrices: gormcol.Field{Table: TableNamePsGroup, Column: "show_prices"}, + DateAdd: gormcol.Field{Table: TableNamePsGroup, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsGroup, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_group_lang.go b/app/model/dbmodel/ps_group_lang.go new file mode 100644 index 0000000..c7355b4 --- /dev/null +++ b/app/model/dbmodel/ps_group_lang.go @@ -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 TableNamePsGroupLang = "ps_group_lang" + +// PsGroupLang mapped from table +type PsGroupLang struct { + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsGroupLang's table name +func (*PsGroupLang) TableName() string { + return TableNamePsGroupLang +} + +var PsGroupLangCols = struct { + IDGroup gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDGroup: gormcol.Field{Table: TableNamePsGroupLang, Column: "id_group"}, + IDLang: gormcol.Field{Table: TableNamePsGroupLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsGroupLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_group_reduction.go b/app/model/dbmodel/ps_group_reduction.go new file mode 100644 index 0000000..c3fa2a8 --- /dev/null +++ b/app/model/dbmodel/ps_group_reduction.go @@ -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 TableNamePsGroupReduction = "ps_group_reduction" + +// PsGroupReduction mapped from table +type PsGroupReduction struct { + IDGroupReduction int32 `gorm:"column:id_group_reduction;primaryKey;autoIncrement:true" json:"id_group_reduction"` + IDGroup int32 `gorm:"column:id_group;not null;uniqueIndex:id_group,priority:1" json:"id_group"` + IDCategory int32 `gorm:"column:id_category;not null;uniqueIndex:id_group,priority:2" json:"id_category"` + Reduction float64 `gorm:"column:reduction;not null" json:"reduction"` +} + +// TableName PsGroupReduction's table name +func (*PsGroupReduction) TableName() string { + return TableNamePsGroupReduction +} + +var PsGroupReductionCols = struct { + IDGroupReduction gormcol.Field + IDGroup gormcol.Field + IDCategory gormcol.Field + Reduction gormcol.Field +}{ + IDGroupReduction: gormcol.Field{Table: TableNamePsGroupReduction, Column: "id_group_reduction"}, + IDGroup: gormcol.Field{Table: TableNamePsGroupReduction, Column: "id_group"}, + IDCategory: gormcol.Field{Table: TableNamePsGroupReduction, Column: "id_category"}, + Reduction: gormcol.Field{Table: TableNamePsGroupReduction, Column: "reduction"}, +} diff --git a/app/model/dbmodel/ps_group_shop.go b/app/model/dbmodel/ps_group_shop.go new file mode 100644 index 0000000..06849b0 --- /dev/null +++ b/app/model/dbmodel/ps_group_shop.go @@ -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 TableNamePsGroupShop = "ps_group_shop" + +// PsGroupShop mapped from table +type PsGroupShop struct { + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsGroupShop's table name +func (*PsGroupShop) TableName() string { + return TableNamePsGroupShop +} + +var PsGroupShopCols = struct { + IDGroup gormcol.Field + IDShop gormcol.Field +}{ + IDGroup: gormcol.Field{Table: TableNamePsGroupShop, Column: "id_group"}, + IDShop: gormcol.Field{Table: TableNamePsGroupShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_gsitemap_sitemap.go b/app/model/dbmodel/ps_gsitemap_sitemap.go new file mode 100644 index 0000000..841e784 --- /dev/null +++ b/app/model/dbmodel/ps_gsitemap_sitemap.go @@ -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 TableNamePsGsitemapSitemap = "ps_gsitemap_sitemap" + +// PsGsitemapSitemap mapped from table +type PsGsitemapSitemap struct { + Link *string `gorm:"column:link" json:"link"` + IDShop *int32 `gorm:"column:id_shop" json:"id_shop"` +} + +// TableName PsGsitemapSitemap's table name +func (*PsGsitemapSitemap) TableName() string { + return TableNamePsGsitemapSitemap +} + +var PsGsitemapSitemapCols = struct { + Link gormcol.Field + IDShop gormcol.Field +}{ + Link: gormcol.Field{Table: TableNamePsGsitemapSitemap, Column: "link"}, + IDShop: gormcol.Field{Table: TableNamePsGsitemapSitemap, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_guest.go b/app/model/dbmodel/ps_guest.go new file mode 100644 index 0000000..e8cf170 --- /dev/null +++ b/app/model/dbmodel/ps_guest.go @@ -0,0 +1,70 @@ +// 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 TableNamePsGuest = "ps_guest" + +// PsGuest mapped from table +type PsGuest struct { + IDGuest int32 `gorm:"column:id_guest;primaryKey;autoIncrement:true" json:"id_guest"` + IDOperatingSystem *int32 `gorm:"column:id_operating_system;index:id_operating_system,priority:1" json:"id_operating_system"` + IDWebBrowser *int32 `gorm:"column:id_web_browser;index:id_web_browser,priority:1" json:"id_web_browser"` + IDCustomer *int32 `gorm:"column:id_customer;index:id_customer,priority:1" json:"id_customer"` + Javascript *bool `gorm:"column:javascript" json:"javascript"` + ScreenResolutionX *int32 `gorm:"column:screen_resolution_x" json:"screen_resolution_x"` + ScreenResolutionY *int32 `gorm:"column:screen_resolution_y" json:"screen_resolution_y"` + ScreenColor *int32 `gorm:"column:screen_color" json:"screen_color"` + SunJava *bool `gorm:"column:sun_java" json:"sun_java"` + AdobeFlash *bool `gorm:"column:adobe_flash" json:"adobe_flash"` + AdobeDirector *bool `gorm:"column:adobe_director" json:"adobe_director"` + AppleQuicktime *bool `gorm:"column:apple_quicktime" json:"apple_quicktime"` + RealPlayer *bool `gorm:"column:real_player" json:"real_player"` + WindowsMedia *bool `gorm:"column:windows_media" json:"windows_media"` + AcceptLanguage *string `gorm:"column:accept_language" json:"accept_language"` + MobileTheme bool `gorm:"column:mobile_theme;not null" json:"mobile_theme"` +} + +// TableName PsGuest's table name +func (*PsGuest) TableName() string { + return TableNamePsGuest +} + +var PsGuestCols = struct { + IDGuest gormcol.Field + IDOperatingSystem gormcol.Field + IDWebBrowser gormcol.Field + IDCustomer gormcol.Field + Javascript gormcol.Field + ScreenResolutionX gormcol.Field + ScreenResolutionY gormcol.Field + ScreenColor gormcol.Field + SunJava gormcol.Field + AdobeFlash gormcol.Field + AdobeDirector gormcol.Field + AppleQuicktime gormcol.Field + RealPlayer gormcol.Field + WindowsMedia gormcol.Field + AcceptLanguage gormcol.Field + MobileTheme gormcol.Field +}{ + IDGuest: gormcol.Field{Table: TableNamePsGuest, Column: "id_guest"}, + IDOperatingSystem: gormcol.Field{Table: TableNamePsGuest, Column: "id_operating_system"}, + IDWebBrowser: gormcol.Field{Table: TableNamePsGuest, Column: "id_web_browser"}, + IDCustomer: gormcol.Field{Table: TableNamePsGuest, Column: "id_customer"}, + Javascript: gormcol.Field{Table: TableNamePsGuest, Column: "javascript"}, + ScreenResolutionX: gormcol.Field{Table: TableNamePsGuest, Column: "screen_resolution_x"}, + ScreenResolutionY: gormcol.Field{Table: TableNamePsGuest, Column: "screen_resolution_y"}, + ScreenColor: gormcol.Field{Table: TableNamePsGuest, Column: "screen_color"}, + SunJava: gormcol.Field{Table: TableNamePsGuest, Column: "sun_java"}, + AdobeFlash: gormcol.Field{Table: TableNamePsGuest, Column: "adobe_flash"}, + AdobeDirector: gormcol.Field{Table: TableNamePsGuest, Column: "adobe_director"}, + AppleQuicktime: gormcol.Field{Table: TableNamePsGuest, Column: "apple_quicktime"}, + RealPlayer: gormcol.Field{Table: TableNamePsGuest, Column: "real_player"}, + WindowsMedia: gormcol.Field{Table: TableNamePsGuest, Column: "windows_media"}, + AcceptLanguage: gormcol.Field{Table: TableNamePsGuest, Column: "accept_language"}, + MobileTheme: gormcol.Field{Table: TableNamePsGuest, Column: "mobile_theme"}, +} diff --git a/app/model/dbmodel/ps_homeslider.go b/app/model/dbmodel/ps_homeslider.go new file mode 100644 index 0000000..eaac9ca --- /dev/null +++ b/app/model/dbmodel/ps_homeslider.go @@ -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 TableNamePsHomeslider = "ps_homeslider" + +// PsHomeslider mapped from table +type PsHomeslider struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsHomeslider's table name +func (*PsHomeslider) TableName() string { + return TableNamePsHomeslider +} + +var PsHomesliderCols = struct { + IDHomesliderSlides gormcol.Field + IDShop gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{Table: TableNamePsHomeslider, Column: "id_homeslider_slides"}, + IDShop: gormcol.Field{Table: TableNamePsHomeslider, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_homeslider_slides.go b/app/model/dbmodel/ps_homeslider_slides.go new file mode 100644 index 0000000..2f4bb19 --- /dev/null +++ b/app/model/dbmodel/ps_homeslider_slides.go @@ -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 TableNamePsHomesliderSlide = "ps_homeslider_slides" + +// PsHomesliderSlide mapped from table +type PsHomesliderSlide struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + Position int32 `gorm:"column:position;not null" json:"position"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsHomesliderSlide's table name +func (*PsHomesliderSlide) TableName() string { + return TableNamePsHomesliderSlide +} + +var PsHomesliderSlideCols = struct { + IDHomesliderSlides gormcol.Field + Position gormcol.Field + Active gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{Table: TableNamePsHomesliderSlide, Column: "id_homeslider_slides"}, + Position: gormcol.Field{Table: TableNamePsHomesliderSlide, Column: "position"}, + Active: gormcol.Field{Table: TableNamePsHomesliderSlide, Column: "active"}, +} diff --git a/app/model/dbmodel/ps_homeslider_slides_lang.go b/app/model/dbmodel/ps_homeslider_slides_lang.go new file mode 100644 index 0000000..89b835b --- /dev/null +++ b/app/model/dbmodel/ps_homeslider_slides_lang.go @@ -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 TableNamePsHomesliderSlidesLang = "ps_homeslider_slides_lang" + +// PsHomesliderSlidesLang mapped from table +type PsHomesliderSlidesLang struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey" json:"id_homeslider_slides"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Title string `gorm:"column:title;not null" json:"title"` + Description string `gorm:"column:description;not null" json:"description"` + Legend string `gorm:"column:legend;not null" json:"legend"` + URL string `gorm:"column:url;not null" json:"url"` + Image string `gorm:"column:image;not null" json:"image"` +} + +// TableName PsHomesliderSlidesLang's table name +func (*PsHomesliderSlidesLang) TableName() string { + return TableNamePsHomesliderSlidesLang +} + +var PsHomesliderSlidesLangCols = struct { + IDHomesliderSlides gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field + Legend gormcol.Field + URL gormcol.Field + Image gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{Table: TableNamePsHomesliderSlidesLang, Column: "id_homeslider_slides"}, + IDLang: gormcol.Field{Table: TableNamePsHomesliderSlidesLang, Column: "id_lang"}, + Title: gormcol.Field{Table: TableNamePsHomesliderSlidesLang, Column: "title"}, + Description: gormcol.Field{Table: TableNamePsHomesliderSlidesLang, Column: "description"}, + Legend: gormcol.Field{Table: TableNamePsHomesliderSlidesLang, Column: "legend"}, + URL: gormcol.Field{Table: TableNamePsHomesliderSlidesLang, Column: "url"}, + Image: gormcol.Field{Table: TableNamePsHomesliderSlidesLang, Column: "image"}, +} diff --git a/app/model/dbmodel/ps_hook.go b/app/model/dbmodel/ps_hook.go new file mode 100644 index 0000000..18088ce --- /dev/null +++ b/app/model/dbmodel/ps_hook.go @@ -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 TableNamePsHook = "ps_hook" + +// PsHook mapped from table +type PsHook struct { + IDHook int32 `gorm:"column:id_hook;primaryKey;autoIncrement:true" json:"id_hook"` + Name string `gorm:"column:name;not null;uniqueIndex:hook_name,priority:1" json:"name"` + Title string `gorm:"column:title;not null" json:"title"` + Description *string `gorm:"column:description" json:"description"` + Position bool `gorm:"column:position;not null;default:1" json:"position"` +} + +// TableName PsHook's table name +func (*PsHook) TableName() string { + return TableNamePsHook +} + +var PsHookCols = struct { + IDHook gormcol.Field + Name gormcol.Field + Title gormcol.Field + Description gormcol.Field + Position gormcol.Field +}{ + IDHook: gormcol.Field{Table: TableNamePsHook, Column: "id_hook"}, + Name: gormcol.Field{Table: TableNamePsHook, Column: "name"}, + Title: gormcol.Field{Table: TableNamePsHook, Column: "title"}, + Description: gormcol.Field{Table: TableNamePsHook, Column: "description"}, + Position: gormcol.Field{Table: TableNamePsHook, Column: "position"}, +} diff --git a/app/model/dbmodel/ps_hook_alias.go b/app/model/dbmodel/ps_hook_alias.go new file mode 100644 index 0000000..8488832 --- /dev/null +++ b/app/model/dbmodel/ps_hook_alias.go @@ -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 TableNamePsHookAlias = "ps_hook_alias" + +// PsHookAlias mapped from table +type PsHookAlias struct { + IDHookAlias int32 `gorm:"column:id_hook_alias;primaryKey;autoIncrement:true" json:"id_hook_alias"` + Alias string `gorm:"column:alias;not null;uniqueIndex:alias,priority:1" json:"alias"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsHookAlias's table name +func (*PsHookAlias) TableName() string { + return TableNamePsHookAlias +} + +var PsHookAliasCols = struct { + IDHookAlias gormcol.Field + Alias gormcol.Field + Name gormcol.Field +}{ + IDHookAlias: gormcol.Field{Table: TableNamePsHookAlias, Column: "id_hook_alias"}, + Alias: gormcol.Field{Table: TableNamePsHookAlias, Column: "alias"}, + Name: gormcol.Field{Table: TableNamePsHookAlias, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_hook_module.go b/app/model/dbmodel/ps_hook_module.go new file mode 100644 index 0000000..0a26a09 --- /dev/null +++ b/app/model/dbmodel/ps_hook_module.go @@ -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 TableNamePsHookModule = "ps_hook_module" + +// PsHookModule mapped from table +type PsHookModule struct { + IDModule int32 `gorm:"column:id_module;primaryKey;index:id_module,priority:1" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:position,priority:1;default:1" json:"id_shop"` + IDHook int32 `gorm:"column:id_hook;primaryKey;index:id_hook,priority:1" json:"id_hook"` + Position int32 `gorm:"column:position;not null;index:position,priority:2" json:"position"` +} + +// TableName PsHookModule's table name +func (*PsHookModule) TableName() string { + return TableNamePsHookModule +} + +var PsHookModuleCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDHook gormcol.Field + Position gormcol.Field +}{ + IDModule: gormcol.Field{Table: TableNamePsHookModule, Column: "id_module"}, + IDShop: gormcol.Field{Table: TableNamePsHookModule, Column: "id_shop"}, + IDHook: gormcol.Field{Table: TableNamePsHookModule, Column: "id_hook"}, + Position: gormcol.Field{Table: TableNamePsHookModule, Column: "position"}, +} diff --git a/app/model/dbmodel/ps_hook_module_exceptions.go b/app/model/dbmodel/ps_hook_module_exceptions.go new file mode 100644 index 0000000..1614ef4 --- /dev/null +++ b/app/model/dbmodel/ps_hook_module_exceptions.go @@ -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 TableNamePsHookModuleException = "ps_hook_module_exceptions" + +// PsHookModuleException mapped from table +type PsHookModuleException struct { + IDHookModuleExceptions int32 `gorm:"column:id_hook_module_exceptions;primaryKey;autoIncrement:true" json:"id_hook_module_exceptions"` + IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` + IDModule int32 `gorm:"column:id_module;not null;index:id_module,priority:1" json:"id_module"` + IDHook int32 `gorm:"column:id_hook;not null;index:id_hook,priority:1" json:"id_hook"` + FileName *string `gorm:"column:file_name" json:"file_name"` +} + +// TableName PsHookModuleException's table name +func (*PsHookModuleException) TableName() string { + return TableNamePsHookModuleException +} + +var PsHookModuleExceptionCols = struct { + IDHookModuleExceptions gormcol.Field + IDShop gormcol.Field + IDModule gormcol.Field + IDHook gormcol.Field + FileName gormcol.Field +}{ + IDHookModuleExceptions: gormcol.Field{Table: TableNamePsHookModuleException, Column: "id_hook_module_exceptions"}, + IDShop: gormcol.Field{Table: TableNamePsHookModuleException, Column: "id_shop"}, + IDModule: gormcol.Field{Table: TableNamePsHookModuleException, Column: "id_module"}, + IDHook: gormcol.Field{Table: TableNamePsHookModuleException, Column: "id_hook"}, + FileName: gormcol.Field{Table: TableNamePsHookModuleException, Column: "file_name"}, +} diff --git a/app/model/dbmodel/ps_image.go b/app/model/dbmodel/ps_image.go new file mode 100644 index 0000000..77c1d72 --- /dev/null +++ b/app/model/dbmodel/ps_image.go @@ -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 TableNamePsImage = "ps_image" + +// PsImage mapped from table +type PsImage struct { + IDImage int32 `gorm:"column:id_image;primaryKey;autoIncrement:true;uniqueIndex:idx_product_image,priority:1" json:"id_image"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:idx_product_image,priority:2;uniqueIndex:id_product_cover,priority:1;index:image_product,priority:1" json:"id_product"` + Position int32 `gorm:"column:position;not null" json:"position"` + Cover *bool `gorm:"column:cover;uniqueIndex:idx_product_image,priority:3;uniqueIndex:id_product_cover,priority:2" json:"cover"` +} + +// TableName PsImage's table name +func (*PsImage) TableName() string { + return TableNamePsImage +} + +var PsImageCols = struct { + IDImage gormcol.Field + IDProduct gormcol.Field + Position gormcol.Field + Cover gormcol.Field +}{ + IDImage: gormcol.Field{Table: TableNamePsImage, Column: "id_image"}, + IDProduct: gormcol.Field{Table: TableNamePsImage, Column: "id_product"}, + Position: gormcol.Field{Table: TableNamePsImage, Column: "position"}, + Cover: gormcol.Field{Table: TableNamePsImage, Column: "cover"}, +} diff --git a/app/model/dbmodel/ps_image_lang.go b/app/model/dbmodel/ps_image_lang.go new file mode 100644 index 0000000..1450743 --- /dev/null +++ b/app/model/dbmodel/ps_image_lang.go @@ -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 TableNamePsImageLang = "ps_image_lang" + +// PsImageLang mapped from table +type PsImageLang struct { + IDImage int32 `gorm:"column:id_image;primaryKey;index:id_image,priority:1" json:"id_image"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Legend *string `gorm:"column:legend" json:"legend"` +} + +// TableName PsImageLang's table name +func (*PsImageLang) TableName() string { + return TableNamePsImageLang +} + +var PsImageLangCols = struct { + IDImage gormcol.Field + IDLang gormcol.Field + Legend gormcol.Field +}{ + IDImage: gormcol.Field{Table: TableNamePsImageLang, Column: "id_image"}, + IDLang: gormcol.Field{Table: TableNamePsImageLang, Column: "id_lang"}, + Legend: gormcol.Field{Table: TableNamePsImageLang, Column: "legend"}, +} diff --git a/app/model/dbmodel/ps_image_shop.go b/app/model/dbmodel/ps_image_shop.go new file mode 100644 index 0000000..d61a0e6 --- /dev/null +++ b/app/model/dbmodel/ps_image_shop.go @@ -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 TableNamePsImageShop = "ps_image_shop" + +// PsImageShop mapped from table +type PsImageShop struct { + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"` + IDImage int32 `gorm:"column:id_image;primaryKey" json:"id_image"` + IDShop int32 `gorm:"column:id_shop;primaryKey;uniqueIndex:id_product,priority:2;index:id_shop,priority:1" json:"id_shop"` + Cover *bool `gorm:"column:cover;uniqueIndex:id_product,priority:3" json:"cover"` +} + +// TableName PsImageShop's table name +func (*PsImageShop) TableName() string { + return TableNamePsImageShop +} + +var PsImageShopCols = struct { + IDProduct gormcol.Field + IDImage gormcol.Field + IDShop gormcol.Field + Cover gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsImageShop, Column: "id_product"}, + IDImage: gormcol.Field{Table: TableNamePsImageShop, Column: "id_image"}, + IDShop: gormcol.Field{Table: TableNamePsImageShop, Column: "id_shop"}, + Cover: gormcol.Field{Table: TableNamePsImageShop, Column: "cover"}, +} diff --git a/app/model/dbmodel/ps_image_type.go b/app/model/dbmodel/ps_image_type.go new file mode 100644 index 0000000..1a22ec5 --- /dev/null +++ b/app/model/dbmodel/ps_image_type.go @@ -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 TableNamePsImageType = "ps_image_type" + +// PsImageType mapped from table +type PsImageType struct { + IDImageType int32 `gorm:"column:id_image_type;primaryKey;autoIncrement:true" json:"id_image_type"` + Name string `gorm:"column:name;not null;index:image_type_name,priority:1" json:"name"` + Width int32 `gorm:"column:width;not null" json:"width"` + Height int32 `gorm:"column:height;not null" json:"height"` + Products bool `gorm:"column:products;not null;default:1" json:"products"` + Categories bool `gorm:"column:categories;not null;default:1" json:"categories"` + Manufacturers bool `gorm:"column:manufacturers;not null;default:1" json:"manufacturers"` + Suppliers bool `gorm:"column:suppliers;not null;default:1" json:"suppliers"` + Stores bool `gorm:"column:stores;not null;default:1" json:"stores"` +} + +// TableName PsImageType's table name +func (*PsImageType) TableName() string { + return TableNamePsImageType +} + +var PsImageTypeCols = struct { + IDImageType gormcol.Field + Name gormcol.Field + Width gormcol.Field + Height gormcol.Field + Products gormcol.Field + Categories gormcol.Field + Manufacturers gormcol.Field + Suppliers gormcol.Field + Stores gormcol.Field +}{ + IDImageType: gormcol.Field{Table: TableNamePsImageType, Column: "id_image_type"}, + Name: gormcol.Field{Table: TableNamePsImageType, Column: "name"}, + Width: gormcol.Field{Table: TableNamePsImageType, Column: "width"}, + Height: gormcol.Field{Table: TableNamePsImageType, Column: "height"}, + Products: gormcol.Field{Table: TableNamePsImageType, Column: "products"}, + Categories: gormcol.Field{Table: TableNamePsImageType, Column: "categories"}, + Manufacturers: gormcol.Field{Table: TableNamePsImageType, Column: "manufacturers"}, + Suppliers: gormcol.Field{Table: TableNamePsImageType, Column: "suppliers"}, + Stores: gormcol.Field{Table: TableNamePsImageType, Column: "stores"}, +} diff --git a/app/model/dbmodel/ps_import_match.go b/app/model/dbmodel/ps_import_match.go new file mode 100644 index 0000000..f4b0e25 --- /dev/null +++ b/app/model/dbmodel/ps_import_match.go @@ -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 TableNamePsImportMatch = "ps_import_match" + +// PsImportMatch mapped from table +type PsImportMatch struct { + IDImportMatch int32 `gorm:"column:id_import_match;primaryKey;autoIncrement:true" json:"id_import_match"` + Name string `gorm:"column:name;not null" json:"name"` + Match string `gorm:"column:match;not null" json:"match"` + Skip int32 `gorm:"column:skip;not null" json:"skip"` +} + +// TableName PsImportMatch's table name +func (*PsImportMatch) TableName() string { + return TableNamePsImportMatch +} + +var PsImportMatchCols = struct { + IDImportMatch gormcol.Field + Name gormcol.Field + Match gormcol.Field + Skip gormcol.Field +}{ + IDImportMatch: gormcol.Field{Table: TableNamePsImportMatch, Column: "id_import_match"}, + Name: gormcol.Field{Table: TableNamePsImportMatch, Column: "name"}, + Match: gormcol.Field{Table: TableNamePsImportMatch, Column: "match"}, + Skip: gormcol.Field{Table: TableNamePsImportMatch, Column: "skip"}, +} diff --git a/app/model/dbmodel/ps_info.go b/app/model/dbmodel/ps_info.go new file mode 100644 index 0000000..1c29eab --- /dev/null +++ b/app/model/dbmodel/ps_info.go @@ -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 TableNamePsInfo = "ps_info" + +// PsInfo mapped from table +type PsInfo struct { + IDInfo int32 `gorm:"column:id_info;primaryKey;autoIncrement:true" json:"id_info"` +} + +// TableName PsInfo's table name +func (*PsInfo) TableName() string { + return TableNamePsInfo +} + +var PsInfoCols = struct { + IDInfo gormcol.Field +}{ + IDInfo: gormcol.Field{Table: TableNamePsInfo, Column: "id_info"}, +} diff --git a/app/model/dbmodel/ps_info_lang.go b/app/model/dbmodel/ps_info_lang.go new file mode 100644 index 0000000..ee4760f --- /dev/null +++ b/app/model/dbmodel/ps_info_lang.go @@ -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 TableNamePsInfoLang = "ps_info_lang" + +// PsInfoLang mapped from table +type PsInfoLang struct { + IDInfo int32 `gorm:"column:id_info;primaryKey" json:"id_info"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Text string `gorm:"column:text;not null" json:"text"` +} + +// TableName PsInfoLang's table name +func (*PsInfoLang) TableName() string { + return TableNamePsInfoLang +} + +var PsInfoLangCols = struct { + IDInfo gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Text gormcol.Field +}{ + IDInfo: gormcol.Field{Table: TableNamePsInfoLang, Column: "id_info"}, + IDShop: gormcol.Field{Table: TableNamePsInfoLang, Column: "id_shop"}, + IDLang: gormcol.Field{Table: TableNamePsInfoLang, Column: "id_lang"}, + Text: gormcol.Field{Table: TableNamePsInfoLang, Column: "text"}, +} diff --git a/app/model/dbmodel/ps_info_shop.go b/app/model/dbmodel/ps_info_shop.go new file mode 100644 index 0000000..8cd202e --- /dev/null +++ b/app/model/dbmodel/ps_info_shop.go @@ -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 TableNamePsInfoShop = "ps_info_shop" + +// PsInfoShop mapped from table +type PsInfoShop struct { + IDInfo int32 `gorm:"column:id_info;primaryKey" json:"id_info"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsInfoShop's table name +func (*PsInfoShop) TableName() string { + return TableNamePsInfoShop +} + +var PsInfoShopCols = struct { + IDInfo gormcol.Field + IDShop gormcol.Field +}{ + IDInfo: gormcol.Field{Table: TableNamePsInfoShop, Column: "id_info"}, + IDShop: gormcol.Field{Table: TableNamePsInfoShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_inpost_carrier.go b/app/model/dbmodel/ps_inpost_carrier.go new file mode 100644 index 0000000..851b97f --- /dev/null +++ b/app/model/dbmodel/ps_inpost_carrier.go @@ -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 TableNamePsInpostCarrier = "ps_inpost_carrier" + +// PsInpostCarrier mapped from table +type PsInpostCarrier struct { + IDReference int32 `gorm:"column:id_reference;primaryKey" json:"id_reference"` + Service string `gorm:"column:service;not null" json:"service"` + CommercialProductIdentifier *string `gorm:"column:commercial_product_identifier" json:"commercial_product_identifier"` + Cod bool `gorm:"column:cod;not null" json:"cod"` + WeekendDelivery bool `gorm:"column:weekend_delivery;not null" json:"weekend_delivery"` + UseProductDimensions bool `gorm:"column:use_product_dimensions;not null" json:"use_product_dimensions"` +} + +// TableName PsInpostCarrier's table name +func (*PsInpostCarrier) TableName() string { + return TableNamePsInpostCarrier +} + +var PsInpostCarrierCols = struct { + IDReference gormcol.Field + Service gormcol.Field + CommercialProductIdentifier gormcol.Field + Cod gormcol.Field + WeekendDelivery gormcol.Field + UseProductDimensions gormcol.Field +}{ + IDReference: gormcol.Field{Table: TableNamePsInpostCarrier, Column: "id_reference"}, + Service: gormcol.Field{Table: TableNamePsInpostCarrier, Column: "service"}, + CommercialProductIdentifier: gormcol.Field{Table: TableNamePsInpostCarrier, Column: "commercial_product_identifier"}, + Cod: gormcol.Field{Table: TableNamePsInpostCarrier, Column: "cod"}, + WeekendDelivery: gormcol.Field{Table: TableNamePsInpostCarrier, Column: "weekend_delivery"}, + UseProductDimensions: gormcol.Field{Table: TableNamePsInpostCarrier, Column: "use_product_dimensions"}, +} diff --git a/app/model/dbmodel/ps_inpost_cart_choice.go b/app/model/dbmodel/ps_inpost_cart_choice.go new file mode 100644 index 0000000..19126e9 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_cart_choice.go @@ -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 TableNamePsInpostCartChoice = "ps_inpost_cart_choice" + +// PsInpostCartChoice mapped from table +type PsInpostCartChoice struct { + IDCart int32 `gorm:"column:id_cart;primaryKey" json:"id_cart"` + Service string `gorm:"column:service;not null" json:"service"` + Email *string `gorm:"column:email" json:"email"` + Phone *string `gorm:"column:phone" json:"phone"` + Point *string `gorm:"column:point" json:"point"` +} + +// TableName PsInpostCartChoice's table name +func (*PsInpostCartChoice) TableName() string { + return TableNamePsInpostCartChoice +} + +var PsInpostCartChoiceCols = struct { + IDCart gormcol.Field + Service gormcol.Field + Email gormcol.Field + Phone gormcol.Field + Point gormcol.Field +}{ + IDCart: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "id_cart"}, + Service: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "service"}, + Email: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "email"}, + Phone: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "phone"}, + Point: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "point"}, +} diff --git a/app/model/dbmodel/ps_inpost_dispatch_order.go b/app/model/dbmodel/ps_inpost_dispatch_order.go new file mode 100644 index 0000000..6c2eff0 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_dispatch_order.go @@ -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 TableNamePsInpostDispatchOrder = "ps_inpost_dispatch_order" + +// PsInpostDispatchOrder mapped from table +type PsInpostDispatchOrder struct { + IDDispatchOrder int32 `gorm:"column:id_dispatch_order;primaryKey;autoIncrement:true" json:"id_dispatch_order"` + IDDispatchPoint *int32 `gorm:"column:id_dispatch_point;index:id_dispatch_point,priority:1" json:"id_dispatch_point"` + ShipxDispatchOrderID int32 `gorm:"column:shipx_dispatch_order_id;not null" json:"shipx_dispatch_order_id"` + Number *int32 `gorm:"column:number" json:"number"` + Status *string `gorm:"column:status" json:"status"` + Price *float64 `gorm:"column:price" json:"price"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsInpostDispatchOrder's table name +func (*PsInpostDispatchOrder) TableName() string { + return TableNamePsInpostDispatchOrder +} + +var PsInpostDispatchOrderCols = struct { + IDDispatchOrder gormcol.Field + IDDispatchPoint gormcol.Field + ShipxDispatchOrderID gormcol.Field + Number gormcol.Field + Status gormcol.Field + Price gormcol.Field + DateAdd gormcol.Field +}{ + IDDispatchOrder: gormcol.Field{Table: TableNamePsInpostDispatchOrder, Column: "id_dispatch_order"}, + IDDispatchPoint: gormcol.Field{Table: TableNamePsInpostDispatchOrder, Column: "id_dispatch_point"}, + ShipxDispatchOrderID: gormcol.Field{Table: TableNamePsInpostDispatchOrder, Column: "shipx_dispatch_order_id"}, + Number: gormcol.Field{Table: TableNamePsInpostDispatchOrder, Column: "number"}, + Status: gormcol.Field{Table: TableNamePsInpostDispatchOrder, Column: "status"}, + Price: gormcol.Field{Table: TableNamePsInpostDispatchOrder, Column: "price"}, + DateAdd: gormcol.Field{Table: TableNamePsInpostDispatchOrder, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_inpost_dispatch_point.go b/app/model/dbmodel/ps_inpost_dispatch_point.go new file mode 100644 index 0000000..2b2d4fe --- /dev/null +++ b/app/model/dbmodel/ps_inpost_dispatch_point.go @@ -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" + +const TableNamePsInpostDispatchPoint = "ps_inpost_dispatch_point" + +// PsInpostDispatchPoint mapped from table +type PsInpostDispatchPoint struct { + IDDispatchPoint int32 `gorm:"column:id_dispatch_point;primaryKey;autoIncrement:true" json:"id_dispatch_point"` + Name string `gorm:"column:name;not null" json:"name"` + OfficeHours *string `gorm:"column:office_hours" json:"office_hours"` + Email *string `gorm:"column:email" json:"email"` + Phone *string `gorm:"column:phone" json:"phone"` + Street string `gorm:"column:street;not null" json:"street"` + BuildingNumber string `gorm:"column:building_number;not null" json:"building_number"` + PostCode string `gorm:"column:post_code;not null" json:"post_code"` + City string `gorm:"column:city;not null" json:"city"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsInpostDispatchPoint's table name +func (*PsInpostDispatchPoint) TableName() string { + return TableNamePsInpostDispatchPoint +} + +var PsInpostDispatchPointCols = struct { + IDDispatchPoint gormcol.Field + Name gormcol.Field + OfficeHours gormcol.Field + Email gormcol.Field + Phone gormcol.Field + Street gormcol.Field + BuildingNumber gormcol.Field + PostCode gormcol.Field + City gormcol.Field + Deleted gormcol.Field +}{ + IDDispatchPoint: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "id_dispatch_point"}, + Name: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "name"}, + OfficeHours: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "office_hours"}, + Email: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "email"}, + Phone: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "phone"}, + Street: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "street"}, + BuildingNumber: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "building_number"}, + PostCode: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "post_code"}, + City: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "city"}, + Deleted: gormcol.Field{Table: TableNamePsInpostDispatchPoint, Column: "deleted"}, +} diff --git a/app/model/dbmodel/ps_inpost_point.go b/app/model/dbmodel/ps_inpost_point.go new file mode 100644 index 0000000..efb9bc2 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_point.go @@ -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 TableNamePsInpostPoint = "ps_inpost_point" + +// PsInpostPoint mapped from table +type PsInpostPoint struct { + IDPoint string `gorm:"column:id_point;primaryKey" json:"id_point"` + Data string `gorm:"column:data;not null" json:"data"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsInpostPoint's table name +func (*PsInpostPoint) TableName() string { + return TableNamePsInpostPoint +} + +var PsInpostPointCols = struct { + IDPoint gormcol.Field + Data gormcol.Field + DateUpd gormcol.Field +}{ + IDPoint: gormcol.Field{Table: TableNamePsInpostPoint, Column: "id_point"}, + Data: gormcol.Field{Table: TableNamePsInpostPoint, Column: "data"}, + DateUpd: gormcol.Field{Table: TableNamePsInpostPoint, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_inpost_product_template.go b/app/model/dbmodel/ps_inpost_product_template.go new file mode 100644 index 0000000..d086f23 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_product_template.go @@ -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 TableNamePsInpostProductTemplate = "ps_inpost_product_template" + +// PsInpostProductTemplate mapped from table +type PsInpostProductTemplate struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + Template string `gorm:"column:template;not null" json:"template"` +} + +// TableName PsInpostProductTemplate's table name +func (*PsInpostProductTemplate) TableName() string { + return TableNamePsInpostProductTemplate +} + +var PsInpostProductTemplateCols = struct { + IDProduct gormcol.Field + Template gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsInpostProductTemplate, Column: "id_product"}, + Template: gormcol.Field{Table: TableNamePsInpostProductTemplate, Column: "template"}, +} diff --git a/app/model/dbmodel/ps_inpost_shipment.go b/app/model/dbmodel/ps_inpost_shipment.go new file mode 100644 index 0000000..24d8055 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_shipment.go @@ -0,0 +1,97 @@ +// 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 TableNamePsInpostShipment = "ps_inpost_shipment" + +// PsInpostShipment mapped from table +type PsInpostShipment struct { + IDShipment int32 `gorm:"column:id_shipment;primaryKey;autoIncrement:true" json:"id_shipment"` + OrganizationID int32 `gorm:"column:organization_id;not null" json:"organization_id"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + Sandbox bool `gorm:"column:sandbox;not null" json:"sandbox"` + ShipxShipmentID int32 `gorm:"column:shipx_shipment_id;not null" json:"shipx_shipment_id"` + Reference *string `gorm:"column:reference" json:"reference"` + Email string `gorm:"column:email;not null" json:"email"` + Phone string `gorm:"column:phone;not null" json:"phone"` + Service string `gorm:"column:service;not null" json:"service"` + CommercialProductIdentifier *string `gorm:"column:commercial_product_identifier" json:"commercial_product_identifier"` + SendingMethod *string `gorm:"column:sending_method" json:"sending_method"` + SendingPoint *string `gorm:"column:sending_point" json:"sending_point"` + WeekendDelivery *bool `gorm:"column:weekend_delivery" json:"weekend_delivery"` + Template *string `gorm:"column:template" json:"template"` + Dimensions *string `gorm:"column:dimensions" json:"dimensions"` + IDDispatchOrder *int32 `gorm:"column:id_dispatch_order;index:id_dispatch_order,priority:1" json:"id_dispatch_order"` + TargetPoint *string `gorm:"column:target_point" json:"target_point"` + CodAmount *float64 `gorm:"column:cod_amount" json:"cod_amount"` + InsuranceAmount *float64 `gorm:"column:insurance_amount" json:"insurance_amount"` + TrackingNumber *string `gorm:"column:tracking_number" json:"tracking_number"` + Status *string `gorm:"column:status" json:"status"` + Price *float64 `gorm:"column:price" json:"price"` + LabelPrinted bool `gorm:"column:label_printed;not null" json:"label_printed"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsInpostShipment's table name +func (*PsInpostShipment) TableName() string { + return TableNamePsInpostShipment +} + +var PsInpostShipmentCols = struct { + IDShipment gormcol.Field + OrganizationID gormcol.Field + IDOrder gormcol.Field + Sandbox gormcol.Field + ShipxShipmentID gormcol.Field + Reference gormcol.Field + Email gormcol.Field + Phone gormcol.Field + Service gormcol.Field + CommercialProductIdentifier gormcol.Field + SendingMethod gormcol.Field + SendingPoint gormcol.Field + WeekendDelivery gormcol.Field + Template gormcol.Field + Dimensions gormcol.Field + IDDispatchOrder gormcol.Field + TargetPoint gormcol.Field + CodAmount gormcol.Field + InsuranceAmount gormcol.Field + TrackingNumber gormcol.Field + Status gormcol.Field + Price gormcol.Field + LabelPrinted gormcol.Field + DateAdd gormcol.Field +}{ + IDShipment: gormcol.Field{Table: TableNamePsInpostShipment, Column: "id_shipment"}, + OrganizationID: gormcol.Field{Table: TableNamePsInpostShipment, Column: "organization_id"}, + IDOrder: gormcol.Field{Table: TableNamePsInpostShipment, Column: "id_order"}, + Sandbox: gormcol.Field{Table: TableNamePsInpostShipment, Column: "sandbox"}, + ShipxShipmentID: gormcol.Field{Table: TableNamePsInpostShipment, Column: "shipx_shipment_id"}, + Reference: gormcol.Field{Table: TableNamePsInpostShipment, Column: "reference"}, + Email: gormcol.Field{Table: TableNamePsInpostShipment, Column: "email"}, + Phone: gormcol.Field{Table: TableNamePsInpostShipment, Column: "phone"}, + Service: gormcol.Field{Table: TableNamePsInpostShipment, Column: "service"}, + CommercialProductIdentifier: gormcol.Field{Table: TableNamePsInpostShipment, Column: "commercial_product_identifier"}, + SendingMethod: gormcol.Field{Table: TableNamePsInpostShipment, Column: "sending_method"}, + SendingPoint: gormcol.Field{Table: TableNamePsInpostShipment, Column: "sending_point"}, + WeekendDelivery: gormcol.Field{Table: TableNamePsInpostShipment, Column: "weekend_delivery"}, + Template: gormcol.Field{Table: TableNamePsInpostShipment, Column: "template"}, + Dimensions: gormcol.Field{Table: TableNamePsInpostShipment, Column: "dimensions"}, + IDDispatchOrder: gormcol.Field{Table: TableNamePsInpostShipment, Column: "id_dispatch_order"}, + TargetPoint: gormcol.Field{Table: TableNamePsInpostShipment, Column: "target_point"}, + CodAmount: gormcol.Field{Table: TableNamePsInpostShipment, Column: "cod_amount"}, + InsuranceAmount: gormcol.Field{Table: TableNamePsInpostShipment, Column: "insurance_amount"}, + TrackingNumber: gormcol.Field{Table: TableNamePsInpostShipment, Column: "tracking_number"}, + Status: gormcol.Field{Table: TableNamePsInpostShipment, Column: "status"}, + Price: gormcol.Field{Table: TableNamePsInpostShipment, Column: "price"}, + LabelPrinted: gormcol.Field{Table: TableNamePsInpostShipment, Column: "label_printed"}, + DateAdd: gormcol.Field{Table: TableNamePsInpostShipment, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_inpost_shipment_status.go b/app/model/dbmodel/ps_inpost_shipment_status.go new file mode 100644 index 0000000..74670bf --- /dev/null +++ b/app/model/dbmodel/ps_inpost_shipment_status.go @@ -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 TableNamePsInpostShipmentStatus = "ps_inpost_shipment_status" + +// PsInpostShipmentStatus mapped from table +type PsInpostShipmentStatus struct { + IDStatus int32 `gorm:"column:id_status;primaryKey;autoIncrement:true" json:"id_status"` + Name string `gorm:"column:name;not null;uniqueIndex:name,priority:1" json:"name"` +} + +// TableName PsInpostShipmentStatus's table name +func (*PsInpostShipmentStatus) TableName() string { + return TableNamePsInpostShipmentStatus +} + +var PsInpostShipmentStatusCols = struct { + IDStatus gormcol.Field + Name gormcol.Field +}{ + IDStatus: gormcol.Field{Table: TableNamePsInpostShipmentStatus, Column: "id_status"}, + Name: gormcol.Field{Table: TableNamePsInpostShipmentStatus, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_inpost_shipment_status_lang.go b/app/model/dbmodel/ps_inpost_shipment_status_lang.go new file mode 100644 index 0000000..cdea8b0 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_shipment_status_lang.go @@ -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 TableNamePsInpostShipmentStatusLang = "ps_inpost_shipment_status_lang" + +// PsInpostShipmentStatusLang mapped from table +type PsInpostShipmentStatusLang struct { + IDStatus int32 `gorm:"column:id_status;primaryKey" json:"id_status"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:id_lang,priority:1" json:"id_lang"` + Title string `gorm:"column:title;not null" json:"title"` + Description string `gorm:"column:description;not null" json:"description"` +} + +// TableName PsInpostShipmentStatusLang's table name +func (*PsInpostShipmentStatusLang) TableName() string { + return TableNamePsInpostShipmentStatusLang +} + +var PsInpostShipmentStatusLangCols = struct { + IDStatus gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field +}{ + IDStatus: gormcol.Field{Table: TableNamePsInpostShipmentStatusLang, Column: "id_status"}, + IDLang: gormcol.Field{Table: TableNamePsInpostShipmentStatusLang, Column: "id_lang"}, + Title: gormcol.Field{Table: TableNamePsInpostShipmentStatusLang, Column: "title"}, + Description: gormcol.Field{Table: TableNamePsInpostShipmentStatusLang, Column: "description"}, +} diff --git a/app/model/dbmodel/ps_invoice_customer.go b/app/model/dbmodel/ps_invoice_customer.go new file mode 100644 index 0000000..deeca78 --- /dev/null +++ b/app/model/dbmodel/ps_invoice_customer.go @@ -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 TableNamePsInvoiceCustomer = "ps_invoice_customer" + +// PsInvoiceCustomer mapped from table +type PsInvoiceCustomer struct { + IDInvoiceCustomer int32 `gorm:"column:id_invoice_customer;primaryKey;autoIncrement:true" json:"id_invoice_customer"` + IDCustomer int32 `gorm:"column:id_customer;not null;uniqueIndex:UQ_ps_invoice_customer_id_customer,priority:1" json:"id_customer"` + IDShopCompany int32 `gorm:"column:id_shop_company;not null;index:FK_ps_invoice_customer_id_shop_company,priority:1" json:"id_shop_company"` + DateAdd *time.Time `gorm:"column:date_add;default:current_timestamp()" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd;default:current_timestamp()" json:"date_upd"` +} + +// TableName PsInvoiceCustomer's table name +func (*PsInvoiceCustomer) TableName() string { + return TableNamePsInvoiceCustomer +} + +var PsInvoiceCustomerCols = struct { + IDInvoiceCustomer gormcol.Field + IDCustomer gormcol.Field + IDShopCompany gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDInvoiceCustomer: gormcol.Field{Table: TableNamePsInvoiceCustomer, Column: "id_invoice_customer"}, + IDCustomer: gormcol.Field{Table: TableNamePsInvoiceCustomer, Column: "id_customer"}, + IDShopCompany: gormcol.Field{Table: TableNamePsInvoiceCustomer, Column: "id_shop_company"}, + DateAdd: gormcol.Field{Table: TableNamePsInvoiceCustomer, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsInvoiceCustomer, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_lang.go b/app/model/dbmodel/ps_lang.go new file mode 100644 index 0000000..ec28230 --- /dev/null +++ b/app/model/dbmodel/ps_lang.go @@ -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" + +const TableNamePsLang = "ps_lang" + +// PsLang mapped from table +type PsLang struct { + IDLang int32 `gorm:"column:id_lang;primaryKey;autoIncrement:true" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Active bool `gorm:"column:active;not null" json:"active"` + IsoCode string `gorm:"column:iso_code;not null" json:"iso_code"` + CodeLong string `gorm:"column:code_long;not null" json:"code_long"` + LanguageCode string `gorm:"column:language_code;not null" json:"language_code"` + Locale string `gorm:"column:locale;not null" json:"locale"` + DateFormatLite string `gorm:"column:date_format_lite;not null" json:"date_format_lite"` + DateFormatFull string `gorm:"column:date_format_full;not null" json:"date_format_full"` + IsRtl bool `gorm:"column:is_rtl;not null" json:"is_rtl"` +} + +// TableName PsLang's table name +func (*PsLang) TableName() string { + return TableNamePsLang +} + +var PsLangCols = struct { + IDLang gormcol.Field + Name gormcol.Field + Active gormcol.Field + IsoCode gormcol.Field + CodeLong gormcol.Field + LanguageCode gormcol.Field + Locale gormcol.Field + DateFormatLite gormcol.Field + DateFormatFull gormcol.Field + IsRtl gormcol.Field +}{ + IDLang: gormcol.Field{Table: TableNamePsLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsLang, Column: "name"}, + Active: gormcol.Field{Table: TableNamePsLang, Column: "active"}, + IsoCode: gormcol.Field{Table: TableNamePsLang, Column: "iso_code"}, + CodeLong: gormcol.Field{Table: TableNamePsLang, Column: "code_long"}, + LanguageCode: gormcol.Field{Table: TableNamePsLang, Column: "language_code"}, + Locale: gormcol.Field{Table: TableNamePsLang, Column: "locale"}, + DateFormatLite: gormcol.Field{Table: TableNamePsLang, Column: "date_format_lite"}, + DateFormatFull: gormcol.Field{Table: TableNamePsLang, Column: "date_format_full"}, + IsRtl: gormcol.Field{Table: TableNamePsLang, Column: "is_rtl"}, +} diff --git a/app/model/dbmodel/ps_lang_shop.go b/app/model/dbmodel/ps_lang_shop.go new file mode 100644 index 0000000..b095c28 --- /dev/null +++ b/app/model/dbmodel/ps_lang_shop.go @@ -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 TableNamePsLangShop = "ps_lang_shop" + +// PsLangShop mapped from table +type PsLangShop struct { + IDLang int32 `gorm:"column:id_lang;primaryKey;index:IDX_2F43BFC7BA299860,priority:1" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:IDX_2F43BFC7274A50A0,priority:1" json:"id_shop"` +} + +// TableName PsLangShop's table name +func (*PsLangShop) TableName() string { + return TableNamePsLangShop +} + +var PsLangShopCols = struct { + IDLang gormcol.Field + IDShop gormcol.Field +}{ + IDLang: gormcol.Field{Table: TableNamePsLangShop, Column: "id_lang"}, + IDShop: gormcol.Field{Table: TableNamePsLangShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_layered_category.go b/app/model/dbmodel/ps_layered_category.go new file mode 100644 index 0000000..ed5e2f4 --- /dev/null +++ b/app/model/dbmodel/ps_layered_category.go @@ -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 TableNamePsLayeredCategory = "ps_layered_category" + +// PsLayeredCategory mapped from table +type PsLayeredCategory struct { + IDLayeredCategory int32 `gorm:"column:id_layered_category;primaryKey;autoIncrement:true" json:"id_layered_category"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_category_shop,priority:2" json:"id_shop"` + IDCategory int32 `gorm:"column:id_category;not null;index:id_category,priority:1;index:id_category_shop,priority:1" json:"id_category"` + IDValue *int32 `gorm:"column:id_value;index:id_category_shop,priority:4" json:"id_value"` + Type string `gorm:"column:type;not null;index:id_category,priority:2;index:id_category_shop,priority:3" json:"type"` + Position int32 `gorm:"column:position;not null;index:id_category_shop,priority:5" json:"position"` + FilterType int32 `gorm:"column:filter_type;not null" json:"filter_type"` + FilterShowLimit int32 `gorm:"column:filter_show_limit;not null" json:"filter_show_limit"` +} + +// TableName PsLayeredCategory's table name +func (*PsLayeredCategory) TableName() string { + return TableNamePsLayeredCategory +} + +var PsLayeredCategoryCols = struct { + IDLayeredCategory gormcol.Field + IDShop gormcol.Field + IDCategory gormcol.Field + IDValue gormcol.Field + Type gormcol.Field + Position gormcol.Field + FilterType gormcol.Field + FilterShowLimit gormcol.Field +}{ + IDLayeredCategory: gormcol.Field{Table: TableNamePsLayeredCategory, Column: "id_layered_category"}, + IDShop: gormcol.Field{Table: TableNamePsLayeredCategory, Column: "id_shop"}, + IDCategory: gormcol.Field{Table: TableNamePsLayeredCategory, Column: "id_category"}, + IDValue: gormcol.Field{Table: TableNamePsLayeredCategory, Column: "id_value"}, + Type: gormcol.Field{Table: TableNamePsLayeredCategory, Column: "type"}, + Position: gormcol.Field{Table: TableNamePsLayeredCategory, Column: "position"}, + FilterType: gormcol.Field{Table: TableNamePsLayeredCategory, Column: "filter_type"}, + FilterShowLimit: gormcol.Field{Table: TableNamePsLayeredCategory, Column: "filter_show_limit"}, +} diff --git a/app/model/dbmodel/ps_layered_filter.go b/app/model/dbmodel/ps_layered_filter.go new file mode 100644 index 0000000..dc4232d --- /dev/null +++ b/app/model/dbmodel/ps_layered_filter.go @@ -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 TableNamePsLayeredFilter = "ps_layered_filter" + +// PsLayeredFilter mapped from table +type PsLayeredFilter struct { + IDLayeredFilter int32 `gorm:"column:id_layered_filter;primaryKey;autoIncrement:true" json:"id_layered_filter"` + Name string `gorm:"column:name;not null" json:"name"` + Filters *string `gorm:"column:filters" json:"filters"` + NCategories int32 `gorm:"column:n_categories;not null" json:"n_categories"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsLayeredFilter's table name +func (*PsLayeredFilter) TableName() string { + return TableNamePsLayeredFilter +} + +var PsLayeredFilterCols = struct { + IDLayeredFilter gormcol.Field + Name gormcol.Field + Filters gormcol.Field + NCategories gormcol.Field + DateAdd gormcol.Field +}{ + IDLayeredFilter: gormcol.Field{Table: TableNamePsLayeredFilter, Column: "id_layered_filter"}, + Name: gormcol.Field{Table: TableNamePsLayeredFilter, Column: "name"}, + Filters: gormcol.Field{Table: TableNamePsLayeredFilter, Column: "filters"}, + NCategories: gormcol.Field{Table: TableNamePsLayeredFilter, Column: "n_categories"}, + DateAdd: gormcol.Field{Table: TableNamePsLayeredFilter, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_layered_filter_block.go b/app/model/dbmodel/ps_layered_filter_block.go new file mode 100644 index 0000000..c749933 --- /dev/null +++ b/app/model/dbmodel/ps_layered_filter_block.go @@ -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 TableNamePsLayeredFilterBlock = "ps_layered_filter_block" + +// PsLayeredFilterBlock mapped from table +type PsLayeredFilterBlock struct { + Hash string `gorm:"column:hash;primaryKey" json:"hash"` + Data *string `gorm:"column:data" json:"data"` +} + +// TableName PsLayeredFilterBlock's table name +func (*PsLayeredFilterBlock) TableName() string { + return TableNamePsLayeredFilterBlock +} + +var PsLayeredFilterBlockCols = struct { + Hash gormcol.Field + Data gormcol.Field +}{ + Hash: gormcol.Field{Table: TableNamePsLayeredFilterBlock, Column: "hash"}, + Data: gormcol.Field{Table: TableNamePsLayeredFilterBlock, Column: "data"}, +} diff --git a/app/model/dbmodel/ps_layered_filter_shop.go b/app/model/dbmodel/ps_layered_filter_shop.go new file mode 100644 index 0000000..3e5a447 --- /dev/null +++ b/app/model/dbmodel/ps_layered_filter_shop.go @@ -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 TableNamePsLayeredFilterShop = "ps_layered_filter_shop" + +// PsLayeredFilterShop mapped from table +type PsLayeredFilterShop struct { + IDLayeredFilter int32 `gorm:"column:id_layered_filter;primaryKey" json:"id_layered_filter"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsLayeredFilterShop's table name +func (*PsLayeredFilterShop) TableName() string { + return TableNamePsLayeredFilterShop +} + +var PsLayeredFilterShopCols = struct { + IDLayeredFilter gormcol.Field + IDShop gormcol.Field +}{ + IDLayeredFilter: gormcol.Field{Table: TableNamePsLayeredFilterShop, Column: "id_layered_filter"}, + IDShop: gormcol.Field{Table: TableNamePsLayeredFilterShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_layered_indexable_attribute_group.go b/app/model/dbmodel/ps_layered_indexable_attribute_group.go new file mode 100644 index 0000000..cf98f0b --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_attribute_group.go @@ -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 TableNamePsLayeredIndexableAttributeGroup = "ps_layered_indexable_attribute_group" + +// PsLayeredIndexableAttributeGroup mapped from table +type PsLayeredIndexableAttributeGroup struct { + IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey" json:"id_attribute_group"` + Indexable bool `gorm:"column:indexable;not null" json:"indexable"` +} + +// TableName PsLayeredIndexableAttributeGroup's table name +func (*PsLayeredIndexableAttributeGroup) TableName() string { + return TableNamePsLayeredIndexableAttributeGroup +} + +var PsLayeredIndexableAttributeGroupCols = struct { + IDAttributeGroup gormcol.Field + Indexable gormcol.Field +}{ + IDAttributeGroup: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeGroup, Column: "id_attribute_group"}, + Indexable: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeGroup, Column: "indexable"}, +} diff --git a/app/model/dbmodel/ps_layered_indexable_attribute_group_lang_value.go b/app/model/dbmodel/ps_layered_indexable_attribute_group_lang_value.go new file mode 100644 index 0000000..cedfcd8 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_attribute_group_lang_value.go @@ -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 TableNamePsLayeredIndexableAttributeGroupLangValue = "ps_layered_indexable_attribute_group_lang_value" + +// PsLayeredIndexableAttributeGroupLangValue mapped from table +type PsLayeredIndexableAttributeGroupLangValue struct { + IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey" json:"id_attribute_group"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + URLName *string `gorm:"column:url_name" json:"url_name"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` +} + +// TableName PsLayeredIndexableAttributeGroupLangValue's table name +func (*PsLayeredIndexableAttributeGroupLangValue) TableName() string { + return TableNamePsLayeredIndexableAttributeGroupLangValue +} + +var PsLayeredIndexableAttributeGroupLangValueCols = struct { + IDAttributeGroup gormcol.Field + IDLang gormcol.Field + URLName gormcol.Field + MetaTitle gormcol.Field +}{ + IDAttributeGroup: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeGroupLangValue, Column: "id_attribute_group"}, + IDLang: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeGroupLangValue, Column: "id_lang"}, + URLName: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeGroupLangValue, Column: "url_name"}, + MetaTitle: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeGroupLangValue, Column: "meta_title"}, +} diff --git a/app/model/dbmodel/ps_layered_indexable_attribute_lang_value.go b/app/model/dbmodel/ps_layered_indexable_attribute_lang_value.go new file mode 100644 index 0000000..a666247 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_attribute_lang_value.go @@ -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 TableNamePsLayeredIndexableAttributeLangValue = "ps_layered_indexable_attribute_lang_value" + +// PsLayeredIndexableAttributeLangValue mapped from table +type PsLayeredIndexableAttributeLangValue struct { + IDAttribute int32 `gorm:"column:id_attribute;primaryKey" json:"id_attribute"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + URLName *string `gorm:"column:url_name" json:"url_name"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` +} + +// TableName PsLayeredIndexableAttributeLangValue's table name +func (*PsLayeredIndexableAttributeLangValue) TableName() string { + return TableNamePsLayeredIndexableAttributeLangValue +} + +var PsLayeredIndexableAttributeLangValueCols = struct { + IDAttribute gormcol.Field + IDLang gormcol.Field + URLName gormcol.Field + MetaTitle gormcol.Field +}{ + IDAttribute: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeLangValue, Column: "id_attribute"}, + IDLang: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeLangValue, Column: "id_lang"}, + URLName: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeLangValue, Column: "url_name"}, + MetaTitle: gormcol.Field{Table: TableNamePsLayeredIndexableAttributeLangValue, Column: "meta_title"}, +} diff --git a/app/model/dbmodel/ps_layered_indexable_feature.go b/app/model/dbmodel/ps_layered_indexable_feature.go new file mode 100644 index 0000000..cae75a1 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_feature.go @@ -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 TableNamePsLayeredIndexableFeature = "ps_layered_indexable_feature" + +// PsLayeredIndexableFeature mapped from table +type PsLayeredIndexableFeature struct { + IDFeature int32 `gorm:"column:id_feature;primaryKey" json:"id_feature"` + Indexable bool `gorm:"column:indexable;not null" json:"indexable"` +} + +// TableName PsLayeredIndexableFeature's table name +func (*PsLayeredIndexableFeature) TableName() string { + return TableNamePsLayeredIndexableFeature +} + +var PsLayeredIndexableFeatureCols = struct { + IDFeature gormcol.Field + Indexable gormcol.Field +}{ + IDFeature: gormcol.Field{Table: TableNamePsLayeredIndexableFeature, Column: "id_feature"}, + Indexable: gormcol.Field{Table: TableNamePsLayeredIndexableFeature, Column: "indexable"}, +} diff --git a/app/model/dbmodel/ps_layered_indexable_feature_lang_value.go b/app/model/dbmodel/ps_layered_indexable_feature_lang_value.go new file mode 100644 index 0000000..b8d6cb1 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_feature_lang_value.go @@ -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 TableNamePsLayeredIndexableFeatureLangValue = "ps_layered_indexable_feature_lang_value" + +// PsLayeredIndexableFeatureLangValue mapped from table +type PsLayeredIndexableFeatureLangValue struct { + IDFeature int32 `gorm:"column:id_feature;primaryKey" json:"id_feature"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + URLName string `gorm:"column:url_name;not null" json:"url_name"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` +} + +// TableName PsLayeredIndexableFeatureLangValue's table name +func (*PsLayeredIndexableFeatureLangValue) TableName() string { + return TableNamePsLayeredIndexableFeatureLangValue +} + +var PsLayeredIndexableFeatureLangValueCols = struct { + IDFeature gormcol.Field + IDLang gormcol.Field + URLName gormcol.Field + MetaTitle gormcol.Field +}{ + IDFeature: gormcol.Field{Table: TableNamePsLayeredIndexableFeatureLangValue, Column: "id_feature"}, + IDLang: gormcol.Field{Table: TableNamePsLayeredIndexableFeatureLangValue, Column: "id_lang"}, + URLName: gormcol.Field{Table: TableNamePsLayeredIndexableFeatureLangValue, Column: "url_name"}, + MetaTitle: gormcol.Field{Table: TableNamePsLayeredIndexableFeatureLangValue, Column: "meta_title"}, +} diff --git a/app/model/dbmodel/ps_layered_indexable_feature_value_lang_value.go b/app/model/dbmodel/ps_layered_indexable_feature_value_lang_value.go new file mode 100644 index 0000000..0c271f8 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_feature_value_lang_value.go @@ -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 TableNamePsLayeredIndexableFeatureValueLangValue = "ps_layered_indexable_feature_value_lang_value" + +// PsLayeredIndexableFeatureValueLangValue mapped from table +type PsLayeredIndexableFeatureValueLangValue struct { + IDFeatureValue int32 `gorm:"column:id_feature_value;primaryKey" json:"id_feature_value"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + URLName *string `gorm:"column:url_name" json:"url_name"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` +} + +// TableName PsLayeredIndexableFeatureValueLangValue's table name +func (*PsLayeredIndexableFeatureValueLangValue) TableName() string { + return TableNamePsLayeredIndexableFeatureValueLangValue +} + +var PsLayeredIndexableFeatureValueLangValueCols = struct { + IDFeatureValue gormcol.Field + IDLang gormcol.Field + URLName gormcol.Field + MetaTitle gormcol.Field +}{ + IDFeatureValue: gormcol.Field{Table: TableNamePsLayeredIndexableFeatureValueLangValue, Column: "id_feature_value"}, + IDLang: gormcol.Field{Table: TableNamePsLayeredIndexableFeatureValueLangValue, Column: "id_lang"}, + URLName: gormcol.Field{Table: TableNamePsLayeredIndexableFeatureValueLangValue, Column: "url_name"}, + MetaTitle: gormcol.Field{Table: TableNamePsLayeredIndexableFeatureValueLangValue, Column: "meta_title"}, +} diff --git a/app/model/dbmodel/ps_layered_price_index.go b/app/model/dbmodel/ps_layered_price_index.go new file mode 100644 index 0000000..2e5ade9 --- /dev/null +++ b/app/model/dbmodel/ps_layered_price_index.go @@ -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 TableNamePsLayeredPriceIndex = "ps_layered_price_index" + +// PsLayeredPriceIndex mapped from table +type PsLayeredPriceIndex struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDCurrency int32 `gorm:"column:id_currency;primaryKey;index:id_currency,priority:1" json:"id_currency"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` + PriceMin float64 `gorm:"column:price_min;not null;index:price_min,priority:1" json:"price_min"` + PriceMax float64 `gorm:"column:price_max;not null;index:price_max,priority:1" json:"price_max"` + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` +} + +// TableName PsLayeredPriceIndex's table name +func (*PsLayeredPriceIndex) TableName() string { + return TableNamePsLayeredPriceIndex +} + +var PsLayeredPriceIndexCols = struct { + IDProduct gormcol.Field + IDCurrency gormcol.Field + IDShop gormcol.Field + PriceMin gormcol.Field + PriceMax gormcol.Field + IDCountry gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsLayeredPriceIndex, Column: "id_product"}, + IDCurrency: gormcol.Field{Table: TableNamePsLayeredPriceIndex, Column: "id_currency"}, + IDShop: gormcol.Field{Table: TableNamePsLayeredPriceIndex, Column: "id_shop"}, + PriceMin: gormcol.Field{Table: TableNamePsLayeredPriceIndex, Column: "price_min"}, + PriceMax: gormcol.Field{Table: TableNamePsLayeredPriceIndex, Column: "price_max"}, + IDCountry: gormcol.Field{Table: TableNamePsLayeredPriceIndex, Column: "id_country"}, +} diff --git a/app/model/dbmodel/ps_layered_product_attribute.go b/app/model/dbmodel/ps_layered_product_attribute.go new file mode 100644 index 0000000..0b01adf --- /dev/null +++ b/app/model/dbmodel/ps_layered_product_attribute.go @@ -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 TableNamePsLayeredProductAttribute = "ps_layered_product_attribute" + +// PsLayeredProductAttribute mapped from table +type PsLayeredProductAttribute struct { + IDAttribute int32 `gorm:"column:id_attribute;primaryKey;uniqueIndex:id_attribute_group,priority:2" json:"id_attribute"` + IDProduct int32 `gorm:"column:id_product;primaryKey;uniqueIndex:id_attribute_group,priority:3" json:"id_product"` + IDAttributeGroup int32 `gorm:"column:id_attribute_group;not null;uniqueIndex:id_attribute_group,priority:1" json:"id_attribute_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey;uniqueIndex:id_attribute_group,priority:4;default:1" json:"id_shop"` +} + +// TableName PsLayeredProductAttribute's table name +func (*PsLayeredProductAttribute) TableName() string { + return TableNamePsLayeredProductAttribute +} + +var PsLayeredProductAttributeCols = struct { + IDAttribute gormcol.Field + IDProduct gormcol.Field + IDAttributeGroup gormcol.Field + IDShop gormcol.Field +}{ + IDAttribute: gormcol.Field{Table: TableNamePsLayeredProductAttribute, Column: "id_attribute"}, + IDProduct: gormcol.Field{Table: TableNamePsLayeredProductAttribute, Column: "id_product"}, + IDAttributeGroup: gormcol.Field{Table: TableNamePsLayeredProductAttribute, Column: "id_attribute_group"}, + IDShop: gormcol.Field{Table: TableNamePsLayeredProductAttribute, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_link_block.go b/app/model/dbmodel/ps_link_block.go new file mode 100644 index 0000000..850730e --- /dev/null +++ b/app/model/dbmodel/ps_link_block.go @@ -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 TableNamePsLinkBlock = "ps_link_block" + +// PsLinkBlock mapped from table +type PsLinkBlock struct { + IDLinkBlock int32 `gorm:"column:id_link_block;primaryKey;autoIncrement:true" json:"id_link_block"` + IDHook *int32 `gorm:"column:id_hook" json:"id_hook"` + Position int32 `gorm:"column:position;not null" json:"position"` + Content *string `gorm:"column:content" json:"content"` +} + +// TableName PsLinkBlock's table name +func (*PsLinkBlock) TableName() string { + return TableNamePsLinkBlock +} + +var PsLinkBlockCols = struct { + IDLinkBlock gormcol.Field + IDHook gormcol.Field + Position gormcol.Field + Content gormcol.Field +}{ + IDLinkBlock: gormcol.Field{Table: TableNamePsLinkBlock, Column: "id_link_block"}, + IDHook: gormcol.Field{Table: TableNamePsLinkBlock, Column: "id_hook"}, + Position: gormcol.Field{Table: TableNamePsLinkBlock, Column: "position"}, + Content: gormcol.Field{Table: TableNamePsLinkBlock, Column: "content"}, +} diff --git a/app/model/dbmodel/ps_link_block_lang.go b/app/model/dbmodel/ps_link_block_lang.go new file mode 100644 index 0000000..dd92461 --- /dev/null +++ b/app/model/dbmodel/ps_link_block_lang.go @@ -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 TableNamePsLinkBlockLang = "ps_link_block_lang" + +// PsLinkBlockLang mapped from table +type PsLinkBlockLang struct { + IDLinkBlock int32 `gorm:"column:id_link_block;primaryKey" json:"id_link_block"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + CustomContent *string `gorm:"column:custom_content" json:"custom_content"` +} + +// TableName PsLinkBlockLang's table name +func (*PsLinkBlockLang) TableName() string { + return TableNamePsLinkBlockLang +} + +var PsLinkBlockLangCols = struct { + IDLinkBlock gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + CustomContent gormcol.Field +}{ + IDLinkBlock: gormcol.Field{Table: TableNamePsLinkBlockLang, Column: "id_link_block"}, + IDLang: gormcol.Field{Table: TableNamePsLinkBlockLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsLinkBlockLang, Column: "name"}, + CustomContent: gormcol.Field{Table: TableNamePsLinkBlockLang, Column: "custom_content"}, +} diff --git a/app/model/dbmodel/ps_link_block_shop.go b/app/model/dbmodel/ps_link_block_shop.go new file mode 100644 index 0000000..7d8ae73 --- /dev/null +++ b/app/model/dbmodel/ps_link_block_shop.go @@ -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 TableNamePsLinkBlockShop = "ps_link_block_shop" + +// PsLinkBlockShop mapped from table +type PsLinkBlockShop struct { + IDLinkBlock int32 `gorm:"column:id_link_block;primaryKey;autoIncrement:true" json:"id_link_block"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsLinkBlockShop's table name +func (*PsLinkBlockShop) TableName() string { + return TableNamePsLinkBlockShop +} + +var PsLinkBlockShopCols = struct { + IDLinkBlock gormcol.Field + IDShop gormcol.Field +}{ + IDLinkBlock: gormcol.Field{Table: TableNamePsLinkBlockShop, Column: "id_link_block"}, + IDShop: gormcol.Field{Table: TableNamePsLinkBlockShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_linksmenutop.go b/app/model/dbmodel/ps_linksmenutop.go new file mode 100644 index 0000000..c4edb7b --- /dev/null +++ b/app/model/dbmodel/ps_linksmenutop.go @@ -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 TableNamePsLinksmenutop = "ps_linksmenutop" + +// PsLinksmenutop mapped from table +type PsLinksmenutop struct { + IDLinksmenutop int32 `gorm:"column:id_linksmenutop;primaryKey;autoIncrement:true" json:"id_linksmenutop"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1" json:"id_shop"` + NewWindow bool `gorm:"column:new_window;not null" json:"new_window"` +} + +// TableName PsLinksmenutop's table name +func (*PsLinksmenutop) TableName() string { + return TableNamePsLinksmenutop +} + +var PsLinksmenutopCols = struct { + IDLinksmenutop gormcol.Field + IDShop gormcol.Field + NewWindow gormcol.Field +}{ + IDLinksmenutop: gormcol.Field{Table: TableNamePsLinksmenutop, Column: "id_linksmenutop"}, + IDShop: gormcol.Field{Table: TableNamePsLinksmenutop, Column: "id_shop"}, + NewWindow: gormcol.Field{Table: TableNamePsLinksmenutop, Column: "new_window"}, +} diff --git a/app/model/dbmodel/ps_linksmenutop_lang.go b/app/model/dbmodel/ps_linksmenutop_lang.go new file mode 100644 index 0000000..4b7e2ca --- /dev/null +++ b/app/model/dbmodel/ps_linksmenutop_lang.go @@ -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 TableNamePsLinksmenutopLang = "ps_linksmenutop_lang" + +// PsLinksmenutopLang mapped from table +type PsLinksmenutopLang struct { + IDLinksmenutop int32 `gorm:"column:id_linksmenutop;primaryKey;uniqueIndex:id_lang_id_shop_id_linksmenutop,priority:3;index:id_linksmenutop,priority:1" json:"id_linksmenutop"` + IDLang int32 `gorm:"column:id_lang;primaryKey;uniqueIndex:id_lang_id_shop_id_linksmenutop,priority:1;index:id_linksmenutop,priority:2" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;primaryKey;uniqueIndex:id_lang_id_shop_id_linksmenutop,priority:2;index:id_linksmenutop,priority:3" json:"id_shop"` + Label string `gorm:"column:label;not null" json:"label"` + Link string `gorm:"column:link;not null" json:"link"` +} + +// TableName PsLinksmenutopLang's table name +func (*PsLinksmenutopLang) TableName() string { + return TableNamePsLinksmenutopLang +} + +var PsLinksmenutopLangCols = struct { + IDLinksmenutop gormcol.Field + IDLang gormcol.Field + IDShop gormcol.Field + Label gormcol.Field + Link gormcol.Field +}{ + IDLinksmenutop: gormcol.Field{Table: TableNamePsLinksmenutopLang, Column: "id_linksmenutop"}, + IDLang: gormcol.Field{Table: TableNamePsLinksmenutopLang, Column: "id_lang"}, + IDShop: gormcol.Field{Table: TableNamePsLinksmenutopLang, Column: "id_shop"}, + Label: gormcol.Field{Table: TableNamePsLinksmenutopLang, Column: "label"}, + Link: gormcol.Field{Table: TableNamePsLinksmenutopLang, Column: "link"}, +} diff --git a/app/model/dbmodel/ps_log.go b/app/model/dbmodel/ps_log.go new file mode 100644 index 0000000..8b7acff --- /dev/null +++ b/app/model/dbmodel/ps_log.go @@ -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 TableNamePsLog = "ps_log" + +// PsLog mapped from table +type PsLog struct { + IDLog int32 `gorm:"column:id_log;primaryKey;autoIncrement:true" json:"id_log"` + Severity bool `gorm:"column:severity;not null" json:"severity"` + ErrorCode *int32 `gorm:"column:error_code" json:"error_code"` + Message string `gorm:"column:message;not null" json:"message"` + ObjectType *string `gorm:"column:object_type" json:"object_type"` + ObjectID *int32 `gorm:"column:object_id" json:"object_id"` + IDEmployee *int32 `gorm:"column:id_employee" json:"id_employee"` + 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 PsLog's table name +func (*PsLog) TableName() string { + return TableNamePsLog +} + +var PsLogCols = struct { + IDLog gormcol.Field + Severity gormcol.Field + ErrorCode gormcol.Field + Message gormcol.Field + ObjectType gormcol.Field + ObjectID gormcol.Field + IDEmployee gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDLog: gormcol.Field{Table: TableNamePsLog, Column: "id_log"}, + Severity: gormcol.Field{Table: TableNamePsLog, Column: "severity"}, + ErrorCode: gormcol.Field{Table: TableNamePsLog, Column: "error_code"}, + Message: gormcol.Field{Table: TableNamePsLog, Column: "message"}, + ObjectType: gormcol.Field{Table: TableNamePsLog, Column: "object_type"}, + ObjectID: gormcol.Field{Table: TableNamePsLog, Column: "object_id"}, + IDEmployee: gormcol.Field{Table: TableNamePsLog, Column: "id_employee"}, + DateAdd: gormcol.Field{Table: TableNamePsLog, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsLog, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_maal_cms_category.go b/app/model/dbmodel/ps_maal_cms_category.go new file mode 100644 index 0000000..9db2e15 --- /dev/null +++ b/app/model/dbmodel/ps_maal_cms_category.go @@ -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 TableNamePsMaalCmsCategory = "ps_maal_cms_category" + +// PsMaalCmsCategory mapped from table +type PsMaalCmsCategory struct { + IDCategory int32 `gorm:"column:id_category;primaryKey;autoIncrement:true" 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"` + Active bool `gorm:"column:active;not null;index:activenleft,priority:1;index:activenright,priority:1;index:nleftrightactive,priority:1" 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 PsMaalCmsCategory's table name +func (*PsMaalCmsCategory) TableName() string { + return TableNamePsMaalCmsCategory +} + +var PsMaalCmsCategoryCols = struct { + IDCategory gormcol.Field + IDParent gormcol.Field + IDShopDefault gormcol.Field + Active gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Position gormcol.Field +}{ + IDCategory: gormcol.Field{Table: TableNamePsMaalCmsCategory, Column: "id_category"}, + IDParent: gormcol.Field{Table: TableNamePsMaalCmsCategory, Column: "id_parent"}, + IDShopDefault: gormcol.Field{Table: TableNamePsMaalCmsCategory, Column: "id_shop_default"}, + Active: gormcol.Field{Table: TableNamePsMaalCmsCategory, Column: "active"}, + DateAdd: gormcol.Field{Table: TableNamePsMaalCmsCategory, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsMaalCmsCategory, Column: "date_upd"}, + Position: gormcol.Field{Table: TableNamePsMaalCmsCategory, Column: "position"}, +} diff --git a/app/model/dbmodel/ps_maal_cms_category_lang.go b/app/model/dbmodel/ps_maal_cms_category_lang.go new file mode 100644 index 0000000..202d401 --- /dev/null +++ b/app/model/dbmodel/ps_maal_cms_category_lang.go @@ -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 TableNamePsMaalCmsCategoryLang = "ps_maal_cms_category_lang" + +// PsMaalCmsCategoryLang mapped from table +type PsMaalCmsCategoryLang 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"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` +} + +// TableName PsMaalCmsCategoryLang's table name +func (*PsMaalCmsCategoryLang) TableName() string { + return TableNamePsMaalCmsCategoryLang +} + +var PsMaalCmsCategoryLangCols = struct { + IDCategory gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Description gormcol.Field + LinkRewrite gormcol.Field + MetaTitle gormcol.Field + MetaDescription gormcol.Field +}{ + IDCategory: gormcol.Field{Table: TableNamePsMaalCmsCategoryLang, Column: "id_category"}, + IDShop: gormcol.Field{Table: TableNamePsMaalCmsCategoryLang, Column: "id_shop"}, + IDLang: gormcol.Field{Table: TableNamePsMaalCmsCategoryLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsMaalCmsCategoryLang, Column: "name"}, + Description: gormcol.Field{Table: TableNamePsMaalCmsCategoryLang, Column: "description"}, + LinkRewrite: gormcol.Field{Table: TableNamePsMaalCmsCategoryLang, Column: "link_rewrite"}, + MetaTitle: gormcol.Field{Table: TableNamePsMaalCmsCategoryLang, Column: "meta_title"}, + MetaDescription: gormcol.Field{Table: TableNamePsMaalCmsCategoryLang, Column: "meta_description"}, +} diff --git a/app/model/dbmodel/ps_maal_cms_page.go b/app/model/dbmodel/ps_maal_cms_page.go new file mode 100644 index 0000000..76be250 --- /dev/null +++ b/app/model/dbmodel/ps_maal_cms_page.go @@ -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 TableNamePsMaalCmsPage = "ps_maal_cms_page" + +// PsMaalCmsPage mapped from table +type PsMaalCmsPage struct { + IDPage int32 `gorm:"column:id_page;primaryKey;autoIncrement:true" json:"id_page"` + IDCategory *int32 `gorm:"column:id_category" json:"id_category"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` + Content *string `gorm:"column:content" json:"content"` + Jumbotron *string `gorm:"column:jumbotron" json:"jumbotron"` +} + +// TableName PsMaalCmsPage's table name +func (*PsMaalCmsPage) TableName() string { + return TableNamePsMaalCmsPage +} + +var PsMaalCmsPageCols = struct { + IDPage gormcol.Field + IDCategory gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Content gormcol.Field + Jumbotron gormcol.Field +}{ + IDPage: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "id_page"}, + IDCategory: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "id_category"}, + DateAdd: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "date_upd"}, + Content: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "content"}, + Jumbotron: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "jumbotron"}, +} diff --git a/app/model/dbmodel/ps_maal_events.go b/app/model/dbmodel/ps_maal_events.go new file mode 100644 index 0000000..eefc73c --- /dev/null +++ b/app/model/dbmodel/ps_maal_events.go @@ -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 TableNamePsMaalEvent = "ps_maal_events" + +// PsMaalEvent mapped from table +type PsMaalEvent struct { + IDEvent int32 `gorm:"column:id_event;primaryKey;autoIncrement:true" json:"id_event"` + Gallery *string `gorm:"column:gallery" json:"gallery"` + PostImg *string `gorm:"column:post_img" json:"post_img"` + Position *int32 `gorm:"column:position" json:"position"` + Active *int32 `gorm:"column:active" json:"active"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsMaalEvent's table name +func (*PsMaalEvent) TableName() string { + return TableNamePsMaalEvent +} + +var PsMaalEventCols = struct { + IDEvent gormcol.Field + Gallery gormcol.Field + PostImg gormcol.Field + Position gormcol.Field + Active gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDEvent: gormcol.Field{Table: TableNamePsMaalEvent, Column: "id_event"}, + Gallery: gormcol.Field{Table: TableNamePsMaalEvent, Column: "gallery"}, + PostImg: gormcol.Field{Table: TableNamePsMaalEvent, Column: "post_img"}, + Position: gormcol.Field{Table: TableNamePsMaalEvent, Column: "position"}, + Active: gormcol.Field{Table: TableNamePsMaalEvent, Column: "active"}, + DateAdd: gormcol.Field{Table: TableNamePsMaalEvent, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsMaalEvent, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_maal_events_lang.go b/app/model/dbmodel/ps_maal_events_lang.go new file mode 100644 index 0000000..c645277 --- /dev/null +++ b/app/model/dbmodel/ps_maal_events_lang.go @@ -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" + +const TableNamePsMaalEventsLang = "ps_maal_events_lang" + +// PsMaalEventsLang mapped from table +type PsMaalEventsLang struct { + IDEventLang int32 `gorm:"column:id_event_lang;primaryKey;autoIncrement:true" json:"id_event_lang"` + IDEvent int32 `gorm:"column:id_event;not null;index:id_event_id_lang,priority:1" json:"id_event"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_event_id_lang,priority:2" json:"id_lang"` + PostTitle *string `gorm:"column:post_title" json:"post_title"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` + ContentTop *string `gorm:"column:content_top" json:"content_top"` + ContentMiddle *string `gorm:"column:content_middle" json:"content_middle"` + ContentBottom *string `gorm:"column:content_bottom" json:"content_bottom"` + LinkRewrite *string `gorm:"column:link_rewrite" json:"link_rewrite"` +} + +// TableName PsMaalEventsLang's table name +func (*PsMaalEventsLang) TableName() string { + return TableNamePsMaalEventsLang +} + +var PsMaalEventsLangCols = struct { + IDEventLang gormcol.Field + IDEvent gormcol.Field + IDLang gormcol.Field + PostTitle gormcol.Field + MetaTitle gormcol.Field + MetaDescription gormcol.Field + ContentTop gormcol.Field + ContentMiddle gormcol.Field + ContentBottom gormcol.Field + LinkRewrite gormcol.Field +}{ + IDEventLang: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "id_event_lang"}, + IDEvent: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "id_event"}, + IDLang: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "id_lang"}, + PostTitle: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "post_title"}, + MetaTitle: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "meta_title"}, + MetaDescription: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "meta_description"}, + ContentTop: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "content_top"}, + ContentMiddle: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "content_middle"}, + ContentBottom: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "content_bottom"}, + LinkRewrite: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "link_rewrite"}, +} diff --git a/app/model/dbmodel/ps_maal_invoice_note.go b/app/model/dbmodel/ps_maal_invoice_note.go new file mode 100644 index 0000000..7c2fd9d --- /dev/null +++ b/app/model/dbmodel/ps_maal_invoice_note.go @@ -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 TableNamePsMaalInvoiceNote = "ps_maal_invoice_note" + +// PsMaalInvoiceNote mapped from table +type PsMaalInvoiceNote struct { + IDOrder int32 `gorm:"column:id_order;primaryKey" json:"id_order"` + Note *string `gorm:"column:note" json:"note"` + DateAdd time.Time `gorm:"column:date_add;not null;default:current_timestamp()" json:"date_add"` +} + +// TableName PsMaalInvoiceNote's table name +func (*PsMaalInvoiceNote) TableName() string { + return TableNamePsMaalInvoiceNote +} + +var PsMaalInvoiceNoteCols = struct { + IDOrder gormcol.Field + Note gormcol.Field + DateAdd gormcol.Field +}{ + IDOrder: gormcol.Field{Table: TableNamePsMaalInvoiceNote, Column: "id_order"}, + Note: gormcol.Field{Table: TableNamePsMaalInvoiceNote, Column: "note"}, + DateAdd: gormcol.Field{Table: TableNamePsMaalInvoiceNote, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_maal_invoicehelper.go b/app/model/dbmodel/ps_maal_invoicehelper.go new file mode 100644 index 0000000..c4451cc --- /dev/null +++ b/app/model/dbmodel/ps_maal_invoicehelper.go @@ -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 TableNamePsMaalInvoicehelper = "ps_maal_invoicehelper" + +// PsMaalInvoicehelper mapped from table +type PsMaalInvoicehelper struct { + IDOrder int32 `gorm:"column:id_order;primaryKey" json:"id_order"` + IDOrderInvoice *int32 `gorm:"column:id_order_invoice" json:"id_order_invoice"` + DateOfIssue *time.Time `gorm:"column:date_of_issue" json:"date_of_issue"` + DateDeliveryExpected *time.Time `gorm:"column:date_delivery_expected" json:"date_delivery_expected"` + DaysToPay *int32 `gorm:"column:days_to_pay" json:"days_to_pay"` + 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 PsMaalInvoicehelper's table name +func (*PsMaalInvoicehelper) TableName() string { + return TableNamePsMaalInvoicehelper +} + +var PsMaalInvoicehelperCols = struct { + IDOrder gormcol.Field + IDOrderInvoice gormcol.Field + DateOfIssue gormcol.Field + DateDeliveryExpected gormcol.Field + DaysToPay gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrder: gormcol.Field{Table: TableNamePsMaalInvoicehelper, Column: "id_order"}, + IDOrderInvoice: gormcol.Field{Table: TableNamePsMaalInvoicehelper, Column: "id_order_invoice"}, + DateOfIssue: gormcol.Field{Table: TableNamePsMaalInvoicehelper, Column: "date_of_issue"}, + DateDeliveryExpected: gormcol.Field{Table: TableNamePsMaalInvoicehelper, Column: "date_delivery_expected"}, + DaysToPay: gormcol.Field{Table: TableNamePsMaalInvoicehelper, Column: "days_to_pay"}, + DateAdd: gormcol.Field{Table: TableNamePsMaalInvoicehelper, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsMaalInvoicehelper, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_maal_links_blok.go b/app/model/dbmodel/ps_maal_links_blok.go new file mode 100644 index 0000000..52acbd9 --- /dev/null +++ b/app/model/dbmodel/ps_maal_links_blok.go @@ -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 TableNamePsMaalLinksBlok = "ps_maal_links_blok" + +// PsMaalLinksBlok mapped from table +type PsMaalLinksBlok struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsMaalLinksBlok's table name +func (*PsMaalLinksBlok) TableName() string { + return TableNamePsMaalLinksBlok +} + +var PsMaalLinksBlokCols = struct { + IDHomesliderSlides gormcol.Field + IDShop gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{Table: TableNamePsMaalLinksBlok, Column: "id_homeslider_slides"}, + IDShop: gormcol.Field{Table: TableNamePsMaalLinksBlok, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_maal_links_blok_slides.go b/app/model/dbmodel/ps_maal_links_blok_slides.go new file mode 100644 index 0000000..0687488 --- /dev/null +++ b/app/model/dbmodel/ps_maal_links_blok_slides.go @@ -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 TableNamePsMaalLinksBlokSlide = "ps_maal_links_blok_slides" + +// PsMaalLinksBlokSlide mapped from table +type PsMaalLinksBlokSlide struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + Position int32 `gorm:"column:position;not null" json:"position"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsMaalLinksBlokSlide's table name +func (*PsMaalLinksBlokSlide) TableName() string { + return TableNamePsMaalLinksBlokSlide +} + +var PsMaalLinksBlokSlideCols = struct { + IDHomesliderSlides gormcol.Field + Position gormcol.Field + Active gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{Table: TableNamePsMaalLinksBlokSlide, Column: "id_homeslider_slides"}, + Position: gormcol.Field{Table: TableNamePsMaalLinksBlokSlide, Column: "position"}, + Active: gormcol.Field{Table: TableNamePsMaalLinksBlokSlide, Column: "active"}, +} diff --git a/app/model/dbmodel/ps_maal_links_blok_slides_lang.go b/app/model/dbmodel/ps_maal_links_blok_slides_lang.go new file mode 100644 index 0000000..7a056d9 --- /dev/null +++ b/app/model/dbmodel/ps_maal_links_blok_slides_lang.go @@ -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 TableNamePsMaalLinksBlokSlidesLang = "ps_maal_links_blok_slides_lang" + +// PsMaalLinksBlokSlidesLang mapped from table +type PsMaalLinksBlokSlidesLang struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey" json:"id_homeslider_slides"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Title string `gorm:"column:title;not null" json:"title"` + Description string `gorm:"column:description;not null" json:"description"` + Legend string `gorm:"column:legend;not null" json:"legend"` + URL string `gorm:"column:url;not null" json:"url"` + Image string `gorm:"column:image;not null" json:"image"` +} + +// TableName PsMaalLinksBlokSlidesLang's table name +func (*PsMaalLinksBlokSlidesLang) TableName() string { + return TableNamePsMaalLinksBlokSlidesLang +} + +var PsMaalLinksBlokSlidesLangCols = struct { + IDHomesliderSlides gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field + Legend gormcol.Field + URL gormcol.Field + Image gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{Table: TableNamePsMaalLinksBlokSlidesLang, Column: "id_homeslider_slides"}, + IDLang: gormcol.Field{Table: TableNamePsMaalLinksBlokSlidesLang, Column: "id_lang"}, + Title: gormcol.Field{Table: TableNamePsMaalLinksBlokSlidesLang, Column: "title"}, + Description: gormcol.Field{Table: TableNamePsMaalLinksBlokSlidesLang, Column: "description"}, + Legend: gormcol.Field{Table: TableNamePsMaalLinksBlokSlidesLang, Column: "legend"}, + URL: gormcol.Field{Table: TableNamePsMaalLinksBlokSlidesLang, Column: "url"}, + Image: gormcol.Field{Table: TableNamePsMaalLinksBlokSlidesLang, Column: "image"}, +} diff --git a/app/model/dbmodel/ps_maal_slider.go b/app/model/dbmodel/ps_maal_slider.go new file mode 100644 index 0000000..59d5ec1 --- /dev/null +++ b/app/model/dbmodel/ps_maal_slider.go @@ -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 TableNamePsMaalSlider = "ps_maal_slider" + +// PsMaalSlider mapped from table +type PsMaalSlider struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsMaalSlider's table name +func (*PsMaalSlider) TableName() string { + return TableNamePsMaalSlider +} + +var PsMaalSliderCols = struct { + IDHomesliderSlides gormcol.Field + IDShop gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{Table: TableNamePsMaalSlider, Column: "id_homeslider_slides"}, + IDShop: gormcol.Field{Table: TableNamePsMaalSlider, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_maal_slider_slides.go b/app/model/dbmodel/ps_maal_slider_slides.go new file mode 100644 index 0000000..33dfceb --- /dev/null +++ b/app/model/dbmodel/ps_maal_slider_slides.go @@ -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 TableNamePsMaalSliderSlide = "ps_maal_slider_slides" + +// PsMaalSliderSlide mapped from table +type PsMaalSliderSlide struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + Position int32 `gorm:"column:position;not null" json:"position"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsMaalSliderSlide's table name +func (*PsMaalSliderSlide) TableName() string { + return TableNamePsMaalSliderSlide +} + +var PsMaalSliderSlideCols = struct { + IDHomesliderSlides gormcol.Field + Position gormcol.Field + Active gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{Table: TableNamePsMaalSliderSlide, Column: "id_homeslider_slides"}, + Position: gormcol.Field{Table: TableNamePsMaalSliderSlide, Column: "position"}, + Active: gormcol.Field{Table: TableNamePsMaalSliderSlide, Column: "active"}, +} diff --git a/app/model/dbmodel/ps_maal_slider_slides_lang.go b/app/model/dbmodel/ps_maal_slider_slides_lang.go new file mode 100644 index 0000000..05e80a4 --- /dev/null +++ b/app/model/dbmodel/ps_maal_slider_slides_lang.go @@ -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 TableNamePsMaalSliderSlidesLang = "ps_maal_slider_slides_lang" + +// PsMaalSliderSlidesLang mapped from table +type PsMaalSliderSlidesLang struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey" json:"id_homeslider_slides"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Title string `gorm:"column:title;not null" json:"title"` + Description string `gorm:"column:description;not null" json:"description"` + Legend string `gorm:"column:legend;not null" json:"legend"` + URL string `gorm:"column:url;not null" json:"url"` + Image string `gorm:"column:image;not null" json:"image"` +} + +// TableName PsMaalSliderSlidesLang's table name +func (*PsMaalSliderSlidesLang) TableName() string { + return TableNamePsMaalSliderSlidesLang +} + +var PsMaalSliderSlidesLangCols = struct { + IDHomesliderSlides gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field + Legend gormcol.Field + URL gormcol.Field + Image gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{Table: TableNamePsMaalSliderSlidesLang, Column: "id_homeslider_slides"}, + IDLang: gormcol.Field{Table: TableNamePsMaalSliderSlidesLang, Column: "id_lang"}, + Title: gormcol.Field{Table: TableNamePsMaalSliderSlidesLang, Column: "title"}, + Description: gormcol.Field{Table: TableNamePsMaalSliderSlidesLang, Column: "description"}, + Legend: gormcol.Field{Table: TableNamePsMaalSliderSlidesLang, Column: "legend"}, + URL: gormcol.Field{Table: TableNamePsMaalSliderSlidesLang, Column: "url"}, + Image: gormcol.Field{Table: TableNamePsMaalSliderSlidesLang, Column: "image"}, +} diff --git a/app/model/dbmodel/ps_mail.go b/app/model/dbmodel/ps_mail.go new file mode 100644 index 0000000..8523c54 --- /dev/null +++ b/app/model/dbmodel/ps_mail.go @@ -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 TableNamePsMail = "ps_mail" + +// PsMail mapped from table +type PsMail struct { + IDMail int32 `gorm:"column:id_mail;primaryKey;autoIncrement:true" json:"id_mail"` + Recipient string `gorm:"column:recipient;not null;index:recipient,priority:1" json:"recipient"` + Template string `gorm:"column:template;not null" json:"template"` + Subject string `gorm:"column:subject;not null" json:"subject"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` + DateAdd time.Time `gorm:"column:date_add;not null;default:current_timestamp()" json:"date_add"` +} + +// TableName PsMail's table name +func (*PsMail) TableName() string { + return TableNamePsMail +} + +var PsMailCols = struct { + IDMail gormcol.Field + Recipient gormcol.Field + Template gormcol.Field + Subject gormcol.Field + IDLang gormcol.Field + DateAdd gormcol.Field +}{ + IDMail: gormcol.Field{Table: TableNamePsMail, Column: "id_mail"}, + Recipient: gormcol.Field{Table: TableNamePsMail, Column: "recipient"}, + Template: gormcol.Field{Table: TableNamePsMail, Column: "template"}, + Subject: gormcol.Field{Table: TableNamePsMail, Column: "subject"}, + IDLang: gormcol.Field{Table: TableNamePsMail, Column: "id_lang"}, + DateAdd: gormcol.Field{Table: TableNamePsMail, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_mailalert_customer_oos.go b/app/model/dbmodel/ps_mailalert_customer_oos.go new file mode 100644 index 0000000..ed0373b --- /dev/null +++ b/app/model/dbmodel/ps_mailalert_customer_oos.go @@ -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 TableNamePsMailalertCustomerOo = "ps_mailalert_customer_oos" + +// PsMailalertCustomerOo mapped from table +type PsMailalertCustomerOo struct { + IDCustomer int32 `gorm:"column:id_customer;primaryKey" json:"id_customer"` + CustomerEmail string `gorm:"column:customer_email;primaryKey" json:"customer_email"` + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey" json:"id_product_attribute"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` +} + +// TableName PsMailalertCustomerOo's table name +func (*PsMailalertCustomerOo) TableName() string { + return TableNamePsMailalertCustomerOo +} + +var PsMailalertCustomerOoCols = struct { + IDCustomer gormcol.Field + CustomerEmail gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field +}{ + IDCustomer: gormcol.Field{Table: TableNamePsMailalertCustomerOo, Column: "id_customer"}, + CustomerEmail: gormcol.Field{Table: TableNamePsMailalertCustomerOo, Column: "customer_email"}, + IDProduct: gormcol.Field{Table: TableNamePsMailalertCustomerOo, Column: "id_product"}, + IDProductAttribute: gormcol.Field{Table: TableNamePsMailalertCustomerOo, Column: "id_product_attribute"}, + IDShop: gormcol.Field{Table: TableNamePsMailalertCustomerOo, Column: "id_shop"}, + IDLang: gormcol.Field{Table: TableNamePsMailalertCustomerOo, Column: "id_lang"}, +} diff --git a/app/model/dbmodel/ps_manufacturer.go b/app/model/dbmodel/ps_manufacturer.go new file mode 100644 index 0000000..f98866d --- /dev/null +++ b/app/model/dbmodel/ps_manufacturer.go @@ -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 TableNamePsManufacturer = "ps_manufacturer" + +// PsManufacturer mapped from table +type PsManufacturer struct { + IDManufacturer int32 `gorm:"column:id_manufacturer;primaryKey;autoIncrement:true" json:"id_manufacturer"` + 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"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsManufacturer's table name +func (*PsManufacturer) TableName() string { + return TableNamePsManufacturer +} + +var PsManufacturerCols = struct { + IDManufacturer gormcol.Field + Name gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Active gormcol.Field +}{ + IDManufacturer: gormcol.Field{Table: TableNamePsManufacturer, Column: "id_manufacturer"}, + Name: gormcol.Field{Table: TableNamePsManufacturer, Column: "name"}, + DateAdd: gormcol.Field{Table: TableNamePsManufacturer, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsManufacturer, Column: "date_upd"}, + Active: gormcol.Field{Table: TableNamePsManufacturer, Column: "active"}, +} diff --git a/app/model/dbmodel/ps_manufacturer_lang.go b/app/model/dbmodel/ps_manufacturer_lang.go new file mode 100644 index 0000000..13046bb --- /dev/null +++ b/app/model/dbmodel/ps_manufacturer_lang.go @@ -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 TableNamePsManufacturerLang = "ps_manufacturer_lang" + +// PsManufacturerLang mapped from table +type PsManufacturerLang struct { + IDManufacturer int32 `gorm:"column:id_manufacturer;primaryKey" json:"id_manufacturer"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Description *string `gorm:"column:description" json:"description"` + ShortDescription *string `gorm:"column:short_description" json:"short_description"` + 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 PsManufacturerLang's table name +func (*PsManufacturerLang) TableName() string { + return TableNamePsManufacturerLang +} + +var PsManufacturerLangCols = struct { + IDManufacturer gormcol.Field + IDLang gormcol.Field + Description gormcol.Field + ShortDescription gormcol.Field + MetaTitle gormcol.Field + MetaKeywords gormcol.Field + MetaDescription gormcol.Field +}{ + IDManufacturer: gormcol.Field{Table: TableNamePsManufacturerLang, Column: "id_manufacturer"}, + IDLang: gormcol.Field{Table: TableNamePsManufacturerLang, Column: "id_lang"}, + Description: gormcol.Field{Table: TableNamePsManufacturerLang, Column: "description"}, + ShortDescription: gormcol.Field{Table: TableNamePsManufacturerLang, Column: "short_description"}, + MetaTitle: gormcol.Field{Table: TableNamePsManufacturerLang, Column: "meta_title"}, + MetaKeywords: gormcol.Field{Table: TableNamePsManufacturerLang, Column: "meta_keywords"}, + MetaDescription: gormcol.Field{Table: TableNamePsManufacturerLang, Column: "meta_description"}, +} diff --git a/app/model/dbmodel/ps_manufacturer_shop.go b/app/model/dbmodel/ps_manufacturer_shop.go new file mode 100644 index 0000000..dfcf485 --- /dev/null +++ b/app/model/dbmodel/ps_manufacturer_shop.go @@ -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 TableNamePsManufacturerShop = "ps_manufacturer_shop" + +// PsManufacturerShop mapped from table +type PsManufacturerShop struct { + IDManufacturer int32 `gorm:"column:id_manufacturer;primaryKey" json:"id_manufacturer"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsManufacturerShop's table name +func (*PsManufacturerShop) TableName() string { + return TableNamePsManufacturerShop +} + +var PsManufacturerShopCols = struct { + IDManufacturer gormcol.Field + IDShop gormcol.Field +}{ + IDManufacturer: gormcol.Field{Table: TableNamePsManufacturerShop, Column: "id_manufacturer"}, + IDShop: gormcol.Field{Table: TableNamePsManufacturerShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_memcached_servers.go b/app/model/dbmodel/ps_memcached_servers.go new file mode 100644 index 0000000..edc652e --- /dev/null +++ b/app/model/dbmodel/ps_memcached_servers.go @@ -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 TableNamePsMemcachedServer = "ps_memcached_servers" + +// PsMemcachedServer mapped from table +type PsMemcachedServer struct { + IDMemcachedServer int32 `gorm:"column:id_memcached_server;primaryKey;autoIncrement:true" json:"id_memcached_server"` + IP string `gorm:"column:ip;not null" json:"ip"` + Port int32 `gorm:"column:port;not null" json:"port"` + Weight int32 `gorm:"column:weight;not null" json:"weight"` +} + +// TableName PsMemcachedServer's table name +func (*PsMemcachedServer) TableName() string { + return TableNamePsMemcachedServer +} + +var PsMemcachedServerCols = struct { + IDMemcachedServer gormcol.Field + IP gormcol.Field + Port gormcol.Field + Weight gormcol.Field +}{ + IDMemcachedServer: gormcol.Field{Table: TableNamePsMemcachedServer, Column: "id_memcached_server"}, + IP: gormcol.Field{Table: TableNamePsMemcachedServer, Column: "ip"}, + Port: gormcol.Field{Table: TableNamePsMemcachedServer, Column: "port"}, + Weight: gormcol.Field{Table: TableNamePsMemcachedServer, Column: "weight"}, +} diff --git a/app/model/dbmodel/ps_message.go b/app/model/dbmodel/ps_message.go new file mode 100644 index 0000000..04d1d4d --- /dev/null +++ b/app/model/dbmodel/ps_message.go @@ -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 TableNamePsMessage = "ps_message" + +// PsMessage mapped from table +type PsMessage struct { + IDMessage int32 `gorm:"column:id_message;primaryKey;autoIncrement:true" json:"id_message"` + IDCart *int32 `gorm:"column:id_cart;index:id_cart,priority:1" json:"id_cart"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:id_customer,priority:1" json:"id_customer"` + IDEmployee *int32 `gorm:"column:id_employee;index:id_employee,priority:1" json:"id_employee"` + IDOrder int32 `gorm:"column:id_order;not null;index:message_order,priority:1" json:"id_order"` + Message string `gorm:"column:message;not null" json:"message"` + Private bool `gorm:"column:private;not null;default:1" json:"private"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsMessage's table name +func (*PsMessage) TableName() string { + return TableNamePsMessage +} + +var PsMessageCols = struct { + IDMessage gormcol.Field + IDCart gormcol.Field + IDCustomer gormcol.Field + IDEmployee gormcol.Field + IDOrder gormcol.Field + Message gormcol.Field + Private gormcol.Field + DateAdd gormcol.Field +}{ + IDMessage: gormcol.Field{Table: TableNamePsMessage, Column: "id_message"}, + IDCart: gormcol.Field{Table: TableNamePsMessage, Column: "id_cart"}, + IDCustomer: gormcol.Field{Table: TableNamePsMessage, Column: "id_customer"}, + IDEmployee: gormcol.Field{Table: TableNamePsMessage, Column: "id_employee"}, + IDOrder: gormcol.Field{Table: TableNamePsMessage, Column: "id_order"}, + Message: gormcol.Field{Table: TableNamePsMessage, Column: "message"}, + Private: gormcol.Field{Table: TableNamePsMessage, Column: "private"}, + DateAdd: gormcol.Field{Table: TableNamePsMessage, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_message_readed.go b/app/model/dbmodel/ps_message_readed.go new file mode 100644 index 0000000..0cb4240 --- /dev/null +++ b/app/model/dbmodel/ps_message_readed.go @@ -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 TableNamePsMessageReaded = "ps_message_readed" + +// PsMessageReaded mapped from table +type PsMessageReaded struct { + IDMessage int32 `gorm:"column:id_message;primaryKey" json:"id_message"` + IDEmployee int32 `gorm:"column:id_employee;primaryKey" json:"id_employee"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsMessageReaded's table name +func (*PsMessageReaded) TableName() string { + return TableNamePsMessageReaded +} + +var PsMessageReadedCols = struct { + IDMessage gormcol.Field + IDEmployee gormcol.Field + DateAdd gormcol.Field +}{ + IDMessage: gormcol.Field{Table: TableNamePsMessageReaded, Column: "id_message"}, + IDEmployee: gormcol.Field{Table: TableNamePsMessageReaded, Column: "id_employee"}, + DateAdd: gormcol.Field{Table: TableNamePsMessageReaded, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_meta.go b/app/model/dbmodel/ps_meta.go new file mode 100644 index 0000000..e3c41c2 --- /dev/null +++ b/app/model/dbmodel/ps_meta.go @@ -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 TableNamePsMetum = "ps_meta" + +// PsMetum mapped from table +type PsMetum struct { + IDMeta int32 `gorm:"column:id_meta;primaryKey;autoIncrement:true" json:"id_meta"` + Page string `gorm:"column:page;not null;uniqueIndex:page,priority:1" json:"page"` + Configurable bool `gorm:"column:configurable;not null;default:1" json:"configurable"` +} + +// TableName PsMetum's table name +func (*PsMetum) TableName() string { + return TableNamePsMetum +} + +var PsMetumCols = struct { + IDMeta gormcol.Field + Page gormcol.Field + Configurable gormcol.Field +}{ + IDMeta: gormcol.Field{Table: TableNamePsMetum, Column: "id_meta"}, + Page: gormcol.Field{Table: TableNamePsMetum, Column: "page"}, + Configurable: gormcol.Field{Table: TableNamePsMetum, Column: "configurable"}, +} diff --git a/app/model/dbmodel/ps_meta_lang.go b/app/model/dbmodel/ps_meta_lang.go new file mode 100644 index 0000000..ea0bcee --- /dev/null +++ b/app/model/dbmodel/ps_meta_lang.go @@ -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 TableNamePsMetaLang = "ps_meta_lang" + +// PsMetaLang mapped from table +type PsMetaLang struct { + IDMeta int32 `gorm:"column:id_meta;primaryKey" json:"id_meta"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:id_lang,priority:1" json:"id_lang"` + Title *string `gorm:"column:title" json:"title"` + Description *string `gorm:"column:description" json:"description"` + Keywords *string `gorm:"column:keywords" json:"keywords"` + URLRewrite string `gorm:"column:url_rewrite;not null" json:"url_rewrite"` +} + +// TableName PsMetaLang's table name +func (*PsMetaLang) TableName() string { + return TableNamePsMetaLang +} + +var PsMetaLangCols = struct { + IDMeta gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field + Keywords gormcol.Field + URLRewrite gormcol.Field +}{ + IDMeta: gormcol.Field{Table: TableNamePsMetaLang, Column: "id_meta"}, + IDShop: gormcol.Field{Table: TableNamePsMetaLang, Column: "id_shop"}, + IDLang: gormcol.Field{Table: TableNamePsMetaLang, Column: "id_lang"}, + Title: gormcol.Field{Table: TableNamePsMetaLang, Column: "title"}, + Description: gormcol.Field{Table: TableNamePsMetaLang, Column: "description"}, + Keywords: gormcol.Field{Table: TableNamePsMetaLang, Column: "keywords"}, + URLRewrite: gormcol.Field{Table: TableNamePsMetaLang, Column: "url_rewrite"}, +} diff --git a/app/model/dbmodel/ps_module.go b/app/model/dbmodel/ps_module.go new file mode 100644 index 0000000..b50a325 --- /dev/null +++ b/app/model/dbmodel/ps_module.go @@ -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 TableNamePsModule = "ps_module" + +// PsModule mapped from table +type PsModule struct { + IDModule int32 `gorm:"column:id_module;primaryKey;autoIncrement:true" json:"id_module"` + Name string `gorm:"column:name;not null;uniqueIndex:name_UNIQUE,priority:1;index:name,priority:1" json:"name"` + Active bool `gorm:"column:active;not null" json:"active"` + Version string `gorm:"column:version;not null" json:"version"` +} + +// TableName PsModule's table name +func (*PsModule) TableName() string { + return TableNamePsModule +} + +var PsModuleCols = struct { + IDModule gormcol.Field + Name gormcol.Field + Active gormcol.Field + Version gormcol.Field +}{ + IDModule: gormcol.Field{Table: TableNamePsModule, Column: "id_module"}, + Name: gormcol.Field{Table: TableNamePsModule, Column: "name"}, + Active: gormcol.Field{Table: TableNamePsModule, Column: "active"}, + Version: gormcol.Field{Table: TableNamePsModule, Column: "version"}, +} diff --git a/app/model/dbmodel/ps_module_access.go b/app/model/dbmodel/ps_module_access.go new file mode 100644 index 0000000..f47932e --- /dev/null +++ b/app/model/dbmodel/ps_module_access.go @@ -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 TableNamePsModuleAccess = "ps_module_access" + +// PsModuleAccess mapped from table +type PsModuleAccess struct { + IDProfile int32 `gorm:"column:id_profile;primaryKey" json:"id_profile"` + IDAuthorizationRole int32 `gorm:"column:id_authorization_role;primaryKey" json:"id_authorization_role"` +} + +// TableName PsModuleAccess's table name +func (*PsModuleAccess) TableName() string { + return TableNamePsModuleAccess +} + +var PsModuleAccessCols = struct { + IDProfile gormcol.Field + IDAuthorizationRole gormcol.Field +}{ + IDProfile: gormcol.Field{Table: TableNamePsModuleAccess, Column: "id_profile"}, + IDAuthorizationRole: gormcol.Field{Table: TableNamePsModuleAccess, Column: "id_authorization_role"}, +} diff --git a/app/model/dbmodel/ps_module_carrier.go b/app/model/dbmodel/ps_module_carrier.go new file mode 100644 index 0000000..056d014 --- /dev/null +++ b/app/model/dbmodel/ps_module_carrier.go @@ -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 TableNamePsModuleCarrier = "ps_module_carrier" + +// PsModuleCarrier mapped from table +type PsModuleCarrier struct { + IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDReference int32 `gorm:"column:id_reference;primaryKey" json:"id_reference"` +} + +// TableName PsModuleCarrier's table name +func (*PsModuleCarrier) TableName() string { + return TableNamePsModuleCarrier +} + +var PsModuleCarrierCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDReference gormcol.Field +}{ + IDModule: gormcol.Field{Table: TableNamePsModuleCarrier, Column: "id_module"}, + IDShop: gormcol.Field{Table: TableNamePsModuleCarrier, Column: "id_shop"}, + IDReference: gormcol.Field{Table: TableNamePsModuleCarrier, Column: "id_reference"}, +} diff --git a/app/model/dbmodel/ps_module_country.go b/app/model/dbmodel/ps_module_country.go new file mode 100644 index 0000000..ec86b54 --- /dev/null +++ b/app/model/dbmodel/ps_module_country.go @@ -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 TableNamePsModuleCountry = "ps_module_country" + +// PsModuleCountry mapped from table +type PsModuleCountry struct { + IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` +} + +// TableName PsModuleCountry's table name +func (*PsModuleCountry) TableName() string { + return TableNamePsModuleCountry +} + +var PsModuleCountryCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDCountry gormcol.Field +}{ + IDModule: gormcol.Field{Table: TableNamePsModuleCountry, Column: "id_module"}, + IDShop: gormcol.Field{Table: TableNamePsModuleCountry, Column: "id_shop"}, + IDCountry: gormcol.Field{Table: TableNamePsModuleCountry, Column: "id_country"}, +} diff --git a/app/model/dbmodel/ps_module_currency.go b/app/model/dbmodel/ps_module_currency.go new file mode 100644 index 0000000..f178557 --- /dev/null +++ b/app/model/dbmodel/ps_module_currency.go @@ -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 TableNamePsModuleCurrency = "ps_module_currency" + +// PsModuleCurrency mapped from table +type PsModuleCurrency struct { + IDModule int32 `gorm:"column:id_module;primaryKey;index:id_module,priority:1" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDCurrency int32 `gorm:"column:id_currency;primaryKey" json:"id_currency"` +} + +// TableName PsModuleCurrency's table name +func (*PsModuleCurrency) TableName() string { + return TableNamePsModuleCurrency +} + +var PsModuleCurrencyCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDCurrency gormcol.Field +}{ + IDModule: gormcol.Field{Table: TableNamePsModuleCurrency, Column: "id_module"}, + IDShop: gormcol.Field{Table: TableNamePsModuleCurrency, Column: "id_shop"}, + IDCurrency: gormcol.Field{Table: TableNamePsModuleCurrency, Column: "id_currency"}, +} diff --git a/app/model/dbmodel/ps_module_group.go b/app/model/dbmodel/ps_module_group.go new file mode 100644 index 0000000..5745ffe --- /dev/null +++ b/app/model/dbmodel/ps_module_group.go @@ -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 TableNamePsModuleGroup = "ps_module_group" + +// PsModuleGroup mapped from table +type PsModuleGroup struct { + IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` +} + +// TableName PsModuleGroup's table name +func (*PsModuleGroup) TableName() string { + return TableNamePsModuleGroup +} + +var PsModuleGroupCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDGroup gormcol.Field +}{ + IDModule: gormcol.Field{Table: TableNamePsModuleGroup, Column: "id_module"}, + IDShop: gormcol.Field{Table: TableNamePsModuleGroup, Column: "id_shop"}, + IDGroup: gormcol.Field{Table: TableNamePsModuleGroup, Column: "id_group"}, +} diff --git a/app/model/dbmodel/ps_module_history.go b/app/model/dbmodel/ps_module_history.go new file mode 100644 index 0000000..d8490fc --- /dev/null +++ b/app/model/dbmodel/ps_module_history.go @@ -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 TableNamePsModuleHistory = "ps_module_history" + +// PsModuleHistory mapped from table +type PsModuleHistory struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + IDModule int32 `gorm:"column:id_module;not null" json:"id_module"` + 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 PsModuleHistory's table name +func (*PsModuleHistory) TableName() string { + return TableNamePsModuleHistory +} + +var PsModuleHistoryCols = struct { + ID gormcol.Field + IDEmployee gormcol.Field + IDModule gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + ID: gormcol.Field{Table: TableNamePsModuleHistory, Column: "id"}, + IDEmployee: gormcol.Field{Table: TableNamePsModuleHistory, Column: "id_employee"}, + IDModule: gormcol.Field{Table: TableNamePsModuleHistory, Column: "id_module"}, + DateAdd: gormcol.Field{Table: TableNamePsModuleHistory, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsModuleHistory, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_module_preference.go b/app/model/dbmodel/ps_module_preference.go new file mode 100644 index 0000000..e380378 --- /dev/null +++ b/app/model/dbmodel/ps_module_preference.go @@ -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 TableNamePsModulePreference = "ps_module_preference" + +// PsModulePreference mapped from table +type PsModulePreference struct { + IDModulePreference int32 `gorm:"column:id_module_preference;primaryKey;autoIncrement:true" json:"id_module_preference"` + IDEmployee int32 `gorm:"column:id_employee;not null;uniqueIndex:employee_module,priority:1" json:"id_employee"` + Module string `gorm:"column:module;not null;uniqueIndex:employee_module,priority:2" json:"module"` + Interest *bool `gorm:"column:interest" json:"interest"` + Favorite *bool `gorm:"column:favorite" json:"favorite"` +} + +// TableName PsModulePreference's table name +func (*PsModulePreference) TableName() string { + return TableNamePsModulePreference +} + +var PsModulePreferenceCols = struct { + IDModulePreference gormcol.Field + IDEmployee gormcol.Field + Module gormcol.Field + Interest gormcol.Field + Favorite gormcol.Field +}{ + IDModulePreference: gormcol.Field{Table: TableNamePsModulePreference, Column: "id_module_preference"}, + IDEmployee: gormcol.Field{Table: TableNamePsModulePreference, Column: "id_employee"}, + Module: gormcol.Field{Table: TableNamePsModulePreference, Column: "module"}, + Interest: gormcol.Field{Table: TableNamePsModulePreference, Column: "interest"}, + Favorite: gormcol.Field{Table: TableNamePsModulePreference, Column: "favorite"}, +} diff --git a/app/model/dbmodel/ps_module_shop.go b/app/model/dbmodel/ps_module_shop.go new file mode 100644 index 0000000..3c05b7a --- /dev/null +++ b/app/model/dbmodel/ps_module_shop.go @@ -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 TableNamePsModuleShop = "ps_module_shop" + +// PsModuleShop mapped from table +type PsModuleShop struct { + IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` + EnableDevice bool `gorm:"column:enable_device;not null;default:7" json:"enable_device"` +} + +// TableName PsModuleShop's table name +func (*PsModuleShop) TableName() string { + return TableNamePsModuleShop +} + +var PsModuleShopCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + EnableDevice gormcol.Field +}{ + IDModule: gormcol.Field{Table: TableNamePsModuleShop, Column: "id_module"}, + IDShop: gormcol.Field{Table: TableNamePsModuleShop, Column: "id_shop"}, + EnableDevice: gormcol.Field{Table: TableNamePsModuleShop, Column: "enable_device"}, +} diff --git a/app/model/dbmodel/ps_operating_system.go b/app/model/dbmodel/ps_operating_system.go new file mode 100644 index 0000000..e5378b4 --- /dev/null +++ b/app/model/dbmodel/ps_operating_system.go @@ -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 TableNamePsOperatingSystem = "ps_operating_system" + +// PsOperatingSystem mapped from table +type PsOperatingSystem struct { + IDOperatingSystem int32 `gorm:"column:id_operating_system;primaryKey;autoIncrement:true" json:"id_operating_system"` + Name *string `gorm:"column:name" json:"name"` +} + +// TableName PsOperatingSystem's table name +func (*PsOperatingSystem) TableName() string { + return TableNamePsOperatingSystem +} + +var PsOperatingSystemCols = struct { + IDOperatingSystem gormcol.Field + Name gormcol.Field +}{ + IDOperatingSystem: gormcol.Field{Table: TableNamePsOperatingSystem, Column: "id_operating_system"}, + Name: gormcol.Field{Table: TableNamePsOperatingSystem, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_order_carrier.go b/app/model/dbmodel/ps_order_carrier.go new file mode 100644 index 0000000..45825a7 --- /dev/null +++ b/app/model/dbmodel/ps_order_carrier.go @@ -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 TableNamePsOrderCarrier = "ps_order_carrier" + +// PsOrderCarrier mapped from table +type PsOrderCarrier struct { + IDOrderCarrier int32 `gorm:"column:id_order_carrier;primaryKey;autoIncrement:true" json:"id_order_carrier"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"` + IDOrderInvoice *int32 `gorm:"column:id_order_invoice;index:id_order_invoice,priority:1" json:"id_order_invoice"` + Weight *float64 `gorm:"column:weight" json:"weight"` + ShippingCostTaxExcl *float64 `gorm:"column:shipping_cost_tax_excl" json:"shipping_cost_tax_excl"` + ShippingCostTaxIncl *float64 `gorm:"column:shipping_cost_tax_incl" json:"shipping_cost_tax_incl"` + TrackingNumber *string `gorm:"column:tracking_number" json:"tracking_number"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsOrderCarrier's table name +func (*PsOrderCarrier) TableName() string { + return TableNamePsOrderCarrier +} + +var PsOrderCarrierCols = struct { + IDOrderCarrier gormcol.Field + IDOrder gormcol.Field + IDCarrier gormcol.Field + IDOrderInvoice gormcol.Field + Weight gormcol.Field + ShippingCostTaxExcl gormcol.Field + ShippingCostTaxIncl gormcol.Field + TrackingNumber gormcol.Field + DateAdd gormcol.Field +}{ + IDOrderCarrier: gormcol.Field{Table: TableNamePsOrderCarrier, Column: "id_order_carrier"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderCarrier, Column: "id_order"}, + IDCarrier: gormcol.Field{Table: TableNamePsOrderCarrier, Column: "id_carrier"}, + IDOrderInvoice: gormcol.Field{Table: TableNamePsOrderCarrier, Column: "id_order_invoice"}, + Weight: gormcol.Field{Table: TableNamePsOrderCarrier, Column: "weight"}, + ShippingCostTaxExcl: gormcol.Field{Table: TableNamePsOrderCarrier, Column: "shipping_cost_tax_excl"}, + ShippingCostTaxIncl: gormcol.Field{Table: TableNamePsOrderCarrier, Column: "shipping_cost_tax_incl"}, + TrackingNumber: gormcol.Field{Table: TableNamePsOrderCarrier, Column: "tracking_number"}, + DateAdd: gormcol.Field{Table: TableNamePsOrderCarrier, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_order_cart_rule.go b/app/model/dbmodel/ps_order_cart_rule.go new file mode 100644 index 0000000..51dd08d --- /dev/null +++ b/app/model/dbmodel/ps_order_cart_rule.go @@ -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 TableNamePsOrderCartRule = "ps_order_cart_rule" + +// PsOrderCartRule mapped from table +type PsOrderCartRule struct { + IDOrderCartRule int32 `gorm:"column:id_order_cart_rule;primaryKey;autoIncrement:true" json:"id_order_cart_rule"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + IDCartRule int32 `gorm:"column:id_cart_rule;not null;index:id_cart_rule,priority:1" json:"id_cart_rule"` + IDOrderInvoice *int32 `gorm:"column:id_order_invoice" json:"id_order_invoice"` + Name string `gorm:"column:name;not null" json:"name"` + Value float64 `gorm:"column:value;not null;default:0.00" json:"value"` + ValueTaxExcl float64 `gorm:"column:value_tax_excl;not null;default:0.00" json:"value_tax_excl"` + FreeShipping bool `gorm:"column:free_shipping;not null" json:"free_shipping"` +} + +// TableName PsOrderCartRule's table name +func (*PsOrderCartRule) TableName() string { + return TableNamePsOrderCartRule +} + +var PsOrderCartRuleCols = struct { + IDOrderCartRule gormcol.Field + IDOrder gormcol.Field + IDCartRule gormcol.Field + IDOrderInvoice gormcol.Field + Name gormcol.Field + Value gormcol.Field + ValueTaxExcl gormcol.Field + FreeShipping gormcol.Field +}{ + IDOrderCartRule: gormcol.Field{Table: TableNamePsOrderCartRule, Column: "id_order_cart_rule"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderCartRule, Column: "id_order"}, + IDCartRule: gormcol.Field{Table: TableNamePsOrderCartRule, Column: "id_cart_rule"}, + IDOrderInvoice: gormcol.Field{Table: TableNamePsOrderCartRule, Column: "id_order_invoice"}, + Name: gormcol.Field{Table: TableNamePsOrderCartRule, Column: "name"}, + Value: gormcol.Field{Table: TableNamePsOrderCartRule, Column: "value"}, + ValueTaxExcl: gormcol.Field{Table: TableNamePsOrderCartRule, Column: "value_tax_excl"}, + FreeShipping: gormcol.Field{Table: TableNamePsOrderCartRule, Column: "free_shipping"}, +} diff --git a/app/model/dbmodel/ps_order_detail.go b/app/model/dbmodel/ps_order_detail.go new file mode 100644 index 0000000..9f76bdd --- /dev/null +++ b/app/model/dbmodel/ps_order_detail.go @@ -0,0 +1,169 @@ +// 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 TableNamePsOrderDetail = "ps_order_detail" + +// PsOrderDetail mapped from table +type PsOrderDetail struct { + IDOrderDetail int32 `gorm:"column:id_order_detail;primaryKey;autoIncrement:true;index:id_order_id_order_detail,priority:2" json:"id_order_detail"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order_id_order_detail,priority:1;index:order_detail_order,priority:1" json:"id_order"` + IDOrderInvoice *int32 `gorm:"column:id_order_invoice" json:"id_order_invoice"` + IDWarehouse *int32 `gorm:"column:id_warehouse" json:"id_warehouse"` + IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"` + ProductID int32 `gorm:"column:product_id;not null;index:product_id,priority:1" json:"product_id"` + ProductAttributeID *int32 `gorm:"column:product_attribute_id;index:product_attribute_id,priority:1;index:product_id,priority:2" json:"product_attribute_id"` + IDCustomization *int32 `gorm:"column:id_customization" json:"id_customization"` + ProductName string `gorm:"column:product_name;not null" json:"product_name"` + ProductQuantity int32 `gorm:"column:product_quantity;not null" json:"product_quantity"` + ProductQuantityInStock int32 `gorm:"column:product_quantity_in_stock;not null" json:"product_quantity_in_stock"` + ProductQuantityRefunded int32 `gorm:"column:product_quantity_refunded;not null" json:"product_quantity_refunded"` + ProductQuantityReturn int32 `gorm:"column:product_quantity_return;not null" json:"product_quantity_return"` + ProductQuantityReinjected int32 `gorm:"column:product_quantity_reinjected;not null" json:"product_quantity_reinjected"` + ProductPrice float64 `gorm:"column:product_price;not null;default:0.000000" json:"product_price"` + ReductionPercent float64 `gorm:"column:reduction_percent;not null;default:0.00" json:"reduction_percent"` + ReductionAmount float64 `gorm:"column:reduction_amount;not null;default:0.000000" json:"reduction_amount"` + ReductionAmountTaxIncl float64 `gorm:"column:reduction_amount_tax_incl;not null;default:0.000000" json:"reduction_amount_tax_incl"` + ReductionAmountTaxExcl float64 `gorm:"column:reduction_amount_tax_excl;not null;default:0.000000" json:"reduction_amount_tax_excl"` + GroupReduction float64 `gorm:"column:group_reduction;not null;default:0.00" json:"group_reduction"` + ProductQuantityDiscount float64 `gorm:"column:product_quantity_discount;not null;default:0.000000" json:"product_quantity_discount"` + ProductEan13 *string `gorm:"column:product_ean13" json:"product_ean13"` + ProductIsbn *string `gorm:"column:product_isbn" json:"product_isbn"` + ProductUpc *string `gorm:"column:product_upc" json:"product_upc"` + ProductReference *string `gorm:"column:product_reference" json:"product_reference"` + ProductSupplierReference *string `gorm:"column:product_supplier_reference" json:"product_supplier_reference"` + ProductWeight float64 `gorm:"column:product_weight;not null" json:"product_weight"` + IDTaxRulesGroup *int32 `gorm:"column:id_tax_rules_group;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"` + TaxComputationMethod bool `gorm:"column:tax_computation_method;not null" json:"tax_computation_method"` + TaxName string `gorm:"column:tax_name;not null" json:"tax_name"` + TaxRate float64 `gorm:"column:tax_rate;not null;default:0.000" json:"tax_rate"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + EcotaxTaxRate float64 `gorm:"column:ecotax_tax_rate;not null;default:0.000" json:"ecotax_tax_rate"` + DiscountQuantityApplied bool `gorm:"column:discount_quantity_applied;not null" json:"discount_quantity_applied"` + DownloadHash *string `gorm:"column:download_hash" json:"download_hash"` + DownloadNb *int32 `gorm:"column:download_nb" json:"download_nb"` + DownloadDeadline *time.Time `gorm:"column:download_deadline" json:"download_deadline"` + TotalPriceTaxIncl float64 `gorm:"column:total_price_tax_incl;not null;default:0.000000" json:"total_price_tax_incl"` + TotalPriceTaxExcl float64 `gorm:"column:total_price_tax_excl;not null;default:0.000000" json:"total_price_tax_excl"` + UnitPriceTaxIncl float64 `gorm:"column:unit_price_tax_incl;not null;default:0.000000" json:"unit_price_tax_incl"` + UnitPriceTaxExcl float64 `gorm:"column:unit_price_tax_excl;not null;default:0.000000" json:"unit_price_tax_excl"` + TotalShippingPriceTaxIncl float64 `gorm:"column:total_shipping_price_tax_incl;not null;default:0.000000" json:"total_shipping_price_tax_incl"` + TotalShippingPriceTaxExcl float64 `gorm:"column:total_shipping_price_tax_excl;not null;default:0.000000" json:"total_shipping_price_tax_excl"` + TotalPriceTaxInclDiscounted *float64 `gorm:"column:total_price_tax_incl_discounted" json:"total_price_tax_incl_discounted"` + CartRules *string `gorm:"column:cart_rules" json:"cart_rules"` + PurchaseSupplierPrice float64 `gorm:"column:purchase_supplier_price;not null;default:0.000000" json:"purchase_supplier_price"` + OriginalProductPrice float64 `gorm:"column:original_product_price;not null;default:0.000000" json:"original_product_price"` + OriginalWholesalePrice float64 `gorm:"column:original_wholesale_price;not null;default:0.000000" json:"original_wholesale_price"` +} + +// TableName PsOrderDetail's table name +func (*PsOrderDetail) TableName() string { + return TableNamePsOrderDetail +} + +var PsOrderDetailCols = struct { + IDOrderDetail gormcol.Field + IDOrder gormcol.Field + IDOrderInvoice gormcol.Field + IDWarehouse gormcol.Field + IDShop gormcol.Field + ProductID gormcol.Field + ProductAttributeID gormcol.Field + IDCustomization gormcol.Field + ProductName gormcol.Field + ProductQuantity gormcol.Field + ProductQuantityInStock gormcol.Field + ProductQuantityRefunded gormcol.Field + ProductQuantityReturn gormcol.Field + ProductQuantityReinjected gormcol.Field + ProductPrice gormcol.Field + ReductionPercent gormcol.Field + ReductionAmount gormcol.Field + ReductionAmountTaxIncl gormcol.Field + ReductionAmountTaxExcl gormcol.Field + GroupReduction gormcol.Field + ProductQuantityDiscount gormcol.Field + ProductEan13 gormcol.Field + ProductIsbn gormcol.Field + ProductUpc gormcol.Field + ProductReference gormcol.Field + ProductSupplierReference gormcol.Field + ProductWeight gormcol.Field + IDTaxRulesGroup gormcol.Field + TaxComputationMethod gormcol.Field + TaxName gormcol.Field + TaxRate gormcol.Field + Ecotax gormcol.Field + EcotaxTaxRate gormcol.Field + DiscountQuantityApplied gormcol.Field + DownloadHash gormcol.Field + DownloadNb gormcol.Field + DownloadDeadline gormcol.Field + TotalPriceTaxIncl gormcol.Field + TotalPriceTaxExcl gormcol.Field + UnitPriceTaxIncl gormcol.Field + UnitPriceTaxExcl gormcol.Field + TotalShippingPriceTaxIncl gormcol.Field + TotalShippingPriceTaxExcl gormcol.Field + TotalPriceTaxInclDiscounted gormcol.Field + CartRules gormcol.Field + PurchaseSupplierPrice gormcol.Field + OriginalProductPrice gormcol.Field + OriginalWholesalePrice gormcol.Field +}{ + IDOrderDetail: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_order_detail"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_order"}, + IDOrderInvoice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_order_invoice"}, + IDWarehouse: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_warehouse"}, + IDShop: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_shop"}, + ProductID: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_id"}, + ProductAttributeID: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_attribute_id"}, + IDCustomization: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_customization"}, + ProductName: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_name"}, + ProductQuantity: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity"}, + ProductQuantityInStock: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_in_stock"}, + ProductQuantityRefunded: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_refunded"}, + ProductQuantityReturn: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_return"}, + ProductQuantityReinjected: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_reinjected"}, + ProductPrice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_price"}, + ReductionPercent: gormcol.Field{Table: TableNamePsOrderDetail, Column: "reduction_percent"}, + ReductionAmount: gormcol.Field{Table: TableNamePsOrderDetail, Column: "reduction_amount"}, + ReductionAmountTaxIncl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "reduction_amount_tax_incl"}, + ReductionAmountTaxExcl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "reduction_amount_tax_excl"}, + GroupReduction: gormcol.Field{Table: TableNamePsOrderDetail, Column: "group_reduction"}, + ProductQuantityDiscount: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_discount"}, + ProductEan13: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_ean13"}, + ProductIsbn: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_isbn"}, + ProductUpc: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_upc"}, + ProductReference: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_reference"}, + ProductSupplierReference: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_supplier_reference"}, + ProductWeight: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_weight"}, + IDTaxRulesGroup: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_tax_rules_group"}, + TaxComputationMethod: gormcol.Field{Table: TableNamePsOrderDetail, Column: "tax_computation_method"}, + TaxName: gormcol.Field{Table: TableNamePsOrderDetail, Column: "tax_name"}, + TaxRate: gormcol.Field{Table: TableNamePsOrderDetail, Column: "tax_rate"}, + Ecotax: gormcol.Field{Table: TableNamePsOrderDetail, Column: "ecotax"}, + EcotaxTaxRate: gormcol.Field{Table: TableNamePsOrderDetail, Column: "ecotax_tax_rate"}, + DiscountQuantityApplied: gormcol.Field{Table: TableNamePsOrderDetail, Column: "discount_quantity_applied"}, + DownloadHash: gormcol.Field{Table: TableNamePsOrderDetail, Column: "download_hash"}, + DownloadNb: gormcol.Field{Table: TableNamePsOrderDetail, Column: "download_nb"}, + DownloadDeadline: gormcol.Field{Table: TableNamePsOrderDetail, Column: "download_deadline"}, + TotalPriceTaxIncl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_price_tax_incl"}, + TotalPriceTaxExcl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_price_tax_excl"}, + UnitPriceTaxIncl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "unit_price_tax_incl"}, + UnitPriceTaxExcl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "unit_price_tax_excl"}, + TotalShippingPriceTaxIncl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_shipping_price_tax_incl"}, + TotalShippingPriceTaxExcl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_shipping_price_tax_excl"}, + TotalPriceTaxInclDiscounted: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_price_tax_incl_discounted"}, + CartRules: gormcol.Field{Table: TableNamePsOrderDetail, Column: "cart_rules"}, + PurchaseSupplierPrice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "purchase_supplier_price"}, + OriginalProductPrice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "original_product_price"}, + OriginalWholesalePrice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "original_wholesale_price"}, +} diff --git a/app/model/dbmodel/ps_order_detail_tax.go b/app/model/dbmodel/ps_order_detail_tax.go new file mode 100644 index 0000000..b359026 --- /dev/null +++ b/app/model/dbmodel/ps_order_detail_tax.go @@ -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 TableNamePsOrderDetailTax = "ps_order_detail_tax" + +// PsOrderDetailTax mapped from table +type PsOrderDetailTax struct { + IDOrderDetail int32 `gorm:"column:id_order_detail;not null;index:id_order_detail,priority:1" json:"id_order_detail"` + IDTax int32 `gorm:"column:id_tax;not null;index:id_tax,priority:1" json:"id_tax"` + UnitAmount float64 `gorm:"column:unit_amount;not null;default:0.000000" json:"unit_amount"` + TotalAmount float64 `gorm:"column:total_amount;not null;default:0.000000" json:"total_amount"` +} + +// TableName PsOrderDetailTax's table name +func (*PsOrderDetailTax) TableName() string { + return TableNamePsOrderDetailTax +} + +var PsOrderDetailTaxCols = struct { + IDOrderDetail gormcol.Field + IDTax gormcol.Field + UnitAmount gormcol.Field + TotalAmount gormcol.Field +}{ + IDOrderDetail: gormcol.Field{Table: TableNamePsOrderDetailTax, Column: "id_order_detail"}, + IDTax: gormcol.Field{Table: TableNamePsOrderDetailTax, Column: "id_tax"}, + UnitAmount: gormcol.Field{Table: TableNamePsOrderDetailTax, Column: "unit_amount"}, + TotalAmount: gormcol.Field{Table: TableNamePsOrderDetailTax, Column: "total_amount"}, +} diff --git a/app/model/dbmodel/ps_order_history.go b/app/model/dbmodel/ps_order_history.go new file mode 100644 index 0000000..bde2514 --- /dev/null +++ b/app/model/dbmodel/ps_order_history.go @@ -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 TableNamePsOrderHistory = "ps_order_history" + +// PsOrderHistory mapped from table +type PsOrderHistory struct { + IDOrderHistory int32 `gorm:"column:id_order_history;primaryKey;autoIncrement:true" json:"id_order_history"` + IDEmployee int32 `gorm:"column:id_employee;not null;index:id_employee,priority:1" json:"id_employee"` + IDOrder int32 `gorm:"column:id_order;not null;index:order_history_order,priority:1" json:"id_order"` + IDOrderState int32 `gorm:"column:id_order_state;not null;index:id_order_state,priority:1" json:"id_order_state"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsOrderHistory's table name +func (*PsOrderHistory) TableName() string { + return TableNamePsOrderHistory +} + +var PsOrderHistoryCols = struct { + IDOrderHistory gormcol.Field + IDEmployee gormcol.Field + IDOrder gormcol.Field + IDOrderState gormcol.Field + DateAdd gormcol.Field +}{ + IDOrderHistory: gormcol.Field{Table: TableNamePsOrderHistory, Column: "id_order_history"}, + IDEmployee: gormcol.Field{Table: TableNamePsOrderHistory, Column: "id_employee"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderHistory, Column: "id_order"}, + IDOrderState: gormcol.Field{Table: TableNamePsOrderHistory, Column: "id_order_state"}, + DateAdd: gormcol.Field{Table: TableNamePsOrderHistory, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_order_invoice.go b/app/model/dbmodel/ps_order_invoice.go new file mode 100644 index 0000000..bd10ab9 --- /dev/null +++ b/app/model/dbmodel/ps_order_invoice.go @@ -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 TableNamePsOrderInvoice = "ps_order_invoice" + +// PsOrderInvoice mapped from table +type PsOrderInvoice struct { + IDOrderInvoice int32 `gorm:"column:id_order_invoice;primaryKey;autoIncrement:true" json:"id_order_invoice"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + Number int32 `gorm:"column:number;not null" json:"number"` + DeliveryNumber int32 `gorm:"column:delivery_number;not null" json:"delivery_number"` + DeliveryDate *time.Time `gorm:"column:delivery_date" json:"delivery_date"` + TotalDiscountTaxExcl float64 `gorm:"column:total_discount_tax_excl;not null;default:0.000000" json:"total_discount_tax_excl"` + TotalDiscountTaxIncl float64 `gorm:"column:total_discount_tax_incl;not null;default:0.000000" json:"total_discount_tax_incl"` + TotalPaidTaxExcl float64 `gorm:"column:total_paid_tax_excl;not null;default:0.000000" json:"total_paid_tax_excl"` + TotalPaidTaxIncl float64 `gorm:"column:total_paid_tax_incl;not null;default:0.000000" json:"total_paid_tax_incl"` + TotalProducts float64 `gorm:"column:total_products;not null;default:0.000000" json:"total_products"` + TotalProductsWt float64 `gorm:"column:total_products_wt;not null;default:0.000000" json:"total_products_wt"` + TotalShippingTaxExcl float64 `gorm:"column:total_shipping_tax_excl;not null;default:0.000000" json:"total_shipping_tax_excl"` + TotalShippingTaxIncl float64 `gorm:"column:total_shipping_tax_incl;not null;default:0.000000" json:"total_shipping_tax_incl"` + ShippingTaxComputationMethod int32 `gorm:"column:shipping_tax_computation_method;not null" json:"shipping_tax_computation_method"` + TotalWrappingTaxExcl float64 `gorm:"column:total_wrapping_tax_excl;not null;default:0.000000" json:"total_wrapping_tax_excl"` + TotalWrappingTaxIncl float64 `gorm:"column:total_wrapping_tax_incl;not null;default:0.000000" json:"total_wrapping_tax_incl"` + ShopAddress *string `gorm:"column:shop_address" json:"shop_address"` + Note *string `gorm:"column:note" json:"note"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + FinalNumber *int32 `gorm:"column:final_number" json:"final_number"` + IDShopCompany *int32 `gorm:"column:id_shop_company" json:"id_shop_company"` +} + +// TableName PsOrderInvoice's table name +func (*PsOrderInvoice) TableName() string { + return TableNamePsOrderInvoice +} + +var PsOrderInvoiceCols = struct { + IDOrderInvoice gormcol.Field + IDOrder gormcol.Field + Number gormcol.Field + DeliveryNumber gormcol.Field + DeliveryDate gormcol.Field + TotalDiscountTaxExcl gormcol.Field + TotalDiscountTaxIncl gormcol.Field + TotalPaidTaxExcl gormcol.Field + TotalPaidTaxIncl gormcol.Field + TotalProducts gormcol.Field + TotalProductsWt gormcol.Field + TotalShippingTaxExcl gormcol.Field + TotalShippingTaxIncl gormcol.Field + ShippingTaxComputationMethod gormcol.Field + TotalWrappingTaxExcl gormcol.Field + TotalWrappingTaxIncl gormcol.Field + ShopAddress gormcol.Field + Note gormcol.Field + DateAdd gormcol.Field + FinalNumber gormcol.Field + IDShopCompany gormcol.Field +}{ + IDOrderInvoice: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "id_order_invoice"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "id_order"}, + Number: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "number"}, + DeliveryNumber: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "delivery_number"}, + DeliveryDate: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "delivery_date"}, + TotalDiscountTaxExcl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_discount_tax_excl"}, + TotalDiscountTaxIncl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_discount_tax_incl"}, + TotalPaidTaxExcl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_paid_tax_excl"}, + TotalPaidTaxIncl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_paid_tax_incl"}, + TotalProducts: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_products"}, + TotalProductsWt: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_products_wt"}, + TotalShippingTaxExcl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_shipping_tax_excl"}, + TotalShippingTaxIncl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_shipping_tax_incl"}, + ShippingTaxComputationMethod: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "shipping_tax_computation_method"}, + TotalWrappingTaxExcl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_wrapping_tax_excl"}, + TotalWrappingTaxIncl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_wrapping_tax_incl"}, + ShopAddress: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "shop_address"}, + Note: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "note"}, + DateAdd: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "date_add"}, + FinalNumber: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "final_number"}, + IDShopCompany: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "id_shop_company"}, +} diff --git a/app/model/dbmodel/ps_order_invoice_payment.go b/app/model/dbmodel/ps_order_invoice_payment.go new file mode 100644 index 0000000..11c040f --- /dev/null +++ b/app/model/dbmodel/ps_order_invoice_payment.go @@ -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 TableNamePsOrderInvoicePayment = "ps_order_invoice_payment" + +// PsOrderInvoicePayment mapped from table +type PsOrderInvoicePayment struct { + IDOrderInvoice int32 `gorm:"column:id_order_invoice;primaryKey" json:"id_order_invoice"` + IDOrderPayment int32 `gorm:"column:id_order_payment;primaryKey;index:order_payment,priority:1" json:"id_order_payment"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` +} + +// TableName PsOrderInvoicePayment's table name +func (*PsOrderInvoicePayment) TableName() string { + return TableNamePsOrderInvoicePayment +} + +var PsOrderInvoicePaymentCols = struct { + IDOrderInvoice gormcol.Field + IDOrderPayment gormcol.Field + IDOrder gormcol.Field +}{ + IDOrderInvoice: gormcol.Field{Table: TableNamePsOrderInvoicePayment, Column: "id_order_invoice"}, + IDOrderPayment: gormcol.Field{Table: TableNamePsOrderInvoicePayment, Column: "id_order_payment"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderInvoicePayment, Column: "id_order"}, +} diff --git a/app/model/dbmodel/ps_order_invoice_tax.go b/app/model/dbmodel/ps_order_invoice_tax.go new file mode 100644 index 0000000..c415a98 --- /dev/null +++ b/app/model/dbmodel/ps_order_invoice_tax.go @@ -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 TableNamePsOrderInvoiceTax = "ps_order_invoice_tax" + +// PsOrderInvoiceTax mapped from table +type PsOrderInvoiceTax struct { + IDOrderInvoice int32 `gorm:"column:id_order_invoice;not null" json:"id_order_invoice"` + Type string `gorm:"column:type;not null" json:"type"` + IDTax int32 `gorm:"column:id_tax;not null;index:id_tax,priority:1" json:"id_tax"` + Amount float64 `gorm:"column:amount;not null;default:0.000000" json:"amount"` +} + +// TableName PsOrderInvoiceTax's table name +func (*PsOrderInvoiceTax) TableName() string { + return TableNamePsOrderInvoiceTax +} + +var PsOrderInvoiceTaxCols = struct { + IDOrderInvoice gormcol.Field + Type gormcol.Field + IDTax gormcol.Field + Amount gormcol.Field +}{ + IDOrderInvoice: gormcol.Field{Table: TableNamePsOrderInvoiceTax, Column: "id_order_invoice"}, + Type: gormcol.Field{Table: TableNamePsOrderInvoiceTax, Column: "type"}, + IDTax: gormcol.Field{Table: TableNamePsOrderInvoiceTax, Column: "id_tax"}, + Amount: gormcol.Field{Table: TableNamePsOrderInvoiceTax, Column: "amount"}, +} diff --git a/app/model/dbmodel/ps_order_message.go b/app/model/dbmodel/ps_order_message.go new file mode 100644 index 0000000..a89b65c --- /dev/null +++ b/app/model/dbmodel/ps_order_message.go @@ -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" + "time" +) + +const TableNamePsOrderMessage = "ps_order_message" + +// PsOrderMessage mapped from table +type PsOrderMessage struct { + IDOrderMessage int32 `gorm:"column:id_order_message;primaryKey;autoIncrement:true" json:"id_order_message"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsOrderMessage's table name +func (*PsOrderMessage) TableName() string { + return TableNamePsOrderMessage +} + +var PsOrderMessageCols = struct { + IDOrderMessage gormcol.Field + DateAdd gormcol.Field +}{ + IDOrderMessage: gormcol.Field{Table: TableNamePsOrderMessage, Column: "id_order_message"}, + DateAdd: gormcol.Field{Table: TableNamePsOrderMessage, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_order_message_lang.go b/app/model/dbmodel/ps_order_message_lang.go new file mode 100644 index 0000000..2a9f998 --- /dev/null +++ b/app/model/dbmodel/ps_order_message_lang.go @@ -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 TableNamePsOrderMessageLang = "ps_order_message_lang" + +// PsOrderMessageLang mapped from table +type PsOrderMessageLang struct { + IDOrderMessage int32 `gorm:"column:id_order_message;primaryKey" json:"id_order_message"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Message string `gorm:"column:message;not null" json:"message"` +} + +// TableName PsOrderMessageLang's table name +func (*PsOrderMessageLang) TableName() string { + return TableNamePsOrderMessageLang +} + +var PsOrderMessageLangCols = struct { + IDOrderMessage gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Message gormcol.Field +}{ + IDOrderMessage: gormcol.Field{Table: TableNamePsOrderMessageLang, Column: "id_order_message"}, + IDLang: gormcol.Field{Table: TableNamePsOrderMessageLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsOrderMessageLang, Column: "name"}, + Message: gormcol.Field{Table: TableNamePsOrderMessageLang, Column: "message"}, +} diff --git a/app/model/dbmodel/ps_order_notes.go b/app/model/dbmodel/ps_order_notes.go new file mode 100644 index 0000000..8f83b23 --- /dev/null +++ b/app/model/dbmodel/ps_order_notes.go @@ -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 TableNamePsOrderNote = "ps_order_notes" + +// PsOrderNote mapped from table +type PsOrderNote struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + Note *string `gorm:"column:note" json:"note"` + 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 PsOrderNote's table name +func (*PsOrderNote) TableName() string { + return TableNamePsOrderNote +} + +var PsOrderNoteCols = struct { + ID gormcol.Field + IDOrder gormcol.Field + IDEmployee gormcol.Field + Note gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + ID: gormcol.Field{Table: TableNamePsOrderNote, Column: "id"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderNote, Column: "id_order"}, + IDEmployee: gormcol.Field{Table: TableNamePsOrderNote, Column: "id_employee"}, + Note: gormcol.Field{Table: TableNamePsOrderNote, Column: "note"}, + DateAdd: gormcol.Field{Table: TableNamePsOrderNote, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsOrderNote, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_order_payment.go b/app/model/dbmodel/ps_order_payment.go new file mode 100644 index 0000000..098cd0d --- /dev/null +++ b/app/model/dbmodel/ps_order_payment.go @@ -0,0 +1,64 @@ +// 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 TableNamePsOrderPayment = "ps_order_payment" + +// PsOrderPayment mapped from table +type PsOrderPayment struct { + IDOrderPayment int32 `gorm:"column:id_order_payment;primaryKey;autoIncrement:true" json:"id_order_payment"` + OrderReference *string `gorm:"column:order_reference;index:order_reference,priority:1" json:"order_reference"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` + Amount float64 `gorm:"column:amount;not null" json:"amount"` + PaymentMethod string `gorm:"column:payment_method;not null" json:"payment_method"` + ConversionRate float64 `gorm:"column:conversion_rate;not null;default:1.000000" json:"conversion_rate"` + TransactionID *string `gorm:"column:transaction_id" json:"transaction_id"` + CardNumber *string `gorm:"column:card_number" json:"card_number"` + CardBrand *string `gorm:"column:card_brand" json:"card_brand"` + CardExpiration *string `gorm:"column:card_expiration" json:"card_expiration"` + CardHolder *string `gorm:"column:card_holder" json:"card_holder"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + IDPaymentModule int32 `gorm:"column:id_payment_module;not null" json:"id_payment_module"` +} + +// TableName PsOrderPayment's table name +func (*PsOrderPayment) TableName() string { + return TableNamePsOrderPayment +} + +var PsOrderPaymentCols = struct { + IDOrderPayment gormcol.Field + OrderReference gormcol.Field + IDCurrency gormcol.Field + Amount gormcol.Field + PaymentMethod gormcol.Field + ConversionRate gormcol.Field + TransactionID gormcol.Field + CardNumber gormcol.Field + CardBrand gormcol.Field + CardExpiration gormcol.Field + CardHolder gormcol.Field + DateAdd gormcol.Field + IDPaymentModule gormcol.Field +}{ + IDOrderPayment: gormcol.Field{Table: TableNamePsOrderPayment, Column: "id_order_payment"}, + OrderReference: gormcol.Field{Table: TableNamePsOrderPayment, Column: "order_reference"}, + IDCurrency: gormcol.Field{Table: TableNamePsOrderPayment, Column: "id_currency"}, + Amount: gormcol.Field{Table: TableNamePsOrderPayment, Column: "amount"}, + PaymentMethod: gormcol.Field{Table: TableNamePsOrderPayment, Column: "payment_method"}, + ConversionRate: gormcol.Field{Table: TableNamePsOrderPayment, Column: "conversion_rate"}, + TransactionID: gormcol.Field{Table: TableNamePsOrderPayment, Column: "transaction_id"}, + CardNumber: gormcol.Field{Table: TableNamePsOrderPayment, Column: "card_number"}, + CardBrand: gormcol.Field{Table: TableNamePsOrderPayment, Column: "card_brand"}, + CardExpiration: gormcol.Field{Table: TableNamePsOrderPayment, Column: "card_expiration"}, + CardHolder: gormcol.Field{Table: TableNamePsOrderPayment, Column: "card_holder"}, + DateAdd: gormcol.Field{Table: TableNamePsOrderPayment, Column: "date_add"}, + IDPaymentModule: gormcol.Field{Table: TableNamePsOrderPayment, Column: "id_payment_module"}, +} diff --git a/app/model/dbmodel/ps_order_payu_payments.go b/app/model/dbmodel/ps_order_payu_payments.go new file mode 100644 index 0000000..a01d7c9 --- /dev/null +++ b/app/model/dbmodel/ps_order_payu_payments.go @@ -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 TableNamePsOrderPayuPayment = "ps_order_payu_payments" + +// PsOrderPayuPayment mapped from table +type PsOrderPayuPayment struct { + IDPayuPayment int32 `gorm:"column:id_payu_payment;primaryKey;autoIncrement:true" json:"id_payu_payment"` + IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"` + IDCart int32 `gorm:"column:id_cart;not null" json:"id_cart"` + IDSession string `gorm:"column:id_session;not null" json:"id_session"` + ExtOrderID string `gorm:"column:ext_order_id;not null" json:"ext_order_id"` + Status string `gorm:"column:status;not null" json:"status"` + CreateAt *time.Time `gorm:"column:create_at" json:"create_at"` + UpdateAt *time.Time `gorm:"column:update_at" json:"update_at"` +} + +// TableName PsOrderPayuPayment's table name +func (*PsOrderPayuPayment) TableName() string { + return TableNamePsOrderPayuPayment +} + +var PsOrderPayuPaymentCols = struct { + IDPayuPayment gormcol.Field + IDOrder gormcol.Field + IDCart gormcol.Field + IDSession gormcol.Field + ExtOrderID gormcol.Field + Status gormcol.Field + CreateAt gormcol.Field + UpdateAt gormcol.Field +}{ + IDPayuPayment: gormcol.Field{Table: TableNamePsOrderPayuPayment, Column: "id_payu_payment"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderPayuPayment, Column: "id_order"}, + IDCart: gormcol.Field{Table: TableNamePsOrderPayuPayment, Column: "id_cart"}, + IDSession: gormcol.Field{Table: TableNamePsOrderPayuPayment, Column: "id_session"}, + ExtOrderID: gormcol.Field{Table: TableNamePsOrderPayuPayment, Column: "ext_order_id"}, + Status: gormcol.Field{Table: TableNamePsOrderPayuPayment, Column: "status"}, + CreateAt: gormcol.Field{Table: TableNamePsOrderPayuPayment, Column: "create_at"}, + UpdateAt: gormcol.Field{Table: TableNamePsOrderPayuPayment, Column: "update_at"}, +} diff --git a/app/model/dbmodel/ps_order_return.go b/app/model/dbmodel/ps_order_return.go new file mode 100644 index 0000000..d266f72 --- /dev/null +++ b/app/model/dbmodel/ps_order_return.go @@ -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 TableNamePsOrderReturn = "ps_order_return" + +// PsOrderReturn mapped from table +type PsOrderReturn struct { + IDOrderReturn int32 `gorm:"column:id_order_return;primaryKey;autoIncrement:true" json:"id_order_return"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:order_return_customer,priority:1" json:"id_customer"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + State bool `gorm:"column:state;not null;default:1" json:"state"` + Question string `gorm:"column:question;not null" json:"question"` + 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 PsOrderReturn's table name +func (*PsOrderReturn) TableName() string { + return TableNamePsOrderReturn +} + +var PsOrderReturnCols = struct { + IDOrderReturn gormcol.Field + IDCustomer gormcol.Field + IDOrder gormcol.Field + State gormcol.Field + Question gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrderReturn: gormcol.Field{Table: TableNamePsOrderReturn, Column: "id_order_return"}, + IDCustomer: gormcol.Field{Table: TableNamePsOrderReturn, Column: "id_customer"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderReturn, Column: "id_order"}, + State: gormcol.Field{Table: TableNamePsOrderReturn, Column: "state"}, + Question: gormcol.Field{Table: TableNamePsOrderReturn, Column: "question"}, + DateAdd: gormcol.Field{Table: TableNamePsOrderReturn, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsOrderReturn, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_order_return_detail.go b/app/model/dbmodel/ps_order_return_detail.go new file mode 100644 index 0000000..7129038 --- /dev/null +++ b/app/model/dbmodel/ps_order_return_detail.go @@ -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 TableNamePsOrderReturnDetail = "ps_order_return_detail" + +// PsOrderReturnDetail mapped from table +type PsOrderReturnDetail struct { + IDOrderReturn int32 `gorm:"column:id_order_return;primaryKey" json:"id_order_return"` + IDOrderDetail int32 `gorm:"column:id_order_detail;primaryKey" json:"id_order_detail"` + IDCustomization int32 `gorm:"column:id_customization;primaryKey" json:"id_customization"` + ProductQuantity int32 `gorm:"column:product_quantity;not null" json:"product_quantity"` +} + +// TableName PsOrderReturnDetail's table name +func (*PsOrderReturnDetail) TableName() string { + return TableNamePsOrderReturnDetail +} + +var PsOrderReturnDetailCols = struct { + IDOrderReturn gormcol.Field + IDOrderDetail gormcol.Field + IDCustomization gormcol.Field + ProductQuantity gormcol.Field +}{ + IDOrderReturn: gormcol.Field{Table: TableNamePsOrderReturnDetail, Column: "id_order_return"}, + IDOrderDetail: gormcol.Field{Table: TableNamePsOrderReturnDetail, Column: "id_order_detail"}, + IDCustomization: gormcol.Field{Table: TableNamePsOrderReturnDetail, Column: "id_customization"}, + ProductQuantity: gormcol.Field{Table: TableNamePsOrderReturnDetail, Column: "product_quantity"}, +} diff --git a/app/model/dbmodel/ps_order_return_state.go b/app/model/dbmodel/ps_order_return_state.go new file mode 100644 index 0000000..8cb2ca0 --- /dev/null +++ b/app/model/dbmodel/ps_order_return_state.go @@ -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 TableNamePsOrderReturnState = "ps_order_return_state" + +// PsOrderReturnState mapped from table +type PsOrderReturnState struct { + IDOrderReturnState int32 `gorm:"column:id_order_return_state;primaryKey;autoIncrement:true" json:"id_order_return_state"` + Color *string `gorm:"column:color" json:"color"` +} + +// TableName PsOrderReturnState's table name +func (*PsOrderReturnState) TableName() string { + return TableNamePsOrderReturnState +} + +var PsOrderReturnStateCols = struct { + IDOrderReturnState gormcol.Field + Color gormcol.Field +}{ + IDOrderReturnState: gormcol.Field{Table: TableNamePsOrderReturnState, Column: "id_order_return_state"}, + Color: gormcol.Field{Table: TableNamePsOrderReturnState, Column: "color"}, +} diff --git a/app/model/dbmodel/ps_order_return_state_lang.go b/app/model/dbmodel/ps_order_return_state_lang.go new file mode 100644 index 0000000..6fdf6bb --- /dev/null +++ b/app/model/dbmodel/ps_order_return_state_lang.go @@ -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 TableNamePsOrderReturnStateLang = "ps_order_return_state_lang" + +// PsOrderReturnStateLang mapped from table +type PsOrderReturnStateLang struct { + IDOrderReturnState int32 `gorm:"column:id_order_return_state;primaryKey" json:"id_order_return_state"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsOrderReturnStateLang's table name +func (*PsOrderReturnStateLang) TableName() string { + return TableNamePsOrderReturnStateLang +} + +var PsOrderReturnStateLangCols = struct { + IDOrderReturnState gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDOrderReturnState: gormcol.Field{Table: TableNamePsOrderReturnStateLang, Column: "id_order_return_state"}, + IDLang: gormcol.Field{Table: TableNamePsOrderReturnStateLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsOrderReturnStateLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_order_slip.go b/app/model/dbmodel/ps_order_slip.go new file mode 100644 index 0000000..6b65c31 --- /dev/null +++ b/app/model/dbmodel/ps_order_slip.go @@ -0,0 +1,70 @@ +// 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 TableNamePsOrderSlip = "ps_order_slip" + +// PsOrderSlip mapped from table +type PsOrderSlip struct { + IDOrderSlip int32 `gorm:"column:id_order_slip;primaryKey;autoIncrement:true" json:"id_order_slip"` + ConversionRate float64 `gorm:"column:conversion_rate;not null;default:1.000000" json:"conversion_rate"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:order_slip_customer,priority:1" json:"id_customer"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + TotalProductsTaxExcl *float64 `gorm:"column:total_products_tax_excl" json:"total_products_tax_excl"` + TotalProductsTaxIncl *float64 `gorm:"column:total_products_tax_incl" json:"total_products_tax_incl"` + TotalShippingTaxExcl *float64 `gorm:"column:total_shipping_tax_excl" json:"total_shipping_tax_excl"` + TotalShippingTaxIncl *float64 `gorm:"column:total_shipping_tax_incl" json:"total_shipping_tax_incl"` + ShippingCost int32 `gorm:"column:shipping_cost;not null" json:"shipping_cost"` + Amount float64 `gorm:"column:amount;not null" json:"amount"` + ShippingCostAmount float64 `gorm:"column:shipping_cost_amount;not null" json:"shipping_cost_amount"` + Partial bool `gorm:"column:partial;not null" json:"partial"` + OrderSlipType bool `gorm:"column:order_slip_type;not null" json:"order_slip_type"` + 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 PsOrderSlip's table name +func (*PsOrderSlip) TableName() string { + return TableNamePsOrderSlip +} + +var PsOrderSlipCols = struct { + IDOrderSlip gormcol.Field + ConversionRate gormcol.Field + IDCustomer gormcol.Field + IDOrder gormcol.Field + TotalProductsTaxExcl gormcol.Field + TotalProductsTaxIncl gormcol.Field + TotalShippingTaxExcl gormcol.Field + TotalShippingTaxIncl gormcol.Field + ShippingCost gormcol.Field + Amount gormcol.Field + ShippingCostAmount gormcol.Field + Partial gormcol.Field + OrderSlipType gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrderSlip: gormcol.Field{Table: TableNamePsOrderSlip, Column: "id_order_slip"}, + ConversionRate: gormcol.Field{Table: TableNamePsOrderSlip, Column: "conversion_rate"}, + IDCustomer: gormcol.Field{Table: TableNamePsOrderSlip, Column: "id_customer"}, + IDOrder: gormcol.Field{Table: TableNamePsOrderSlip, Column: "id_order"}, + TotalProductsTaxExcl: gormcol.Field{Table: TableNamePsOrderSlip, Column: "total_products_tax_excl"}, + TotalProductsTaxIncl: gormcol.Field{Table: TableNamePsOrderSlip, Column: "total_products_tax_incl"}, + TotalShippingTaxExcl: gormcol.Field{Table: TableNamePsOrderSlip, Column: "total_shipping_tax_excl"}, + TotalShippingTaxIncl: gormcol.Field{Table: TableNamePsOrderSlip, Column: "total_shipping_tax_incl"}, + ShippingCost: gormcol.Field{Table: TableNamePsOrderSlip, Column: "shipping_cost"}, + Amount: gormcol.Field{Table: TableNamePsOrderSlip, Column: "amount"}, + ShippingCostAmount: gormcol.Field{Table: TableNamePsOrderSlip, Column: "shipping_cost_amount"}, + Partial: gormcol.Field{Table: TableNamePsOrderSlip, Column: "partial"}, + OrderSlipType: gormcol.Field{Table: TableNamePsOrderSlip, Column: "order_slip_type"}, + DateAdd: gormcol.Field{Table: TableNamePsOrderSlip, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsOrderSlip, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_order_slip_detail.go b/app/model/dbmodel/ps_order_slip_detail.go new file mode 100644 index 0000000..c8cac52 --- /dev/null +++ b/app/model/dbmodel/ps_order_slip_detail.go @@ -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 TableNamePsOrderSlipDetail = "ps_order_slip_detail" + +// PsOrderSlipDetail mapped from table +type PsOrderSlipDetail struct { + IDOrderSlip int32 `gorm:"column:id_order_slip;primaryKey" json:"id_order_slip"` + IDOrderDetail int32 `gorm:"column:id_order_detail;primaryKey" json:"id_order_detail"` + ProductQuantity int32 `gorm:"column:product_quantity;not null" json:"product_quantity"` + UnitPriceTaxExcl *float64 `gorm:"column:unit_price_tax_excl" json:"unit_price_tax_excl"` + UnitPriceTaxIncl *float64 `gorm:"column:unit_price_tax_incl" json:"unit_price_tax_incl"` + TotalPriceTaxExcl *float64 `gorm:"column:total_price_tax_excl" json:"total_price_tax_excl"` + TotalPriceTaxIncl *float64 `gorm:"column:total_price_tax_incl" json:"total_price_tax_incl"` + AmountTaxExcl *float64 `gorm:"column:amount_tax_excl" json:"amount_tax_excl"` + AmountTaxIncl *float64 `gorm:"column:amount_tax_incl" json:"amount_tax_incl"` +} + +// TableName PsOrderSlipDetail's table name +func (*PsOrderSlipDetail) TableName() string { + return TableNamePsOrderSlipDetail +} + +var PsOrderSlipDetailCols = struct { + IDOrderSlip gormcol.Field + IDOrderDetail gormcol.Field + ProductQuantity gormcol.Field + UnitPriceTaxExcl gormcol.Field + UnitPriceTaxIncl gormcol.Field + TotalPriceTaxExcl gormcol.Field + TotalPriceTaxIncl gormcol.Field + AmountTaxExcl gormcol.Field + AmountTaxIncl gormcol.Field +}{ + IDOrderSlip: gormcol.Field{Table: TableNamePsOrderSlipDetail, Column: "id_order_slip"}, + IDOrderDetail: gormcol.Field{Table: TableNamePsOrderSlipDetail, Column: "id_order_detail"}, + ProductQuantity: gormcol.Field{Table: TableNamePsOrderSlipDetail, Column: "product_quantity"}, + UnitPriceTaxExcl: gormcol.Field{Table: TableNamePsOrderSlipDetail, Column: "unit_price_tax_excl"}, + UnitPriceTaxIncl: gormcol.Field{Table: TableNamePsOrderSlipDetail, Column: "unit_price_tax_incl"}, + TotalPriceTaxExcl: gormcol.Field{Table: TableNamePsOrderSlipDetail, Column: "total_price_tax_excl"}, + TotalPriceTaxIncl: gormcol.Field{Table: TableNamePsOrderSlipDetail, Column: "total_price_tax_incl"}, + AmountTaxExcl: gormcol.Field{Table: TableNamePsOrderSlipDetail, Column: "amount_tax_excl"}, + AmountTaxIncl: gormcol.Field{Table: TableNamePsOrderSlipDetail, Column: "amount_tax_incl"}, +} diff --git a/app/model/dbmodel/ps_order_slip_detail_tax.go b/app/model/dbmodel/ps_order_slip_detail_tax.go new file mode 100644 index 0000000..3db1bbe --- /dev/null +++ b/app/model/dbmodel/ps_order_slip_detail_tax.go @@ -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 TableNamePsOrderSlipDetailTax = "ps_order_slip_detail_tax" + +// PsOrderSlipDetailTax mapped from table +type PsOrderSlipDetailTax struct { + IDOrderSlipDetail int32 `gorm:"column:id_order_slip_detail;not null;index:id_order_slip_detail,priority:1" json:"id_order_slip_detail"` + IDTax int32 `gorm:"column:id_tax;not null;index:id_tax,priority:1" json:"id_tax"` + UnitAmount float64 `gorm:"column:unit_amount;not null;default:0.000000" json:"unit_amount"` + TotalAmount float64 `gorm:"column:total_amount;not null;default:0.000000" json:"total_amount"` +} + +// TableName PsOrderSlipDetailTax's table name +func (*PsOrderSlipDetailTax) TableName() string { + return TableNamePsOrderSlipDetailTax +} + +var PsOrderSlipDetailTaxCols = struct { + IDOrderSlipDetail gormcol.Field + IDTax gormcol.Field + UnitAmount gormcol.Field + TotalAmount gormcol.Field +}{ + IDOrderSlipDetail: gormcol.Field{Table: TableNamePsOrderSlipDetailTax, Column: "id_order_slip_detail"}, + IDTax: gormcol.Field{Table: TableNamePsOrderSlipDetailTax, Column: "id_tax"}, + UnitAmount: gormcol.Field{Table: TableNamePsOrderSlipDetailTax, Column: "unit_amount"}, + TotalAmount: gormcol.Field{Table: TableNamePsOrderSlipDetailTax, Column: "total_amount"}, +} diff --git a/app/model/dbmodel/ps_order_state.go b/app/model/dbmodel/ps_order_state.go new file mode 100644 index 0000000..754f3aa --- /dev/null +++ b/app/model/dbmodel/ps_order_state.go @@ -0,0 +1,64 @@ +// 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 TableNamePsOrderState = "ps_order_state" + +// PsOrderState mapped from table +type PsOrderState struct { + IDOrderState int32 `gorm:"column:id_order_state;primaryKey;autoIncrement:true" json:"id_order_state"` + Invoice *bool `gorm:"column:invoice" json:"invoice"` + SendEmail bool `gorm:"column:send_email;not null" json:"send_email"` + ModuleName *string `gorm:"column:module_name;index:module_name,priority:1" json:"module_name"` + Color *string `gorm:"column:color" json:"color"` + Unremovable bool `gorm:"column:unremovable;not null" json:"unremovable"` + Hidden bool `gorm:"column:hidden;not null" json:"hidden"` + Logable bool `gorm:"column:logable;not null" json:"logable"` + Delivery bool `gorm:"column:delivery;not null" json:"delivery"` + Shipped bool `gorm:"column:shipped;not null" json:"shipped"` + Paid bool `gorm:"column:paid;not null" json:"paid"` + PdfInvoice bool `gorm:"column:pdf_invoice;not null" json:"pdf_invoice"` + PdfDelivery bool `gorm:"column:pdf_delivery;not null" json:"pdf_delivery"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsOrderState's table name +func (*PsOrderState) TableName() string { + return TableNamePsOrderState +} + +var PsOrderStateCols = struct { + IDOrderState gormcol.Field + Invoice gormcol.Field + SendEmail gormcol.Field + ModuleName gormcol.Field + Color gormcol.Field + Unremovable gormcol.Field + Hidden gormcol.Field + Logable gormcol.Field + Delivery gormcol.Field + Shipped gormcol.Field + Paid gormcol.Field + PdfInvoice gormcol.Field + PdfDelivery gormcol.Field + Deleted gormcol.Field +}{ + IDOrderState: gormcol.Field{Table: TableNamePsOrderState, Column: "id_order_state"}, + Invoice: gormcol.Field{Table: TableNamePsOrderState, Column: "invoice"}, + SendEmail: gormcol.Field{Table: TableNamePsOrderState, Column: "send_email"}, + ModuleName: gormcol.Field{Table: TableNamePsOrderState, Column: "module_name"}, + Color: gormcol.Field{Table: TableNamePsOrderState, Column: "color"}, + Unremovable: gormcol.Field{Table: TableNamePsOrderState, Column: "unremovable"}, + Hidden: gormcol.Field{Table: TableNamePsOrderState, Column: "hidden"}, + Logable: gormcol.Field{Table: TableNamePsOrderState, Column: "logable"}, + Delivery: gormcol.Field{Table: TableNamePsOrderState, Column: "delivery"}, + Shipped: gormcol.Field{Table: TableNamePsOrderState, Column: "shipped"}, + Paid: gormcol.Field{Table: TableNamePsOrderState, Column: "paid"}, + PdfInvoice: gormcol.Field{Table: TableNamePsOrderState, Column: "pdf_invoice"}, + PdfDelivery: gormcol.Field{Table: TableNamePsOrderState, Column: "pdf_delivery"}, + Deleted: gormcol.Field{Table: TableNamePsOrderState, Column: "deleted"}, +} diff --git a/app/model/dbmodel/ps_order_state_lang.go b/app/model/dbmodel/ps_order_state_lang.go new file mode 100644 index 0000000..3617d07 --- /dev/null +++ b/app/model/dbmodel/ps_order_state_lang.go @@ -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 TableNamePsOrderStateLang = "ps_order_state_lang" + +// PsOrderStateLang mapped from table +type PsOrderStateLang struct { + IDOrderState int32 `gorm:"column:id_order_state;primaryKey" json:"id_order_state"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Template string `gorm:"column:template;not null" json:"template"` +} + +// TableName PsOrderStateLang's table name +func (*PsOrderStateLang) TableName() string { + return TableNamePsOrderStateLang +} + +var PsOrderStateLangCols = struct { + IDOrderState gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Template gormcol.Field +}{ + IDOrderState: gormcol.Field{Table: TableNamePsOrderStateLang, Column: "id_order_state"}, + IDLang: gormcol.Field{Table: TableNamePsOrderStateLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsOrderStateLang, Column: "name"}, + Template: gormcol.Field{Table: TableNamePsOrderStateLang, Column: "template"}, +} diff --git a/app/model/dbmodel/ps_orders.go b/app/model/dbmodel/ps_orders.go new file mode 100644 index 0000000..eef23b8 --- /dev/null +++ b/app/model/dbmodel/ps_orders.go @@ -0,0 +1,163 @@ +// 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 TableNamePsOrder = "ps_orders" + +// PsOrder mapped from table +type PsOrder struct { + IDOrder int32 `gorm:"column:id_order;primaryKey;autoIncrement:true" json:"id_order"` + Reference *string `gorm:"column:reference;index:reference,priority:1" json:"reference"` + 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"` + IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:id_customer,priority:1" json:"id_customer"` + IDCart int32 `gorm:"column:id_cart;not null;index:id_cart,priority:1" json:"id_cart"` + IDCurrency int32 `gorm:"column:id_currency;not null;index:id_currency,priority:1" json:"id_currency"` + 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"` + CurrentState int32 `gorm:"column:current_state;not null;index:current_state,priority:1" json:"current_state"` + SecureKey string `gorm:"column:secure_key;not null;default:-1" json:"secure_key"` + Payment string `gorm:"column:payment;not null" json:"payment"` + ConversionRate float64 `gorm:"column:conversion_rate;not null;default:1.000000" json:"conversion_rate"` + Module *string `gorm:"column:module" json:"module"` + Recyclable bool `gorm:"column:recyclable;not null" 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"` + ShippingNumber *string `gorm:"column:shipping_number" json:"shipping_number"` + TotalDiscounts float64 `gorm:"column:total_discounts;not null;default:0.000000" json:"total_discounts"` + TotalDiscountsTaxIncl float64 `gorm:"column:total_discounts_tax_incl;not null;default:0.000000" json:"total_discounts_tax_incl"` + TotalDiscountsTaxExcl float64 `gorm:"column:total_discounts_tax_excl;not null;default:0.000000" json:"total_discounts_tax_excl"` + TotalPaid float64 `gorm:"column:total_paid;not null;default:0.000000" json:"total_paid"` + TotalPaidTaxIncl float64 `gorm:"column:total_paid_tax_incl;not null;default:0.000000" json:"total_paid_tax_incl"` + TotalPaidTaxExcl float64 `gorm:"column:total_paid_tax_excl;not null;default:0.000000" json:"total_paid_tax_excl"` + TotalPaidReal float64 `gorm:"column:total_paid_real;not null;default:0.000000" json:"total_paid_real"` + TotalProducts float64 `gorm:"column:total_products;not null;default:0.000000" json:"total_products"` + TotalProductsWt float64 `gorm:"column:total_products_wt;not null;default:0.000000" json:"total_products_wt"` + TotalShipping float64 `gorm:"column:total_shipping;not null;default:0.000000" json:"total_shipping"` + TotalShippingTaxIncl float64 `gorm:"column:total_shipping_tax_incl;not null;default:0.000000" json:"total_shipping_tax_incl"` + TotalShippingTaxExcl float64 `gorm:"column:total_shipping_tax_excl;not null;default:0.000000" json:"total_shipping_tax_excl"` + CarrierTaxRate float64 `gorm:"column:carrier_tax_rate;not null;default:0.000" json:"carrier_tax_rate"` + TotalWrapping float64 `gorm:"column:total_wrapping;not null;default:0.000000" json:"total_wrapping"` + TotalWrappingTaxIncl float64 `gorm:"column:total_wrapping_tax_incl;not null;default:0.000000" json:"total_wrapping_tax_incl"` + TotalWrappingTaxExcl float64 `gorm:"column:total_wrapping_tax_excl;not null;default:0.000000" json:"total_wrapping_tax_excl"` + RoundMode bool `gorm:"column:round_mode;not null;default:2" json:"round_mode"` + RoundType bool `gorm:"column:round_type;not null;default:1" json:"round_type"` + InvoiceNumber int32 `gorm:"column:invoice_number;not null;index:invoice_number,priority:1" json:"invoice_number"` + DeliveryNumber int32 `gorm:"column:delivery_number;not null" json:"delivery_number"` + InvoiceDate time.Time `gorm:"column:invoice_date;not null" json:"invoice_date"` + DeliveryDate time.Time `gorm:"column:delivery_date;not null" json:"delivery_date"` + Valid int32 `gorm:"column:valid;not null" json:"valid"` + DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsOrder's table name +func (*PsOrder) TableName() string { + return TableNamePsOrder +} + +var PsOrderCols = struct { + IDOrder gormcol.Field + Reference gormcol.Field + IDShopGroup gormcol.Field + IDShop gormcol.Field + IDCarrier gormcol.Field + IDLang gormcol.Field + IDCustomer gormcol.Field + IDCart gormcol.Field + IDCurrency gormcol.Field + IDAddressDelivery gormcol.Field + IDAddressInvoice gormcol.Field + CurrentState gormcol.Field + SecureKey gormcol.Field + Payment gormcol.Field + ConversionRate gormcol.Field + Module gormcol.Field + Recyclable gormcol.Field + Gift gormcol.Field + GiftMessage gormcol.Field + MobileTheme gormcol.Field + ShippingNumber gormcol.Field + TotalDiscounts gormcol.Field + TotalDiscountsTaxIncl gormcol.Field + TotalDiscountsTaxExcl gormcol.Field + TotalPaid gormcol.Field + TotalPaidTaxIncl gormcol.Field + TotalPaidTaxExcl gormcol.Field + TotalPaidReal gormcol.Field + TotalProducts gormcol.Field + TotalProductsWt gormcol.Field + TotalShipping gormcol.Field + TotalShippingTaxIncl gormcol.Field + TotalShippingTaxExcl gormcol.Field + CarrierTaxRate gormcol.Field + TotalWrapping gormcol.Field + TotalWrappingTaxIncl gormcol.Field + TotalWrappingTaxExcl gormcol.Field + RoundMode gormcol.Field + RoundType gormcol.Field + InvoiceNumber gormcol.Field + DeliveryNumber gormcol.Field + InvoiceDate gormcol.Field + DeliveryDate gormcol.Field + Valid gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrder: gormcol.Field{Table: TableNamePsOrder, Column: "id_order"}, + Reference: gormcol.Field{Table: TableNamePsOrder, Column: "reference"}, + IDShopGroup: gormcol.Field{Table: TableNamePsOrder, Column: "id_shop_group"}, + IDShop: gormcol.Field{Table: TableNamePsOrder, Column: "id_shop"}, + IDCarrier: gormcol.Field{Table: TableNamePsOrder, Column: "id_carrier"}, + IDLang: gormcol.Field{Table: TableNamePsOrder, Column: "id_lang"}, + IDCustomer: gormcol.Field{Table: TableNamePsOrder, Column: "id_customer"}, + IDCart: gormcol.Field{Table: TableNamePsOrder, Column: "id_cart"}, + IDCurrency: gormcol.Field{Table: TableNamePsOrder, Column: "id_currency"}, + IDAddressDelivery: gormcol.Field{Table: TableNamePsOrder, Column: "id_address_delivery"}, + IDAddressInvoice: gormcol.Field{Table: TableNamePsOrder, Column: "id_address_invoice"}, + CurrentState: gormcol.Field{Table: TableNamePsOrder, Column: "current_state"}, + SecureKey: gormcol.Field{Table: TableNamePsOrder, Column: "secure_key"}, + Payment: gormcol.Field{Table: TableNamePsOrder, Column: "payment"}, + ConversionRate: gormcol.Field{Table: TableNamePsOrder, Column: "conversion_rate"}, + Module: gormcol.Field{Table: TableNamePsOrder, Column: "module"}, + Recyclable: gormcol.Field{Table: TableNamePsOrder, Column: "recyclable"}, + Gift: gormcol.Field{Table: TableNamePsOrder, Column: "gift"}, + GiftMessage: gormcol.Field{Table: TableNamePsOrder, Column: "gift_message"}, + MobileTheme: gormcol.Field{Table: TableNamePsOrder, Column: "mobile_theme"}, + ShippingNumber: gormcol.Field{Table: TableNamePsOrder, Column: "shipping_number"}, + TotalDiscounts: gormcol.Field{Table: TableNamePsOrder, Column: "total_discounts"}, + TotalDiscountsTaxIncl: gormcol.Field{Table: TableNamePsOrder, Column: "total_discounts_tax_incl"}, + TotalDiscountsTaxExcl: gormcol.Field{Table: TableNamePsOrder, Column: "total_discounts_tax_excl"}, + TotalPaid: gormcol.Field{Table: TableNamePsOrder, Column: "total_paid"}, + TotalPaidTaxIncl: gormcol.Field{Table: TableNamePsOrder, Column: "total_paid_tax_incl"}, + TotalPaidTaxExcl: gormcol.Field{Table: TableNamePsOrder, Column: "total_paid_tax_excl"}, + TotalPaidReal: gormcol.Field{Table: TableNamePsOrder, Column: "total_paid_real"}, + TotalProducts: gormcol.Field{Table: TableNamePsOrder, Column: "total_products"}, + TotalProductsWt: gormcol.Field{Table: TableNamePsOrder, Column: "total_products_wt"}, + TotalShipping: gormcol.Field{Table: TableNamePsOrder, Column: "total_shipping"}, + TotalShippingTaxIncl: gormcol.Field{Table: TableNamePsOrder, Column: "total_shipping_tax_incl"}, + TotalShippingTaxExcl: gormcol.Field{Table: TableNamePsOrder, Column: "total_shipping_tax_excl"}, + CarrierTaxRate: gormcol.Field{Table: TableNamePsOrder, Column: "carrier_tax_rate"}, + TotalWrapping: gormcol.Field{Table: TableNamePsOrder, Column: "total_wrapping"}, + TotalWrappingTaxIncl: gormcol.Field{Table: TableNamePsOrder, Column: "total_wrapping_tax_incl"}, + TotalWrappingTaxExcl: gormcol.Field{Table: TableNamePsOrder, Column: "total_wrapping_tax_excl"}, + RoundMode: gormcol.Field{Table: TableNamePsOrder, Column: "round_mode"}, + RoundType: gormcol.Field{Table: TableNamePsOrder, Column: "round_type"}, + InvoiceNumber: gormcol.Field{Table: TableNamePsOrder, Column: "invoice_number"}, + DeliveryNumber: gormcol.Field{Table: TableNamePsOrder, Column: "delivery_number"}, + InvoiceDate: gormcol.Field{Table: TableNamePsOrder, Column: "invoice_date"}, + DeliveryDate: gormcol.Field{Table: TableNamePsOrder, Column: "delivery_date"}, + Valid: gormcol.Field{Table: TableNamePsOrder, Column: "valid"}, + DateAdd: gormcol.Field{Table: TableNamePsOrder, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsOrder, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_pack.go b/app/model/dbmodel/ps_pack.go new file mode 100644 index 0000000..9f6ad61 --- /dev/null +++ b/app/model/dbmodel/ps_pack.go @@ -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 TableNamePsPack = "ps_pack" + +// PsPack mapped from table +type PsPack struct { + IDProductPack int32 `gorm:"column:id_product_pack;primaryKey" json:"id_product_pack"` + IDProductItem int32 `gorm:"column:id_product_item;primaryKey;index:product_item,priority:1" json:"id_product_item"` + IDProductAttributeItem int32 `gorm:"column:id_product_attribute_item;primaryKey;index:product_item,priority:2" json:"id_product_attribute_item"` + Quantity int32 `gorm:"column:quantity;not null;default:1" json:"quantity"` +} + +// TableName PsPack's table name +func (*PsPack) TableName() string { + return TableNamePsPack +} + +var PsPackCols = struct { + IDProductPack gormcol.Field + IDProductItem gormcol.Field + IDProductAttributeItem gormcol.Field + Quantity gormcol.Field +}{ + IDProductPack: gormcol.Field{Table: TableNamePsPack, Column: "id_product_pack"}, + IDProductItem: gormcol.Field{Table: TableNamePsPack, Column: "id_product_item"}, + IDProductAttributeItem: gormcol.Field{Table: TableNamePsPack, Column: "id_product_attribute_item"}, + Quantity: gormcol.Field{Table: TableNamePsPack, Column: "quantity"}, +} diff --git a/app/model/dbmodel/ps_page.go b/app/model/dbmodel/ps_page.go new file mode 100644 index 0000000..ebef3a0 --- /dev/null +++ b/app/model/dbmodel/ps_page.go @@ -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 TableNamePsPage = "ps_page" + +// PsPage mapped from table +type PsPage struct { + IDPage int32 `gorm:"column:id_page;primaryKey;autoIncrement:true" json:"id_page"` + IDPageType int32 `gorm:"column:id_page_type;not null;index:id_page_type,priority:1" json:"id_page_type"` + IDObject *int32 `gorm:"column:id_object;index:id_object,priority:1" json:"id_object"` +} + +// TableName PsPage's table name +func (*PsPage) TableName() string { + return TableNamePsPage +} + +var PsPageCols = struct { + IDPage gormcol.Field + IDPageType gormcol.Field + IDObject gormcol.Field +}{ + IDPage: gormcol.Field{Table: TableNamePsPage, Column: "id_page"}, + IDPageType: gormcol.Field{Table: TableNamePsPage, Column: "id_page_type"}, + IDObject: gormcol.Field{Table: TableNamePsPage, Column: "id_object"}, +} diff --git a/app/model/dbmodel/ps_page_type.go b/app/model/dbmodel/ps_page_type.go new file mode 100644 index 0000000..dee4b48 --- /dev/null +++ b/app/model/dbmodel/ps_page_type.go @@ -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 TableNamePsPageType = "ps_page_type" + +// PsPageType mapped from table +type PsPageType struct { + IDPageType int32 `gorm:"column:id_page_type;primaryKey;autoIncrement:true" json:"id_page_type"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` +} + +// TableName PsPageType's table name +func (*PsPageType) TableName() string { + return TableNamePsPageType +} + +var PsPageTypeCols = struct { + IDPageType gormcol.Field + Name gormcol.Field +}{ + IDPageType: gormcol.Field{Table: TableNamePsPageType, Column: "id_page_type"}, + Name: gormcol.Field{Table: TableNamePsPageType, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_page_viewed.go b/app/model/dbmodel/ps_page_viewed.go new file mode 100644 index 0000000..5d1c2ac --- /dev/null +++ b/app/model/dbmodel/ps_page_viewed.go @@ -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 TableNamePsPageViewed = "ps_page_viewed" + +// PsPageViewed mapped from table +type PsPageViewed struct { + IDPage int32 `gorm:"column:id_page;primaryKey" json:"id_page"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDDateRange int32 `gorm:"column:id_date_range;primaryKey" json:"id_date_range"` + Counter int32 `gorm:"column:counter;not null" json:"counter"` +} + +// TableName PsPageViewed's table name +func (*PsPageViewed) TableName() string { + return TableNamePsPageViewed +} + +var PsPageViewedCols = struct { + IDPage gormcol.Field + IDShopGroup gormcol.Field + IDShop gormcol.Field + IDDateRange gormcol.Field + Counter gormcol.Field +}{ + IDPage: gormcol.Field{Table: TableNamePsPageViewed, Column: "id_page"}, + IDShopGroup: gormcol.Field{Table: TableNamePsPageViewed, Column: "id_shop_group"}, + IDShop: gormcol.Field{Table: TableNamePsPageViewed, Column: "id_shop"}, + IDDateRange: gormcol.Field{Table: TableNamePsPageViewed, Column: "id_date_range"}, + Counter: gormcol.Field{Table: TableNamePsPageViewed, Column: "counter"}, +} diff --git a/app/model/dbmodel/ps_pagenotfound.go b/app/model/dbmodel/ps_pagenotfound.go new file mode 100644 index 0000000..765bf4a --- /dev/null +++ b/app/model/dbmodel/ps_pagenotfound.go @@ -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 TableNamePsPagenotfound = "ps_pagenotfound" + +// PsPagenotfound mapped from table +type PsPagenotfound struct { + IDPagenotfound int32 `gorm:"column:id_pagenotfound;primaryKey;autoIncrement:true" json:"id_pagenotfound"` + 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"` + RequestURI string `gorm:"column:request_uri;not null" json:"request_uri"` + HTTPReferer string `gorm:"column:http_referer;not null" json:"http_referer"` + DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"` +} + +// TableName PsPagenotfound's table name +func (*PsPagenotfound) TableName() string { + return TableNamePsPagenotfound +} + +var PsPagenotfoundCols = struct { + IDPagenotfound gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + RequestURI gormcol.Field + HTTPReferer gormcol.Field + DateAdd gormcol.Field +}{ + IDPagenotfound: gormcol.Field{Table: TableNamePsPagenotfound, Column: "id_pagenotfound"}, + IDShop: gormcol.Field{Table: TableNamePsPagenotfound, Column: "id_shop"}, + IDShopGroup: gormcol.Field{Table: TableNamePsPagenotfound, Column: "id_shop_group"}, + RequestURI: gormcol.Field{Table: TableNamePsPagenotfound, Column: "request_uri"}, + HTTPReferer: gormcol.Field{Table: TableNamePsPagenotfound, Column: "http_referer"}, + DateAdd: gormcol.Field{Table: TableNamePsPagenotfound, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_pocztapolskaen_order.go b/app/model/dbmodel/ps_pocztapolskaen_order.go new file mode 100644 index 0000000..d3d4e1f --- /dev/null +++ b/app/model/dbmodel/ps_pocztapolskaen_order.go @@ -0,0 +1,70 @@ +// 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 TableNamePsPocztapolskaenOrder = "ps_pocztapolskaen_order" + +// PsPocztapolskaenOrder mapped from table +type PsPocztapolskaenOrder struct { + IDPpOrder int32 `gorm:"column:id_pp_order;primaryKey;autoIncrement:true" json:"id_pp_order"` + IDOrder *int32 `gorm:"column:id_order" json:"id_order"` + IDCart *int32 `gorm:"column:id_cart" json:"id_cart"` + IDShipment *string `gorm:"column:id_shipment" json:"id_shipment"` + ShipmentNumber *string `gorm:"column:shipment_number" json:"shipment_number"` + ShipmentType *string `gorm:"column:shipment_type" json:"shipment_type"` + Point *string `gorm:"column:point" json:"point"` + Pni *int32 `gorm:"column:pni" json:"pni"` + Cod bool `gorm:"column:cod;not null" json:"cod"` + IDBuffor *int32 `gorm:"column:id_buffor" json:"id_buffor"` + PostDate *time.Time `gorm:"column:post_date" json:"post_date"` + SendDate *time.Time `gorm:"column:send_date" json:"send_date"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` + IDCarrier *int32 `gorm:"column:id_carrier" json:"id_carrier"` +} + +// TableName PsPocztapolskaenOrder's table name +func (*PsPocztapolskaenOrder) TableName() string { + return TableNamePsPocztapolskaenOrder +} + +var PsPocztapolskaenOrderCols = struct { + IDPpOrder gormcol.Field + IDOrder gormcol.Field + IDCart gormcol.Field + IDShipment gormcol.Field + ShipmentNumber gormcol.Field + ShipmentType gormcol.Field + Point gormcol.Field + Pni gormcol.Field + Cod gormcol.Field + IDBuffor gormcol.Field + PostDate gormcol.Field + SendDate gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + IDCarrier gormcol.Field +}{ + IDPpOrder: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "id_pp_order"}, + IDOrder: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "id_order"}, + IDCart: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "id_cart"}, + IDShipment: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "id_shipment"}, + ShipmentNumber: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "shipment_number"}, + ShipmentType: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "shipment_type"}, + Point: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "point"}, + Pni: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "pni"}, + Cod: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "cod"}, + IDBuffor: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "id_buffor"}, + PostDate: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "post_date"}, + SendDate: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "send_date"}, + DateAdd: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "date_upd"}, + IDCarrier: gormcol.Field{Table: TableNamePsPocztapolskaenOrder, Column: "id_carrier"}, +} diff --git a/app/model/dbmodel/ps_pocztapolskaen_order_set.go b/app/model/dbmodel/ps_pocztapolskaen_order_set.go new file mode 100644 index 0000000..cb696ba --- /dev/null +++ b/app/model/dbmodel/ps_pocztapolskaen_order_set.go @@ -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" + "time" +) + +const TableNamePsPocztapolskaenOrderSet = "ps_pocztapolskaen_order_set" + +// PsPocztapolskaenOrderSet mapped from table +type PsPocztapolskaenOrderSet struct { + IDOrderSet int32 `gorm:"column:id_order_set;primaryKey;autoIncrement:true" json:"id_order_set"` + Name *string `gorm:"column:name" json:"name"` + Active *bool `gorm:"column:active" json:"active"` + IDPostOffice *int32 `gorm:"column:id_post_office" json:"id_post_office"` + PostDate *time.Time `gorm:"column:post_date" json:"post_date"` + IDEn int32 `gorm:"column:id_en;not null" json:"id_en"` + IDEnvelope *int32 `gorm:"column:id_envelope" json:"id_envelope"` + EnvelopeStatus *string `gorm:"column:envelope_status" json:"envelope_status"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsPocztapolskaenOrderSet's table name +func (*PsPocztapolskaenOrderSet) TableName() string { + return TableNamePsPocztapolskaenOrderSet +} + +var PsPocztapolskaenOrderSetCols = struct { + IDOrderSet gormcol.Field + Name gormcol.Field + Active gormcol.Field + IDPostOffice gormcol.Field + PostDate gormcol.Field + IDEn gormcol.Field + IDEnvelope gormcol.Field + EnvelopeStatus gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrderSet: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "id_order_set"}, + Name: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "name"}, + Active: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "active"}, + IDPostOffice: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "id_post_office"}, + PostDate: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "post_date"}, + IDEn: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "id_en"}, + IDEnvelope: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "id_envelope"}, + EnvelopeStatus: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "envelope_status"}, + DateAdd: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsPocztapolskaenOrderSet, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_pocztapolskaen_post_office.go b/app/model/dbmodel/ps_pocztapolskaen_post_office.go new file mode 100644 index 0000000..a1f32e7 --- /dev/null +++ b/app/model/dbmodel/ps_pocztapolskaen_post_office.go @@ -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 TableNamePsPocztapolskaenPostOffice = "ps_pocztapolskaen_post_office" + +// PsPocztapolskaenPostOffice mapped from table +type PsPocztapolskaenPostOffice struct { + IDPostOffice int32 `gorm:"column:id_post_office;primaryKey;autoIncrement:true" json:"id_post_office"` + IDEn *int32 `gorm:"column:id_en" json:"id_en"` + Name *string `gorm:"column:name" json:"name"` + Description *string `gorm:"column:description" json:"description"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsPocztapolskaenPostOffice's table name +func (*PsPocztapolskaenPostOffice) TableName() string { + return TableNamePsPocztapolskaenPostOffice +} + +var PsPocztapolskaenPostOfficeCols = struct { + IDPostOffice gormcol.Field + IDEn gormcol.Field + Name gormcol.Field + Description gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDPostOffice: gormcol.Field{Table: TableNamePsPocztapolskaenPostOffice, Column: "id_post_office"}, + IDEn: gormcol.Field{Table: TableNamePsPocztapolskaenPostOffice, Column: "id_en"}, + Name: gormcol.Field{Table: TableNamePsPocztapolskaenPostOffice, Column: "name"}, + Description: gormcol.Field{Table: TableNamePsPocztapolskaenPostOffice, Column: "description"}, + DateAdd: gormcol.Field{Table: TableNamePsPocztapolskaenPostOffice, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsPocztapolskaenPostOffice, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_pocztapolskaen_profile_address.go b/app/model/dbmodel/ps_pocztapolskaen_profile_address.go new file mode 100644 index 0000000..87ef74f --- /dev/null +++ b/app/model/dbmodel/ps_pocztapolskaen_profile_address.go @@ -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 TableNamePsPocztapolskaenProfileAddress = "ps_pocztapolskaen_profile_address" + +// PsPocztapolskaenProfileAddress mapped from table +type PsPocztapolskaenProfileAddress struct { + IDProfileAddress int32 `gorm:"column:id_profile_address;primaryKey;autoIncrement:true" json:"id_profile_address"` + IDEn *int32 `gorm:"column:id_en" json:"id_en"` + Name *string `gorm:"column:name" json:"name"` + FriendlyName *string `gorm:"column:friendly_name" json:"friendly_name"` + Street *string `gorm:"column:street" json:"street"` + HouseNumber *string `gorm:"column:house_number" json:"house_number"` + PremisesNumber *string `gorm:"column:premises_number" json:"premises_number"` + City *string `gorm:"column:city" json:"city"` + PostalCode *string `gorm:"column:postal_code" json:"postal_code"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsPocztapolskaenProfileAddress's table name +func (*PsPocztapolskaenProfileAddress) TableName() string { + return TableNamePsPocztapolskaenProfileAddress +} + +var PsPocztapolskaenProfileAddressCols = struct { + IDProfileAddress gormcol.Field + IDEn gormcol.Field + Name gormcol.Field + FriendlyName gormcol.Field + Street gormcol.Field + HouseNumber gormcol.Field + PremisesNumber gormcol.Field + City gormcol.Field + PostalCode gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDProfileAddress: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "id_profile_address"}, + IDEn: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "id_en"}, + Name: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "name"}, + FriendlyName: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "friendly_name"}, + Street: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "street"}, + HouseNumber: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "house_number"}, + PremisesNumber: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "premises_number"}, + City: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "city"}, + PostalCode: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "postal_code"}, + DateAdd: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsPocztapolskaenProfileAddress, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_product.go b/app/model/dbmodel/ps_product.go new file mode 100644 index 0000000..d61d2c6 --- /dev/null +++ b/app/model/dbmodel/ps_product.go @@ -0,0 +1,190 @@ +// 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 TableNamePsProduct = "ps_product" + +// PsProduct mapped from table +type PsProduct struct { + IDProduct int32 `gorm:"column:id_product;primaryKey;autoIncrement:true;index:product_manufacturer,priority:2" json:"id_product"` + IDSupplier *int32 `gorm:"column:id_supplier;index:product_supplier,priority:1" json:"id_supplier"` + IDManufacturer *int32 `gorm:"column:id_manufacturer;index:idx_product_manufacturer,priority:1;index:product_manufacturer,priority:1" json:"id_manufacturer"` + IDCategoryDefault *int32 `gorm:"column:id_category_default;index:id_category_default,priority:1" json:"id_category_default"` + IDShopDefault int32 `gorm:"column:id_shop_default;not null;default:1" json:"id_shop_default"` + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;not null" json:"id_tax_rules_group"` + OnSale bool `gorm:"column:on_sale;not null" json:"on_sale"` + OnlineOnly bool `gorm:"column:online_only;not null" json:"online_only"` + Ean13 *string `gorm:"column:ean13" json:"ean13"` + Isbn *string `gorm:"column:isbn" json:"isbn"` + Upc *string `gorm:"column:upc" json:"upc"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + Quantity int32 `gorm:"column:quantity;not null" json:"quantity"` + MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"` + LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"` + LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"` + Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"` + WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"` + Unity *string `gorm:"column:unity" json:"unity"` + UnitPriceRatio float64 `gorm:"column:unit_price_ratio;not null;default:0.000000" json:"unit_price_ratio"` + IDUnit int32 `gorm:"column:id_unit;not null" json:"id_unit"` + AdditionalShippingCost float64 `gorm:"column:additional_shipping_cost;not null;default:0.00" json:"additional_shipping_cost"` + Reference *string `gorm:"column:reference" json:"reference"` + SupplierReference *string `gorm:"column:supplier_reference" json:"supplier_reference"` + Location *string `gorm:"column:location" json:"location"` + Width float64 `gorm:"column:width;not null;default:0.000000" json:"width"` + Height float64 `gorm:"column:height;not null;default:0.000000" json:"height"` + Depth float64 `gorm:"column:depth;not null;default:0.000000" json:"depth"` + Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"` + OutOfStock int32 `gorm:"column:out_of_stock;not null;default:2" json:"out_of_stock"` + AdditionalDeliveryTimes int32 `gorm:"column:additional_delivery_times;not null;default:1" json:"additional_delivery_times"` + QuantityDiscount *bool `gorm:"column:quantity_discount" json:"quantity_discount"` + Customizable int32 `gorm:"column:customizable;not null" json:"customizable"` + UploadableFiles int32 `gorm:"column:uploadable_files;not null" json:"uploadable_files"` + TextFields int32 `gorm:"column:text_fields;not null" json:"text_fields"` + Active bool `gorm:"column:active;not null" json:"active"` + RedirectType string `gorm:"column:redirect_type;not null" json:"redirect_type"` + IDTypeRedirected int32 `gorm:"column:id_type_redirected;not null" json:"id_type_redirected"` + AvailableForOrder bool `gorm:"column:available_for_order;not null;default:1" json:"available_for_order"` + AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"` + ShowCondition bool `gorm:"column:show_condition;not null" json:"show_condition"` + Condition string `gorm:"column:condition;not null;default:new" json:"condition"` + ShowPrice bool `gorm:"column:show_price;not null;default:1" json:"show_price"` + Indexed bool `gorm:"column:indexed;not null;index:indexed,priority:1" json:"indexed"` + Visibility string `gorm:"column:visibility;not null;index:idx_product_visibility,priority:1;index:idx_ps_product_visibility,priority:1;index:idx_visibility,priority:1;default:both" json:"visibility"` + CacheIsPack bool `gorm:"column:cache_is_pack;not null" json:"cache_is_pack"` + CacheHasAttachments bool `gorm:"column:cache_has_attachments;not null" json:"cache_has_attachments"` + IsVirtual bool `gorm:"column:is_virtual;not null" json:"is_virtual"` + CacheDefaultAttribute *int32 `gorm:"column:cache_default_attribute" json:"cache_default_attribute"` + DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null;index:state,priority:2" json:"date_upd"` + AdvancedStockManagement bool `gorm:"column:advanced_stock_management;not null" json:"advanced_stock_management"` + PackStockType int32 `gorm:"column:pack_stock_type;not null;default:3" json:"pack_stock_type"` + State int32 `gorm:"column:state;not null;index:state,priority:1;default:1" json:"state"` + DeliveryDays *int32 `gorm:"column:delivery_days" json:"delivery_days"` +} + +// TableName PsProduct's table name +func (*PsProduct) TableName() string { + return TableNamePsProduct +} + +var PsProductCols = struct { + IDProduct gormcol.Field + IDSupplier gormcol.Field + IDManufacturer gormcol.Field + IDCategoryDefault gormcol.Field + IDShopDefault gormcol.Field + IDTaxRulesGroup gormcol.Field + OnSale gormcol.Field + OnlineOnly gormcol.Field + Ean13 gormcol.Field + Isbn gormcol.Field + Upc gormcol.Field + Ecotax gormcol.Field + Quantity gormcol.Field + MinimalQuantity gormcol.Field + LowStockThreshold gormcol.Field + LowStockAlert gormcol.Field + Price gormcol.Field + WholesalePrice gormcol.Field + Unity gormcol.Field + UnitPriceRatio gormcol.Field + IDUnit gormcol.Field + AdditionalShippingCost gormcol.Field + Reference gormcol.Field + SupplierReference gormcol.Field + Location gormcol.Field + Width gormcol.Field + Height gormcol.Field + Depth gormcol.Field + Weight gormcol.Field + OutOfStock gormcol.Field + AdditionalDeliveryTimes gormcol.Field + QuantityDiscount gormcol.Field + Customizable gormcol.Field + UploadableFiles gormcol.Field + TextFields gormcol.Field + Active gormcol.Field + RedirectType gormcol.Field + IDTypeRedirected gormcol.Field + AvailableForOrder gormcol.Field + AvailableDate gormcol.Field + ShowCondition gormcol.Field + Condition gormcol.Field + ShowPrice gormcol.Field + Indexed gormcol.Field + Visibility gormcol.Field + CacheIsPack gormcol.Field + CacheHasAttachments gormcol.Field + IsVirtual gormcol.Field + CacheDefaultAttribute gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + AdvancedStockManagement gormcol.Field + PackStockType gormcol.Field + State gormcol.Field + DeliveryDays gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProduct, Column: "id_product"}, + IDSupplier: gormcol.Field{Table: TableNamePsProduct, Column: "id_supplier"}, + IDManufacturer: gormcol.Field{Table: TableNamePsProduct, Column: "id_manufacturer"}, + IDCategoryDefault: gormcol.Field{Table: TableNamePsProduct, Column: "id_category_default"}, + IDShopDefault: gormcol.Field{Table: TableNamePsProduct, Column: "id_shop_default"}, + IDTaxRulesGroup: gormcol.Field{Table: TableNamePsProduct, Column: "id_tax_rules_group"}, + OnSale: gormcol.Field{Table: TableNamePsProduct, Column: "on_sale"}, + OnlineOnly: gormcol.Field{Table: TableNamePsProduct, Column: "online_only"}, + Ean13: gormcol.Field{Table: TableNamePsProduct, Column: "ean13"}, + Isbn: gormcol.Field{Table: TableNamePsProduct, Column: "isbn"}, + Upc: gormcol.Field{Table: TableNamePsProduct, Column: "upc"}, + Ecotax: gormcol.Field{Table: TableNamePsProduct, Column: "ecotax"}, + Quantity: gormcol.Field{Table: TableNamePsProduct, Column: "quantity"}, + MinimalQuantity: gormcol.Field{Table: TableNamePsProduct, Column: "minimal_quantity"}, + LowStockThreshold: gormcol.Field{Table: TableNamePsProduct, Column: "low_stock_threshold"}, + LowStockAlert: gormcol.Field{Table: TableNamePsProduct, Column: "low_stock_alert"}, + Price: gormcol.Field{Table: TableNamePsProduct, Column: "price"}, + WholesalePrice: gormcol.Field{Table: TableNamePsProduct, Column: "wholesale_price"}, + Unity: gormcol.Field{Table: TableNamePsProduct, Column: "unity"}, + UnitPriceRatio: gormcol.Field{Table: TableNamePsProduct, Column: "unit_price_ratio"}, + IDUnit: gormcol.Field{Table: TableNamePsProduct, Column: "id_unit"}, + AdditionalShippingCost: gormcol.Field{Table: TableNamePsProduct, Column: "additional_shipping_cost"}, + Reference: gormcol.Field{Table: TableNamePsProduct, Column: "reference"}, + SupplierReference: gormcol.Field{Table: TableNamePsProduct, Column: "supplier_reference"}, + Location: gormcol.Field{Table: TableNamePsProduct, Column: "location"}, + Width: gormcol.Field{Table: TableNamePsProduct, Column: "width"}, + Height: gormcol.Field{Table: TableNamePsProduct, Column: "height"}, + Depth: gormcol.Field{Table: TableNamePsProduct, Column: "depth"}, + Weight: gormcol.Field{Table: TableNamePsProduct, Column: "weight"}, + OutOfStock: gormcol.Field{Table: TableNamePsProduct, Column: "out_of_stock"}, + AdditionalDeliveryTimes: gormcol.Field{Table: TableNamePsProduct, Column: "additional_delivery_times"}, + QuantityDiscount: gormcol.Field{Table: TableNamePsProduct, Column: "quantity_discount"}, + Customizable: gormcol.Field{Table: TableNamePsProduct, Column: "customizable"}, + UploadableFiles: gormcol.Field{Table: TableNamePsProduct, Column: "uploadable_files"}, + TextFields: gormcol.Field{Table: TableNamePsProduct, Column: "text_fields"}, + Active: gormcol.Field{Table: TableNamePsProduct, Column: "active"}, + RedirectType: gormcol.Field{Table: TableNamePsProduct, Column: "redirect_type"}, + IDTypeRedirected: gormcol.Field{Table: TableNamePsProduct, Column: "id_type_redirected"}, + AvailableForOrder: gormcol.Field{Table: TableNamePsProduct, Column: "available_for_order"}, + AvailableDate: gormcol.Field{Table: TableNamePsProduct, Column: "available_date"}, + ShowCondition: gormcol.Field{Table: TableNamePsProduct, Column: "show_condition"}, + Condition: gormcol.Field{Table: TableNamePsProduct, Column: "condition"}, + ShowPrice: gormcol.Field{Table: TableNamePsProduct, Column: "show_price"}, + Indexed: gormcol.Field{Table: TableNamePsProduct, Column: "indexed"}, + Visibility: gormcol.Field{Table: TableNamePsProduct, Column: "visibility"}, + CacheIsPack: gormcol.Field{Table: TableNamePsProduct, Column: "cache_is_pack"}, + CacheHasAttachments: gormcol.Field{Table: TableNamePsProduct, Column: "cache_has_attachments"}, + IsVirtual: gormcol.Field{Table: TableNamePsProduct, Column: "is_virtual"}, + CacheDefaultAttribute: gormcol.Field{Table: TableNamePsProduct, Column: "cache_default_attribute"}, + DateAdd: gormcol.Field{Table: TableNamePsProduct, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsProduct, Column: "date_upd"}, + AdvancedStockManagement: gormcol.Field{Table: TableNamePsProduct, Column: "advanced_stock_management"}, + PackStockType: gormcol.Field{Table: TableNamePsProduct, Column: "pack_stock_type"}, + State: gormcol.Field{Table: TableNamePsProduct, Column: "state"}, + DeliveryDays: gormcol.Field{Table: TableNamePsProduct, Column: "delivery_days"}, +} diff --git a/app/model/dbmodel/ps_product_attachment.go b/app/model/dbmodel/ps_product_attachment.go new file mode 100644 index 0000000..c570bda --- /dev/null +++ b/app/model/dbmodel/ps_product_attachment.go @@ -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 TableNamePsProductAttachment = "ps_product_attachment" + +// PsProductAttachment mapped from table +type PsProductAttachment struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDAttachment int32 `gorm:"column:id_attachment;primaryKey" json:"id_attachment"` +} + +// TableName PsProductAttachment's table name +func (*PsProductAttachment) TableName() string { + return TableNamePsProductAttachment +} + +var PsProductAttachmentCols = struct { + IDProduct gormcol.Field + IDAttachment gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProductAttachment, Column: "id_product"}, + IDAttachment: gormcol.Field{Table: TableNamePsProductAttachment, Column: "id_attachment"}, +} diff --git a/app/model/dbmodel/ps_product_attribute.go b/app/model/dbmodel/ps_product_attribute.go new file mode 100644 index 0000000..66f0025 --- /dev/null +++ b/app/model/dbmodel/ps_product_attribute.go @@ -0,0 +1,82 @@ +// 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 TableNamePsProductAttribute = "ps_product_attribute" + +// PsProductAttribute mapped from table +type PsProductAttribute struct { + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey;autoIncrement:true;index:idx_product_attribute,priority:2;index:id_product_id_product_attribute,priority:1" json:"id_product_attribute"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:product_default,priority:1;index:idx_id_product,priority:1;index:idx_product_attribute,priority:1;index:idx_ps_product_attribute,priority:1;index:id_product_id_product_attribute,priority:2;index:product_attribute_product,priority:1" json:"id_product"` + Reference *string `gorm:"column:reference;index:reference,priority:1" json:"reference"` + SupplierReference *string `gorm:"column:supplier_reference;index:supplier_reference,priority:1" json:"supplier_reference"` + Location *string `gorm:"column:location" json:"location"` + Ean13 *string `gorm:"column:ean13" json:"ean13"` + Isbn *string `gorm:"column:isbn" json:"isbn"` + Upc *string `gorm:"column:upc" json:"upc"` + WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"` + Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + Quantity int32 `gorm:"column:quantity;not null" json:"quantity"` + Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"` + UnitPriceImpact float64 `gorm:"column:unit_price_impact;not null;default:0.000000" json:"unit_price_impact"` + DefaultOn *bool `gorm:"column:default_on;uniqueIndex:product_default,priority:2" json:"default_on"` + MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"` + LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"` + LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"` + AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"` +} + +// TableName PsProductAttribute's table name +func (*PsProductAttribute) TableName() string { + return TableNamePsProductAttribute +} + +var PsProductAttributeCols = struct { + IDProductAttribute gormcol.Field + IDProduct gormcol.Field + Reference gormcol.Field + SupplierReference gormcol.Field + Location gormcol.Field + Ean13 gormcol.Field + Isbn gormcol.Field + Upc gormcol.Field + WholesalePrice gormcol.Field + Price gormcol.Field + Ecotax gormcol.Field + Quantity gormcol.Field + Weight gormcol.Field + UnitPriceImpact gormcol.Field + DefaultOn gormcol.Field + MinimalQuantity gormcol.Field + LowStockThreshold gormcol.Field + LowStockAlert gormcol.Field + AvailableDate gormcol.Field +}{ + IDProductAttribute: gormcol.Field{Table: TableNamePsProductAttribute, Column: "id_product_attribute"}, + IDProduct: gormcol.Field{Table: TableNamePsProductAttribute, Column: "id_product"}, + Reference: gormcol.Field{Table: TableNamePsProductAttribute, Column: "reference"}, + SupplierReference: gormcol.Field{Table: TableNamePsProductAttribute, Column: "supplier_reference"}, + Location: gormcol.Field{Table: TableNamePsProductAttribute, Column: "location"}, + Ean13: gormcol.Field{Table: TableNamePsProductAttribute, Column: "ean13"}, + Isbn: gormcol.Field{Table: TableNamePsProductAttribute, Column: "isbn"}, + Upc: gormcol.Field{Table: TableNamePsProductAttribute, Column: "upc"}, + WholesalePrice: gormcol.Field{Table: TableNamePsProductAttribute, Column: "wholesale_price"}, + Price: gormcol.Field{Table: TableNamePsProductAttribute, Column: "price"}, + Ecotax: gormcol.Field{Table: TableNamePsProductAttribute, Column: "ecotax"}, + Quantity: gormcol.Field{Table: TableNamePsProductAttribute, Column: "quantity"}, + Weight: gormcol.Field{Table: TableNamePsProductAttribute, Column: "weight"}, + UnitPriceImpact: gormcol.Field{Table: TableNamePsProductAttribute, Column: "unit_price_impact"}, + DefaultOn: gormcol.Field{Table: TableNamePsProductAttribute, Column: "default_on"}, + MinimalQuantity: gormcol.Field{Table: TableNamePsProductAttribute, Column: "minimal_quantity"}, + LowStockThreshold: gormcol.Field{Table: TableNamePsProductAttribute, Column: "low_stock_threshold"}, + LowStockAlert: gormcol.Field{Table: TableNamePsProductAttribute, Column: "low_stock_alert"}, + AvailableDate: gormcol.Field{Table: TableNamePsProductAttribute, Column: "available_date"}, +} diff --git a/app/model/dbmodel/ps_product_attribute_combination.go b/app/model/dbmodel/ps_product_attribute_combination.go new file mode 100644 index 0000000..c9ee37f --- /dev/null +++ b/app/model/dbmodel/ps_product_attribute_combination.go @@ -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 TableNamePsProductAttributeCombination = "ps_product_attribute_combination" + +// PsProductAttributeCombination mapped from table +type PsProductAttributeCombination struct { + IDAttribute int32 `gorm:"column:id_attribute;primaryKey;index:idx_product_combination,priority:2;index:idx_ps_product_attribute_combination,priority:2" json:"id_attribute"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey;index:idx_product_combination,priority:1;index:idx_ps_product_attribute_combination,priority:1" json:"id_product_attribute"` +} + +// TableName PsProductAttributeCombination's table name +func (*PsProductAttributeCombination) TableName() string { + return TableNamePsProductAttributeCombination +} + +var PsProductAttributeCombinationCols = struct { + IDAttribute gormcol.Field + IDProductAttribute gormcol.Field +}{ + IDAttribute: gormcol.Field{Table: TableNamePsProductAttributeCombination, Column: "id_attribute"}, + IDProductAttribute: gormcol.Field{Table: TableNamePsProductAttributeCombination, Column: "id_product_attribute"}, +} diff --git a/app/model/dbmodel/ps_product_attribute_image.go b/app/model/dbmodel/ps_product_attribute_image.go new file mode 100644 index 0000000..17cbf14 --- /dev/null +++ b/app/model/dbmodel/ps_product_attribute_image.go @@ -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 TableNamePsProductAttributeImage = "ps_product_attribute_image" + +// PsProductAttributeImage mapped from table +type PsProductAttributeImage struct { + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey" json:"id_product_attribute"` + IDImage int32 `gorm:"column:id_image;primaryKey;index:id_image,priority:1" json:"id_image"` +} + +// TableName PsProductAttributeImage's table name +func (*PsProductAttributeImage) TableName() string { + return TableNamePsProductAttributeImage +} + +var PsProductAttributeImageCols = struct { + IDProductAttribute gormcol.Field + IDImage gormcol.Field +}{ + IDProductAttribute: gormcol.Field{Table: TableNamePsProductAttributeImage, Column: "id_product_attribute"}, + IDImage: gormcol.Field{Table: TableNamePsProductAttributeImage, Column: "id_image"}, +} diff --git a/app/model/dbmodel/ps_product_attribute_shop.go b/app/model/dbmodel/ps_product_attribute_shop.go new file mode 100644 index 0000000..319bb86 --- /dev/null +++ b/app/model/dbmodel/ps_product_attribute_shop.go @@ -0,0 +1,64 @@ +// 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 TableNamePsProductAttributeShop = "ps_product_attribute_shop" + +// PsProductAttributeShop mapped from table +type PsProductAttributeShop struct { + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey" json:"id_product_attribute"` + IDShop int32 `gorm:"column:id_shop;primaryKey;uniqueIndex:id_product,priority:2" json:"id_shop"` + WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"` + Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"` + UnitPriceImpact float64 `gorm:"column:unit_price_impact;not null;default:0.000000" json:"unit_price_impact"` + DefaultOn *bool `gorm:"column:default_on;uniqueIndex:id_product,priority:3" json:"default_on"` + MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"` + LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"` + LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"` + AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"` +} + +// TableName PsProductAttributeShop's table name +func (*PsProductAttributeShop) TableName() string { + return TableNamePsProductAttributeShop +} + +var PsProductAttributeShopCols = struct { + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDShop gormcol.Field + WholesalePrice gormcol.Field + Price gormcol.Field + Ecotax gormcol.Field + Weight gormcol.Field + UnitPriceImpact gormcol.Field + DefaultOn gormcol.Field + MinimalQuantity gormcol.Field + LowStockThreshold gormcol.Field + LowStockAlert gormcol.Field + AvailableDate gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "id_product"}, + IDProductAttribute: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "id_product_attribute"}, + IDShop: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "id_shop"}, + WholesalePrice: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "wholesale_price"}, + Price: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "price"}, + Ecotax: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "ecotax"}, + Weight: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "weight"}, + UnitPriceImpact: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "unit_price_impact"}, + DefaultOn: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "default_on"}, + MinimalQuantity: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "minimal_quantity"}, + LowStockThreshold: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "low_stock_threshold"}, + LowStockAlert: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "low_stock_alert"}, + AvailableDate: gormcol.Field{Table: TableNamePsProductAttributeShop, Column: "available_date"}, +} diff --git a/app/model/dbmodel/ps_product_carrier.go b/app/model/dbmodel/ps_product_carrier.go new file mode 100644 index 0000000..fb30d41 --- /dev/null +++ b/app/model/dbmodel/ps_product_carrier.go @@ -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 TableNamePsProductCarrier = "ps_product_carrier" + +// PsProductCarrier mapped from table +type PsProductCarrier struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDCarrierReference int32 `gorm:"column:id_carrier_reference;primaryKey" json:"id_carrier_reference"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsProductCarrier's table name +func (*PsProductCarrier) TableName() string { + return TableNamePsProductCarrier +} + +var PsProductCarrierCols = struct { + IDProduct gormcol.Field + IDCarrierReference gormcol.Field + IDShop gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProductCarrier, Column: "id_product"}, + IDCarrierReference: gormcol.Field{Table: TableNamePsProductCarrier, Column: "id_carrier_reference"}, + IDShop: gormcol.Field{Table: TableNamePsProductCarrier, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_product_country_tax.go b/app/model/dbmodel/ps_product_country_tax.go new file mode 100644 index 0000000..99e135e --- /dev/null +++ b/app/model/dbmodel/ps_product_country_tax.go @@ -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 TableNamePsProductCountryTax = "ps_product_country_tax" + +// PsProductCountryTax mapped from table +type PsProductCountryTax struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` + IDTax int32 `gorm:"column:id_tax;not null" json:"id_tax"` +} + +// TableName PsProductCountryTax's table name +func (*PsProductCountryTax) TableName() string { + return TableNamePsProductCountryTax +} + +var PsProductCountryTaxCols = struct { + IDProduct gormcol.Field + IDCountry gormcol.Field + IDTax gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProductCountryTax, Column: "id_product"}, + IDCountry: gormcol.Field{Table: TableNamePsProductCountryTax, Column: "id_country"}, + IDTax: gormcol.Field{Table: TableNamePsProductCountryTax, Column: "id_tax"}, +} diff --git a/app/model/dbmodel/ps_product_download.go b/app/model/dbmodel/ps_product_download.go new file mode 100644 index 0000000..a41c850 --- /dev/null +++ b/app/model/dbmodel/ps_product_download.go @@ -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" + "time" +) + +const TableNamePsProductDownload = "ps_product_download" + +// PsProductDownload mapped from table +type PsProductDownload struct { + IDProductDownload int32 `gorm:"column:id_product_download;primaryKey;autoIncrement:true" json:"id_product_download"` + IDProduct int32 `gorm:"column:id_product;not null" json:"id_product"` + DisplayFilename *string `gorm:"column:display_filename" json:"display_filename"` + Filename *string `gorm:"column:filename" json:"filename"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateExpiration *time.Time `gorm:"column:date_expiration" json:"date_expiration"` + NbDaysAccessible *int32 `gorm:"column:nb_days_accessible" json:"nb_days_accessible"` + NbDownloadable *int32 `gorm:"column:nb_downloadable;default:1" json:"nb_downloadable"` + Active bool `gorm:"column:active;not null;default:1" json:"active"` + IsShareable bool `gorm:"column:is_shareable;not null" json:"is_shareable"` +} + +// TableName PsProductDownload's table name +func (*PsProductDownload) TableName() string { + return TableNamePsProductDownload +} + +var PsProductDownloadCols = struct { + IDProductDownload gormcol.Field + IDProduct gormcol.Field + DisplayFilename gormcol.Field + Filename gormcol.Field + DateAdd gormcol.Field + DateExpiration gormcol.Field + NbDaysAccessible gormcol.Field + NbDownloadable gormcol.Field + Active gormcol.Field + IsShareable gormcol.Field +}{ + IDProductDownload: gormcol.Field{Table: TableNamePsProductDownload, Column: "id_product_download"}, + IDProduct: gormcol.Field{Table: TableNamePsProductDownload, Column: "id_product"}, + DisplayFilename: gormcol.Field{Table: TableNamePsProductDownload, Column: "display_filename"}, + Filename: gormcol.Field{Table: TableNamePsProductDownload, Column: "filename"}, + DateAdd: gormcol.Field{Table: TableNamePsProductDownload, Column: "date_add"}, + DateExpiration: gormcol.Field{Table: TableNamePsProductDownload, Column: "date_expiration"}, + NbDaysAccessible: gormcol.Field{Table: TableNamePsProductDownload, Column: "nb_days_accessible"}, + NbDownloadable: gormcol.Field{Table: TableNamePsProductDownload, Column: "nb_downloadable"}, + Active: gormcol.Field{Table: TableNamePsProductDownload, Column: "active"}, + IsShareable: gormcol.Field{Table: TableNamePsProductDownload, Column: "is_shareable"}, +} diff --git a/app/model/dbmodel/ps_product_group_reduction_cache.go b/app/model/dbmodel/ps_product_group_reduction_cache.go new file mode 100644 index 0000000..11a61b2 --- /dev/null +++ b/app/model/dbmodel/ps_product_group_reduction_cache.go @@ -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 TableNamePsProductGroupReductionCache = "ps_product_group_reduction_cache" + +// PsProductGroupReductionCache mapped from table +type PsProductGroupReductionCache struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` + Reduction float64 `gorm:"column:reduction;not null" json:"reduction"` +} + +// TableName PsProductGroupReductionCache's table name +func (*PsProductGroupReductionCache) TableName() string { + return TableNamePsProductGroupReductionCache +} + +var PsProductGroupReductionCacheCols = struct { + IDProduct gormcol.Field + IDGroup gormcol.Field + Reduction gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProductGroupReductionCache, Column: "id_product"}, + IDGroup: gormcol.Field{Table: TableNamePsProductGroupReductionCache, Column: "id_group"}, + Reduction: gormcol.Field{Table: TableNamePsProductGroupReductionCache, Column: "reduction"}, +} diff --git a/app/model/dbmodel/ps_product_lang.go b/app/model/dbmodel/ps_product_lang.go new file mode 100644 index 0000000..5c0c771 --- /dev/null +++ b/app/model/dbmodel/ps_product_lang.go @@ -0,0 +1,67 @@ +// 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 TableNamePsProductLang = "ps_product_lang" + +// PsProductLang mapped from table +type PsProductLang struct { + IDProduct int32 `gorm:"column:id_product;primaryKey;index:idx_ps_product_lang,priority:1" json:"id_product"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:idx_ps_product_lang,priority:2;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:idx_ps_product_lang,priority:3;index:id_lang,priority:1" json:"id_lang"` + Description *string `gorm:"column:description" json:"description"` + DescriptionShort *string `gorm:"column:description_short" json:"description_short"` + LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` + MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` + AvailableNow *string `gorm:"column:available_now" json:"available_now"` + AvailableLater *string `gorm:"column:available_later" json:"available_later"` + DeliveryInStock *string `gorm:"column:delivery_in_stock" json:"delivery_in_stock"` + DeliveryOutStock *string `gorm:"column:delivery_out_stock" json:"delivery_out_stock"` + Usage *string `gorm:"column:usage" json:"usage"` +} + +// TableName PsProductLang's table name +func (*PsProductLang) TableName() string { + return TableNamePsProductLang +} + +var PsProductLangCols = struct { + IDProduct gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Description gormcol.Field + DescriptionShort gormcol.Field + LinkRewrite gormcol.Field + MetaDescription gormcol.Field + MetaKeywords gormcol.Field + MetaTitle gormcol.Field + Name gormcol.Field + AvailableNow gormcol.Field + AvailableLater gormcol.Field + DeliveryInStock gormcol.Field + DeliveryOutStock gormcol.Field + Usage gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProductLang, Column: "id_product"}, + IDShop: gormcol.Field{Table: TableNamePsProductLang, Column: "id_shop"}, + IDLang: gormcol.Field{Table: TableNamePsProductLang, Column: "id_lang"}, + Description: gormcol.Field{Table: TableNamePsProductLang, Column: "description"}, + DescriptionShort: gormcol.Field{Table: TableNamePsProductLang, Column: "description_short"}, + LinkRewrite: gormcol.Field{Table: TableNamePsProductLang, Column: "link_rewrite"}, + MetaDescription: gormcol.Field{Table: TableNamePsProductLang, Column: "meta_description"}, + MetaKeywords: gormcol.Field{Table: TableNamePsProductLang, Column: "meta_keywords"}, + MetaTitle: gormcol.Field{Table: TableNamePsProductLang, Column: "meta_title"}, + Name: gormcol.Field{Table: TableNamePsProductLang, Column: "name"}, + AvailableNow: gormcol.Field{Table: TableNamePsProductLang, Column: "available_now"}, + AvailableLater: gormcol.Field{Table: TableNamePsProductLang, Column: "available_later"}, + DeliveryInStock: gormcol.Field{Table: TableNamePsProductLang, Column: "delivery_in_stock"}, + DeliveryOutStock: gormcol.Field{Table: TableNamePsProductLang, Column: "delivery_out_stock"}, + Usage: gormcol.Field{Table: TableNamePsProductLang, Column: "usage"}, +} diff --git a/app/model/dbmodel/ps_product_sale.go b/app/model/dbmodel/ps_product_sale.go new file mode 100644 index 0000000..bacc47a --- /dev/null +++ b/app/model/dbmodel/ps_product_sale.go @@ -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 TableNamePsProductSale = "ps_product_sale" + +// PsProductSale mapped from table +type PsProductSale struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + Quantity int32 `gorm:"column:quantity;not null;index:quantity,priority:1" json:"quantity"` + SaleNbr int32 `gorm:"column:sale_nbr;not null" json:"sale_nbr"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsProductSale's table name +func (*PsProductSale) TableName() string { + return TableNamePsProductSale +} + +var PsProductSaleCols = struct { + IDProduct gormcol.Field + Quantity gormcol.Field + SaleNbr gormcol.Field + DateUpd gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProductSale, Column: "id_product"}, + Quantity: gormcol.Field{Table: TableNamePsProductSale, Column: "quantity"}, + SaleNbr: gormcol.Field{Table: TableNamePsProductSale, Column: "sale_nbr"}, + DateUpd: gormcol.Field{Table: TableNamePsProductSale, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_product_shop.go b/app/model/dbmodel/ps_product_shop.go new file mode 100644 index 0000000..bc313c9 --- /dev/null +++ b/app/model/dbmodel/ps_product_shop.go @@ -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 TableNamePsProductShop = "ps_product_shop" + +// PsProductShop mapped from table +type PsProductShop struct { + IDProduct int32 `gorm:"column:id_product;primaryKey;index:idx_product_shop_active,priority:1;index:idx_ps_product_shop,priority:1;index:indexed,priority:3" json:"id_product"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:idx_product_shop_active,priority:2;index:idx_ps_product_shop,priority:2" json:"id_shop"` + IDCategoryDefault *int32 `gorm:"column:id_category_default;index:id_category_default,priority:1" json:"id_category_default"` + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;not null" json:"id_tax_rules_group"` + OnSale bool `gorm:"column:on_sale;not null" json:"on_sale"` + OnlineOnly bool `gorm:"column:online_only;not null" json:"online_only"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"` + LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"` + LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"` + Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"` + WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"` + Unity *string `gorm:"column:unity" json:"unity"` + UnitPriceRatio float64 `gorm:"column:unit_price_ratio;not null;default:0.000000" json:"unit_price_ratio"` + AdditionalShippingCost float64 `gorm:"column:additional_shipping_cost;not null;default:0.00" json:"additional_shipping_cost"` + Customizable int32 `gorm:"column:customizable;not null" json:"customizable"` + UploadableFiles int32 `gorm:"column:uploadable_files;not null" json:"uploadable_files"` + TextFields int32 `gorm:"column:text_fields;not null" json:"text_fields"` + Active bool `gorm:"column:active;not null;index:date_add,priority:2;index:idx_product_shop_active,priority:3;index:idx_ps_product_shop,priority:3;index:indexed,priority:2" json:"active"` + RedirectType string `gorm:"column:redirect_type;not null" json:"redirect_type"` + IDTypeRedirected int32 `gorm:"column:id_type_redirected;not null" json:"id_type_redirected"` + AvailableForOrder bool `gorm:"column:available_for_order;not null;default:1" json:"available_for_order"` + AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"` + ShowCondition bool `gorm:"column:show_condition;not null;default:1" json:"show_condition"` + Condition string `gorm:"column:condition;not null;default:new" json:"condition"` + ShowPrice bool `gorm:"column:show_price;not null;default:1" json:"show_price"` + Indexed bool `gorm:"column:indexed;not null;index:indexed,priority:1" json:"indexed"` + Visibility string `gorm:"column:visibility;not null;index:date_add,priority:3;default:both" json:"visibility"` + CacheDefaultAttribute *int32 `gorm:"column:cache_default_attribute" json:"cache_default_attribute"` + AdvancedStockManagement bool `gorm:"column:advanced_stock_management;not null" json:"advanced_stock_management"` + DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + PackStockType int32 `gorm:"column:pack_stock_type;not null;default:3" json:"pack_stock_type"` +} + +// TableName PsProductShop's table name +func (*PsProductShop) TableName() string { + return TableNamePsProductShop +} + +var PsProductShopCols = struct { + IDProduct gormcol.Field + IDShop gormcol.Field + IDCategoryDefault gormcol.Field + IDTaxRulesGroup gormcol.Field + OnSale gormcol.Field + OnlineOnly gormcol.Field + Ecotax gormcol.Field + MinimalQuantity gormcol.Field + LowStockThreshold gormcol.Field + LowStockAlert gormcol.Field + Price gormcol.Field + WholesalePrice gormcol.Field + Unity gormcol.Field + UnitPriceRatio gormcol.Field + AdditionalShippingCost gormcol.Field + Customizable gormcol.Field + UploadableFiles gormcol.Field + TextFields gormcol.Field + Active gormcol.Field + RedirectType gormcol.Field + IDTypeRedirected gormcol.Field + AvailableForOrder gormcol.Field + AvailableDate gormcol.Field + ShowCondition gormcol.Field + Condition gormcol.Field + ShowPrice gormcol.Field + Indexed gormcol.Field + Visibility gormcol.Field + CacheDefaultAttribute gormcol.Field + AdvancedStockManagement gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + PackStockType gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProductShop, Column: "id_product"}, + IDShop: gormcol.Field{Table: TableNamePsProductShop, Column: "id_shop"}, + IDCategoryDefault: gormcol.Field{Table: TableNamePsProductShop, Column: "id_category_default"}, + IDTaxRulesGroup: gormcol.Field{Table: TableNamePsProductShop, Column: "id_tax_rules_group"}, + OnSale: gormcol.Field{Table: TableNamePsProductShop, Column: "on_sale"}, + OnlineOnly: gormcol.Field{Table: TableNamePsProductShop, Column: "online_only"}, + Ecotax: gormcol.Field{Table: TableNamePsProductShop, Column: "ecotax"}, + MinimalQuantity: gormcol.Field{Table: TableNamePsProductShop, Column: "minimal_quantity"}, + LowStockThreshold: gormcol.Field{Table: TableNamePsProductShop, Column: "low_stock_threshold"}, + LowStockAlert: gormcol.Field{Table: TableNamePsProductShop, Column: "low_stock_alert"}, + Price: gormcol.Field{Table: TableNamePsProductShop, Column: "price"}, + WholesalePrice: gormcol.Field{Table: TableNamePsProductShop, Column: "wholesale_price"}, + Unity: gormcol.Field{Table: TableNamePsProductShop, Column: "unity"}, + UnitPriceRatio: gormcol.Field{Table: TableNamePsProductShop, Column: "unit_price_ratio"}, + AdditionalShippingCost: gormcol.Field{Table: TableNamePsProductShop, Column: "additional_shipping_cost"}, + Customizable: gormcol.Field{Table: TableNamePsProductShop, Column: "customizable"}, + UploadableFiles: gormcol.Field{Table: TableNamePsProductShop, Column: "uploadable_files"}, + TextFields: gormcol.Field{Table: TableNamePsProductShop, Column: "text_fields"}, + Active: gormcol.Field{Table: TableNamePsProductShop, Column: "active"}, + RedirectType: gormcol.Field{Table: TableNamePsProductShop, Column: "redirect_type"}, + IDTypeRedirected: gormcol.Field{Table: TableNamePsProductShop, Column: "id_type_redirected"}, + AvailableForOrder: gormcol.Field{Table: TableNamePsProductShop, Column: "available_for_order"}, + AvailableDate: gormcol.Field{Table: TableNamePsProductShop, Column: "available_date"}, + ShowCondition: gormcol.Field{Table: TableNamePsProductShop, Column: "show_condition"}, + Condition: gormcol.Field{Table: TableNamePsProductShop, Column: "condition"}, + ShowPrice: gormcol.Field{Table: TableNamePsProductShop, Column: "show_price"}, + Indexed: gormcol.Field{Table: TableNamePsProductShop, Column: "indexed"}, + Visibility: gormcol.Field{Table: TableNamePsProductShop, Column: "visibility"}, + CacheDefaultAttribute: gormcol.Field{Table: TableNamePsProductShop, Column: "cache_default_attribute"}, + AdvancedStockManagement: gormcol.Field{Table: TableNamePsProductShop, Column: "advanced_stock_management"}, + DateAdd: gormcol.Field{Table: TableNamePsProductShop, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsProductShop, Column: "date_upd"}, + PackStockType: gormcol.Field{Table: TableNamePsProductShop, Column: "pack_stock_type"}, +} diff --git a/app/model/dbmodel/ps_product_supplier.go b/app/model/dbmodel/ps_product_supplier.go new file mode 100644 index 0000000..05f0cb6 --- /dev/null +++ b/app/model/dbmodel/ps_product_supplier.go @@ -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 TableNamePsProductSupplier = "ps_product_supplier" + +// PsProductSupplier mapped from table +type PsProductSupplier struct { + IDProductSupplier int32 `gorm:"column:id_product_supplier;primaryKey;autoIncrement:true" json:"id_product_supplier"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1;index:id_supplier,priority:2" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;uniqueIndex:id_product,priority:2" json:"id_product_attribute"` + IDSupplier int32 `gorm:"column:id_supplier;not null;uniqueIndex:id_product,priority:3;index:id_supplier,priority:1" json:"id_supplier"` + ProductSupplierReference *string `gorm:"column:product_supplier_reference" json:"product_supplier_reference"` + ProductSupplierPriceTe float64 `gorm:"column:product_supplier_price_te;not null;default:0.000000" json:"product_supplier_price_te"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` +} + +// TableName PsProductSupplier's table name +func (*PsProductSupplier) TableName() string { + return TableNamePsProductSupplier +} + +var PsProductSupplierCols = struct { + IDProductSupplier gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDSupplier gormcol.Field + ProductSupplierReference gormcol.Field + ProductSupplierPriceTe gormcol.Field + IDCurrency gormcol.Field +}{ + IDProductSupplier: gormcol.Field{Table: TableNamePsProductSupplier, Column: "id_product_supplier"}, + IDProduct: gormcol.Field{Table: TableNamePsProductSupplier, Column: "id_product"}, + IDProductAttribute: gormcol.Field{Table: TableNamePsProductSupplier, Column: "id_product_attribute"}, + IDSupplier: gormcol.Field{Table: TableNamePsProductSupplier, Column: "id_supplier"}, + ProductSupplierReference: gormcol.Field{Table: TableNamePsProductSupplier, Column: "product_supplier_reference"}, + ProductSupplierPriceTe: gormcol.Field{Table: TableNamePsProductSupplier, Column: "product_supplier_price_te"}, + IDCurrency: gormcol.Field{Table: TableNamePsProductSupplier, Column: "id_currency"}, +} diff --git a/app/model/dbmodel/ps_product_tag.go b/app/model/dbmodel/ps_product_tag.go new file mode 100644 index 0000000..dae8b66 --- /dev/null +++ b/app/model/dbmodel/ps_product_tag.go @@ -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 TableNamePsProductTag = "ps_product_tag" + +// PsProductTag mapped from table +type PsProductTag struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDTag int32 `gorm:"column:id_tag;primaryKey;index:id_lang,priority:2;index:id_tag,priority:1" json:"id_tag"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"` +} + +// TableName PsProductTag's table name +func (*PsProductTag) TableName() string { + return TableNamePsProductTag +} + +var PsProductTagCols = struct { + IDProduct gormcol.Field + IDTag gormcol.Field + IDLang gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsProductTag, Column: "id_product"}, + IDTag: gormcol.Field{Table: TableNamePsProductTag, Column: "id_tag"}, + IDLang: gormcol.Field{Table: TableNamePsProductTag, Column: "id_lang"}, +} diff --git a/app/model/dbmodel/ps_profile.go b/app/model/dbmodel/ps_profile.go new file mode 100644 index 0000000..f5445ef --- /dev/null +++ b/app/model/dbmodel/ps_profile.go @@ -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 TableNamePsProfile = "ps_profile" + +// PsProfile mapped from table +type PsProfile struct { + IDProfile int32 `gorm:"column:id_profile;primaryKey;autoIncrement:true" json:"id_profile"` +} + +// TableName PsProfile's table name +func (*PsProfile) TableName() string { + return TableNamePsProfile +} + +var PsProfileCols = struct { + IDProfile gormcol.Field +}{ + IDProfile: gormcol.Field{Table: TableNamePsProfile, Column: "id_profile"}, +} diff --git a/app/model/dbmodel/ps_profile_lang.go b/app/model/dbmodel/ps_profile_lang.go new file mode 100644 index 0000000..6fbeaf0 --- /dev/null +++ b/app/model/dbmodel/ps_profile_lang.go @@ -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 TableNamePsProfileLang = "ps_profile_lang" + +// PsProfileLang mapped from table +type PsProfileLang struct { + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + IDProfile int32 `gorm:"column:id_profile;primaryKey" json:"id_profile"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsProfileLang's table name +func (*PsProfileLang) TableName() string { + return TableNamePsProfileLang +} + +var PsProfileLangCols = struct { + IDLang gormcol.Field + IDProfile gormcol.Field + Name gormcol.Field +}{ + IDLang: gormcol.Field{Table: TableNamePsProfileLang, Column: "id_lang"}, + IDProfile: gormcol.Field{Table: TableNamePsProfileLang, Column: "id_profile"}, + Name: gormcol.Field{Table: TableNamePsProfileLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_psgdpr_consent.go b/app/model/dbmodel/ps_psgdpr_consent.go new file mode 100644 index 0000000..a453558 --- /dev/null +++ b/app/model/dbmodel/ps_psgdpr_consent.go @@ -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 TableNamePsPsgdprConsent = "ps_psgdpr_consent" + +// PsPsgdprConsent mapped from table +type PsPsgdprConsent struct { + IDGdprConsent int32 `gorm:"column:id_gdpr_consent;primaryKey;autoIncrement:true" json:"id_gdpr_consent"` + IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"` + Active int32 `gorm:"column:active;not null" json:"active"` + Error *int32 `gorm:"column:error" json:"error"` + ErrorMessage *string `gorm:"column:error_message" json:"error_message"` + 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 PsPsgdprConsent's table name +func (*PsPsgdprConsent) TableName() string { + return TableNamePsPsgdprConsent +} + +var PsPsgdprConsentCols = struct { + IDGdprConsent gormcol.Field + IDModule gormcol.Field + Active gormcol.Field + Error gormcol.Field + ErrorMessage gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDGdprConsent: gormcol.Field{Table: TableNamePsPsgdprConsent, Column: "id_gdpr_consent"}, + IDModule: gormcol.Field{Table: TableNamePsPsgdprConsent, Column: "id_module"}, + Active: gormcol.Field{Table: TableNamePsPsgdprConsent, Column: "active"}, + Error: gormcol.Field{Table: TableNamePsPsgdprConsent, Column: "error"}, + ErrorMessage: gormcol.Field{Table: TableNamePsPsgdprConsent, Column: "error_message"}, + DateAdd: gormcol.Field{Table: TableNamePsPsgdprConsent, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsPsgdprConsent, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_psgdpr_consent_lang.go b/app/model/dbmodel/ps_psgdpr_consent_lang.go new file mode 100644 index 0000000..47905ab --- /dev/null +++ b/app/model/dbmodel/ps_psgdpr_consent_lang.go @@ -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 TableNamePsPsgdprConsentLang = "ps_psgdpr_consent_lang" + +// PsPsgdprConsentLang mapped from table +type PsPsgdprConsentLang struct { + IDGdprConsent int32 `gorm:"column:id_gdpr_consent;primaryKey;autoIncrement:true" json:"id_gdpr_consent"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Message *string `gorm:"column:message" json:"message"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsPsgdprConsentLang's table name +func (*PsPsgdprConsentLang) TableName() string { + return TableNamePsPsgdprConsentLang +} + +var PsPsgdprConsentLangCols = struct { + IDGdprConsent gormcol.Field + IDLang gormcol.Field + Message gormcol.Field + IDShop gormcol.Field +}{ + IDGdprConsent: gormcol.Field{Table: TableNamePsPsgdprConsentLang, Column: "id_gdpr_consent"}, + IDLang: gormcol.Field{Table: TableNamePsPsgdprConsentLang, Column: "id_lang"}, + Message: gormcol.Field{Table: TableNamePsPsgdprConsentLang, Column: "message"}, + IDShop: gormcol.Field{Table: TableNamePsPsgdprConsentLang, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_psgdpr_log.go b/app/model/dbmodel/ps_psgdpr_log.go new file mode 100644 index 0000000..2fea143 --- /dev/null +++ b/app/model/dbmodel/ps_psgdpr_log.go @@ -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 TableNamePsPsgdprLog = "ps_psgdpr_log" + +// PsPsgdprLog mapped from table +type PsPsgdprLog struct { + IDGdprLog int32 `gorm:"column:id_gdpr_log;primaryKey;autoIncrement:true" json:"id_gdpr_log"` + IDCustomer *int32 `gorm:"column:id_customer" json:"id_customer"` + IDGuest *int32 `gorm:"column:id_guest" json:"id_guest"` + ClientName *string `gorm:"column:client_name" json:"client_name"` + IDModule int32 `gorm:"column:id_module;not null" json:"id_module"` + RequestType int32 `gorm:"column:request_type;not null" json:"request_type"` + 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 PsPsgdprLog's table name +func (*PsPsgdprLog) TableName() string { + return TableNamePsPsgdprLog +} + +var PsPsgdprLogCols = struct { + IDGdprLog gormcol.Field + IDCustomer gormcol.Field + IDGuest gormcol.Field + ClientName gormcol.Field + IDModule gormcol.Field + RequestType gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDGdprLog: gormcol.Field{Table: TableNamePsPsgdprLog, Column: "id_gdpr_log"}, + IDCustomer: gormcol.Field{Table: TableNamePsPsgdprLog, Column: "id_customer"}, + IDGuest: gormcol.Field{Table: TableNamePsPsgdprLog, Column: "id_guest"}, + ClientName: gormcol.Field{Table: TableNamePsPsgdprLog, Column: "client_name"}, + IDModule: gormcol.Field{Table: TableNamePsPsgdprLog, Column: "id_module"}, + RequestType: gormcol.Field{Table: TableNamePsPsgdprLog, Column: "request_type"}, + DateAdd: gormcol.Field{Table: TableNamePsPsgdprLog, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsPsgdprLog, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_pshow_pshowproducttabs_hook.go b/app/model/dbmodel/ps_pshow_pshowproducttabs_hook.go new file mode 100644 index 0000000..8e5222e --- /dev/null +++ b/app/model/dbmodel/ps_pshow_pshowproducttabs_hook.go @@ -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 TableNamePsPshowPshowproducttabsHook = "ps_pshow_pshowproducttabs_hook" + +// PsPshowPshowproducttabsHook mapped from table +type PsPshowPshowproducttabsHook struct { + IDHook int32 `gorm:"column:id_hook;primaryKey;autoIncrement:true" json:"id_hook"` + HookName string `gorm:"column:hook_name;not null" json:"hook_name"` + PrestaIDHook int32 `gorm:"column:presta_id_hook;not null" json:"presta_id_hook"` +} + +// TableName PsPshowPshowproducttabsHook's table name +func (*PsPshowPshowproducttabsHook) TableName() string { + return TableNamePsPshowPshowproducttabsHook +} + +var PsPshowPshowproducttabsHookCols = struct { + IDHook gormcol.Field + HookName gormcol.Field + PrestaIDHook gormcol.Field +}{ + IDHook: gormcol.Field{Table: TableNamePsPshowPshowproducttabsHook, Column: "id_hook"}, + HookName: gormcol.Field{Table: TableNamePsPshowPshowproducttabsHook, Column: "hook_name"}, + PrestaIDHook: gormcol.Field{Table: TableNamePsPshowPshowproducttabsHook, Column: "presta_id_hook"}, +} diff --git a/app/model/dbmodel/ps_quick_access.go b/app/model/dbmodel/ps_quick_access.go new file mode 100644 index 0000000..648c853 --- /dev/null +++ b/app/model/dbmodel/ps_quick_access.go @@ -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 TableNamePsQuickAccess = "ps_quick_access" + +// PsQuickAccess mapped from table +type PsQuickAccess struct { + IDQuickAccess int32 `gorm:"column:id_quick_access;primaryKey;autoIncrement:true" json:"id_quick_access"` + NewWindow bool `gorm:"column:new_window;not null" json:"new_window"` + Link string `gorm:"column:link;not null" json:"link"` +} + +// TableName PsQuickAccess's table name +func (*PsQuickAccess) TableName() string { + return TableNamePsQuickAccess +} + +var PsQuickAccessCols = struct { + IDQuickAccess gormcol.Field + NewWindow gormcol.Field + Link gormcol.Field +}{ + IDQuickAccess: gormcol.Field{Table: TableNamePsQuickAccess, Column: "id_quick_access"}, + NewWindow: gormcol.Field{Table: TableNamePsQuickAccess, Column: "new_window"}, + Link: gormcol.Field{Table: TableNamePsQuickAccess, Column: "link"}, +} diff --git a/app/model/dbmodel/ps_quick_access_lang.go b/app/model/dbmodel/ps_quick_access_lang.go new file mode 100644 index 0000000..8b1b883 --- /dev/null +++ b/app/model/dbmodel/ps_quick_access_lang.go @@ -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 TableNamePsQuickAccessLang = "ps_quick_access_lang" + +// PsQuickAccessLang mapped from table +type PsQuickAccessLang struct { + IDQuickAccess int32 `gorm:"column:id_quick_access;primaryKey" json:"id_quick_access"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsQuickAccessLang's table name +func (*PsQuickAccessLang) TableName() string { + return TableNamePsQuickAccessLang +} + +var PsQuickAccessLangCols = struct { + IDQuickAccess gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDQuickAccess: gormcol.Field{Table: TableNamePsQuickAccessLang, Column: "id_quick_access"}, + IDLang: gormcol.Field{Table: TableNamePsQuickAccessLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsQuickAccessLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_range_price.go b/app/model/dbmodel/ps_range_price.go new file mode 100644 index 0000000..ad9299d --- /dev/null +++ b/app/model/dbmodel/ps_range_price.go @@ -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 TableNamePsRangePrice = "ps_range_price" + +// PsRangePrice mapped from table +type PsRangePrice struct { + IDRangePrice int32 `gorm:"column:id_range_price;primaryKey;autoIncrement:true" json:"id_range_price"` + IDCarrier int32 `gorm:"column:id_carrier;not null;uniqueIndex:id_carrier,priority:1" json:"id_carrier"` + Delimiter1 float64 `gorm:"column:delimiter1;not null;uniqueIndex:id_carrier,priority:2" json:"delimiter1"` + Delimiter2 float64 `gorm:"column:delimiter2;not null;uniqueIndex:id_carrier,priority:3" json:"delimiter2"` +} + +// TableName PsRangePrice's table name +func (*PsRangePrice) TableName() string { + return TableNamePsRangePrice +} + +var PsRangePriceCols = struct { + IDRangePrice gormcol.Field + IDCarrier gormcol.Field + Delimiter1 gormcol.Field + Delimiter2 gormcol.Field +}{ + IDRangePrice: gormcol.Field{Table: TableNamePsRangePrice, Column: "id_range_price"}, + IDCarrier: gormcol.Field{Table: TableNamePsRangePrice, Column: "id_carrier"}, + Delimiter1: gormcol.Field{Table: TableNamePsRangePrice, Column: "delimiter1"}, + Delimiter2: gormcol.Field{Table: TableNamePsRangePrice, Column: "delimiter2"}, +} diff --git a/app/model/dbmodel/ps_range_weight.go b/app/model/dbmodel/ps_range_weight.go new file mode 100644 index 0000000..2806b3e --- /dev/null +++ b/app/model/dbmodel/ps_range_weight.go @@ -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 TableNamePsRangeWeight = "ps_range_weight" + +// PsRangeWeight mapped from table +type PsRangeWeight struct { + IDRangeWeight int32 `gorm:"column:id_range_weight;primaryKey;autoIncrement:true" json:"id_range_weight"` + IDCarrier int32 `gorm:"column:id_carrier;not null;uniqueIndex:id_carrier,priority:1" json:"id_carrier"` + Delimiter1 float64 `gorm:"column:delimiter1;not null;uniqueIndex:id_carrier,priority:2" json:"delimiter1"` + Delimiter2 float64 `gorm:"column:delimiter2;not null;uniqueIndex:id_carrier,priority:3" json:"delimiter2"` +} + +// TableName PsRangeWeight's table name +func (*PsRangeWeight) TableName() string { + return TableNamePsRangeWeight +} + +var PsRangeWeightCols = struct { + IDRangeWeight gormcol.Field + IDCarrier gormcol.Field + Delimiter1 gormcol.Field + Delimiter2 gormcol.Field +}{ + IDRangeWeight: gormcol.Field{Table: TableNamePsRangeWeight, Column: "id_range_weight"}, + IDCarrier: gormcol.Field{Table: TableNamePsRangeWeight, Column: "id_carrier"}, + Delimiter1: gormcol.Field{Table: TableNamePsRangeWeight, Column: "delimiter1"}, + Delimiter2: gormcol.Field{Table: TableNamePsRangeWeight, Column: "delimiter2"}, +} diff --git a/app/model/dbmodel/ps_reassurance.go b/app/model/dbmodel/ps_reassurance.go new file mode 100644 index 0000000..598ac68 --- /dev/null +++ b/app/model/dbmodel/ps_reassurance.go @@ -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 TableNamePsReassurance = "ps_reassurance" + +// PsReassurance mapped from table +type PsReassurance struct { + IDReassurance int32 `gorm:"column:id_reassurance;primaryKey;autoIncrement:true" json:"id_reassurance"` + IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"` + FileName string `gorm:"column:file_name;not null" json:"file_name"` +} + +// TableName PsReassurance's table name +func (*PsReassurance) TableName() string { + return TableNamePsReassurance +} + +var PsReassuranceCols = struct { + IDReassurance gormcol.Field + IDShop gormcol.Field + FileName gormcol.Field +}{ + IDReassurance: gormcol.Field{Table: TableNamePsReassurance, Column: "id_reassurance"}, + IDShop: gormcol.Field{Table: TableNamePsReassurance, Column: "id_shop"}, + FileName: gormcol.Field{Table: TableNamePsReassurance, Column: "file_name"}, +} diff --git a/app/model/dbmodel/ps_reassurance_lang.go b/app/model/dbmodel/ps_reassurance_lang.go new file mode 100644 index 0000000..335cce2 --- /dev/null +++ b/app/model/dbmodel/ps_reassurance_lang.go @@ -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 TableNamePsReassuranceLang = "ps_reassurance_lang" + +// PsReassuranceLang mapped from table +type PsReassuranceLang struct { + IDReassurance int32 `gorm:"column:id_reassurance;primaryKey;autoIncrement:true" json:"id_reassurance"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Text string `gorm:"column:text;not null" json:"text"` +} + +// TableName PsReassuranceLang's table name +func (*PsReassuranceLang) TableName() string { + return TableNamePsReassuranceLang +} + +var PsReassuranceLangCols = struct { + IDReassurance gormcol.Field + IDLang gormcol.Field + Text gormcol.Field +}{ + IDReassurance: gormcol.Field{Table: TableNamePsReassuranceLang, Column: "id_reassurance"}, + IDLang: gormcol.Field{Table: TableNamePsReassuranceLang, Column: "id_lang"}, + Text: gormcol.Field{Table: TableNamePsReassuranceLang, Column: "text"}, +} diff --git a/app/model/dbmodel/ps_referrer.go b/app/model/dbmodel/ps_referrer.go new file mode 100644 index 0000000..a7db869 --- /dev/null +++ b/app/model/dbmodel/ps_referrer.go @@ -0,0 +1,70 @@ +// 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 TableNamePsReferrer = "ps_referrer" + +// PsReferrer mapped from table +type PsReferrer struct { + IDReferrer int32 `gorm:"column:id_referrer;primaryKey;autoIncrement:true" json:"id_referrer"` + Name string `gorm:"column:name;not null" json:"name"` + Passwd *string `gorm:"column:passwd" json:"passwd"` + HTTPRefererRegexp *string `gorm:"column:http_referer_regexp" json:"http_referer_regexp"` + HTTPRefererLike *string `gorm:"column:http_referer_like" json:"http_referer_like"` + RequestURIRegexp *string `gorm:"column:request_uri_regexp" json:"request_uri_regexp"` + RequestURILike *string `gorm:"column:request_uri_like" json:"request_uri_like"` + HTTPRefererRegexpNot *string `gorm:"column:http_referer_regexp_not" json:"http_referer_regexp_not"` + HTTPRefererLikeNot *string `gorm:"column:http_referer_like_not" json:"http_referer_like_not"` + RequestURIRegexpNot *string `gorm:"column:request_uri_regexp_not" json:"request_uri_regexp_not"` + RequestURILikeNot *string `gorm:"column:request_uri_like_not" json:"request_uri_like_not"` + BaseFee float64 `gorm:"column:base_fee;not null;default:0.00" json:"base_fee"` + PercentFee float64 `gorm:"column:percent_fee;not null;default:0.00" json:"percent_fee"` + ClickFee float64 `gorm:"column:click_fee;not null;default:0.00" json:"click_fee"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsReferrer's table name +func (*PsReferrer) TableName() string { + return TableNamePsReferrer +} + +var PsReferrerCols = struct { + IDReferrer gormcol.Field + Name gormcol.Field + Passwd gormcol.Field + HTTPRefererRegexp gormcol.Field + HTTPRefererLike gormcol.Field + RequestURIRegexp gormcol.Field + RequestURILike gormcol.Field + HTTPRefererRegexpNot gormcol.Field + HTTPRefererLikeNot gormcol.Field + RequestURIRegexpNot gormcol.Field + RequestURILikeNot gormcol.Field + BaseFee gormcol.Field + PercentFee gormcol.Field + ClickFee gormcol.Field + DateAdd gormcol.Field +}{ + IDReferrer: gormcol.Field{Table: TableNamePsReferrer, Column: "id_referrer"}, + Name: gormcol.Field{Table: TableNamePsReferrer, Column: "name"}, + Passwd: gormcol.Field{Table: TableNamePsReferrer, Column: "passwd"}, + HTTPRefererRegexp: gormcol.Field{Table: TableNamePsReferrer, Column: "http_referer_regexp"}, + HTTPRefererLike: gormcol.Field{Table: TableNamePsReferrer, Column: "http_referer_like"}, + RequestURIRegexp: gormcol.Field{Table: TableNamePsReferrer, Column: "request_uri_regexp"}, + RequestURILike: gormcol.Field{Table: TableNamePsReferrer, Column: "request_uri_like"}, + HTTPRefererRegexpNot: gormcol.Field{Table: TableNamePsReferrer, Column: "http_referer_regexp_not"}, + HTTPRefererLikeNot: gormcol.Field{Table: TableNamePsReferrer, Column: "http_referer_like_not"}, + RequestURIRegexpNot: gormcol.Field{Table: TableNamePsReferrer, Column: "request_uri_regexp_not"}, + RequestURILikeNot: gormcol.Field{Table: TableNamePsReferrer, Column: "request_uri_like_not"}, + BaseFee: gormcol.Field{Table: TableNamePsReferrer, Column: "base_fee"}, + PercentFee: gormcol.Field{Table: TableNamePsReferrer, Column: "percent_fee"}, + ClickFee: gormcol.Field{Table: TableNamePsReferrer, Column: "click_fee"}, + DateAdd: gormcol.Field{Table: TableNamePsReferrer, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_referrer_cache.go b/app/model/dbmodel/ps_referrer_cache.go new file mode 100644 index 0000000..1558e96 --- /dev/null +++ b/app/model/dbmodel/ps_referrer_cache.go @@ -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 TableNamePsReferrerCache = "ps_referrer_cache" + +// PsReferrerCache mapped from table +type PsReferrerCache struct { + IDConnectionsSource int32 `gorm:"column:id_connections_source;primaryKey" json:"id_connections_source"` + IDReferrer int32 `gorm:"column:id_referrer;primaryKey" json:"id_referrer"` +} + +// TableName PsReferrerCache's table name +func (*PsReferrerCache) TableName() string { + return TableNamePsReferrerCache +} + +var PsReferrerCacheCols = struct { + IDConnectionsSource gormcol.Field + IDReferrer gormcol.Field +}{ + IDConnectionsSource: gormcol.Field{Table: TableNamePsReferrerCache, Column: "id_connections_source"}, + IDReferrer: gormcol.Field{Table: TableNamePsReferrerCache, Column: "id_referrer"}, +} diff --git a/app/model/dbmodel/ps_referrer_shop.go b/app/model/dbmodel/ps_referrer_shop.go new file mode 100644 index 0000000..fb8a13a --- /dev/null +++ b/app/model/dbmodel/ps_referrer_shop.go @@ -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" + +const TableNamePsReferrerShop = "ps_referrer_shop" + +// PsReferrerShop mapped from table +type PsReferrerShop struct { + IDReferrer int32 `gorm:"column:id_referrer;primaryKey;autoIncrement:true" json:"id_referrer"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + CacheVisitors *int32 `gorm:"column:cache_visitors" json:"cache_visitors"` + CacheVisits *int32 `gorm:"column:cache_visits" json:"cache_visits"` + CachePages *int32 `gorm:"column:cache_pages" json:"cache_pages"` + CacheRegistrations *int32 `gorm:"column:cache_registrations" json:"cache_registrations"` + CacheOrders *int32 `gorm:"column:cache_orders" json:"cache_orders"` + CacheSales *float64 `gorm:"column:cache_sales" json:"cache_sales"` + CacheRegRate *float64 `gorm:"column:cache_reg_rate" json:"cache_reg_rate"` + CacheOrderRate *float64 `gorm:"column:cache_order_rate" json:"cache_order_rate"` +} + +// TableName PsReferrerShop's table name +func (*PsReferrerShop) TableName() string { + return TableNamePsReferrerShop +} + +var PsReferrerShopCols = struct { + IDReferrer gormcol.Field + IDShop gormcol.Field + CacheVisitors gormcol.Field + CacheVisits gormcol.Field + CachePages gormcol.Field + CacheRegistrations gormcol.Field + CacheOrders gormcol.Field + CacheSales gormcol.Field + CacheRegRate gormcol.Field + CacheOrderRate gormcol.Field +}{ + IDReferrer: gormcol.Field{Table: TableNamePsReferrerShop, Column: "id_referrer"}, + IDShop: gormcol.Field{Table: TableNamePsReferrerShop, Column: "id_shop"}, + CacheVisitors: gormcol.Field{Table: TableNamePsReferrerShop, Column: "cache_visitors"}, + CacheVisits: gormcol.Field{Table: TableNamePsReferrerShop, Column: "cache_visits"}, + CachePages: gormcol.Field{Table: TableNamePsReferrerShop, Column: "cache_pages"}, + CacheRegistrations: gormcol.Field{Table: TableNamePsReferrerShop, Column: "cache_registrations"}, + CacheOrders: gormcol.Field{Table: TableNamePsReferrerShop, Column: "cache_orders"}, + CacheSales: gormcol.Field{Table: TableNamePsReferrerShop, Column: "cache_sales"}, + CacheRegRate: gormcol.Field{Table: TableNamePsReferrerShop, Column: "cache_reg_rate"}, + CacheOrderRate: gormcol.Field{Table: TableNamePsReferrerShop, Column: "cache_order_rate"}, +} diff --git a/app/model/dbmodel/ps_request_sql.go b/app/model/dbmodel/ps_request_sql.go new file mode 100644 index 0000000..61a2baa --- /dev/null +++ b/app/model/dbmodel/ps_request_sql.go @@ -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 TableNamePsRequestSql = "ps_request_sql" + +// PsRequestSql mapped from table +type PsRequestSql struct { + IDRequestSql int32 `gorm:"column:id_request_sql;primaryKey;autoIncrement:true" json:"id_request_sql"` + Name string `gorm:"column:name;not null" json:"name"` + Sql string `gorm:"column:sql;not null" json:"sql"` +} + +// TableName PsRequestSql's table name +func (*PsRequestSql) TableName() string { + return TableNamePsRequestSql +} + +var PsRequestSqlCols = struct { + IDRequestSql gormcol.Field + Name gormcol.Field + Sql gormcol.Field +}{ + IDRequestSql: gormcol.Field{Table: TableNamePsRequestSql, Column: "id_request_sql"}, + Name: gormcol.Field{Table: TableNamePsRequestSql, Column: "name"}, + Sql: gormcol.Field{Table: TableNamePsRequestSql, Column: "sql"}, +} diff --git a/app/model/dbmodel/ps_required_field.go b/app/model/dbmodel/ps_required_field.go new file mode 100644 index 0000000..a201ce4 --- /dev/null +++ b/app/model/dbmodel/ps_required_field.go @@ -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 TableNamePsRequiredField = "ps_required_field" + +// PsRequiredField mapped from table +type PsRequiredField struct { + IDRequiredField int32 `gorm:"column:id_required_field;primaryKey;autoIncrement:true" json:"id_required_field"` + ObjectName string `gorm:"column:object_name;not null;index:object_name,priority:1" json:"object_name"` + FieldName string `gorm:"column:field_name;not null" json:"field_name"` +} + +// TableName PsRequiredField's table name +func (*PsRequiredField) TableName() string { + return TableNamePsRequiredField +} + +var PsRequiredFieldCols = struct { + IDRequiredField gormcol.Field + ObjectName gormcol.Field + FieldName gormcol.Field +}{ + IDRequiredField: gormcol.Field{Table: TableNamePsRequiredField, Column: "id_required_field"}, + ObjectName: gormcol.Field{Table: TableNamePsRequiredField, Column: "object_name"}, + FieldName: gormcol.Field{Table: TableNamePsRequiredField, Column: "field_name"}, +} diff --git a/app/model/dbmodel/ps_risk.go b/app/model/dbmodel/ps_risk.go new file mode 100644 index 0000000..ed85714 --- /dev/null +++ b/app/model/dbmodel/ps_risk.go @@ -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 TableNamePsRisk = "ps_risk" + +// PsRisk mapped from table +type PsRisk struct { + IDRisk int32 `gorm:"column:id_risk;primaryKey;autoIncrement:true" json:"id_risk"` + Percent int32 `gorm:"column:percent;not null" json:"percent"` + Color *string `gorm:"column:color" json:"color"` +} + +// TableName PsRisk's table name +func (*PsRisk) TableName() string { + return TableNamePsRisk +} + +var PsRiskCols = struct { + IDRisk gormcol.Field + Percent gormcol.Field + Color gormcol.Field +}{ + IDRisk: gormcol.Field{Table: TableNamePsRisk, Column: "id_risk"}, + Percent: gormcol.Field{Table: TableNamePsRisk, Column: "percent"}, + Color: gormcol.Field{Table: TableNamePsRisk, Column: "color"}, +} diff --git a/app/model/dbmodel/ps_risk_lang.go b/app/model/dbmodel/ps_risk_lang.go new file mode 100644 index 0000000..70d89c1 --- /dev/null +++ b/app/model/dbmodel/ps_risk_lang.go @@ -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 TableNamePsRiskLang = "ps_risk_lang" + +// PsRiskLang mapped from table +type PsRiskLang struct { + IDRisk int32 `gorm:"column:id_risk;primaryKey;index:id_risk,priority:1" json:"id_risk"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsRiskLang's table name +func (*PsRiskLang) TableName() string { + return TableNamePsRiskLang +} + +var PsRiskLangCols = struct { + IDRisk gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDRisk: gormcol.Field{Table: TableNamePsRiskLang, Column: "id_risk"}, + IDLang: gormcol.Field{Table: TableNamePsRiskLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsRiskLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_search_engine.go b/app/model/dbmodel/ps_search_engine.go new file mode 100644 index 0000000..e003768 --- /dev/null +++ b/app/model/dbmodel/ps_search_engine.go @@ -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 TableNamePsSearchEngine = "ps_search_engine" + +// PsSearchEngine mapped from table +type PsSearchEngine struct { + IDSearchEngine int32 `gorm:"column:id_search_engine;primaryKey;autoIncrement:true" json:"id_search_engine"` + Server string `gorm:"column:server;not null" json:"server"` + Getvar string `gorm:"column:getvar;not null" json:"getvar"` +} + +// TableName PsSearchEngine's table name +func (*PsSearchEngine) TableName() string { + return TableNamePsSearchEngine +} + +var PsSearchEngineCols = struct { + IDSearchEngine gormcol.Field + Server gormcol.Field + Getvar gormcol.Field +}{ + IDSearchEngine: gormcol.Field{Table: TableNamePsSearchEngine, Column: "id_search_engine"}, + Server: gormcol.Field{Table: TableNamePsSearchEngine, Column: "server"}, + Getvar: gormcol.Field{Table: TableNamePsSearchEngine, Column: "getvar"}, +} diff --git a/app/model/dbmodel/ps_search_index.go b/app/model/dbmodel/ps_search_index.go new file mode 100644 index 0000000..3f8ed2f --- /dev/null +++ b/app/model/dbmodel/ps_search_index.go @@ -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 TableNamePsSearchIndex = "ps_search_index" + +// PsSearchIndex mapped from table +type PsSearchIndex struct { + IDProduct int32 `gorm:"column:id_product;primaryKey;index:id_product,priority:1" json:"id_product"` + IDWord int32 `gorm:"column:id_word;primaryKey" json:"id_word"` + Weight int32 `gorm:"column:weight;not null;index:id_product,priority:2;default:1" json:"weight"` +} + +// TableName PsSearchIndex's table name +func (*PsSearchIndex) TableName() string { + return TableNamePsSearchIndex +} + +var PsSearchIndexCols = struct { + IDProduct gormcol.Field + IDWord gormcol.Field + Weight gormcol.Field +}{ + IDProduct: gormcol.Field{Table: TableNamePsSearchIndex, Column: "id_product"}, + IDWord: gormcol.Field{Table: TableNamePsSearchIndex, Column: "id_word"}, + Weight: gormcol.Field{Table: TableNamePsSearchIndex, Column: "weight"}, +} diff --git a/app/model/dbmodel/ps_search_word.go b/app/model/dbmodel/ps_search_word.go new file mode 100644 index 0000000..23d0396 --- /dev/null +++ b/app/model/dbmodel/ps_search_word.go @@ -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 TableNamePsSearchWord = "ps_search_word" + +// PsSearchWord mapped from table +type PsSearchWord struct { + IDWord int32 `gorm:"column:id_word;primaryKey;autoIncrement:true" json:"id_word"` + IDShop int32 `gorm:"column:id_shop;not null;uniqueIndex:id_lang,priority:2;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;not null;uniqueIndex:id_lang,priority:1" json:"id_lang"` + Word string `gorm:"column:word;not null;uniqueIndex:id_lang,priority:3" json:"word"` +} + +// TableName PsSearchWord's table name +func (*PsSearchWord) TableName() string { + return TableNamePsSearchWord +} + +var PsSearchWordCols = struct { + IDWord gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Word gormcol.Field +}{ + IDWord: gormcol.Field{Table: TableNamePsSearchWord, Column: "id_word"}, + IDShop: gormcol.Field{Table: TableNamePsSearchWord, Column: "id_shop"}, + IDLang: gormcol.Field{Table: TableNamePsSearchWord, Column: "id_lang"}, + Word: gormcol.Field{Table: TableNamePsSearchWord, Column: "word"}, +} diff --git a/app/model/dbmodel/ps_sekeyword.go b/app/model/dbmodel/ps_sekeyword.go new file mode 100644 index 0000000..295e546 --- /dev/null +++ b/app/model/dbmodel/ps_sekeyword.go @@ -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 TableNamePsSekeyword = "ps_sekeyword" + +// PsSekeyword mapped from table +type PsSekeyword struct { + IDSekeyword int32 `gorm:"column:id_sekeyword;primaryKey;autoIncrement:true" json:"id_sekeyword"` + 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"` + Keyword string `gorm:"column:keyword;not null" json:"keyword"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsSekeyword's table name +func (*PsSekeyword) TableName() string { + return TableNamePsSekeyword +} + +var PsSekeywordCols = struct { + IDSekeyword gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + Keyword gormcol.Field + DateAdd gormcol.Field +}{ + IDSekeyword: gormcol.Field{Table: TableNamePsSekeyword, Column: "id_sekeyword"}, + IDShop: gormcol.Field{Table: TableNamePsSekeyword, Column: "id_shop"}, + IDShopGroup: gormcol.Field{Table: TableNamePsSekeyword, Column: "id_shop_group"}, + Keyword: gormcol.Field{Table: TableNamePsSekeyword, Column: "keyword"}, + DateAdd: gormcol.Field{Table: TableNamePsSekeyword, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_shop.go b/app/model/dbmodel/ps_shop.go new file mode 100644 index 0000000..3e2afbc --- /dev/null +++ b/app/model/dbmodel/ps_shop.go @@ -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 TableNamePsShop = "ps_shop" + +// PsShop mapped from table +type PsShop struct { + IDShop int32 `gorm:"column:id_shop;primaryKey;autoIncrement:true" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;index:IDX_CBDFBB9EF5C9E40,priority:1" json:"id_shop_group"` + Name string `gorm:"column:name;not null" json:"name"` + IDCategory int32 `gorm:"column:id_category;not null" json:"id_category"` + ThemeName string `gorm:"column:theme_name;not null" json:"theme_name"` + Active bool `gorm:"column:active;not null" json:"active"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsShop's table name +func (*PsShop) TableName() string { + return TableNamePsShop +} + +var PsShopCols = struct { + IDShop gormcol.Field + IDShopGroup gormcol.Field + Name gormcol.Field + IDCategory gormcol.Field + ThemeName gormcol.Field + Active gormcol.Field + Deleted gormcol.Field +}{ + IDShop: gormcol.Field{Table: TableNamePsShop, Column: "id_shop"}, + IDShopGroup: gormcol.Field{Table: TableNamePsShop, Column: "id_shop_group"}, + Name: gormcol.Field{Table: TableNamePsShop, Column: "name"}, + IDCategory: gormcol.Field{Table: TableNamePsShop, Column: "id_category"}, + ThemeName: gormcol.Field{Table: TableNamePsShop, Column: "theme_name"}, + Active: gormcol.Field{Table: TableNamePsShop, Column: "active"}, + Deleted: gormcol.Field{Table: TableNamePsShop, Column: "deleted"}, +} diff --git a/app/model/dbmodel/ps_shop_company.go b/app/model/dbmodel/ps_shop_company.go new file mode 100644 index 0000000..8b60111 --- /dev/null +++ b/app/model/dbmodel/ps_shop_company.go @@ -0,0 +1,70 @@ +// 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 TableNamePsShopCompany = "ps_shop_company" + +// PsShopCompany mapped from table +type PsShopCompany struct { + IDShopCompany int32 `gorm:"column:id_shop_company;primaryKey;autoIncrement:true" json:"id_shop_company"` + Name *string `gorm:"column:name" json:"name"` + Address *string `gorm:"column:address" json:"address"` + Postcode *string `gorm:"column:postcode" json:"postcode"` + City *string `gorm:"column:city" json:"city"` + Phone *string `gorm:"column:phone" json:"phone"` + IDCountry int32 `gorm:"column:id_country;not null" json:"id_country"` + VatNumber *string `gorm:"column:vat_number;uniqueIndex:UQ_ps_shop_company_vat_number,priority:1" json:"vat_number"` + Email *string `gorm:"column:email" json:"email"` + BankAccount *string `gorm:"column:bank_account" json:"bank_account"` + LastNumber *int32 `gorm:"column:last_number" json:"last_number"` + IsDefault int32 `gorm:"column:is_default;not null" json:"is_default"` + Color *string `gorm:"column:color" json:"color"` + DateAdd *time.Time `gorm:"column:date_add;default:current_timestamp()" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd;default:current_timestamp()" json:"date_upd"` +} + +// TableName PsShopCompany's table name +func (*PsShopCompany) TableName() string { + return TableNamePsShopCompany +} + +var PsShopCompanyCols = struct { + IDShopCompany gormcol.Field + Name gormcol.Field + Address gormcol.Field + Postcode gormcol.Field + City gormcol.Field + Phone gormcol.Field + IDCountry gormcol.Field + VatNumber gormcol.Field + Email gormcol.Field + BankAccount gormcol.Field + LastNumber gormcol.Field + IsDefault gormcol.Field + Color gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDShopCompany: gormcol.Field{Table: TableNamePsShopCompany, Column: "id_shop_company"}, + Name: gormcol.Field{Table: TableNamePsShopCompany, Column: "name"}, + Address: gormcol.Field{Table: TableNamePsShopCompany, Column: "address"}, + Postcode: gormcol.Field{Table: TableNamePsShopCompany, Column: "postcode"}, + City: gormcol.Field{Table: TableNamePsShopCompany, Column: "city"}, + Phone: gormcol.Field{Table: TableNamePsShopCompany, Column: "phone"}, + IDCountry: gormcol.Field{Table: TableNamePsShopCompany, Column: "id_country"}, + VatNumber: gormcol.Field{Table: TableNamePsShopCompany, Column: "vat_number"}, + Email: gormcol.Field{Table: TableNamePsShopCompany, Column: "email"}, + BankAccount: gormcol.Field{Table: TableNamePsShopCompany, Column: "bank_account"}, + LastNumber: gormcol.Field{Table: TableNamePsShopCompany, Column: "last_number"}, + IsDefault: gormcol.Field{Table: TableNamePsShopCompany, Column: "is_default"}, + Color: gormcol.Field{Table: TableNamePsShopCompany, Column: "color"}, + DateAdd: gormcol.Field{Table: TableNamePsShopCompany, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsShopCompany, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_shop_group.go b/app/model/dbmodel/ps_shop_group.go new file mode 100644 index 0000000..69af39f --- /dev/null +++ b/app/model/dbmodel/ps_shop_group.go @@ -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 TableNamePsShopGroup = "ps_shop_group" + +// PsShopGroup mapped from table +type PsShopGroup struct { + IDShopGroup int32 `gorm:"column:id_shop_group;primaryKey;autoIncrement:true" json:"id_shop_group"` + Name string `gorm:"column:name;not null" json:"name"` + ShareCustomer bool `gorm:"column:share_customer;not null" json:"share_customer"` + ShareOrder bool `gorm:"column:share_order;not null" json:"share_order"` + ShareStock bool `gorm:"column:share_stock;not null" json:"share_stock"` + Active bool `gorm:"column:active;not null" json:"active"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsShopGroup's table name +func (*PsShopGroup) TableName() string { + return TableNamePsShopGroup +} + +var PsShopGroupCols = struct { + IDShopGroup gormcol.Field + Name gormcol.Field + ShareCustomer gormcol.Field + ShareOrder gormcol.Field + ShareStock gormcol.Field + Active gormcol.Field + Deleted gormcol.Field +}{ + IDShopGroup: gormcol.Field{Table: TableNamePsShopGroup, Column: "id_shop_group"}, + Name: gormcol.Field{Table: TableNamePsShopGroup, Column: "name"}, + ShareCustomer: gormcol.Field{Table: TableNamePsShopGroup, Column: "share_customer"}, + ShareOrder: gormcol.Field{Table: TableNamePsShopGroup, Column: "share_order"}, + ShareStock: gormcol.Field{Table: TableNamePsShopGroup, Column: "share_stock"}, + Active: gormcol.Field{Table: TableNamePsShopGroup, Column: "active"}, + Deleted: gormcol.Field{Table: TableNamePsShopGroup, Column: "deleted"}, +} diff --git a/app/model/dbmodel/ps_shop_url.go b/app/model/dbmodel/ps_shop_url.go new file mode 100644 index 0000000..142933c --- /dev/null +++ b/app/model/dbmodel/ps_shop_url.go @@ -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 TableNamePsShopURL = "ps_shop_url" + +// PsShopURL mapped from table +type PsShopURL struct { + IDShopURL int32 `gorm:"column:id_shop_url;primaryKey;autoIncrement:true" json:"id_shop_url"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1" json:"id_shop"` + Domain string `gorm:"column:domain;not null;uniqueIndex:full_shop_url,priority:1" json:"domain"` + DomainSsl string `gorm:"column:domain_ssl;not null;uniqueIndex:full_shop_url_ssl,priority:1" json:"domain_ssl"` + PhysicalURI string `gorm:"column:physical_uri;not null;uniqueIndex:full_shop_url,priority:2;uniqueIndex:full_shop_url_ssl,priority:2" json:"physical_uri"` + VirtualURI string `gorm:"column:virtual_uri;not null;uniqueIndex:full_shop_url,priority:3;uniqueIndex:full_shop_url_ssl,priority:3" json:"virtual_uri"` + Main bool `gorm:"column:main;not null;index:id_shop,priority:2" json:"main"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsShopURL's table name +func (*PsShopURL) TableName() string { + return TableNamePsShopURL +} + +var PsShopURLCols = struct { + IDShopURL gormcol.Field + IDShop gormcol.Field + Domain gormcol.Field + DomainSsl gormcol.Field + PhysicalURI gormcol.Field + VirtualURI gormcol.Field + Main gormcol.Field + Active gormcol.Field +}{ + IDShopURL: gormcol.Field{Table: TableNamePsShopURL, Column: "id_shop_url"}, + IDShop: gormcol.Field{Table: TableNamePsShopURL, Column: "id_shop"}, + Domain: gormcol.Field{Table: TableNamePsShopURL, Column: "domain"}, + DomainSsl: gormcol.Field{Table: TableNamePsShopURL, Column: "domain_ssl"}, + PhysicalURI: gormcol.Field{Table: TableNamePsShopURL, Column: "physical_uri"}, + VirtualURI: gormcol.Field{Table: TableNamePsShopURL, Column: "virtual_uri"}, + Main: gormcol.Field{Table: TableNamePsShopURL, Column: "main"}, + Active: gormcol.Field{Table: TableNamePsShopURL, Column: "active"}, +} diff --git a/app/model/dbmodel/ps_smarty_cache.go b/app/model/dbmodel/ps_smarty_cache.go new file mode 100644 index 0000000..7edad45 --- /dev/null +++ b/app/model/dbmodel/ps_smarty_cache.go @@ -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 TableNamePsSmartyCache = "ps_smarty_cache" + +// PsSmartyCache mapped from table +type PsSmartyCache struct { + IDSmartyCache string `gorm:"column:id_smarty_cache;primaryKey" json:"id_smarty_cache"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` + CacheID *string `gorm:"column:cache_id;index:cache_id,priority:1" json:"cache_id"` + Modified time.Time `gorm:"column:modified;not null;index:modified,priority:1;default:current_timestamp()" json:"modified"` + Content string `gorm:"column:content;not null" json:"content"` +} + +// TableName PsSmartyCache's table name +func (*PsSmartyCache) TableName() string { + return TableNamePsSmartyCache +} + +var PsSmartyCacheCols = struct { + IDSmartyCache gormcol.Field + Name gormcol.Field + CacheID gormcol.Field + Modified gormcol.Field + Content gormcol.Field +}{ + IDSmartyCache: gormcol.Field{Table: TableNamePsSmartyCache, Column: "id_smarty_cache"}, + Name: gormcol.Field{Table: TableNamePsSmartyCache, Column: "name"}, + CacheID: gormcol.Field{Table: TableNamePsSmartyCache, Column: "cache_id"}, + Modified: gormcol.Field{Table: TableNamePsSmartyCache, Column: "modified"}, + Content: gormcol.Field{Table: TableNamePsSmartyCache, Column: "content"}, +} diff --git a/app/model/dbmodel/ps_smarty_last_flush.go b/app/model/dbmodel/ps_smarty_last_flush.go new file mode 100644 index 0000000..330aec5 --- /dev/null +++ b/app/model/dbmodel/ps_smarty_last_flush.go @@ -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" + "time" +) + +const TableNamePsSmartyLastFlush = "ps_smarty_last_flush" + +// PsSmartyLastFlush mapped from table +type PsSmartyLastFlush struct { + Type string `gorm:"column:type;primaryKey" json:"type"` + LastFlush time.Time `gorm:"column:last_flush;not null;default:0000-00-00 00:00:00" json:"last_flush"` +} + +// TableName PsSmartyLastFlush's table name +func (*PsSmartyLastFlush) TableName() string { + return TableNamePsSmartyLastFlush +} + +var PsSmartyLastFlushCols = struct { + Type gormcol.Field + LastFlush gormcol.Field +}{ + Type: gormcol.Field{Table: TableNamePsSmartyLastFlush, Column: "type"}, + LastFlush: gormcol.Field{Table: TableNamePsSmartyLastFlush, Column: "last_flush"}, +} diff --git a/app/model/dbmodel/ps_smarty_lazy_cache.go b/app/model/dbmodel/ps_smarty_lazy_cache.go new file mode 100644 index 0000000..7533cad --- /dev/null +++ b/app/model/dbmodel/ps_smarty_lazy_cache.go @@ -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 TableNamePsSmartyLazyCache = "ps_smarty_lazy_cache" + +// PsSmartyLazyCache mapped from table +type PsSmartyLazyCache struct { + TemplateHash string `gorm:"column:template_hash;primaryKey" json:"template_hash"` + CacheID string `gorm:"column:cache_id;primaryKey" json:"cache_id"` + CompileID string `gorm:"column:compile_id;primaryKey" json:"compile_id"` + Filepath string `gorm:"column:filepath;not null" json:"filepath"` + LastUpdate time.Time `gorm:"column:last_update;not null;default:0000-00-00 00:00:00" json:"last_update"` +} + +// TableName PsSmartyLazyCache's table name +func (*PsSmartyLazyCache) TableName() string { + return TableNamePsSmartyLazyCache +} + +var PsSmartyLazyCacheCols = struct { + TemplateHash gormcol.Field + CacheID gormcol.Field + CompileID gormcol.Field + Filepath gormcol.Field + LastUpdate gormcol.Field +}{ + TemplateHash: gormcol.Field{Table: TableNamePsSmartyLazyCache, Column: "template_hash"}, + CacheID: gormcol.Field{Table: TableNamePsSmartyLazyCache, Column: "cache_id"}, + CompileID: gormcol.Field{Table: TableNamePsSmartyLazyCache, Column: "compile_id"}, + Filepath: gormcol.Field{Table: TableNamePsSmartyLazyCache, Column: "filepath"}, + LastUpdate: gormcol.Field{Table: TableNamePsSmartyLazyCache, Column: "last_update"}, +} diff --git a/app/model/dbmodel/ps_specific_price.go b/app/model/dbmodel/ps_specific_price.go new file mode 100644 index 0000000..8f70be7 --- /dev/null +++ b/app/model/dbmodel/ps_specific_price.go @@ -0,0 +1,79 @@ +// 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 TableNamePsSpecificPrice = "ps_specific_price" + +// PsSpecificPrice mapped from table +type PsSpecificPrice struct { + IDSpecificPrice int32 `gorm:"column:id_specific_price;primaryKey;autoIncrement:true" json:"id_specific_price"` + IDSpecificPriceRule int32 `gorm:"column:id_specific_price_rule;not null;uniqueIndex:id_product_2,priority:13;index:id_specific_price_rule,priority:1" json:"id_specific_price_rule"` + IDCart int32 `gorm:"column:id_cart;not null;uniqueIndex:id_product_2,priority:4;index:id_cart,priority:1" json:"id_cart"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product_2,priority:1;index:id_product,priority:1" json:"id_product"` + IDShop int32 `gorm:"column:id_shop;not null;uniqueIndex:id_product_2,priority:7;index:id_product,priority:2;index:id_shop,priority:1;default:1" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;uniqueIndex:id_product_2,priority:8" json:"id_shop_group"` + IDCurrency int32 `gorm:"column:id_currency;not null;uniqueIndex:id_product_2,priority:9;index:id_product,priority:3" json:"id_currency"` + IDCountry int32 `gorm:"column:id_country;not null;uniqueIndex:id_product_2,priority:10;index:id_product,priority:4" json:"id_country"` + IDGroup int32 `gorm:"column:id_group;not null;uniqueIndex:id_product_2,priority:11;index:id_product,priority:5" json:"id_group"` + IDCustomer int32 `gorm:"column:id_customer;not null;uniqueIndex:id_product_2,priority:3;index:id_customer,priority:1;index:id_product,priority:6" json:"id_customer"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;uniqueIndex:id_product_2,priority:2;index:id_product_attribute,priority:1" json:"id_product_attribute"` + Price float64 `gorm:"column:price;not null" json:"price"` + FromQuantity int32 `gorm:"column:from_quantity;not null;uniqueIndex:id_product_2,priority:12;index:from_quantity,priority:1;index:id_product,priority:7" json:"from_quantity"` + Reduction float64 `gorm:"column:reduction;not null" json:"reduction"` + ReductionTax bool `gorm:"column:reduction_tax;not null;default:1" json:"reduction_tax"` + ReductionType string `gorm:"column:reduction_type;not null" json:"reduction_type"` + From time.Time `gorm:"column:from;not null;uniqueIndex:id_product_2,priority:5;index:from,priority:1;index:id_product,priority:8" json:"from"` + To time.Time `gorm:"column:to;not null;uniqueIndex:id_product_2,priority:6;index:id_product,priority:9;index:to,priority:1" json:"to"` +} + +// TableName PsSpecificPrice's table name +func (*PsSpecificPrice) TableName() string { + return TableNamePsSpecificPrice +} + +var PsSpecificPriceCols = struct { + IDSpecificPrice gormcol.Field + IDSpecificPriceRule gormcol.Field + IDCart gormcol.Field + IDProduct gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + IDCurrency gormcol.Field + IDCountry gormcol.Field + IDGroup gormcol.Field + IDCustomer gormcol.Field + IDProductAttribute gormcol.Field + Price gormcol.Field + FromQuantity gormcol.Field + Reduction gormcol.Field + ReductionTax gormcol.Field + ReductionType gormcol.Field + From gormcol.Field + To gormcol.Field +}{ + IDSpecificPrice: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_specific_price"}, + IDSpecificPriceRule: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_specific_price_rule"}, + IDCart: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_cart"}, + IDProduct: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_product"}, + IDShop: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_shop"}, + IDShopGroup: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_shop_group"}, + IDCurrency: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_currency"}, + IDCountry: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_country"}, + IDGroup: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_group"}, + IDCustomer: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_customer"}, + IDProductAttribute: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_product_attribute"}, + Price: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "price"}, + FromQuantity: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "from_quantity"}, + Reduction: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "reduction"}, + ReductionTax: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "reduction_tax"}, + ReductionType: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "reduction_type"}, + From: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "from"}, + To: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "to"}, +} diff --git a/app/model/dbmodel/ps_specific_price_priority.go b/app/model/dbmodel/ps_specific_price_priority.go new file mode 100644 index 0000000..771fa93 --- /dev/null +++ b/app/model/dbmodel/ps_specific_price_priority.go @@ -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 TableNamePsSpecificPricePriority = "ps_specific_price_priority" + +// PsSpecificPricePriority mapped from table +type PsSpecificPricePriority struct { + IDSpecificPricePriority int32 `gorm:"column:id_specific_price_priority;primaryKey;autoIncrement:true" json:"id_specific_price_priority"` + IDProduct int32 `gorm:"column:id_product;primaryKey;uniqueIndex:id_product,priority:1" json:"id_product"` + Priority string `gorm:"column:priority;not null" json:"priority"` +} + +// TableName PsSpecificPricePriority's table name +func (*PsSpecificPricePriority) TableName() string { + return TableNamePsSpecificPricePriority +} + +var PsSpecificPricePriorityCols = struct { + IDSpecificPricePriority gormcol.Field + IDProduct gormcol.Field + Priority gormcol.Field +}{ + IDSpecificPricePriority: gormcol.Field{Table: TableNamePsSpecificPricePriority, Column: "id_specific_price_priority"}, + IDProduct: gormcol.Field{Table: TableNamePsSpecificPricePriority, Column: "id_product"}, + Priority: gormcol.Field{Table: TableNamePsSpecificPricePriority, Column: "priority"}, +} diff --git a/app/model/dbmodel/ps_specific_price_rule.go b/app/model/dbmodel/ps_specific_price_rule.go new file mode 100644 index 0000000..9b06594 --- /dev/null +++ b/app/model/dbmodel/ps_specific_price_rule.go @@ -0,0 +1,64 @@ +// 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 TableNamePsSpecificPriceRule = "ps_specific_price_rule" + +// PsSpecificPriceRule mapped from table +type PsSpecificPriceRule struct { + IDSpecificPriceRule int32 `gorm:"column:id_specific_price_rule;primaryKey;autoIncrement:true" json:"id_specific_price_rule"` + Name string `gorm:"column:name;not null" json:"name"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_product,priority:1;default:1" json:"id_shop"` + IDCurrency int32 `gorm:"column:id_currency;not null;index:id_product,priority:2" json:"id_currency"` + IDCountry int32 `gorm:"column:id_country;not null;index:id_product,priority:3" json:"id_country"` + IDGroup int32 `gorm:"column:id_group;not null;index:id_product,priority:4" json:"id_group"` + FromQuantity int32 `gorm:"column:from_quantity;not null;index:id_product,priority:5" json:"from_quantity"` + Price *float64 `gorm:"column:price" json:"price"` + Reduction float64 `gorm:"column:reduction;not null" json:"reduction"` + ReductionTax bool `gorm:"column:reduction_tax;not null;default:1" json:"reduction_tax"` + ReductionType string `gorm:"column:reduction_type;not null" json:"reduction_type"` + From time.Time `gorm:"column:from;not null;index:id_product,priority:6" json:"from"` + To time.Time `gorm:"column:to;not null;index:id_product,priority:7" json:"to"` +} + +// TableName PsSpecificPriceRule's table name +func (*PsSpecificPriceRule) TableName() string { + return TableNamePsSpecificPriceRule +} + +var PsSpecificPriceRuleCols = struct { + IDSpecificPriceRule gormcol.Field + Name gormcol.Field + IDShop gormcol.Field + IDCurrency gormcol.Field + IDCountry gormcol.Field + IDGroup gormcol.Field + FromQuantity gormcol.Field + Price gormcol.Field + Reduction gormcol.Field + ReductionTax gormcol.Field + ReductionType gormcol.Field + From gormcol.Field + To gormcol.Field +}{ + IDSpecificPriceRule: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "id_specific_price_rule"}, + Name: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "name"}, + IDShop: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "id_shop"}, + IDCurrency: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "id_currency"}, + IDCountry: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "id_country"}, + IDGroup: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "id_group"}, + FromQuantity: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "from_quantity"}, + Price: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "price"}, + Reduction: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "reduction"}, + ReductionTax: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "reduction_tax"}, + ReductionType: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "reduction_type"}, + From: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "from"}, + To: gormcol.Field{Table: TableNamePsSpecificPriceRule, Column: "to"}, +} diff --git a/app/model/dbmodel/ps_specific_price_rule_condition.go b/app/model/dbmodel/ps_specific_price_rule_condition.go new file mode 100644 index 0000000..94709a1 --- /dev/null +++ b/app/model/dbmodel/ps_specific_price_rule_condition.go @@ -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 TableNamePsSpecificPriceRuleCondition = "ps_specific_price_rule_condition" + +// PsSpecificPriceRuleCondition mapped from table +type PsSpecificPriceRuleCondition struct { + IDSpecificPriceRuleCondition int32 `gorm:"column:id_specific_price_rule_condition;primaryKey;autoIncrement:true" json:"id_specific_price_rule_condition"` + IDSpecificPriceRuleConditionGroup int32 `gorm:"column:id_specific_price_rule_condition_group;not null;index:id_specific_price_rule_condition_group,priority:1" json:"id_specific_price_rule_condition_group"` + Type string `gorm:"column:type;not null" json:"type"` + Value string `gorm:"column:value;not null" json:"value"` +} + +// TableName PsSpecificPriceRuleCondition's table name +func (*PsSpecificPriceRuleCondition) TableName() string { + return TableNamePsSpecificPriceRuleCondition +} + +var PsSpecificPriceRuleConditionCols = struct { + IDSpecificPriceRuleCondition gormcol.Field + IDSpecificPriceRuleConditionGroup gormcol.Field + Type gormcol.Field + Value gormcol.Field +}{ + IDSpecificPriceRuleCondition: gormcol.Field{Table: TableNamePsSpecificPriceRuleCondition, Column: "id_specific_price_rule_condition"}, + IDSpecificPriceRuleConditionGroup: gormcol.Field{Table: TableNamePsSpecificPriceRuleCondition, Column: "id_specific_price_rule_condition_group"}, + Type: gormcol.Field{Table: TableNamePsSpecificPriceRuleCondition, Column: "type"}, + Value: gormcol.Field{Table: TableNamePsSpecificPriceRuleCondition, Column: "value"}, +} diff --git a/app/model/dbmodel/ps_specific_price_rule_condition_group.go b/app/model/dbmodel/ps_specific_price_rule_condition_group.go new file mode 100644 index 0000000..ddc4317 --- /dev/null +++ b/app/model/dbmodel/ps_specific_price_rule_condition_group.go @@ -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 TableNamePsSpecificPriceRuleConditionGroup = "ps_specific_price_rule_condition_group" + +// PsSpecificPriceRuleConditionGroup mapped from table +type PsSpecificPriceRuleConditionGroup struct { + IDSpecificPriceRuleConditionGroup int32 `gorm:"column:id_specific_price_rule_condition_group;primaryKey;autoIncrement:true" json:"id_specific_price_rule_condition_group"` + IDSpecificPriceRule int32 `gorm:"column:id_specific_price_rule;primaryKey" json:"id_specific_price_rule"` +} + +// TableName PsSpecificPriceRuleConditionGroup's table name +func (*PsSpecificPriceRuleConditionGroup) TableName() string { + return TableNamePsSpecificPriceRuleConditionGroup +} + +var PsSpecificPriceRuleConditionGroupCols = struct { + IDSpecificPriceRuleConditionGroup gormcol.Field + IDSpecificPriceRule gormcol.Field +}{ + IDSpecificPriceRuleConditionGroup: gormcol.Field{Table: TableNamePsSpecificPriceRuleConditionGroup, Column: "id_specific_price_rule_condition_group"}, + IDSpecificPriceRule: gormcol.Field{Table: TableNamePsSpecificPriceRuleConditionGroup, Column: "id_specific_price_rule"}, +} diff --git a/app/model/dbmodel/ps_state.go b/app/model/dbmodel/ps_state.go new file mode 100644 index 0000000..f8de735 --- /dev/null +++ b/app/model/dbmodel/ps_state.go @@ -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 TableNamePsState = "ps_state" + +// PsState mapped from table +type PsState struct { + IDState int32 `gorm:"column:id_state;primaryKey;autoIncrement:true" json:"id_state"` + IDCountry int32 `gorm:"column:id_country;not null;index:id_country,priority:1" json:"id_country"` + IDZone int32 `gorm:"column:id_zone;not null;index:id_zone,priority:1" json:"id_zone"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` + IsoCode string `gorm:"column:iso_code;not null" json:"iso_code"` + TaxBehavior int32 `gorm:"column:tax_behavior;not null" json:"tax_behavior"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsState's table name +func (*PsState) TableName() string { + return TableNamePsState +} + +var PsStateCols = struct { + IDState gormcol.Field + IDCountry gormcol.Field + IDZone gormcol.Field + Name gormcol.Field + IsoCode gormcol.Field + TaxBehavior gormcol.Field + Active gormcol.Field +}{ + IDState: gormcol.Field{Table: TableNamePsState, Column: "id_state"}, + IDCountry: gormcol.Field{Table: TableNamePsState, Column: "id_country"}, + IDZone: gormcol.Field{Table: TableNamePsState, Column: "id_zone"}, + Name: gormcol.Field{Table: TableNamePsState, Column: "name"}, + IsoCode: gormcol.Field{Table: TableNamePsState, Column: "iso_code"}, + TaxBehavior: gormcol.Field{Table: TableNamePsState, Column: "tax_behavior"}, + Active: gormcol.Field{Table: TableNamePsState, Column: "active"}, +} diff --git a/app/model/dbmodel/ps_statssearch.go b/app/model/dbmodel/ps_statssearch.go new file mode 100644 index 0000000..adad7d1 --- /dev/null +++ b/app/model/dbmodel/ps_statssearch.go @@ -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 TableNamePsStatssearch = "ps_statssearch" + +// PsStatssearch mapped from table +type PsStatssearch struct { + IDStatssearch int32 `gorm:"column:id_statssearch;primaryKey;autoIncrement:true" json:"id_statssearch"` + 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"` + Keywords string `gorm:"column:keywords;not null" json:"keywords"` + Results int32 `gorm:"column:results;not null" json:"results"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsStatssearch's table name +func (*PsStatssearch) TableName() string { + return TableNamePsStatssearch +} + +var PsStatssearchCols = struct { + IDStatssearch gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + Keywords gormcol.Field + Results gormcol.Field + DateAdd gormcol.Field +}{ + IDStatssearch: gormcol.Field{Table: TableNamePsStatssearch, Column: "id_statssearch"}, + IDShop: gormcol.Field{Table: TableNamePsStatssearch, Column: "id_shop"}, + IDShopGroup: gormcol.Field{Table: TableNamePsStatssearch, Column: "id_shop_group"}, + Keywords: gormcol.Field{Table: TableNamePsStatssearch, Column: "keywords"}, + Results: gormcol.Field{Table: TableNamePsStatssearch, Column: "results"}, + DateAdd: gormcol.Field{Table: TableNamePsStatssearch, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_stock.go b/app/model/dbmodel/ps_stock.go new file mode 100644 index 0000000..a45ac0a --- /dev/null +++ b/app/model/dbmodel/ps_stock.go @@ -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 TableNamePsStock = "ps_stock" + +// PsStock mapped from table +type PsStock struct { + IDStock int32 `gorm:"column:id_stock;primaryKey;autoIncrement:true" json:"id_stock"` + IDWarehouse int32 `gorm:"column:id_warehouse;not null;index:id_warehouse,priority:1" json:"id_warehouse"` + IDProduct int32 `gorm:"column:id_product;not null;index:id_product,priority:1" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;index:id_product_attribute,priority:1" json:"id_product_attribute"` + Reference string `gorm:"column:reference;not null" json:"reference"` + Ean13 *string `gorm:"column:ean13" json:"ean13"` + Isbn *string `gorm:"column:isbn" json:"isbn"` + Upc *string `gorm:"column:upc" json:"upc"` + PhysicalQuantity int32 `gorm:"column:physical_quantity;not null" json:"physical_quantity"` + UsableQuantity int32 `gorm:"column:usable_quantity;not null" json:"usable_quantity"` + PriceTe *float64 `gorm:"column:price_te;default:0.000000" json:"price_te"` +} + +// TableName PsStock's table name +func (*PsStock) TableName() string { + return TableNamePsStock +} + +var PsStockCols = struct { + IDStock gormcol.Field + IDWarehouse gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + Reference gormcol.Field + Ean13 gormcol.Field + Isbn gormcol.Field + Upc gormcol.Field + PhysicalQuantity gormcol.Field + UsableQuantity gormcol.Field + PriceTe gormcol.Field +}{ + IDStock: gormcol.Field{Table: TableNamePsStock, Column: "id_stock"}, + IDWarehouse: gormcol.Field{Table: TableNamePsStock, Column: "id_warehouse"}, + IDProduct: gormcol.Field{Table: TableNamePsStock, Column: "id_product"}, + IDProductAttribute: gormcol.Field{Table: TableNamePsStock, Column: "id_product_attribute"}, + Reference: gormcol.Field{Table: TableNamePsStock, Column: "reference"}, + Ean13: gormcol.Field{Table: TableNamePsStock, Column: "ean13"}, + Isbn: gormcol.Field{Table: TableNamePsStock, Column: "isbn"}, + Upc: gormcol.Field{Table: TableNamePsStock, Column: "upc"}, + PhysicalQuantity: gormcol.Field{Table: TableNamePsStock, Column: "physical_quantity"}, + UsableQuantity: gormcol.Field{Table: TableNamePsStock, Column: "usable_quantity"}, + PriceTe: gormcol.Field{Table: TableNamePsStock, Column: "price_te"}, +} diff --git a/app/model/dbmodel/ps_stock_available.go b/app/model/dbmodel/ps_stock_available.go new file mode 100644 index 0000000..d193093 --- /dev/null +++ b/app/model/dbmodel/ps_stock_available.go @@ -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 TableNamePsStockAvailable = "ps_stock_available" + +// PsStockAvailable mapped from table +type PsStockAvailable struct { + IDStockAvailable int32 `gorm:"column:id_stock_available;primaryKey;autoIncrement:true" json:"id_stock_available"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:product_sqlstock,priority:1;index:idx_id_product_attribute,priority:1;index:idx_product_stock,priority:1;index:idx_ps_stock_available,priority:1;index:idx_stock_available,priority:1;index:id_product,priority:1" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;uniqueIndex:product_sqlstock,priority:2;index:idx_id_product_attribute,priority:2;index:idx_product_stock,priority:2;index:idx_stock_available,priority:2;index:id_product_attribute,priority:1" json:"id_product_attribute"` + IDShop int32 `gorm:"column:id_shop;not null;uniqueIndex:product_sqlstock,priority:3;index:idx_ps_stock_available,priority:2;index:idx_stock_available,priority:3;index:id_shop,priority:1" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;uniqueIndex:product_sqlstock,priority:4;index:idx_ps_stock_available,priority:3;index:idx_stock_available,priority:4;index:id_shop_group,priority:1" json:"id_shop_group"` + Quantity int32 `gorm:"column:quantity;not null;index:idx_stock_available,priority:5" json:"quantity"` + PhysicalQuantity int32 `gorm:"column:physical_quantity;not null" json:"physical_quantity"` + ReservedQuantity int32 `gorm:"column:reserved_quantity;not null" json:"reserved_quantity"` + DependsOnStock bool `gorm:"column:depends_on_stock;not null" json:"depends_on_stock"` + OutOfStock bool `gorm:"column:out_of_stock;not null;index:idx_stock_available,priority:6" json:"out_of_stock"` + Location string `gorm:"column:location;not null" json:"location"` +} + +// TableName PsStockAvailable's table name +func (*PsStockAvailable) TableName() string { + return TableNamePsStockAvailable +} + +var PsStockAvailableCols = struct { + IDStockAvailable gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + Quantity gormcol.Field + PhysicalQuantity gormcol.Field + ReservedQuantity gormcol.Field + DependsOnStock gormcol.Field + OutOfStock gormcol.Field + Location gormcol.Field +}{ + IDStockAvailable: gormcol.Field{Table: TableNamePsStockAvailable, Column: "id_stock_available"}, + IDProduct: gormcol.Field{Table: TableNamePsStockAvailable, Column: "id_product"}, + IDProductAttribute: gormcol.Field{Table: TableNamePsStockAvailable, Column: "id_product_attribute"}, + IDShop: gormcol.Field{Table: TableNamePsStockAvailable, Column: "id_shop"}, + IDShopGroup: gormcol.Field{Table: TableNamePsStockAvailable, Column: "id_shop_group"}, + Quantity: gormcol.Field{Table: TableNamePsStockAvailable, Column: "quantity"}, + PhysicalQuantity: gormcol.Field{Table: TableNamePsStockAvailable, Column: "physical_quantity"}, + ReservedQuantity: gormcol.Field{Table: TableNamePsStockAvailable, Column: "reserved_quantity"}, + DependsOnStock: gormcol.Field{Table: TableNamePsStockAvailable, Column: "depends_on_stock"}, + OutOfStock: gormcol.Field{Table: TableNamePsStockAvailable, Column: "out_of_stock"}, + Location: gormcol.Field{Table: TableNamePsStockAvailable, Column: "location"}, +} diff --git a/app/model/dbmodel/ps_stock_mvt.go b/app/model/dbmodel/ps_stock_mvt.go new file mode 100644 index 0000000..7ec348f --- /dev/null +++ b/app/model/dbmodel/ps_stock_mvt.go @@ -0,0 +1,70 @@ +// 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 TableNamePsStockMvt = "ps_stock_mvt" + +// PsStockMvt mapped from table +type PsStockMvt struct { + IDStockMvt int64 `gorm:"column:id_stock_mvt;primaryKey;autoIncrement:true" json:"id_stock_mvt"` + IDStock int32 `gorm:"column:id_stock;not null;index:id_stock,priority:1" json:"id_stock"` + IDOrder *int32 `gorm:"column:id_order" json:"id_order"` + IDSupplyOrder *int32 `gorm:"column:id_supply_order" json:"id_supply_order"` + IDStockMvtReason int32 `gorm:"column:id_stock_mvt_reason;not null;index:id_stock_mvt_reason,priority:1" json:"id_stock_mvt_reason"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + EmployeeLastname *string `gorm:"column:employee_lastname" json:"employee_lastname"` + EmployeeFirstname *string `gorm:"column:employee_firstname" json:"employee_firstname"` + PhysicalQuantity int32 `gorm:"column:physical_quantity;not null" json:"physical_quantity"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + Sign int32 `gorm:"column:sign;not null;default:1" json:"sign"` + PriceTe *float64 `gorm:"column:price_te;default:0.000000" json:"price_te"` + LastWa *float64 `gorm:"column:last_wa;default:0.000000" json:"last_wa"` + CurrentWa *float64 `gorm:"column:current_wa;default:0.000000" json:"current_wa"` + Referer *int64 `gorm:"column:referer" json:"referer"` +} + +// TableName PsStockMvt's table name +func (*PsStockMvt) TableName() string { + return TableNamePsStockMvt +} + +var PsStockMvtCols = struct { + IDStockMvt gormcol.Field + IDStock gormcol.Field + IDOrder gormcol.Field + IDSupplyOrder gormcol.Field + IDStockMvtReason gormcol.Field + IDEmployee gormcol.Field + EmployeeLastname gormcol.Field + EmployeeFirstname gormcol.Field + PhysicalQuantity gormcol.Field + DateAdd gormcol.Field + Sign gormcol.Field + PriceTe gormcol.Field + LastWa gormcol.Field + CurrentWa gormcol.Field + Referer gormcol.Field +}{ + IDStockMvt: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_stock_mvt"}, + IDStock: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_stock"}, + IDOrder: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_order"}, + IDSupplyOrder: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_supply_order"}, + IDStockMvtReason: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_stock_mvt_reason"}, + IDEmployee: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_employee"}, + EmployeeLastname: gormcol.Field{Table: TableNamePsStockMvt, Column: "employee_lastname"}, + EmployeeFirstname: gormcol.Field{Table: TableNamePsStockMvt, Column: "employee_firstname"}, + PhysicalQuantity: gormcol.Field{Table: TableNamePsStockMvt, Column: "physical_quantity"}, + DateAdd: gormcol.Field{Table: TableNamePsStockMvt, Column: "date_add"}, + Sign: gormcol.Field{Table: TableNamePsStockMvt, Column: "sign"}, + PriceTe: gormcol.Field{Table: TableNamePsStockMvt, Column: "price_te"}, + LastWa: gormcol.Field{Table: TableNamePsStockMvt, Column: "last_wa"}, + CurrentWa: gormcol.Field{Table: TableNamePsStockMvt, Column: "current_wa"}, + Referer: gormcol.Field{Table: TableNamePsStockMvt, Column: "referer"}, +} diff --git a/app/model/dbmodel/ps_stock_mvt_reason.go b/app/model/dbmodel/ps_stock_mvt_reason.go new file mode 100644 index 0000000..ccf944e --- /dev/null +++ b/app/model/dbmodel/ps_stock_mvt_reason.go @@ -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 TableNamePsStockMvtReason = "ps_stock_mvt_reason" + +// PsStockMvtReason mapped from table +type PsStockMvtReason struct { + IDStockMvtReason int32 `gorm:"column:id_stock_mvt_reason;primaryKey;autoIncrement:true" json:"id_stock_mvt_reason"` + Sign bool `gorm:"column:sign;not null;default:1" json:"sign"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsStockMvtReason's table name +func (*PsStockMvtReason) TableName() string { + return TableNamePsStockMvtReason +} + +var PsStockMvtReasonCols = struct { + IDStockMvtReason gormcol.Field + Sign gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Deleted gormcol.Field +}{ + IDStockMvtReason: gormcol.Field{Table: TableNamePsStockMvtReason, Column: "id_stock_mvt_reason"}, + Sign: gormcol.Field{Table: TableNamePsStockMvtReason, Column: "sign"}, + DateAdd: gormcol.Field{Table: TableNamePsStockMvtReason, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsStockMvtReason, Column: "date_upd"}, + Deleted: gormcol.Field{Table: TableNamePsStockMvtReason, Column: "deleted"}, +} diff --git a/app/model/dbmodel/ps_stock_mvt_reason_lang.go b/app/model/dbmodel/ps_stock_mvt_reason_lang.go new file mode 100644 index 0000000..afeb2ca --- /dev/null +++ b/app/model/dbmodel/ps_stock_mvt_reason_lang.go @@ -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 TableNamePsStockMvtReasonLang = "ps_stock_mvt_reason_lang" + +// PsStockMvtReasonLang mapped from table +type PsStockMvtReasonLang struct { + IDStockMvtReason int32 `gorm:"column:id_stock_mvt_reason;primaryKey" json:"id_stock_mvt_reason"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsStockMvtReasonLang's table name +func (*PsStockMvtReasonLang) TableName() string { + return TableNamePsStockMvtReasonLang +} + +var PsStockMvtReasonLangCols = struct { + IDStockMvtReason gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDStockMvtReason: gormcol.Field{Table: TableNamePsStockMvtReasonLang, Column: "id_stock_mvt_reason"}, + IDLang: gormcol.Field{Table: TableNamePsStockMvtReasonLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsStockMvtReasonLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_store.go b/app/model/dbmodel/ps_store.go new file mode 100644 index 0000000..a47fb49 --- /dev/null +++ b/app/model/dbmodel/ps_store.go @@ -0,0 +1,64 @@ +// 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 TableNamePsStore = "ps_store" + +// PsStore mapped from table +type PsStore struct { + IDStore int32 `gorm:"column:id_store;primaryKey;autoIncrement:true" json:"id_store"` + IDCountry int32 `gorm:"column:id_country;not null" json:"id_country"` + IDState *int32 `gorm:"column:id_state" json:"id_state"` + City string `gorm:"column:city;not null" json:"city"` + Postcode string `gorm:"column:postcode;not null" json:"postcode"` + Latitude *float64 `gorm:"column:latitude" json:"latitude"` + Longitude *float64 `gorm:"column:longitude" json:"longitude"` + Phone *string `gorm:"column:phone" json:"phone"` + Fax *string `gorm:"column:fax" json:"fax"` + Email *string `gorm:"column:email" json:"email"` + 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"` +} + +// TableName PsStore's table name +func (*PsStore) TableName() string { + return TableNamePsStore +} + +var PsStoreCols = struct { + IDStore gormcol.Field + IDCountry gormcol.Field + IDState gormcol.Field + City gormcol.Field + Postcode gormcol.Field + Latitude gormcol.Field + Longitude gormcol.Field + Phone gormcol.Field + Fax gormcol.Field + Email gormcol.Field + Active gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDStore: gormcol.Field{Table: TableNamePsStore, Column: "id_store"}, + IDCountry: gormcol.Field{Table: TableNamePsStore, Column: "id_country"}, + IDState: gormcol.Field{Table: TableNamePsStore, Column: "id_state"}, + City: gormcol.Field{Table: TableNamePsStore, Column: "city"}, + Postcode: gormcol.Field{Table: TableNamePsStore, Column: "postcode"}, + Latitude: gormcol.Field{Table: TableNamePsStore, Column: "latitude"}, + Longitude: gormcol.Field{Table: TableNamePsStore, Column: "longitude"}, + Phone: gormcol.Field{Table: TableNamePsStore, Column: "phone"}, + Fax: gormcol.Field{Table: TableNamePsStore, Column: "fax"}, + Email: gormcol.Field{Table: TableNamePsStore, Column: "email"}, + Active: gormcol.Field{Table: TableNamePsStore, Column: "active"}, + DateAdd: gormcol.Field{Table: TableNamePsStore, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsStore, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_store_lang.go b/app/model/dbmodel/ps_store_lang.go new file mode 100644 index 0000000..faea671 --- /dev/null +++ b/app/model/dbmodel/ps_store_lang.go @@ -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 TableNamePsStoreLang = "ps_store_lang" + +// PsStoreLang mapped from table +type PsStoreLang struct { + IDStore int32 `gorm:"column:id_store;primaryKey" json:"id_store"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Address1 string `gorm:"column:address1;not null" json:"address1"` + Address2 *string `gorm:"column:address2" json:"address2"` + Hours *string `gorm:"column:hours" json:"hours"` + Note *string `gorm:"column:note" json:"note"` +} + +// TableName PsStoreLang's table name +func (*PsStoreLang) TableName() string { + return TableNamePsStoreLang +} + +var PsStoreLangCols = struct { + IDStore gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Address1 gormcol.Field + Address2 gormcol.Field + Hours gormcol.Field + Note gormcol.Field +}{ + IDStore: gormcol.Field{Table: TableNamePsStoreLang, Column: "id_store"}, + IDLang: gormcol.Field{Table: TableNamePsStoreLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsStoreLang, Column: "name"}, + Address1: gormcol.Field{Table: TableNamePsStoreLang, Column: "address1"}, + Address2: gormcol.Field{Table: TableNamePsStoreLang, Column: "address2"}, + Hours: gormcol.Field{Table: TableNamePsStoreLang, Column: "hours"}, + Note: gormcol.Field{Table: TableNamePsStoreLang, Column: "note"}, +} diff --git a/app/model/dbmodel/ps_store_shop.go b/app/model/dbmodel/ps_store_shop.go new file mode 100644 index 0000000..d460ac6 --- /dev/null +++ b/app/model/dbmodel/ps_store_shop.go @@ -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 TableNamePsStoreShop = "ps_store_shop" + +// PsStoreShop mapped from table +type PsStoreShop struct { + IDStore int32 `gorm:"column:id_store;primaryKey" json:"id_store"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsStoreShop's table name +func (*PsStoreShop) TableName() string { + return TableNamePsStoreShop +} + +var PsStoreShopCols = struct { + IDStore gormcol.Field + IDShop gormcol.Field +}{ + IDStore: gormcol.Field{Table: TableNamePsStoreShop, Column: "id_store"}, + IDShop: gormcol.Field{Table: TableNamePsStoreShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_supplier.go b/app/model/dbmodel/ps_supplier.go new file mode 100644 index 0000000..f9ca5e4 --- /dev/null +++ b/app/model/dbmodel/ps_supplier.go @@ -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 TableNamePsSupplier = "ps_supplier" + +// PsSupplier mapped from table +type PsSupplier struct { + IDSupplier int32 `gorm:"column:id_supplier;primaryKey;autoIncrement:true" json:"id_supplier"` + 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"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsSupplier's table name +func (*PsSupplier) TableName() string { + return TableNamePsSupplier +} + +var PsSupplierCols = struct { + IDSupplier gormcol.Field + Name gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Active gormcol.Field +}{ + IDSupplier: gormcol.Field{Table: TableNamePsSupplier, Column: "id_supplier"}, + Name: gormcol.Field{Table: TableNamePsSupplier, Column: "name"}, + DateAdd: gormcol.Field{Table: TableNamePsSupplier, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsSupplier, Column: "date_upd"}, + Active: gormcol.Field{Table: TableNamePsSupplier, Column: "active"}, +} diff --git a/app/model/dbmodel/ps_supplier_lang.go b/app/model/dbmodel/ps_supplier_lang.go new file mode 100644 index 0000000..96bb560 --- /dev/null +++ b/app/model/dbmodel/ps_supplier_lang.go @@ -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 TableNamePsSupplierLang = "ps_supplier_lang" + +// PsSupplierLang mapped from table +type PsSupplierLang struct { + IDSupplier int32 `gorm:"column:id_supplier;primaryKey" json:"id_supplier"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Description *string `gorm:"column:description" json:"description"` + 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 PsSupplierLang's table name +func (*PsSupplierLang) TableName() string { + return TableNamePsSupplierLang +} + +var PsSupplierLangCols = struct { + IDSupplier gormcol.Field + IDLang gormcol.Field + Description gormcol.Field + MetaTitle gormcol.Field + MetaKeywords gormcol.Field + MetaDescription gormcol.Field +}{ + IDSupplier: gormcol.Field{Table: TableNamePsSupplierLang, Column: "id_supplier"}, + IDLang: gormcol.Field{Table: TableNamePsSupplierLang, Column: "id_lang"}, + Description: gormcol.Field{Table: TableNamePsSupplierLang, Column: "description"}, + MetaTitle: gormcol.Field{Table: TableNamePsSupplierLang, Column: "meta_title"}, + MetaKeywords: gormcol.Field{Table: TableNamePsSupplierLang, Column: "meta_keywords"}, + MetaDescription: gormcol.Field{Table: TableNamePsSupplierLang, Column: "meta_description"}, +} diff --git a/app/model/dbmodel/ps_supplier_shop.go b/app/model/dbmodel/ps_supplier_shop.go new file mode 100644 index 0000000..d08b4f5 --- /dev/null +++ b/app/model/dbmodel/ps_supplier_shop.go @@ -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 TableNamePsSupplierShop = "ps_supplier_shop" + +// PsSupplierShop mapped from table +type PsSupplierShop struct { + IDSupplier int32 `gorm:"column:id_supplier;primaryKey" json:"id_supplier"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsSupplierShop's table name +func (*PsSupplierShop) TableName() string { + return TableNamePsSupplierShop +} + +var PsSupplierShopCols = struct { + IDSupplier gormcol.Field + IDShop gormcol.Field +}{ + IDSupplier: gormcol.Field{Table: TableNamePsSupplierShop, Column: "id_supplier"}, + IDShop: gormcol.Field{Table: TableNamePsSupplierShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_supply_order.go b/app/model/dbmodel/ps_supply_order.go new file mode 100644 index 0000000..6c59dbd --- /dev/null +++ b/app/model/dbmodel/ps_supply_order.go @@ -0,0 +1,82 @@ +// 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 TableNamePsSupplyOrder = "ps_supply_order" + +// PsSupplyOrder mapped from table +type PsSupplyOrder struct { + IDSupplyOrder int32 `gorm:"column:id_supply_order;primaryKey;autoIncrement:true" json:"id_supply_order"` + IDSupplier int32 `gorm:"column:id_supplier;not null;index:id_supplier,priority:1" json:"id_supplier"` + SupplierName string `gorm:"column:supplier_name;not null" json:"supplier_name"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` + IDWarehouse int32 `gorm:"column:id_warehouse;not null;index:id_warehouse,priority:1" json:"id_warehouse"` + IDSupplyOrderState int32 `gorm:"column:id_supply_order_state;not null" json:"id_supply_order_state"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` + IDRefCurrency int32 `gorm:"column:id_ref_currency;not null" json:"id_ref_currency"` + Reference string `gorm:"column:reference;not null;index:reference,priority:1" json:"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"` + DateDeliveryExpected *time.Time `gorm:"column:date_delivery_expected" json:"date_delivery_expected"` + TotalTe *float64 `gorm:"column:total_te;default:0.000000" json:"total_te"` + TotalWithDiscountTe *float64 `gorm:"column:total_with_discount_te;default:0.000000" json:"total_with_discount_te"` + TotalTax *float64 `gorm:"column:total_tax;default:0.000000" json:"total_tax"` + TotalTi *float64 `gorm:"column:total_ti;default:0.000000" json:"total_ti"` + DiscountRate *float64 `gorm:"column:discount_rate;default:0.000000" json:"discount_rate"` + DiscountValueTe *float64 `gorm:"column:discount_value_te;default:0.000000" json:"discount_value_te"` + IsTemplate *bool `gorm:"column:is_template" json:"is_template"` +} + +// TableName PsSupplyOrder's table name +func (*PsSupplyOrder) TableName() string { + return TableNamePsSupplyOrder +} + +var PsSupplyOrderCols = struct { + IDSupplyOrder gormcol.Field + IDSupplier gormcol.Field + SupplierName gormcol.Field + IDLang gormcol.Field + IDWarehouse gormcol.Field + IDSupplyOrderState gormcol.Field + IDCurrency gormcol.Field + IDRefCurrency gormcol.Field + Reference gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + DateDeliveryExpected gormcol.Field + TotalTe gormcol.Field + TotalWithDiscountTe gormcol.Field + TotalTax gormcol.Field + TotalTi gormcol.Field + DiscountRate gormcol.Field + DiscountValueTe gormcol.Field + IsTemplate gormcol.Field +}{ + IDSupplyOrder: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "id_supply_order"}, + IDSupplier: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "id_supplier"}, + SupplierName: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "supplier_name"}, + IDLang: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "id_lang"}, + IDWarehouse: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "id_warehouse"}, + IDSupplyOrderState: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "id_supply_order_state"}, + IDCurrency: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "id_currency"}, + IDRefCurrency: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "id_ref_currency"}, + Reference: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "reference"}, + DateAdd: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "date_upd"}, + DateDeliveryExpected: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "date_delivery_expected"}, + TotalTe: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "total_te"}, + TotalWithDiscountTe: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "total_with_discount_te"}, + TotalTax: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "total_tax"}, + TotalTi: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "total_ti"}, + DiscountRate: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "discount_rate"}, + DiscountValueTe: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "discount_value_te"}, + IsTemplate: gormcol.Field{Table: TableNamePsSupplyOrder, Column: "is_template"}, +} diff --git a/app/model/dbmodel/ps_supply_order_detail.go b/app/model/dbmodel/ps_supply_order_detail.go new file mode 100644 index 0000000..3326989 --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_detail.go @@ -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" + +const TableNamePsSupplyOrderDetail = "ps_supply_order_detail" + +// PsSupplyOrderDetail mapped from table +type PsSupplyOrderDetail struct { + IDSupplyOrderDetail int32 `gorm:"column:id_supply_order_detail;primaryKey;autoIncrement:true" json:"id_supply_order_detail"` + IDSupplyOrder int32 `gorm:"column:id_supply_order;not null;index:id_supply_order,priority:1" json:"id_supply_order"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` + IDProduct int32 `gorm:"column:id_product;not null;index:id_product_product_attribute,priority:1;index:id_supply_order,priority:2" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;index:id_product_attribute,priority:1;index:id_product_product_attribute,priority:2" json:"id_product_attribute"` + Reference string `gorm:"column:reference;not null" json:"reference"` + SupplierReference string `gorm:"column:supplier_reference;not null" json:"supplier_reference"` + Name string `gorm:"column:name;not null" json:"name"` + Ean13 *string `gorm:"column:ean13" json:"ean13"` + Isbn *string `gorm:"column:isbn" json:"isbn"` + Upc *string `gorm:"column:upc" json:"upc"` + ExchangeRate *float64 `gorm:"column:exchange_rate;default:0.000000" json:"exchange_rate"` + UnitPriceTe *float64 `gorm:"column:unit_price_te;default:0.000000" json:"unit_price_te"` + QuantityExpected int32 `gorm:"column:quantity_expected;not null" json:"quantity_expected"` + QuantityReceived int32 `gorm:"column:quantity_received;not null" json:"quantity_received"` + PriceTe *float64 `gorm:"column:price_te;default:0.000000" json:"price_te"` + DiscountRate *float64 `gorm:"column:discount_rate;default:0.000000" json:"discount_rate"` + DiscountValueTe *float64 `gorm:"column:discount_value_te;default:0.000000" json:"discount_value_te"` + PriceWithDiscountTe *float64 `gorm:"column:price_with_discount_te;default:0.000000" json:"price_with_discount_te"` + TaxRate *float64 `gorm:"column:tax_rate;default:0.000000" json:"tax_rate"` + TaxValue *float64 `gorm:"column:tax_value;default:0.000000" json:"tax_value"` + PriceTi *float64 `gorm:"column:price_ti;default:0.000000" json:"price_ti"` + TaxValueWithOrderDiscount *float64 `gorm:"column:tax_value_with_order_discount;default:0.000000" json:"tax_value_with_order_discount"` + PriceWithOrderDiscountTe *float64 `gorm:"column:price_with_order_discount_te;default:0.000000" json:"price_with_order_discount_te"` +} + +// TableName PsSupplyOrderDetail's table name +func (*PsSupplyOrderDetail) TableName() string { + return TableNamePsSupplyOrderDetail +} + +var PsSupplyOrderDetailCols = struct { + IDSupplyOrderDetail gormcol.Field + IDSupplyOrder gormcol.Field + IDCurrency gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + Reference gormcol.Field + SupplierReference gormcol.Field + Name gormcol.Field + Ean13 gormcol.Field + Isbn gormcol.Field + Upc gormcol.Field + ExchangeRate gormcol.Field + UnitPriceTe gormcol.Field + QuantityExpected gormcol.Field + QuantityReceived gormcol.Field + PriceTe gormcol.Field + DiscountRate gormcol.Field + DiscountValueTe gormcol.Field + PriceWithDiscountTe gormcol.Field + TaxRate gormcol.Field + TaxValue gormcol.Field + PriceTi gormcol.Field + TaxValueWithOrderDiscount gormcol.Field + PriceWithOrderDiscountTe gormcol.Field +}{ + IDSupplyOrderDetail: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "id_supply_order_detail"}, + IDSupplyOrder: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "id_supply_order"}, + IDCurrency: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "id_currency"}, + IDProduct: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "id_product"}, + IDProductAttribute: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "id_product_attribute"}, + Reference: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "reference"}, + SupplierReference: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "supplier_reference"}, + Name: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "name"}, + Ean13: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "ean13"}, + Isbn: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "isbn"}, + Upc: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "upc"}, + ExchangeRate: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "exchange_rate"}, + UnitPriceTe: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "unit_price_te"}, + QuantityExpected: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "quantity_expected"}, + QuantityReceived: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "quantity_received"}, + PriceTe: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "price_te"}, + DiscountRate: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "discount_rate"}, + DiscountValueTe: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "discount_value_te"}, + PriceWithDiscountTe: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "price_with_discount_te"}, + TaxRate: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "tax_rate"}, + TaxValue: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "tax_value"}, + PriceTi: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "price_ti"}, + TaxValueWithOrderDiscount: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "tax_value_with_order_discount"}, + PriceWithOrderDiscountTe: gormcol.Field{Table: TableNamePsSupplyOrderDetail, Column: "price_with_order_discount_te"}, +} diff --git a/app/model/dbmodel/ps_supply_order_history.go b/app/model/dbmodel/ps_supply_order_history.go new file mode 100644 index 0000000..1dd485c --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_history.go @@ -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 TableNamePsSupplyOrderHistory = "ps_supply_order_history" + +// PsSupplyOrderHistory mapped from table +type PsSupplyOrderHistory struct { + IDSupplyOrderHistory int32 `gorm:"column:id_supply_order_history;primaryKey;autoIncrement:true" json:"id_supply_order_history"` + IDSupplyOrder int32 `gorm:"column:id_supply_order;not null;index:id_supply_order,priority:1" json:"id_supply_order"` + IDEmployee int32 `gorm:"column:id_employee;not null;index:id_employee,priority:1" json:"id_employee"` + EmployeeLastname *string `gorm:"column:employee_lastname" json:"employee_lastname"` + EmployeeFirstname *string `gorm:"column:employee_firstname" json:"employee_firstname"` + IDState int32 `gorm:"column:id_state;not null;index:id_state,priority:1" json:"id_state"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsSupplyOrderHistory's table name +func (*PsSupplyOrderHistory) TableName() string { + return TableNamePsSupplyOrderHistory +} + +var PsSupplyOrderHistoryCols = struct { + IDSupplyOrderHistory gormcol.Field + IDSupplyOrder gormcol.Field + IDEmployee gormcol.Field + EmployeeLastname gormcol.Field + EmployeeFirstname gormcol.Field + IDState gormcol.Field + DateAdd gormcol.Field +}{ + IDSupplyOrderHistory: gormcol.Field{Table: TableNamePsSupplyOrderHistory, Column: "id_supply_order_history"}, + IDSupplyOrder: gormcol.Field{Table: TableNamePsSupplyOrderHistory, Column: "id_supply_order"}, + IDEmployee: gormcol.Field{Table: TableNamePsSupplyOrderHistory, Column: "id_employee"}, + EmployeeLastname: gormcol.Field{Table: TableNamePsSupplyOrderHistory, Column: "employee_lastname"}, + EmployeeFirstname: gormcol.Field{Table: TableNamePsSupplyOrderHistory, Column: "employee_firstname"}, + IDState: gormcol.Field{Table: TableNamePsSupplyOrderHistory, Column: "id_state"}, + DateAdd: gormcol.Field{Table: TableNamePsSupplyOrderHistory, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_supply_order_receipt_history.go b/app/model/dbmodel/ps_supply_order_receipt_history.go new file mode 100644 index 0000000..924752a --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_receipt_history.go @@ -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 TableNamePsSupplyOrderReceiptHistory = "ps_supply_order_receipt_history" + +// PsSupplyOrderReceiptHistory mapped from table +type PsSupplyOrderReceiptHistory struct { + IDSupplyOrderReceiptHistory int32 `gorm:"column:id_supply_order_receipt_history;primaryKey;autoIncrement:true" json:"id_supply_order_receipt_history"` + IDSupplyOrderDetail int32 `gorm:"column:id_supply_order_detail;not null;index:id_supply_order_detail,priority:1" json:"id_supply_order_detail"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + EmployeeLastname *string `gorm:"column:employee_lastname" json:"employee_lastname"` + EmployeeFirstname *string `gorm:"column:employee_firstname" json:"employee_firstname"` + IDSupplyOrderState int32 `gorm:"column:id_supply_order_state;not null;index:id_supply_order_state,priority:1" json:"id_supply_order_state"` + Quantity int32 `gorm:"column:quantity;not null" json:"quantity"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsSupplyOrderReceiptHistory's table name +func (*PsSupplyOrderReceiptHistory) TableName() string { + return TableNamePsSupplyOrderReceiptHistory +} + +var PsSupplyOrderReceiptHistoryCols = struct { + IDSupplyOrderReceiptHistory gormcol.Field + IDSupplyOrderDetail gormcol.Field + IDEmployee gormcol.Field + EmployeeLastname gormcol.Field + EmployeeFirstname gormcol.Field + IDSupplyOrderState gormcol.Field + Quantity gormcol.Field + DateAdd gormcol.Field +}{ + IDSupplyOrderReceiptHistory: gormcol.Field{Table: TableNamePsSupplyOrderReceiptHistory, Column: "id_supply_order_receipt_history"}, + IDSupplyOrderDetail: gormcol.Field{Table: TableNamePsSupplyOrderReceiptHistory, Column: "id_supply_order_detail"}, + IDEmployee: gormcol.Field{Table: TableNamePsSupplyOrderReceiptHistory, Column: "id_employee"}, + EmployeeLastname: gormcol.Field{Table: TableNamePsSupplyOrderReceiptHistory, Column: "employee_lastname"}, + EmployeeFirstname: gormcol.Field{Table: TableNamePsSupplyOrderReceiptHistory, Column: "employee_firstname"}, + IDSupplyOrderState: gormcol.Field{Table: TableNamePsSupplyOrderReceiptHistory, Column: "id_supply_order_state"}, + Quantity: gormcol.Field{Table: TableNamePsSupplyOrderReceiptHistory, Column: "quantity"}, + DateAdd: gormcol.Field{Table: TableNamePsSupplyOrderReceiptHistory, Column: "date_add"}, +} diff --git a/app/model/dbmodel/ps_supply_order_state.go b/app/model/dbmodel/ps_supply_order_state.go new file mode 100644 index 0000000..908b210 --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_state.go @@ -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 TableNamePsSupplyOrderState = "ps_supply_order_state" + +// PsSupplyOrderState mapped from table +type PsSupplyOrderState struct { + IDSupplyOrderState int32 `gorm:"column:id_supply_order_state;primaryKey;autoIncrement:true" json:"id_supply_order_state"` + DeliveryNote bool `gorm:"column:delivery_note;not null" json:"delivery_note"` + Editable bool `gorm:"column:editable;not null" json:"editable"` + ReceiptState bool `gorm:"column:receipt_state;not null" json:"receipt_state"` + PendingReceipt bool `gorm:"column:pending_receipt;not null" json:"pending_receipt"` + Enclosed bool `gorm:"column:enclosed;not null" json:"enclosed"` + Color *string `gorm:"column:color" json:"color"` +} + +// TableName PsSupplyOrderState's table name +func (*PsSupplyOrderState) TableName() string { + return TableNamePsSupplyOrderState +} + +var PsSupplyOrderStateCols = struct { + IDSupplyOrderState gormcol.Field + DeliveryNote gormcol.Field + Editable gormcol.Field + ReceiptState gormcol.Field + PendingReceipt gormcol.Field + Enclosed gormcol.Field + Color gormcol.Field +}{ + IDSupplyOrderState: gormcol.Field{Table: TableNamePsSupplyOrderState, Column: "id_supply_order_state"}, + DeliveryNote: gormcol.Field{Table: TableNamePsSupplyOrderState, Column: "delivery_note"}, + Editable: gormcol.Field{Table: TableNamePsSupplyOrderState, Column: "editable"}, + ReceiptState: gormcol.Field{Table: TableNamePsSupplyOrderState, Column: "receipt_state"}, + PendingReceipt: gormcol.Field{Table: TableNamePsSupplyOrderState, Column: "pending_receipt"}, + Enclosed: gormcol.Field{Table: TableNamePsSupplyOrderState, Column: "enclosed"}, + Color: gormcol.Field{Table: TableNamePsSupplyOrderState, Column: "color"}, +} diff --git a/app/model/dbmodel/ps_supply_order_state_lang.go b/app/model/dbmodel/ps_supply_order_state_lang.go new file mode 100644 index 0000000..da5fd1b --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_state_lang.go @@ -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 TableNamePsSupplyOrderStateLang = "ps_supply_order_state_lang" + +// PsSupplyOrderStateLang mapped from table +type PsSupplyOrderStateLang struct { + IDSupplyOrderState int32 `gorm:"column:id_supply_order_state;primaryKey" json:"id_supply_order_state"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name *string `gorm:"column:name" json:"name"` +} + +// TableName PsSupplyOrderStateLang's table name +func (*PsSupplyOrderStateLang) TableName() string { + return TableNamePsSupplyOrderStateLang +} + +var PsSupplyOrderStateLangCols = struct { + IDSupplyOrderState gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDSupplyOrderState: gormcol.Field{Table: TableNamePsSupplyOrderStateLang, Column: "id_supply_order_state"}, + IDLang: gormcol.Field{Table: TableNamePsSupplyOrderStateLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsSupplyOrderStateLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_tab.go b/app/model/dbmodel/ps_tab.go new file mode 100644 index 0000000..e35a144 --- /dev/null +++ b/app/model/dbmodel/ps_tab.go @@ -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 TableNamePsTab = "ps_tab" + +// PsTab mapped from table +type PsTab struct { + IDTab int32 `gorm:"column:id_tab;primaryKey;autoIncrement:true" json:"id_tab"` + IDParent int32 `gorm:"column:id_parent;not null" json:"id_parent"` + Position int32 `gorm:"column:position;not null" json:"position"` + Module *string `gorm:"column:module" json:"module"` + ClassName *string `gorm:"column:class_name" json:"class_name"` + Active bool `gorm:"column:active;not null" json:"active"` + HideHostMode bool `gorm:"column:hide_host_mode;not null" json:"hide_host_mode"` + Icon *string `gorm:"column:icon" json:"icon"` +} + +// TableName PsTab's table name +func (*PsTab) TableName() string { + return TableNamePsTab +} + +var PsTabCols = struct { + IDTab gormcol.Field + IDParent gormcol.Field + Position gormcol.Field + Module gormcol.Field + ClassName gormcol.Field + Active gormcol.Field + HideHostMode gormcol.Field + Icon gormcol.Field +}{ + IDTab: gormcol.Field{Table: TableNamePsTab, Column: "id_tab"}, + IDParent: gormcol.Field{Table: TableNamePsTab, Column: "id_parent"}, + Position: gormcol.Field{Table: TableNamePsTab, Column: "position"}, + Module: gormcol.Field{Table: TableNamePsTab, Column: "module"}, + ClassName: gormcol.Field{Table: TableNamePsTab, Column: "class_name"}, + Active: gormcol.Field{Table: TableNamePsTab, Column: "active"}, + HideHostMode: gormcol.Field{Table: TableNamePsTab, Column: "hide_host_mode"}, + Icon: gormcol.Field{Table: TableNamePsTab, Column: "icon"}, +} diff --git a/app/model/dbmodel/ps_tab_advice.go b/app/model/dbmodel/ps_tab_advice.go new file mode 100644 index 0000000..64194e4 --- /dev/null +++ b/app/model/dbmodel/ps_tab_advice.go @@ -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 TableNamePsTabAdvice = "ps_tab_advice" + +// PsTabAdvice mapped from table +type PsTabAdvice struct { + IDTab int32 `gorm:"column:id_tab;primaryKey" json:"id_tab"` + IDAdvice int32 `gorm:"column:id_advice;primaryKey" json:"id_advice"` +} + +// TableName PsTabAdvice's table name +func (*PsTabAdvice) TableName() string { + return TableNamePsTabAdvice +} + +var PsTabAdviceCols = struct { + IDTab gormcol.Field + IDAdvice gormcol.Field +}{ + IDTab: gormcol.Field{Table: TableNamePsTabAdvice, Column: "id_tab"}, + IDAdvice: gormcol.Field{Table: TableNamePsTabAdvice, Column: "id_advice"}, +} diff --git a/app/model/dbmodel/ps_tab_lang.go b/app/model/dbmodel/ps_tab_lang.go new file mode 100644 index 0000000..2303f14 --- /dev/null +++ b/app/model/dbmodel/ps_tab_lang.go @@ -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 TableNamePsTabLang = "ps_tab_lang" + +// PsTabLang mapped from table +type PsTabLang struct { + IDTab int32 `gorm:"column:id_tab;primaryKey;index:IDX_CFD9262DED47AB56,priority:1" json:"id_tab"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:IDX_CFD9262DBA299860,priority:1" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsTabLang's table name +func (*PsTabLang) TableName() string { + return TableNamePsTabLang +} + +var PsTabLangCols = struct { + IDTab gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDTab: gormcol.Field{Table: TableNamePsTabLang, Column: "id_tab"}, + IDLang: gormcol.Field{Table: TableNamePsTabLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsTabLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_tab_module_preference.go b/app/model/dbmodel/ps_tab_module_preference.go new file mode 100644 index 0000000..55eee84 --- /dev/null +++ b/app/model/dbmodel/ps_tab_module_preference.go @@ -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 TableNamePsTabModulePreference = "ps_tab_module_preference" + +// PsTabModulePreference mapped from table +type PsTabModulePreference struct { + IDTabModulePreference int32 `gorm:"column:id_tab_module_preference;primaryKey;autoIncrement:true" json:"id_tab_module_preference"` + IDEmployee int32 `gorm:"column:id_employee;not null;uniqueIndex:employee_module,priority:1" json:"id_employee"` + IDTab int32 `gorm:"column:id_tab;not null;uniqueIndex:employee_module,priority:2" json:"id_tab"` + Module string `gorm:"column:module;not null;uniqueIndex:employee_module,priority:3" json:"module"` +} + +// TableName PsTabModulePreference's table name +func (*PsTabModulePreference) TableName() string { + return TableNamePsTabModulePreference +} + +var PsTabModulePreferenceCols = struct { + IDTabModulePreference gormcol.Field + IDEmployee gormcol.Field + IDTab gormcol.Field + Module gormcol.Field +}{ + IDTabModulePreference: gormcol.Field{Table: TableNamePsTabModulePreference, Column: "id_tab_module_preference"}, + IDEmployee: gormcol.Field{Table: TableNamePsTabModulePreference, Column: "id_employee"}, + IDTab: gormcol.Field{Table: TableNamePsTabModulePreference, Column: "id_tab"}, + Module: gormcol.Field{Table: TableNamePsTabModulePreference, Column: "module"}, +} diff --git a/app/model/dbmodel/ps_tag.go b/app/model/dbmodel/ps_tag.go new file mode 100644 index 0000000..68c2245 --- /dev/null +++ b/app/model/dbmodel/ps_tag.go @@ -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 TableNamePsTag = "ps_tag" + +// PsTag mapped from table +type PsTag struct { + IDTag int32 `gorm:"column:id_tag;primaryKey;autoIncrement:true" json:"id_tag"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"` + Name string `gorm:"column:name;not null;index:tag_name,priority:1" json:"name"` +} + +// TableName PsTag's table name +func (*PsTag) TableName() string { + return TableNamePsTag +} + +var PsTagCols = struct { + IDTag gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDTag: gormcol.Field{Table: TableNamePsTag, Column: "id_tag"}, + IDLang: gormcol.Field{Table: TableNamePsTag, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsTag, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_tag_count.go b/app/model/dbmodel/ps_tag_count.go new file mode 100644 index 0000000..f0a1ffe --- /dev/null +++ b/app/model/dbmodel/ps_tag_count.go @@ -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 TableNamePsTagCount = "ps_tag_count" + +// PsTagCount mapped from table +type PsTagCount struct { + IDGroup int32 `gorm:"column:id_group;primaryKey;index:id_group,priority:1" json:"id_group"` + IDTag int32 `gorm:"column:id_tag;primaryKey" json:"id_tag"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_group,priority:2" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_group,priority:3" json:"id_shop"` + Counter int32 `gorm:"column:counter;not null;index:id_group,priority:4" json:"counter"` +} + +// TableName PsTagCount's table name +func (*PsTagCount) TableName() string { + return TableNamePsTagCount +} + +var PsTagCountCols = struct { + IDGroup gormcol.Field + IDTag gormcol.Field + IDLang gormcol.Field + IDShop gormcol.Field + Counter gormcol.Field +}{ + IDGroup: gormcol.Field{Table: TableNamePsTagCount, Column: "id_group"}, + IDTag: gormcol.Field{Table: TableNamePsTagCount, Column: "id_tag"}, + IDLang: gormcol.Field{Table: TableNamePsTagCount, Column: "id_lang"}, + IDShop: gormcol.Field{Table: TableNamePsTagCount, Column: "id_shop"}, + Counter: gormcol.Field{Table: TableNamePsTagCount, Column: "counter"}, +} diff --git a/app/model/dbmodel/ps_tax.go b/app/model/dbmodel/ps_tax.go new file mode 100644 index 0000000..9df38aa --- /dev/null +++ b/app/model/dbmodel/ps_tax.go @@ -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 TableNamePsTax = "ps_tax" + +// PsTax mapped from table +type PsTax struct { + IDTax int32 `gorm:"column:id_tax;primaryKey;autoIncrement:true" json:"id_tax"` + Rate float64 `gorm:"column:rate;not null" json:"rate"` + Active bool `gorm:"column:active;not null;default:1" json:"active"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsTax's table name +func (*PsTax) TableName() string { + return TableNamePsTax +} + +var PsTaxCols = struct { + IDTax gormcol.Field + Rate gormcol.Field + Active gormcol.Field + Deleted gormcol.Field +}{ + IDTax: gormcol.Field{Table: TableNamePsTax, Column: "id_tax"}, + Rate: gormcol.Field{Table: TableNamePsTax, Column: "rate"}, + Active: gormcol.Field{Table: TableNamePsTax, Column: "active"}, + Deleted: gormcol.Field{Table: TableNamePsTax, Column: "deleted"}, +} diff --git a/app/model/dbmodel/ps_tax_lang.go b/app/model/dbmodel/ps_tax_lang.go new file mode 100644 index 0000000..74879c7 --- /dev/null +++ b/app/model/dbmodel/ps_tax_lang.go @@ -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 TableNamePsTaxLang = "ps_tax_lang" + +// PsTaxLang mapped from table +type PsTaxLang struct { + IDTax int32 `gorm:"column:id_tax;primaryKey" json:"id_tax"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsTaxLang's table name +func (*PsTaxLang) TableName() string { + return TableNamePsTaxLang +} + +var PsTaxLangCols = struct { + IDTax gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDTax: gormcol.Field{Table: TableNamePsTaxLang, Column: "id_tax"}, + IDLang: gormcol.Field{Table: TableNamePsTaxLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsTaxLang, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_tax_rule.go b/app/model/dbmodel/ps_tax_rule.go new file mode 100644 index 0000000..a717892 --- /dev/null +++ b/app/model/dbmodel/ps_tax_rule.go @@ -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 TableNamePsTaxRule = "ps_tax_rule" + +// PsTaxRule mapped from table +type PsTaxRule struct { + IDTaxRule int32 `gorm:"column:id_tax_rule;primaryKey;autoIncrement:true" json:"id_tax_rule"` + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;not null;index:category_getproducts,priority:1;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"` + IDCountry int32 `gorm:"column:id_country;not null;index:category_getproducts,priority:2" json:"id_country"` + IDState int32 `gorm:"column:id_state;not null;index:category_getproducts,priority:3" json:"id_state"` + ZipcodeFrom string `gorm:"column:zipcode_from;not null;index:category_getproducts,priority:4" json:"zipcode_from"` + ZipcodeTo string `gorm:"column:zipcode_to;not null" json:"zipcode_to"` + IDTax int32 `gorm:"column:id_tax;not null;index:id_tax,priority:1" json:"id_tax"` + Behavior int32 `gorm:"column:behavior;not null" json:"behavior"` + Description string `gorm:"column:description;not null" json:"description"` +} + +// TableName PsTaxRule's table name +func (*PsTaxRule) TableName() string { + return TableNamePsTaxRule +} + +var PsTaxRuleCols = struct { + IDTaxRule gormcol.Field + IDTaxRulesGroup gormcol.Field + IDCountry gormcol.Field + IDState gormcol.Field + ZipcodeFrom gormcol.Field + ZipcodeTo gormcol.Field + IDTax gormcol.Field + Behavior gormcol.Field + Description gormcol.Field +}{ + IDTaxRule: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_tax_rule"}, + IDTaxRulesGroup: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_tax_rules_group"}, + IDCountry: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_country"}, + IDState: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_state"}, + ZipcodeFrom: gormcol.Field{Table: TableNamePsTaxRule, Column: "zipcode_from"}, + ZipcodeTo: gormcol.Field{Table: TableNamePsTaxRule, Column: "zipcode_to"}, + IDTax: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_tax"}, + Behavior: gormcol.Field{Table: TableNamePsTaxRule, Column: "behavior"}, + Description: gormcol.Field{Table: TableNamePsTaxRule, Column: "description"}, +} diff --git a/app/model/dbmodel/ps_tax_rules_group.go b/app/model/dbmodel/ps_tax_rules_group.go new file mode 100644 index 0000000..9e84b03 --- /dev/null +++ b/app/model/dbmodel/ps_tax_rules_group.go @@ -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 TableNamePsTaxRulesGroup = "ps_tax_rules_group" + +// PsTaxRulesGroup mapped from table +type PsTaxRulesGroup struct { + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;primaryKey;autoIncrement:true" json:"id_tax_rules_group"` + Name string `gorm:"column:name;not null" json:"name"` + Active int32 `gorm:"column:active;not null" json:"active"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` + 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 PsTaxRulesGroup's table name +func (*PsTaxRulesGroup) TableName() string { + return TableNamePsTaxRulesGroup +} + +var PsTaxRulesGroupCols = struct { + IDTaxRulesGroup gormcol.Field + Name gormcol.Field + Active gormcol.Field + Deleted gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDTaxRulesGroup: gormcol.Field{Table: TableNamePsTaxRulesGroup, Column: "id_tax_rules_group"}, + Name: gormcol.Field{Table: TableNamePsTaxRulesGroup, Column: "name"}, + Active: gormcol.Field{Table: TableNamePsTaxRulesGroup, Column: "active"}, + Deleted: gormcol.Field{Table: TableNamePsTaxRulesGroup, Column: "deleted"}, + DateAdd: gormcol.Field{Table: TableNamePsTaxRulesGroup, Column: "date_add"}, + DateUpd: gormcol.Field{Table: TableNamePsTaxRulesGroup, Column: "date_upd"}, +} diff --git a/app/model/dbmodel/ps_tax_rules_group_shop.go b/app/model/dbmodel/ps_tax_rules_group_shop.go new file mode 100644 index 0000000..1f2fc87 --- /dev/null +++ b/app/model/dbmodel/ps_tax_rules_group_shop.go @@ -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 TableNamePsTaxRulesGroupShop = "ps_tax_rules_group_shop" + +// PsTaxRulesGroupShop mapped from table +type PsTaxRulesGroupShop struct { + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;primaryKey" json:"id_tax_rules_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsTaxRulesGroupShop's table name +func (*PsTaxRulesGroupShop) TableName() string { + return TableNamePsTaxRulesGroupShop +} + +var PsTaxRulesGroupShopCols = struct { + IDTaxRulesGroup gormcol.Field + IDShop gormcol.Field +}{ + IDTaxRulesGroup: gormcol.Field{Table: TableNamePsTaxRulesGroupShop, Column: "id_tax_rules_group"}, + IDShop: gormcol.Field{Table: TableNamePsTaxRulesGroupShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_timezone.go b/app/model/dbmodel/ps_timezone.go new file mode 100644 index 0000000..7716c4c --- /dev/null +++ b/app/model/dbmodel/ps_timezone.go @@ -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 TableNamePsTimezone = "ps_timezone" + +// PsTimezone mapped from table +type PsTimezone struct { + IDTimezone int32 `gorm:"column:id_timezone;primaryKey;autoIncrement:true" json:"id_timezone"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsTimezone's table name +func (*PsTimezone) TableName() string { + return TableNamePsTimezone +} + +var PsTimezoneCols = struct { + IDTimezone gormcol.Field + Name gormcol.Field +}{ + IDTimezone: gormcol.Field{Table: TableNamePsTimezone, Column: "id_timezone"}, + Name: gormcol.Field{Table: TableNamePsTimezone, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_translation.go b/app/model/dbmodel/ps_translation.go new file mode 100644 index 0000000..f9e449e --- /dev/null +++ b/app/model/dbmodel/ps_translation.go @@ -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 TableNamePsTranslation = "ps_translation" + +// PsTranslation mapped from table +type PsTranslation struct { + IDTranslation int32 `gorm:"column:id_translation;primaryKey;autoIncrement:true" json:"id_translation"` + IDLang int32 `gorm:"column:id_lang;not null;index:IDX_ADEBEB36BA299860,priority:1" json:"id_lang"` + Key string `gorm:"column:key;not null" json:"key"` + Translation string `gorm:"column:translation;not null" json:"translation"` + Domain string `gorm:"column:domain;not null;index:key,priority:1" json:"domain"` + Theme *string `gorm:"column:theme" json:"theme"` +} + +// TableName PsTranslation's table name +func (*PsTranslation) TableName() string { + return TableNamePsTranslation +} + +var PsTranslationCols = struct { + IDTranslation gormcol.Field + IDLang gormcol.Field + Key gormcol.Field + Translation gormcol.Field + Domain gormcol.Field + Theme gormcol.Field +}{ + IDTranslation: gormcol.Field{Table: TableNamePsTranslation, Column: "id_translation"}, + IDLang: gormcol.Field{Table: TableNamePsTranslation, Column: "id_lang"}, + Key: gormcol.Field{Table: TableNamePsTranslation, Column: "key"}, + Translation: gormcol.Field{Table: TableNamePsTranslation, Column: "translation"}, + Domain: gormcol.Field{Table: TableNamePsTranslation, Column: "domain"}, + Theme: gormcol.Field{Table: TableNamePsTranslation, Column: "theme"}, +} diff --git a/app/model/dbmodel/ps_unit.go b/app/model/dbmodel/ps_unit.go new file mode 100644 index 0000000..9ce19bb --- /dev/null +++ b/app/model/dbmodel/ps_unit.go @@ -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 TableNamePsUnit = "ps_unit" + +// PsUnit mapped from table +type PsUnit struct { + IDUnit int32 `gorm:"column:id_unit;primaryKey;autoIncrement:true" json:"id_unit"` + Precision int32 `gorm:"column:precision;not null" json:"precision"` +} + +// TableName PsUnit's table name +func (*PsUnit) TableName() string { + return TableNamePsUnit +} + +var PsUnitCols = struct { + IDUnit gormcol.Field + Precision gormcol.Field +}{ + IDUnit: gormcol.Field{Table: TableNamePsUnit, Column: "id_unit"}, + Precision: gormcol.Field{Table: TableNamePsUnit, Column: "precision"}, +} diff --git a/app/model/dbmodel/ps_unit_lang.go b/app/model/dbmodel/ps_unit_lang.go new file mode 100644 index 0000000..3f8e191 --- /dev/null +++ b/app/model/dbmodel/ps_unit_lang.go @@ -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 TableNamePsUnitLang = "ps_unit_lang" + +// PsUnitLang mapped from table +type PsUnitLang struct { + IDUnit int32 `gorm:"column:id_unit;not null" json:"id_unit"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Symbol string `gorm:"column:symbol;not null" json:"symbol"` +} + +// TableName PsUnitLang's table name +func (*PsUnitLang) TableName() string { + return TableNamePsUnitLang +} + +var PsUnitLangCols = struct { + IDUnit gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Symbol gormcol.Field +}{ + IDUnit: gormcol.Field{Table: TableNamePsUnitLang, Column: "id_unit"}, + IDLang: gormcol.Field{Table: TableNamePsUnitLang, Column: "id_lang"}, + Name: gormcol.Field{Table: TableNamePsUnitLang, Column: "name"}, + Symbol: gormcol.Field{Table: TableNamePsUnitLang, Column: "symbol"}, +} diff --git a/app/model/dbmodel/ps_warehouse.go b/app/model/dbmodel/ps_warehouse.go new file mode 100644 index 0000000..705957e --- /dev/null +++ b/app/model/dbmodel/ps_warehouse.go @@ -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 TableNamePsWarehouse = "ps_warehouse" + +// PsWarehouse mapped from table +type PsWarehouse struct { + IDWarehouse int32 `gorm:"column:id_warehouse;primaryKey;autoIncrement:true" json:"id_warehouse"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` + IDAddress int32 `gorm:"column:id_address;not null" json:"id_address"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + Reference *string `gorm:"column:reference" json:"reference"` + Name string `gorm:"column:name;not null" json:"name"` + ManagementType string `gorm:"column:management_type;not null;default:WA" json:"management_type"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsWarehouse's table name +func (*PsWarehouse) TableName() string { + return TableNamePsWarehouse +} + +var PsWarehouseCols = struct { + IDWarehouse gormcol.Field + IDCurrency gormcol.Field + IDAddress gormcol.Field + IDEmployee gormcol.Field + Reference gormcol.Field + Name gormcol.Field + ManagementType gormcol.Field + Deleted gormcol.Field +}{ + IDWarehouse: gormcol.Field{Table: TableNamePsWarehouse, Column: "id_warehouse"}, + IDCurrency: gormcol.Field{Table: TableNamePsWarehouse, Column: "id_currency"}, + IDAddress: gormcol.Field{Table: TableNamePsWarehouse, Column: "id_address"}, + IDEmployee: gormcol.Field{Table: TableNamePsWarehouse, Column: "id_employee"}, + Reference: gormcol.Field{Table: TableNamePsWarehouse, Column: "reference"}, + Name: gormcol.Field{Table: TableNamePsWarehouse, Column: "name"}, + ManagementType: gormcol.Field{Table: TableNamePsWarehouse, Column: "management_type"}, + Deleted: gormcol.Field{Table: TableNamePsWarehouse, Column: "deleted"}, +} diff --git a/app/model/dbmodel/ps_warehouse_carrier.go b/app/model/dbmodel/ps_warehouse_carrier.go new file mode 100644 index 0000000..2b3f1ed --- /dev/null +++ b/app/model/dbmodel/ps_warehouse_carrier.go @@ -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 TableNamePsWarehouseCarrier = "ps_warehouse_carrier" + +// PsWarehouseCarrier mapped from table +type PsWarehouseCarrier struct { + IDCarrier int32 `gorm:"column:id_carrier;primaryKey;index:id_carrier,priority:1" json:"id_carrier"` + IDWarehouse int32 `gorm:"column:id_warehouse;primaryKey;index:id_warehouse,priority:1" json:"id_warehouse"` +} + +// TableName PsWarehouseCarrier's table name +func (*PsWarehouseCarrier) TableName() string { + return TableNamePsWarehouseCarrier +} + +var PsWarehouseCarrierCols = struct { + IDCarrier gormcol.Field + IDWarehouse gormcol.Field +}{ + IDCarrier: gormcol.Field{Table: TableNamePsWarehouseCarrier, Column: "id_carrier"}, + IDWarehouse: gormcol.Field{Table: TableNamePsWarehouseCarrier, Column: "id_warehouse"}, +} diff --git a/app/model/dbmodel/ps_warehouse_product_location.go b/app/model/dbmodel/ps_warehouse_product_location.go new file mode 100644 index 0000000..9686a0e --- /dev/null +++ b/app/model/dbmodel/ps_warehouse_product_location.go @@ -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 TableNamePsWarehouseProductLocation = "ps_warehouse_product_location" + +// PsWarehouseProductLocation mapped from table +type PsWarehouseProductLocation struct { + IDWarehouseProductLocation int32 `gorm:"column:id_warehouse_product_location;primaryKey;autoIncrement:true" json:"id_warehouse_product_location"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;uniqueIndex:id_product,priority:2" json:"id_product_attribute"` + IDWarehouse int32 `gorm:"column:id_warehouse;not null;uniqueIndex:id_product,priority:3" json:"id_warehouse"` + Location *string `gorm:"column:location" json:"location"` +} + +// TableName PsWarehouseProductLocation's table name +func (*PsWarehouseProductLocation) TableName() string { + return TableNamePsWarehouseProductLocation +} + +var PsWarehouseProductLocationCols = struct { + IDWarehouseProductLocation gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDWarehouse gormcol.Field + Location gormcol.Field +}{ + IDWarehouseProductLocation: gormcol.Field{Table: TableNamePsWarehouseProductLocation, Column: "id_warehouse_product_location"}, + IDProduct: gormcol.Field{Table: TableNamePsWarehouseProductLocation, Column: "id_product"}, + IDProductAttribute: gormcol.Field{Table: TableNamePsWarehouseProductLocation, Column: "id_product_attribute"}, + IDWarehouse: gormcol.Field{Table: TableNamePsWarehouseProductLocation, Column: "id_warehouse"}, + Location: gormcol.Field{Table: TableNamePsWarehouseProductLocation, Column: "location"}, +} diff --git a/app/model/dbmodel/ps_warehouse_shop.go b/app/model/dbmodel/ps_warehouse_shop.go new file mode 100644 index 0000000..5d19f61 --- /dev/null +++ b/app/model/dbmodel/ps_warehouse_shop.go @@ -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 TableNamePsWarehouseShop = "ps_warehouse_shop" + +// PsWarehouseShop mapped from table +type PsWarehouseShop struct { + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` + IDWarehouse int32 `gorm:"column:id_warehouse;primaryKey;index:id_warehouse,priority:1" json:"id_warehouse"` +} + +// TableName PsWarehouseShop's table name +func (*PsWarehouseShop) TableName() string { + return TableNamePsWarehouseShop +} + +var PsWarehouseShopCols = struct { + IDShop gormcol.Field + IDWarehouse gormcol.Field +}{ + IDShop: gormcol.Field{Table: TableNamePsWarehouseShop, Column: "id_shop"}, + IDWarehouse: gormcol.Field{Table: TableNamePsWarehouseShop, Column: "id_warehouse"}, +} diff --git a/app/model/dbmodel/ps_web_browser.go b/app/model/dbmodel/ps_web_browser.go new file mode 100644 index 0000000..6e5c8bd --- /dev/null +++ b/app/model/dbmodel/ps_web_browser.go @@ -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 TableNamePsWebBrowser = "ps_web_browser" + +// PsWebBrowser mapped from table +type PsWebBrowser struct { + IDWebBrowser int32 `gorm:"column:id_web_browser;primaryKey;autoIncrement:true" json:"id_web_browser"` + Name *string `gorm:"column:name" json:"name"` +} + +// TableName PsWebBrowser's table name +func (*PsWebBrowser) TableName() string { + return TableNamePsWebBrowser +} + +var PsWebBrowserCols = struct { + IDWebBrowser gormcol.Field + Name gormcol.Field +}{ + IDWebBrowser: gormcol.Field{Table: TableNamePsWebBrowser, Column: "id_web_browser"}, + Name: gormcol.Field{Table: TableNamePsWebBrowser, Column: "name"}, +} diff --git a/app/model/dbmodel/ps_webservice_account.go b/app/model/dbmodel/ps_webservice_account.go new file mode 100644 index 0000000..dd24398 --- /dev/null +++ b/app/model/dbmodel/ps_webservice_account.go @@ -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 TableNamePsWebserviceAccount = "ps_webservice_account" + +// PsWebserviceAccount mapped from table +type PsWebserviceAccount struct { + IDWebserviceAccount int32 `gorm:"column:id_webservice_account;primaryKey;autoIncrement:true" json:"id_webservice_account"` + Key string `gorm:"column:key;not null;index:key,priority:1" json:"key"` + Description *string `gorm:"column:description" json:"description"` + ClassName string `gorm:"column:class_name;not null;default:WebserviceRequest" json:"class_name"` + IsModule int32 `gorm:"column:is_module;not null" json:"is_module"` + ModuleName *string `gorm:"column:module_name" json:"module_name"` + Active int32 `gorm:"column:active;not null" json:"active"` +} + +// TableName PsWebserviceAccount's table name +func (*PsWebserviceAccount) TableName() string { + return TableNamePsWebserviceAccount +} + +var PsWebserviceAccountCols = struct { + IDWebserviceAccount gormcol.Field + Key gormcol.Field + Description gormcol.Field + ClassName gormcol.Field + IsModule gormcol.Field + ModuleName gormcol.Field + Active gormcol.Field +}{ + IDWebserviceAccount: gormcol.Field{Table: TableNamePsWebserviceAccount, Column: "id_webservice_account"}, + Key: gormcol.Field{Table: TableNamePsWebserviceAccount, Column: "key"}, + Description: gormcol.Field{Table: TableNamePsWebserviceAccount, Column: "description"}, + ClassName: gormcol.Field{Table: TableNamePsWebserviceAccount, Column: "class_name"}, + IsModule: gormcol.Field{Table: TableNamePsWebserviceAccount, Column: "is_module"}, + ModuleName: gormcol.Field{Table: TableNamePsWebserviceAccount, Column: "module_name"}, + Active: gormcol.Field{Table: TableNamePsWebserviceAccount, Column: "active"}, +} diff --git a/app/model/dbmodel/ps_webservice_account_shop.go b/app/model/dbmodel/ps_webservice_account_shop.go new file mode 100644 index 0000000..3dcf458 --- /dev/null +++ b/app/model/dbmodel/ps_webservice_account_shop.go @@ -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 TableNamePsWebserviceAccountShop = "ps_webservice_account_shop" + +// PsWebserviceAccountShop mapped from table +type PsWebserviceAccountShop struct { + IDWebserviceAccount int32 `gorm:"column:id_webservice_account;primaryKey" json:"id_webservice_account"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsWebserviceAccountShop's table name +func (*PsWebserviceAccountShop) TableName() string { + return TableNamePsWebserviceAccountShop +} + +var PsWebserviceAccountShopCols = struct { + IDWebserviceAccount gormcol.Field + IDShop gormcol.Field +}{ + IDWebserviceAccount: gormcol.Field{Table: TableNamePsWebserviceAccountShop, Column: "id_webservice_account"}, + IDShop: gormcol.Field{Table: TableNamePsWebserviceAccountShop, Column: "id_shop"}, +} diff --git a/app/model/dbmodel/ps_webservice_permission.go b/app/model/dbmodel/ps_webservice_permission.go new file mode 100644 index 0000000..fd41354 --- /dev/null +++ b/app/model/dbmodel/ps_webservice_permission.go @@ -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 TableNamePsWebservicePermission = "ps_webservice_permission" + +// PsWebservicePermission mapped from table +type PsWebservicePermission struct { + IDWebservicePermission int32 `gorm:"column:id_webservice_permission;primaryKey;autoIncrement:true" json:"id_webservice_permission"` + Resource string `gorm:"column:resource;not null;uniqueIndex:resource_2,priority:1;index:resource,priority:1" json:"resource"` + Method string `gorm:"column:method;not null;uniqueIndex:resource_2,priority:2;index:method,priority:1" json:"method"` + IDWebserviceAccount int32 `gorm:"column:id_webservice_account;not null;uniqueIndex:resource_2,priority:3;index:id_webservice_account,priority:1" json:"id_webservice_account"` +} + +// TableName PsWebservicePermission's table name +func (*PsWebservicePermission) TableName() string { + return TableNamePsWebservicePermission +} + +var PsWebservicePermissionCols = struct { + IDWebservicePermission gormcol.Field + Resource gormcol.Field + Method gormcol.Field + IDWebserviceAccount gormcol.Field +}{ + IDWebservicePermission: gormcol.Field{Table: TableNamePsWebservicePermission, Column: "id_webservice_permission"}, + Resource: gormcol.Field{Table: TableNamePsWebservicePermission, Column: "resource"}, + Method: gormcol.Field{Table: TableNamePsWebservicePermission, Column: "method"}, + IDWebserviceAccount: gormcol.Field{Table: TableNamePsWebservicePermission, Column: "id_webservice_account"}, +} diff --git a/app/model/dbmodel/ps_zone.go b/app/model/dbmodel/ps_zone.go new file mode 100644 index 0000000..22673f0 --- /dev/null +++ b/app/model/dbmodel/ps_zone.go @@ -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 TableNamePsZone = "ps_zone" + +// PsZone mapped from table +type PsZone struct { + IDZone int32 `gorm:"column:id_zone;primaryKey;autoIncrement:true" json:"id_zone"` + Name string `gorm:"column:name;not null" json:"name"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsZone's table name +func (*PsZone) TableName() string { + return TableNamePsZone +} + +var PsZoneCols = struct { + IDZone gormcol.Field + Name gormcol.Field + Active gormcol.Field +}{ + IDZone: gormcol.Field{Table: TableNamePsZone, Column: "id_zone"}, + Name: gormcol.Field{Table: TableNamePsZone, Column: "name"}, + Active: gormcol.Field{Table: TableNamePsZone, Column: "active"}, +} diff --git a/app/model/dbmodel/ps_zone_shop.go b/app/model/dbmodel/ps_zone_shop.go new file mode 100644 index 0000000..f83a01a --- /dev/null +++ b/app/model/dbmodel/ps_zone_shop.go @@ -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 TableNamePsZoneShop = "ps_zone_shop" + +// PsZoneShop mapped from table +type PsZoneShop struct { + IDZone int32 `gorm:"column:id_zone;primaryKey" json:"id_zone"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsZoneShop's table name +func (*PsZoneShop) TableName() string { + return TableNamePsZoneShop +} + +var PsZoneShopCols = struct { + IDZone gormcol.Field + IDShop gormcol.Field +}{ + IDZone: gormcol.Field{Table: TableNamePsZoneShop, Column: "id_zone"}, + IDShop: gormcol.Field{Table: TableNamePsZoneShop, Column: "id_shop"}, +} diff --git a/gencols.go b/gencols.go index f00b63b..151f4b7 100644 --- a/gencols.go +++ b/gencols.go @@ -23,10 +23,11 @@ type fieldInfo struct { // structInfo holds information about a parsed Go struct. type structInfo struct { - Name string // struct name - Table string // table name from TableName const - Fields []fieldInfo // list of fields - FilePath string // source file path + Name string // struct name + Table string // table name from TableName const + TableConst string // constant name (e.g., "TableNamePsAccess") + Fields []fieldInfo // list of fields + FilePath string // source file path } // parseGormColumn extracts the column name value from a gorm tag string. @@ -73,6 +74,7 @@ func parseModelFile(path string) (*structInfo, error) { } for i, name := range vs.Names { if strings.HasPrefix(name.Name, "TableName") { + si.TableConst = name.Name if i < len(vs.Values) { if bl, ok := vs.Values[i].(*ast.BasicLit); ok { si.Table = strings.Trim(bl.Value, "\"") @@ -150,7 +152,7 @@ func generateColsVarBlock(si *structInfo) string { } b.WriteString("}{\n") for _, f := range si.Fields { - b.WriteString(fmt.Sprintf("\t%s: gormcol.Field{Table: %q, Column: %q},\n", f.GoName, si.Table, f.ColName)) + b.WriteString(fmt.Sprintf("\t%s: gormcol.Field{Table: %s, Column: %q},\n", f.GoName, si.TableConst, f.ColName)) } b.WriteString("}\n") return b.String()