diff --git a/app/cmd/cmds/genModels.go b/app/cmd/cmds/genModels.go new file mode 100644 index 0000000..5eeb371 --- /dev/null +++ b/app/cmd/cmds/genModels.go @@ -0,0 +1,25 @@ +package cmds + +import ( + "context" + "log/slog" + "time" + + "git.ma-al.com/goc_daniel/b2b/app/db" + genmodels "git.ma-al.com/goc_daniel/b2b/app/utils/genModels" + "github.com/spf13/cobra" +) + +var generateModelsCmd = &cobra.Command{ + Use: "genmodels", + Short: "generate input database models", + Run: func(cmd *cobra.Command, args []string) { + ctx, cancel := context.WithTimeout(context.Background(), time.Minute*5) + defer cancel() + + err := genmodels.New(db.Get()).GormGenModels(ctx) + if err != nil { + slog.Error("Error performing work: " + err.Error()) + } + }, +} diff --git a/app/cmd/cmds/startServer.go b/app/cmd/cmds/startServer.go new file mode 100644 index 0000000..c23d8b2 --- /dev/null +++ b/app/cmd/cmds/startServer.go @@ -0,0 +1,60 @@ +package cmds + +import ( + "log" + "os" + + "git.ma-al.com/goc_daniel/b2b/app/delivery/web" + "git.ma-al.com/goc_daniel/b2b/app/service/langsService" + "git.ma-al.com/goc_daniel/b2b/app/utils/version" + "github.com/spf13/cobra" +) + +var ( + rootCmd = &cobra.Command{ + Use: "b2b", + Short: "This is set of tools for b2b application", + Run: func(cmd *cobra.Command, args []string) { + + if versionFlag, _ := cmd.Flags().GetBool("version"); versionFlag { + log.Println(version.String()) + return + } + + // Create and setup the server + server := web.New() + + // Configure routes + if err := server.Setup(); err != nil { + log.Fatalf("Failed to setup server: %v", err) + } + + // Load translations on startup + if err := langsService.LangSrv.LoadTranslations(); err != nil { + log.Printf("Warning: Failed to load translations on startup: %v", err) + } else { + log.Println("Translations loaded successfully on startup") + } + + // Start the server + if err := server.Run(); err != nil { + log.Fatalf("Failed to start server: %v", err) + } + + }, + } +) + +func Execute() error { + + err := rootCmd.Execute() + if err != nil { + os.Exit(1) + } + return nil +} + +func init() { + rootCmd.Flags().BoolP("version", "v", false, "show version and exit") + rootCmd.AddCommand(generateModelsCmd) +} diff --git a/app/cmd/main.go b/app/cmd/main.go index 420f44c..90d58c2 100644 --- a/app/cmd/main.go +++ b/app/cmd/main.go @@ -1,41 +1,9 @@ package main import ( - "flag" - "log" - - "git.ma-al.com/goc_daniel/b2b/app/delivery/web" - "git.ma-al.com/goc_daniel/b2b/app/service/langsService" - "git.ma-al.com/goc_daniel/b2b/app/utils/version" + "git.ma-al.com/goc_daniel/b2b/app/cmd/cmds" ) func main() { - // Check for version subcommand - versionFlag := flag.Bool("version", false, "Show version information") - flag.Parse() - - if *versionFlag { - log.Println(version.String()) - return - } - - // Create and setup the server - server := web.New() - - // Configure routes - if err := server.Setup(); err != nil { - log.Fatalf("Failed to setup server: %v", err) - } - - // Load translations on startup - if err := langsService.LangSrv.LoadTranslations(); err != nil { - log.Printf("Warning: Failed to load translations on startup: %v", err) - } else { - log.Println("Translations loaded successfully on startup") - } - - // Start the server - if err := server.Run(); err != nil { - log.Fatalf("Failed to start server: %v", err) - } + cmds.Execute() } diff --git a/app/model/countries.go b/app/model/countries.go index 6ad933f..49f775f 100644 --- a/app/model/countries.go +++ b/app/model/countries.go @@ -6,8 +6,12 @@ type Country struct { Name string `gorm:"column:name" json:"name"` Flag string `gorm:"size:16;not null;column:flag" json:"flag"` CurrencyID uint `gorm:"column:id_currency" json:"currency_id"` - CurrencyISOCode string `gorm:"column:currency_iso_code" json:"currency_iso_code"` - CurrencyName string `gorm:"column:currency_name" json:"currency_name"` + CurrencyISOCode string `gorm:"column:iso_code" json:"currency_iso_code"` + CurrencyName string `gorm:"column:name" json:"currency_name"` + // PSCountryID int `gorm:"column:id_country" json:"ps_country_id"` + // PSCountry *PSCountry `gorm:"foreignKey:PSCountryID;references:ID" json:"ps_country"` + PSCurrencyID uint `gorm:"column:currency" json:"currency"` + PSCurrency *PSCurrency `gorm:"foreignKey:PSCurrencyID;references:currency_id" json:"ps_currency"` } func (Country) TableName() string { @@ -15,10 +19,13 @@ func (Country) TableName() string { } type PSCountry struct { - ID uint `gorm:"primaryKey;column:id_country" json:"id"` CurrencyID uint `gorm:"column:id_currency" json:"currency_id"` } func (PSCountry) TableName() string { return "ps_country" } + +type PSCurrency struct { + Currency int `gorm:"column:currency" json:"currency"` +} diff --git a/app/model/prestadb/ps_access.go b/app/model/prestadb/ps_access.go new file mode 100644 index 0000000..cdd9038 --- /dev/null +++ b/app/model/prestadb/ps_access.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_accessory.go b/app/model/prestadb/ps_accessory.go new file mode 100644 index 0000000..b658f74 --- /dev/null +++ b/app/model/prestadb/ps_accessory.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_address.go b/app/model/prestadb/ps_address.go new file mode 100644 index 0000000..94dcdba --- /dev/null +++ b/app/model/prestadb/ps_address.go @@ -0,0 +1,45 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_address_format.go b/app/model/prestadb/ps_address_format.go new file mode 100644 index 0000000..963fcaa --- /dev/null +++ b/app/model/prestadb/ps_address_format.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_admin_filter.go b/app/model/prestadb/ps_admin_filter.go new file mode 100644 index 0000000..e01a8f6 --- /dev/null +++ b/app/model/prestadb/ps_admin_filter.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_advice.go b/app/model/prestadb/ps_advice.go new file mode 100644 index 0000000..aa1f0d0 --- /dev/null +++ b/app/model/prestadb/ps_advice.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_advice_lang.go b/app/model/prestadb/ps_advice_lang.go new file mode 100644 index 0000000..b444674 --- /dev/null +++ b/app/model/prestadb/ps_advice_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_alias.go b/app/model/prestadb/ps_alias.go new file mode 100644 index 0000000..35b177d --- /dev/null +++ b/app/model/prestadb/ps_alias.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_attachment.go b/app/model/prestadb/ps_attachment.go new file mode 100644 index 0000000..c7e49a9 --- /dev/null +++ b/app/model/prestadb/ps_attachment.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_attachment_lang.go b/app/model/prestadb/ps_attachment_lang.go new file mode 100644 index 0000000..9efc9f0 --- /dev/null +++ b/app/model/prestadb/ps_attachment_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_attribute.go b/app/model/prestadb/ps_attribute.go new file mode 100644 index 0000000..bfe870c --- /dev/null +++ b/app/model/prestadb/ps_attribute.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_attribute_group.go b/app/model/prestadb/ps_attribute_group.go new file mode 100644 index 0000000..60d1128 --- /dev/null +++ b/app/model/prestadb/ps_attribute_group.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_attribute_group_lang.go b/app/model/prestadb/ps_attribute_group_lang.go new file mode 100644 index 0000000..4af3bfe --- /dev/null +++ b/app/model/prestadb/ps_attribute_group_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_attribute_group_shop.go b/app/model/prestadb/ps_attribute_group_shop.go new file mode 100644 index 0000000..37dae4b --- /dev/null +++ b/app/model/prestadb/ps_attribute_group_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_attribute_impact.go b/app/model/prestadb/ps_attribute_impact.go new file mode 100644 index 0000000..57304e4 --- /dev/null +++ b/app/model/prestadb/ps_attribute_impact.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_attribute_lang.go b/app/model/prestadb/ps_attribute_lang.go new file mode 100644 index 0000000..a7c7c2c --- /dev/null +++ b/app/model/prestadb/ps_attribute_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_attribute_shop.go b/app/model/prestadb/ps_attribute_shop.go new file mode 100644 index 0000000..e0fcfe5 --- /dev/null +++ b/app/model/prestadb/ps_attribute_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_authorization_role.go b/app/model/prestadb/ps_authorization_role.go new file mode 100644 index 0000000..b7a8a29 --- /dev/null +++ b/app/model/prestadb/ps_authorization_role.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_badge.go b/app/model/prestadb/ps_badge.go new file mode 100644 index 0000000..5c8d9ae --- /dev/null +++ b/app/model/prestadb/ps_badge.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_badge_lang.go b/app/model/prestadb/ps_badge_lang.go new file mode 100644 index 0000000..4e1874d --- /dev/null +++ b/app/model/prestadb/ps_badge_lang.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_carrier.go b/app/model/prestadb/ps_carrier.go new file mode 100644 index 0000000..15fb93b --- /dev/null +++ b/app/model/prestadb/ps_carrier.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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_carrier_group.go b/app/model/prestadb/ps_carrier_group.go new file mode 100644 index 0000000..ba50c93 --- /dev/null +++ b/app/model/prestadb/ps_carrier_group.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_carrier_lang.go b/app/model/prestadb/ps_carrier_lang.go new file mode 100644 index 0000000..528aa52 --- /dev/null +++ b/app/model/prestadb/ps_carrier_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_carrier_shop.go b/app/model/prestadb/ps_carrier_shop.go new file mode 100644 index 0000000..c821198 --- /dev/null +++ b/app/model/prestadb/ps_carrier_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_carrier_tax_rules_group_shop.go b/app/model/prestadb/ps_carrier_tax_rules_group_shop.go new file mode 100644 index 0000000..bd00637 --- /dev/null +++ b/app/model/prestadb/ps_carrier_tax_rules_group_shop.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_carrier_zone.go b/app/model/prestadb/ps_carrier_zone.go new file mode 100644 index 0000000..b7289cf --- /dev/null +++ b/app/model/prestadb/ps_carrier_zone.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart.go b/app/model/prestadb/ps_cart.go new file mode 100644 index 0000000..69302d7 --- /dev/null +++ b/app/model/prestadb/ps_cart.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_cart_cart_rule.go b/app/model/prestadb/ps_cart_cart_rule.go new file mode 100644 index 0000000..339a781 --- /dev/null +++ b/app/model/prestadb/ps_cart_cart_rule.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart_product.go b/app/model/prestadb/ps_cart_product.go new file mode 100644 index 0000000..ed38999 --- /dev/null +++ b/app/model/prestadb/ps_cart_product.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_cart_rule.go b/app/model/prestadb/ps_cart_rule.go new file mode 100644 index 0000000..addc5be --- /dev/null +++ b/app/model/prestadb/ps_cart_rule.go @@ -0,0 +1,53 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_cart_rule_carrier.go b/app/model/prestadb/ps_cart_rule_carrier.go new file mode 100644 index 0000000..fcc4180 --- /dev/null +++ b/app/model/prestadb/ps_cart_rule_carrier.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart_rule_combination.go b/app/model/prestadb/ps_cart_rule_combination.go new file mode 100644 index 0000000..46002dd --- /dev/null +++ b/app/model/prestadb/ps_cart_rule_combination.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart_rule_country.go b/app/model/prestadb/ps_cart_rule_country.go new file mode 100644 index 0000000..f4f1f25 --- /dev/null +++ b/app/model/prestadb/ps_cart_rule_country.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart_rule_group.go b/app/model/prestadb/ps_cart_rule_group.go new file mode 100644 index 0000000..f8c2f01 --- /dev/null +++ b/app/model/prestadb/ps_cart_rule_group.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart_rule_lang.go b/app/model/prestadb/ps_cart_rule_lang.go new file mode 100644 index 0000000..49b028e --- /dev/null +++ b/app/model/prestadb/ps_cart_rule_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart_rule_product_rule.go b/app/model/prestadb/ps_cart_rule_product_rule.go new file mode 100644 index 0000000..f9fcc8b --- /dev/null +++ b/app/model/prestadb/ps_cart_rule_product_rule.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart_rule_product_rule_group.go b/app/model/prestadb/ps_cart_rule_product_rule_group.go new file mode 100644 index 0000000..5c521fc --- /dev/null +++ b/app/model/prestadb/ps_cart_rule_product_rule_group.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart_rule_product_rule_value.go b/app/model/prestadb/ps_cart_rule_product_rule_value.go new file mode 100644 index 0000000..1812f0e --- /dev/null +++ b/app/model/prestadb/ps_cart_rule_product_rule_value.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cart_rule_shop.go b/app/model/prestadb/ps_cart_rule_shop.go new file mode 100644 index 0000000..b777b40 --- /dev/null +++ b/app/model/prestadb/ps_cart_rule_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_category.go b/app/model/prestadb/ps_category.go new file mode 100644 index 0000000..6580d9b --- /dev/null +++ b/app/model/prestadb/ps_category.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_category_group.go b/app/model/prestadb/ps_category_group.go new file mode 100644 index 0000000..4da75d6 --- /dev/null +++ b/app/model/prestadb/ps_category_group.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_category_lang.go b/app/model/prestadb/ps_category_lang.go new file mode 100644 index 0000000..9798500 --- /dev/null +++ b/app/model/prestadb/ps_category_lang.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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_category_product.go b/app/model/prestadb/ps_category_product.go new file mode 100644 index 0000000..d14fcfe --- /dev/null +++ b/app/model/prestadb/ps_category_product.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_category_shop.go b/app/model/prestadb/ps_category_shop.go new file mode 100644 index 0000000..764d74e --- /dev/null +++ b/app/model/prestadb/ps_category_shop.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cms.go b/app/model/prestadb/ps_cms.go new file mode 100644 index 0000000..cc13161 --- /dev/null +++ b/app/model/prestadb/ps_cms.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cms_category.go b/app/model/prestadb/ps_cms_category.go new file mode 100644 index 0000000..80c8a4f --- /dev/null +++ b/app/model/prestadb/ps_cms_category.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_cms_category_lang.go b/app/model/prestadb/ps_cms_category_lang.go new file mode 100644 index 0000000..af61212 --- /dev/null +++ b/app/model/prestadb/ps_cms_category_lang.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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_cms_category_shop.go b/app/model/prestadb/ps_cms_category_shop.go new file mode 100644 index 0000000..1371f87 --- /dev/null +++ b/app/model/prestadb/ps_cms_category_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cms_lang.go b/app/model/prestadb/ps_cms_lang.go new file mode 100644 index 0000000..b9cff9f --- /dev/null +++ b/app/model/prestadb/ps_cms_lang.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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_cms_role.go b/app/model/prestadb/ps_cms_role.go new file mode 100644 index 0000000..23aaf90 --- /dev/null +++ b/app/model/prestadb/ps_cms_role.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cms_role_lang.go b/app/model/prestadb/ps_cms_role_lang.go new file mode 100644 index 0000000..c133921 --- /dev/null +++ b/app/model/prestadb/ps_cms_role_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_cms_shop.go b/app/model/prestadb/ps_cms_shop.go new file mode 100644 index 0000000..1b092ae --- /dev/null +++ b/app/model/prestadb/ps_cms_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_condition.go b/app/model/prestadb/ps_condition.go new file mode 100644 index 0000000..fb4b9f5 --- /dev/null +++ b/app/model/prestadb/ps_condition.go @@ -0,0 +1,32 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_condition_advice.go b/app/model/prestadb/ps_condition_advice.go new file mode 100644 index 0000000..6c4d52f --- /dev/null +++ b/app/model/prestadb/ps_condition_advice.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_condition_badge.go b/app/model/prestadb/ps_condition_badge.go new file mode 100644 index 0000000..e3d41dd --- /dev/null +++ b/app/model/prestadb/ps_condition_badge.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_configuration.go b/app/model/prestadb/ps_configuration.go new file mode 100644 index 0000000..98b443f --- /dev/null +++ b/app/model/prestadb/ps_configuration.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_configuration_kpi.go b/app/model/prestadb/ps_configuration_kpi.go new file mode 100644 index 0000000..88ef241 --- /dev/null +++ b/app/model/prestadb/ps_configuration_kpi.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_configuration_kpi_lang.go b/app/model/prestadb/ps_configuration_kpi_lang.go new file mode 100644 index 0000000..d9ee3d6 --- /dev/null +++ b/app/model/prestadb/ps_configuration_kpi_lang.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_configuration_lang.go b/app/model/prestadb/ps_configuration_lang.go new file mode 100644 index 0000000..d1f0f6c --- /dev/null +++ b/app/model/prestadb/ps_configuration_lang.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_connections.go b/app/model/prestadb/ps_connections.go new file mode 100644 index 0000000..4cd625c --- /dev/null +++ b/app/model/prestadb/ps_connections.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_connections_page.go b/app/model/prestadb/ps_connections_page.go new file mode 100644 index 0000000..55ea54e --- /dev/null +++ b/app/model/prestadb/ps_connections_page.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_connections_source.go b/app/model/prestadb/ps_connections_source.go new file mode 100644 index 0000000..9939adf --- /dev/null +++ b/app/model/prestadb/ps_connections_source.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_contact.go b/app/model/prestadb/ps_contact.go new file mode 100644 index 0000000..3e5429e --- /dev/null +++ b/app/model/prestadb/ps_contact.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_contact_lang.go b/app/model/prestadb/ps_contact_lang.go new file mode 100644 index 0000000..96bb079 --- /dev/null +++ b/app/model/prestadb/ps_contact_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_contact_shop.go b/app/model/prestadb/ps_contact_shop.go new file mode 100644 index 0000000..677ac1c --- /dev/null +++ b/app/model/prestadb/ps_contact_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_country.go b/app/model/prestadb/ps_country.go new file mode 100644 index 0000000..d93db8a --- /dev/null +++ b/app/model/prestadb/ps_country.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_country_lang.go b/app/model/prestadb/ps_country_lang.go new file mode 100644 index 0000000..34dfe30 --- /dev/null +++ b/app/model/prestadb/ps_country_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_country_shop.go b/app/model/prestadb/ps_country_shop.go new file mode 100644 index 0000000..b0342bc --- /dev/null +++ b/app/model/prestadb/ps_country_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_currency.go b/app/model/prestadb/ps_currency.go new file mode 100644 index 0000000..b83634d --- /dev/null +++ b/app/model/prestadb/ps_currency.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_currency_lang.go b/app/model/prestadb/ps_currency_lang.go new file mode 100644 index 0000000..8344597 --- /dev/null +++ b/app/model/prestadb/ps_currency_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_currency_shop.go b/app/model/prestadb/ps_currency_shop.go new file mode 100644 index 0000000..20906d5 --- /dev/null +++ b/app/model/prestadb/ps_currency_shop.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_customer.go b/app/model/prestadb/ps_customer.go new file mode 100644 index 0000000..ed5b5da --- /dev/null +++ b/app/model/prestadb/ps_customer.go @@ -0,0 +1,53 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_customer_group.go b/app/model/prestadb/ps_customer_group.go new file mode 100644 index 0000000..c5c3be9 --- /dev/null +++ b/app/model/prestadb/ps_customer_group.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_customer_message.go b/app/model/prestadb/ps_customer_message.go new file mode 100644 index 0000000..96e0109 --- /dev/null +++ b/app/model/prestadb/ps_customer_message.go @@ -0,0 +1,32 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_customer_message_sync_imap.go b/app/model/prestadb/ps_customer_message_sync_imap.go new file mode 100644 index 0000000..0e0b669 --- /dev/null +++ b/app/model/prestadb/ps_customer_message_sync_imap.go @@ -0,0 +1,17 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_customer_thread.go b/app/model/prestadb/ps_customer_thread.go new file mode 100644 index 0000000..795f1ca --- /dev/null +++ b/app/model/prestadb/ps_customer_thread.go @@ -0,0 +1,32 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_customization.go b/app/model/prestadb/ps_customization.go new file mode 100644 index 0000000..b67ee6c --- /dev/null +++ b/app/model/prestadb/ps_customization.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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_customization_field.go b/app/model/prestadb/ps_customization_field.go new file mode 100644 index 0000000..af4c584 --- /dev/null +++ b/app/model/prestadb/ps_customization_field.go @@ -0,0 +1,22 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_customization_field_lang.go b/app/model/prestadb/ps_customization_field_lang.go new file mode 100644 index 0000000..8f843ac --- /dev/null +++ b/app/model/prestadb/ps_customization_field_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_customized_data.go b/app/model/prestadb/ps_customized_data.go new file mode 100644 index 0000000..b3df209 --- /dev/null +++ b/app/model/prestadb/ps_customized_data.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_date_range.go b/app/model/prestadb/ps_date_range.go new file mode 100644 index 0000000..bfe3c2e --- /dev/null +++ b/app/model/prestadb/ps_date_range.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_delivery.go b/app/model/prestadb/ps_delivery.go new file mode 100644 index 0000000..543795d --- /dev/null +++ b/app/model/prestadb/ps_delivery.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_dpdpoland_carrier.go b/app/model/prestadb/ps_dpdpoland_carrier.go new file mode 100644 index 0000000..6bad86f --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_carrier.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_dpdpoland_country.go b/app/model/prestadb/ps_dpdpoland_country.go new file mode 100644 index 0000000..2db1529 --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_country.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_dpdpoland_manifest.go b/app/model/prestadb/ps_dpdpoland_manifest.go new file mode 100644 index 0000000..f1f26c2 --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_manifest.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_dpdpoland_package.go b/app/model/prestadb/ps_dpdpoland_package.go new file mode 100644 index 0000000..f58e972 --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_package.go @@ -0,0 +1,41 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_dpdpoland_parcel.go b/app/model/prestadb/ps_dpdpoland_parcel.go new file mode 100644 index 0000000..0ca5c64 --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_parcel.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_dpdpoland_parcel_product.go b/app/model/prestadb/ps_dpdpoland_parcel_product.go new file mode 100644 index 0000000..f62ec92 --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_parcel_product.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_dpdpoland_payer_number.go b/app/model/prestadb/ps_dpdpoland_payer_number.go new file mode 100644 index 0000000..f740db6 --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_payer_number.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_dpdpoland_price_rule.go b/app/model/prestadb/ps_dpdpoland_price_rule.go new file mode 100644 index 0000000..fd3d99f --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_price_rule.go @@ -0,0 +1,32 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_dpdpoland_pudo_cart.go b/app/model/prestadb/ps_dpdpoland_pudo_cart.go new file mode 100644 index 0000000..beb2794 --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_pudo_cart.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_dpdpoland_sender_address.go b/app/model/prestadb/ps_dpdpoland_sender_address.go new file mode 100644 index 0000000..65be19d --- /dev/null +++ b/app/model/prestadb/ps_dpdpoland_sender_address.go @@ -0,0 +1,32 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_emailsubscription.go b/app/model/prestadb/ps_emailsubscription.go new file mode 100644 index 0000000..6710a39 --- /dev/null +++ b/app/model/prestadb/ps_emailsubscription.go @@ -0,0 +1,29 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_employee.go b/app/model/prestadb/ps_employee.go new file mode 100644 index 0000000..2be07a6 --- /dev/null +++ b/app/model/prestadb/ps_employee.go @@ -0,0 +1,48 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_employee_shop.go b/app/model/prestadb/ps_employee_shop.go new file mode 100644 index 0000000..89d4542 --- /dev/null +++ b/app/model/prestadb/ps_employee_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_export_invoice.go b/app/model/prestadb/ps_export_invoice.go new file mode 100644 index 0000000..45df0f4 --- /dev/null +++ b/app/model/prestadb/ps_export_invoice.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_feature.go b/app/model/prestadb/ps_feature.go new file mode 100644 index 0000000..b942523 --- /dev/null +++ b/app/model/prestadb/ps_feature.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_feature_lang.go b/app/model/prestadb/ps_feature_lang.go new file mode 100644 index 0000000..79a0473 --- /dev/null +++ b/app/model/prestadb/ps_feature_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_feature_product.go b/app/model/prestadb/ps_feature_product.go new file mode 100644 index 0000000..18b97bf --- /dev/null +++ b/app/model/prestadb/ps_feature_product.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_feature_shop.go b/app/model/prestadb/ps_feature_shop.go new file mode 100644 index 0000000..aaebe97 --- /dev/null +++ b/app/model/prestadb/ps_feature_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_feature_value.go b/app/model/prestadb/ps_feature_value.go new file mode 100644 index 0000000..cf9253e --- /dev/null +++ b/app/model/prestadb/ps_feature_value.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_feature_value_lang.go b/app/model/prestadb/ps_feature_value_lang.go new file mode 100644 index 0000000..eb40387 --- /dev/null +++ b/app/model/prestadb/ps_feature_value_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_gender.go b/app/model/prestadb/ps_gender.go new file mode 100644 index 0000000..4e1abd7 --- /dev/null +++ b/app/model/prestadb/ps_gender.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_gender_lang.go b/app/model/prestadb/ps_gender_lang.go new file mode 100644 index 0000000..6926d88 --- /dev/null +++ b/app/model/prestadb/ps_gender_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_group.go b/app/model/prestadb/ps_group.go new file mode 100644 index 0000000..2a5526d --- /dev/null +++ b/app/model/prestadb/ps_group.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_group_lang.go b/app/model/prestadb/ps_group_lang.go new file mode 100644 index 0000000..6b03c0a --- /dev/null +++ b/app/model/prestadb/ps_group_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_group_reduction.go b/app/model/prestadb/ps_group_reduction.go new file mode 100644 index 0000000..a4981a0 --- /dev/null +++ b/app/model/prestadb/ps_group_reduction.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_group_shop.go b/app/model/prestadb/ps_group_shop.go new file mode 100644 index 0000000..7a140c7 --- /dev/null +++ b/app/model/prestadb/ps_group_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_gsitemap_sitemap.go b/app/model/prestadb/ps_gsitemap_sitemap.go new file mode 100644 index 0000000..586381f --- /dev/null +++ b/app/model/prestadb/ps_gsitemap_sitemap.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_guest.go b/app/model/prestadb/ps_guest.go new file mode 100644 index 0000000..6d1d2a5 --- /dev/null +++ b/app/model/prestadb/ps_guest.go @@ -0,0 +1,32 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_homeslider.go b/app/model/prestadb/ps_homeslider.go new file mode 100644 index 0000000..c5de5f2 --- /dev/null +++ b/app/model/prestadb/ps_homeslider.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_homeslider_slides.go b/app/model/prestadb/ps_homeslider_slides.go new file mode 100644 index 0000000..0dcd8fc --- /dev/null +++ b/app/model/prestadb/ps_homeslider_slides.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_homeslider_slides_lang.go b/app/model/prestadb/ps_homeslider_slides_lang.go new file mode 100644 index 0000000..d07b425 --- /dev/null +++ b/app/model/prestadb/ps_homeslider_slides_lang.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_hook.go b/app/model/prestadb/ps_hook.go new file mode 100644 index 0000000..fd9b828 --- /dev/null +++ b/app/model/prestadb/ps_hook.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_hook_alias.go b/app/model/prestadb/ps_hook_alias.go new file mode 100644 index 0000000..edb1a8f --- /dev/null +++ b/app/model/prestadb/ps_hook_alias.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_hook_module.go b/app/model/prestadb/ps_hook_module.go new file mode 100644 index 0000000..d99dff5 --- /dev/null +++ b/app/model/prestadb/ps_hook_module.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_hook_module_exceptions.go b/app/model/prestadb/ps_hook_module_exceptions.go new file mode 100644 index 0000000..fa4b0f1 --- /dev/null +++ b/app/model/prestadb/ps_hook_module_exceptions.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_image.go b/app/model/prestadb/ps_image.go new file mode 100644 index 0000000..5a7b245 --- /dev/null +++ b/app/model/prestadb/ps_image.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_image_lang.go b/app/model/prestadb/ps_image_lang.go new file mode 100644 index 0000000..222a6c4 --- /dev/null +++ b/app/model/prestadb/ps_image_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_image_shop.go b/app/model/prestadb/ps_image_shop.go new file mode 100644 index 0000000..c6f41f9 --- /dev/null +++ b/app/model/prestadb/ps_image_shop.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_image_type.go b/app/model/prestadb/ps_image_type.go new file mode 100644 index 0000000..fc072da --- /dev/null +++ b/app/model/prestadb/ps_image_type.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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_import_match.go b/app/model/prestadb/ps_import_match.go new file mode 100644 index 0000000..1723f04 --- /dev/null +++ b/app/model/prestadb/ps_import_match.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_info.go b/app/model/prestadb/ps_info.go new file mode 100644 index 0000000..996653b --- /dev/null +++ b/app/model/prestadb/ps_info.go @@ -0,0 +1,17 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_info_lang.go b/app/model/prestadb/ps_info_lang.go new file mode 100644 index 0000000..fce53e1 --- /dev/null +++ b/app/model/prestadb/ps_info_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_info_shop.go b/app/model/prestadb/ps_info_shop.go new file mode 100644 index 0000000..80fa46a --- /dev/null +++ b/app/model/prestadb/ps_info_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_inpost_carrier.go b/app/model/prestadb/ps_inpost_carrier.go new file mode 100644 index 0000000..7eb6137 --- /dev/null +++ b/app/model/prestadb/ps_inpost_carrier.go @@ -0,0 +1,22 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_inpost_cart_choice.go b/app/model/prestadb/ps_inpost_cart_choice.go new file mode 100644 index 0000000..02ab98f --- /dev/null +++ b/app/model/prestadb/ps_inpost_cart_choice.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_inpost_dispatch_order.go b/app/model/prestadb/ps_inpost_dispatch_order.go new file mode 100644 index 0000000..1dc88a2 --- /dev/null +++ b/app/model/prestadb/ps_inpost_dispatch_order.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_inpost_dispatch_point.go b/app/model/prestadb/ps_inpost_dispatch_point.go new file mode 100644 index 0000000..a95913f --- /dev/null +++ b/app/model/prestadb/ps_inpost_dispatch_point.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_inpost_point.go b/app/model/prestadb/ps_inpost_point.go new file mode 100644 index 0000000..9797253 --- /dev/null +++ b/app/model/prestadb/ps_inpost_point.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_inpost_product_template.go b/app/model/prestadb/ps_inpost_product_template.go new file mode 100644 index 0000000..502cb8a --- /dev/null +++ b/app/model/prestadb/ps_inpost_product_template.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_inpost_shipment.go b/app/model/prestadb/ps_inpost_shipment.go new file mode 100644 index 0000000..ecf345e --- /dev/null +++ b/app/model/prestadb/ps_inpost_shipment.go @@ -0,0 +1,44 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_inpost_shipment_status.go b/app/model/prestadb/ps_inpost_shipment_status.go new file mode 100644 index 0000000..d84a5de --- /dev/null +++ b/app/model/prestadb/ps_inpost_shipment_status.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_inpost_shipment_status_lang.go b/app/model/prestadb/ps_inpost_shipment_status_lang.go new file mode 100644 index 0000000..3772cd1 --- /dev/null +++ b/app/model/prestadb/ps_inpost_shipment_status_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_invoice_customer.go b/app/model/prestadb/ps_invoice_customer.go new file mode 100644 index 0000000..b2da49f --- /dev/null +++ b/app/model/prestadb/ps_invoice_customer.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_lang.go b/app/model/prestadb/ps_lang.go new file mode 100644 index 0000000..a23ff4b --- /dev/null +++ b/app/model/prestadb/ps_lang.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_lang_shop.go b/app/model/prestadb/ps_lang_shop.go new file mode 100644 index 0000000..82511f6 --- /dev/null +++ b/app/model/prestadb/ps_lang_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_category.go b/app/model/prestadb/ps_layered_category.go new file mode 100644 index 0000000..a37809d --- /dev/null +++ b/app/model/prestadb/ps_layered_category.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_filter.go b/app/model/prestadb/ps_layered_filter.go new file mode 100644 index 0000000..60b4c73 --- /dev/null +++ b/app/model/prestadb/ps_layered_filter.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_layered_filter_block.go b/app/model/prestadb/ps_layered_filter_block.go new file mode 100644 index 0000000..225be30 --- /dev/null +++ b/app/model/prestadb/ps_layered_filter_block.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_filter_shop.go b/app/model/prestadb/ps_layered_filter_shop.go new file mode 100644 index 0000000..ada225b --- /dev/null +++ b/app/model/prestadb/ps_layered_filter_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_indexable_attribute_group.go b/app/model/prestadb/ps_layered_indexable_attribute_group.go new file mode 100644 index 0000000..71e10c7 --- /dev/null +++ b/app/model/prestadb/ps_layered_indexable_attribute_group.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_indexable_attribute_group_lang_value.go b/app/model/prestadb/ps_layered_indexable_attribute_group_lang_value.go new file mode 100644 index 0000000..9c8d34f --- /dev/null +++ b/app/model/prestadb/ps_layered_indexable_attribute_group_lang_value.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_indexable_attribute_lang_value.go b/app/model/prestadb/ps_layered_indexable_attribute_lang_value.go new file mode 100644 index 0000000..e7c6de8 --- /dev/null +++ b/app/model/prestadb/ps_layered_indexable_attribute_lang_value.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_indexable_feature.go b/app/model/prestadb/ps_layered_indexable_feature.go new file mode 100644 index 0000000..4291fbe --- /dev/null +++ b/app/model/prestadb/ps_layered_indexable_feature.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_indexable_feature_lang_value.go b/app/model/prestadb/ps_layered_indexable_feature_lang_value.go new file mode 100644 index 0000000..05f32d1 --- /dev/null +++ b/app/model/prestadb/ps_layered_indexable_feature_lang_value.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_indexable_feature_value_lang_value.go b/app/model/prestadb/ps_layered_indexable_feature_value_lang_value.go new file mode 100644 index 0000000..32668bd --- /dev/null +++ b/app/model/prestadb/ps_layered_indexable_feature_value_lang_value.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_price_index.go b/app/model/prestadb/ps_layered_price_index.go new file mode 100644 index 0000000..06a95b2 --- /dev/null +++ b/app/model/prestadb/ps_layered_price_index.go @@ -0,0 +1,22 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_layered_product_attribute.go b/app/model/prestadb/ps_layered_product_attribute.go new file mode 100644 index 0000000..b02325f --- /dev/null +++ b/app/model/prestadb/ps_layered_product_attribute.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_link_block.go b/app/model/prestadb/ps_link_block.go new file mode 100644 index 0000000..189b1c0 --- /dev/null +++ b/app/model/prestadb/ps_link_block.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_link_block_lang.go b/app/model/prestadb/ps_link_block_lang.go new file mode 100644 index 0000000..d2deab5 --- /dev/null +++ b/app/model/prestadb/ps_link_block_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_link_block_shop.go b/app/model/prestadb/ps_link_block_shop.go new file mode 100644 index 0000000..61489cf --- /dev/null +++ b/app/model/prestadb/ps_link_block_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_linksmenutop.go b/app/model/prestadb/ps_linksmenutop.go new file mode 100644 index 0000000..58bad7c --- /dev/null +++ b/app/model/prestadb/ps_linksmenutop.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_linksmenutop_lang.go b/app/model/prestadb/ps_linksmenutop_lang.go new file mode 100644 index 0000000..bd1bdec --- /dev/null +++ b/app/model/prestadb/ps_linksmenutop_lang.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_log.go b/app/model/prestadb/ps_log.go new file mode 100644 index 0000000..0050be0 --- /dev/null +++ b/app/model/prestadb/ps_log.go @@ -0,0 +1,29 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_maal_cms_category.go b/app/model/prestadb/ps_maal_cms_category.go new file mode 100644 index 0000000..5ca405c --- /dev/null +++ b/app/model/prestadb/ps_maal_cms_category.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_maal_cms_category_lang.go b/app/model/prestadb/ps_maal_cms_category_lang.go new file mode 100644 index 0000000..25e7aa0 --- /dev/null +++ b/app/model/prestadb/ps_maal_cms_category_lang.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_maal_cms_page.go b/app/model/prestadb/ps_maal_cms_page.go new file mode 100644 index 0000000..647ec55 --- /dev/null +++ b/app/model/prestadb/ps_maal_cms_page.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_maal_events.go b/app/model/prestadb/ps_maal_events.go new file mode 100644 index 0000000..12bd7e2 --- /dev/null +++ b/app/model/prestadb/ps_maal_events.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_maal_events_lang.go b/app/model/prestadb/ps_maal_events_lang.go new file mode 100644 index 0000000..4dd72aa --- /dev/null +++ b/app/model/prestadb/ps_maal_events_lang.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_maal_invoice_note.go b/app/model/prestadb/ps_maal_invoice_note.go new file mode 100644 index 0000000..8b1613b --- /dev/null +++ b/app/model/prestadb/ps_maal_invoice_note.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_maal_invoicehelper.go b/app/model/prestadb/ps_maal_invoicehelper.go new file mode 100644 index 0000000..e7fc036 --- /dev/null +++ b/app/model/prestadb/ps_maal_invoicehelper.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_maal_links_blok.go b/app/model/prestadb/ps_maal_links_blok.go new file mode 100644 index 0000000..5f85c0d --- /dev/null +++ b/app/model/prestadb/ps_maal_links_blok.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_maal_links_blok_slides.go b/app/model/prestadb/ps_maal_links_blok_slides.go new file mode 100644 index 0000000..a03947e --- /dev/null +++ b/app/model/prestadb/ps_maal_links_blok_slides.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_maal_links_blok_slides_lang.go b/app/model/prestadb/ps_maal_links_blok_slides_lang.go new file mode 100644 index 0000000..90a919f --- /dev/null +++ b/app/model/prestadb/ps_maal_links_blok_slides_lang.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_maal_slider.go b/app/model/prestadb/ps_maal_slider.go new file mode 100644 index 0000000..6f7e885 --- /dev/null +++ b/app/model/prestadb/ps_maal_slider.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_maal_slider_slides.go b/app/model/prestadb/ps_maal_slider_slides.go new file mode 100644 index 0000000..3435f8d --- /dev/null +++ b/app/model/prestadb/ps_maal_slider_slides.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_maal_slider_slides_lang.go b/app/model/prestadb/ps_maal_slider_slides_lang.go new file mode 100644 index 0000000..d9c173e --- /dev/null +++ b/app/model/prestadb/ps_maal_slider_slides_lang.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_mail.go b/app/model/prestadb/ps_mail.go new file mode 100644 index 0000000..14fca14 --- /dev/null +++ b/app/model/prestadb/ps_mail.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_mailalert_customer_oos.go b/app/model/prestadb/ps_mailalert_customer_oos.go new file mode 100644 index 0000000..40d1261 --- /dev/null +++ b/app/model/prestadb/ps_mailalert_customer_oos.go @@ -0,0 +1,22 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_manufacturer.go b/app/model/prestadb/ps_manufacturer.go new file mode 100644 index 0000000..01d3e66 --- /dev/null +++ b/app/model/prestadb/ps_manufacturer.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_manufacturer_lang.go b/app/model/prestadb/ps_manufacturer_lang.go new file mode 100644 index 0000000..63c70da --- /dev/null +++ b/app/model/prestadb/ps_manufacturer_lang.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_manufacturer_shop.go b/app/model/prestadb/ps_manufacturer_shop.go new file mode 100644 index 0000000..126dfb0 --- /dev/null +++ b/app/model/prestadb/ps_manufacturer_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_memcached_servers.go b/app/model/prestadb/ps_memcached_servers.go new file mode 100644 index 0000000..a9188ce --- /dev/null +++ b/app/model/prestadb/ps_memcached_servers.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_message.go b/app/model/prestadb/ps_message.go new file mode 100644 index 0000000..c0e0d87 --- /dev/null +++ b/app/model/prestadb/ps_message.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_message_readed.go b/app/model/prestadb/ps_message_readed.go new file mode 100644 index 0000000..7d7c245 --- /dev/null +++ b/app/model/prestadb/ps_message_readed.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_meta.go b/app/model/prestadb/ps_meta.go new file mode 100644 index 0000000..d618d6c --- /dev/null +++ b/app/model/prestadb/ps_meta.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_meta_lang.go b/app/model/prestadb/ps_meta_lang.go new file mode 100644 index 0000000..3b7bf3d --- /dev/null +++ b/app/model/prestadb/ps_meta_lang.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_module.go b/app/model/prestadb/ps_module.go new file mode 100644 index 0000000..673e443 --- /dev/null +++ b/app/model/prestadb/ps_module.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_module_access.go b/app/model/prestadb/ps_module_access.go new file mode 100644 index 0000000..f3e1a2d --- /dev/null +++ b/app/model/prestadb/ps_module_access.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_module_carrier.go b/app/model/prestadb/ps_module_carrier.go new file mode 100644 index 0000000..b243f4b --- /dev/null +++ b/app/model/prestadb/ps_module_carrier.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_module_country.go b/app/model/prestadb/ps_module_country.go new file mode 100644 index 0000000..1dffb0d --- /dev/null +++ b/app/model/prestadb/ps_module_country.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_module_currency.go b/app/model/prestadb/ps_module_currency.go new file mode 100644 index 0000000..4a0b496 --- /dev/null +++ b/app/model/prestadb/ps_module_currency.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_module_group.go b/app/model/prestadb/ps_module_group.go new file mode 100644 index 0000000..762f566 --- /dev/null +++ b/app/model/prestadb/ps_module_group.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_module_history.go b/app/model/prestadb/ps_module_history.go new file mode 100644 index 0000000..785afdf --- /dev/null +++ b/app/model/prestadb/ps_module_history.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_module_preference.go b/app/model/prestadb/ps_module_preference.go new file mode 100644 index 0000000..ba1c891 --- /dev/null +++ b/app/model/prestadb/ps_module_preference.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_module_shop.go b/app/model/prestadb/ps_module_shop.go new file mode 100644 index 0000000..2fb0a17 --- /dev/null +++ b/app/model/prestadb/ps_module_shop.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_operating_system.go b/app/model/prestadb/ps_operating_system.go new file mode 100644 index 0000000..d55b4c7 --- /dev/null +++ b/app/model/prestadb/ps_operating_system.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_carrier.go b/app/model/prestadb/ps_order_carrier.go new file mode 100644 index 0000000..274c355 --- /dev/null +++ b/app/model/prestadb/ps_order_carrier.go @@ -0,0 +1,29 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_order_cart_rule.go b/app/model/prestadb/ps_order_cart_rule.go new file mode 100644 index 0000000..322160a --- /dev/null +++ b/app/model/prestadb/ps_order_cart_rule.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const TableNamePsOrderCartRule = "ps_order_cart_rule" + +// PsOrderCartRule mapped from table +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 +} diff --git a/app/model/prestadb/ps_order_detail.go b/app/model/prestadb/ps_order_detail.go new file mode 100644 index 0000000..95f2f6a --- /dev/null +++ b/app/model/prestadb/ps_order_detail.go @@ -0,0 +1,68 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_order_detail_tax.go b/app/model/prestadb/ps_order_detail_tax.go new file mode 100644 index 0000000..4207d1d --- /dev/null +++ b/app/model/prestadb/ps_order_detail_tax.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_history.go b/app/model/prestadb/ps_order_history.go new file mode 100644 index 0000000..c0010c8 --- /dev/null +++ b/app/model/prestadb/ps_order_history.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_order_invoice.go b/app/model/prestadb/ps_order_invoice.go new file mode 100644 index 0000000..6fc81e0 --- /dev/null +++ b/app/model/prestadb/ps_order_invoice.go @@ -0,0 +1,41 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_order_invoice_payment.go b/app/model/prestadb/ps_order_invoice_payment.go new file mode 100644 index 0000000..0aa997a --- /dev/null +++ b/app/model/prestadb/ps_order_invoice_payment.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_invoice_tax.go b/app/model/prestadb/ps_order_invoice_tax.go new file mode 100644 index 0000000..9b12008 --- /dev/null +++ b/app/model/prestadb/ps_order_invoice_tax.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_message.go b/app/model/prestadb/ps_order_message.go new file mode 100644 index 0000000..f9beaf2 --- /dev/null +++ b/app/model/prestadb/ps_order_message.go @@ -0,0 +1,22 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_order_message_lang.go b/app/model/prestadb/ps_order_message_lang.go new file mode 100644 index 0000000..d9cf262 --- /dev/null +++ b/app/model/prestadb/ps_order_message_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_notes.go b/app/model/prestadb/ps_order_notes.go new file mode 100644 index 0000000..87ce314 --- /dev/null +++ b/app/model/prestadb/ps_order_notes.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_order_payment.go b/app/model/prestadb/ps_order_payment.go new file mode 100644 index 0000000..0e7cf6f --- /dev/null +++ b/app/model/prestadb/ps_order_payment.go @@ -0,0 +1,33 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_order_payu_payments.go b/app/model/prestadb/ps_order_payu_payments.go new file mode 100644 index 0000000..1833eb1 --- /dev/null +++ b/app/model/prestadb/ps_order_payu_payments.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_order_return.go b/app/model/prestadb/ps_order_return.go new file mode 100644 index 0000000..98df261 --- /dev/null +++ b/app/model/prestadb/ps_order_return.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_order_return_detail.go b/app/model/prestadb/ps_order_return_detail.go new file mode 100644 index 0000000..e28f269 --- /dev/null +++ b/app/model/prestadb/ps_order_return_detail.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_return_state.go b/app/model/prestadb/ps_order_return_state.go new file mode 100644 index 0000000..0cf8679 --- /dev/null +++ b/app/model/prestadb/ps_order_return_state.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_return_state_lang.go b/app/model/prestadb/ps_order_return_state_lang.go new file mode 100644 index 0000000..228a791 --- /dev/null +++ b/app/model/prestadb/ps_order_return_state_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_slip.go b/app/model/prestadb/ps_order_slip.go new file mode 100644 index 0000000..d665dc8 --- /dev/null +++ b/app/model/prestadb/ps_order_slip.go @@ -0,0 +1,35 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_order_slip_detail.go b/app/model/prestadb/ps_order_slip_detail.go new file mode 100644 index 0000000..8a91dff --- /dev/null +++ b/app/model/prestadb/ps_order_slip_detail.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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_order_slip_detail_tax.go b/app/model/prestadb/ps_order_slip_detail_tax.go new file mode 100644 index 0000000..7bdaf8c --- /dev/null +++ b/app/model/prestadb/ps_order_slip_detail_tax.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_state.go b/app/model/prestadb/ps_order_state.go new file mode 100644 index 0000000..301bb9f --- /dev/null +++ b/app/model/prestadb/ps_order_state.go @@ -0,0 +1,30 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_order_state_lang.go b/app/model/prestadb/ps_order_state_lang.go new file mode 100644 index 0000000..bc59dab --- /dev/null +++ b/app/model/prestadb/ps_order_state_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_orders.go b/app/model/prestadb/ps_orders.go new file mode 100644 index 0000000..71a915f --- /dev/null +++ b/app/model/prestadb/ps_orders.go @@ -0,0 +1,66 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_pack.go b/app/model/prestadb/ps_pack.go new file mode 100644 index 0000000..2ca9be9 --- /dev/null +++ b/app/model/prestadb/ps_pack.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_page.go b/app/model/prestadb/ps_page.go new file mode 100644 index 0000000..c092272 --- /dev/null +++ b/app/model/prestadb/ps_page.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_page_type.go b/app/model/prestadb/ps_page_type.go new file mode 100644 index 0000000..ac1e033 --- /dev/null +++ b/app/model/prestadb/ps_page_type.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_page_viewed.go b/app/model/prestadb/ps_page_viewed.go new file mode 100644 index 0000000..ca074b5 --- /dev/null +++ b/app/model/prestadb/ps_page_viewed.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_pagenotfound.go b/app/model/prestadb/ps_pagenotfound.go new file mode 100644 index 0000000..ce47ff3 --- /dev/null +++ b/app/model/prestadb/ps_pagenotfound.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_pocztapolskaen_order.go b/app/model/prestadb/ps_pocztapolskaen_order.go new file mode 100644 index 0000000..394591e --- /dev/null +++ b/app/model/prestadb/ps_pocztapolskaen_order.go @@ -0,0 +1,35 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_pocztapolskaen_order_set.go b/app/model/prestadb/ps_pocztapolskaen_order_set.go new file mode 100644 index 0000000..d85465f --- /dev/null +++ b/app/model/prestadb/ps_pocztapolskaen_order_set.go @@ -0,0 +1,30 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_pocztapolskaen_post_office.go b/app/model/prestadb/ps_pocztapolskaen_post_office.go new file mode 100644 index 0000000..ff6a2ff --- /dev/null +++ b/app/model/prestadb/ps_pocztapolskaen_post_office.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_pocztapolskaen_profile_address.go b/app/model/prestadb/ps_pocztapolskaen_profile_address.go new file mode 100644 index 0000000..1ca235c --- /dev/null +++ b/app/model/prestadb/ps_pocztapolskaen_profile_address.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_product.go b/app/model/prestadb/ps_product.go new file mode 100644 index 0000000..3a47242 --- /dev/null +++ b/app/model/prestadb/ps_product.go @@ -0,0 +1,75 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_product_attachment.go b/app/model/prestadb/ps_product_attachment.go new file mode 100644 index 0000000..0c8af05 --- /dev/null +++ b/app/model/prestadb/ps_product_attachment.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_product_attribute.go b/app/model/prestadb/ps_product_attribute.go new file mode 100644 index 0000000..028d24a --- /dev/null +++ b/app/model/prestadb/ps_product_attribute.go @@ -0,0 +1,39 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const TableNamePsProductAttribute = "ps_product_attribute" + +// PsProductAttribute mapped from table +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 +} diff --git a/app/model/prestadb/ps_product_attribute_combination.go b/app/model/prestadb/ps_product_attribute_combination.go new file mode 100644 index 0000000..f0e097b --- /dev/null +++ b/app/model/prestadb/ps_product_attribute_combination.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_product_attribute_image.go b/app/model/prestadb/ps_product_attribute_image.go new file mode 100644 index 0000000..49d12b1 --- /dev/null +++ b/app/model/prestadb/ps_product_attribute_image.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_product_attribute_shop.go b/app/model/prestadb/ps_product_attribute_shop.go new file mode 100644 index 0000000..77babfd --- /dev/null +++ b/app/model/prestadb/ps_product_attribute_shop.go @@ -0,0 +1,33 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_product_carrier.go b/app/model/prestadb/ps_product_carrier.go new file mode 100644 index 0000000..7c1d62c --- /dev/null +++ b/app/model/prestadb/ps_product_carrier.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_product_country_tax.go b/app/model/prestadb/ps_product_country_tax.go new file mode 100644 index 0000000..c02b989 --- /dev/null +++ b/app/model/prestadb/ps_product_country_tax.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_product_download.go b/app/model/prestadb/ps_product_download.go new file mode 100644 index 0000000..6ae8d09 --- /dev/null +++ b/app/model/prestadb/ps_product_download.go @@ -0,0 +1,30 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_product_group_reduction_cache.go b/app/model/prestadb/ps_product_group_reduction_cache.go new file mode 100644 index 0000000..4cc8430 --- /dev/null +++ b/app/model/prestadb/ps_product_group_reduction_cache.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_product_lang.go b/app/model/prestadb/ps_product_lang.go new file mode 100644 index 0000000..6e6b352 --- /dev/null +++ b/app/model/prestadb/ps_product_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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_product_sale.go b/app/model/prestadb/ps_product_sale.go new file mode 100644 index 0000000..8a89098 --- /dev/null +++ b/app/model/prestadb/ps_product_sale.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_product_shop.go b/app/model/prestadb/ps_product_shop.go new file mode 100644 index 0000000..5f0961e --- /dev/null +++ b/app/model/prestadb/ps_product_shop.go @@ -0,0 +1,53 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_product_supplier.go b/app/model/prestadb/ps_product_supplier.go new file mode 100644 index 0000000..c1815dd --- /dev/null +++ b/app/model/prestadb/ps_product_supplier.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_product_tag.go b/app/model/prestadb/ps_product_tag.go new file mode 100644 index 0000000..e33c8ab --- /dev/null +++ b/app/model/prestadb/ps_product_tag.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_profile.go b/app/model/prestadb/ps_profile.go new file mode 100644 index 0000000..5ad0c6c --- /dev/null +++ b/app/model/prestadb/ps_profile.go @@ -0,0 +1,17 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_profile_lang.go b/app/model/prestadb/ps_profile_lang.go new file mode 100644 index 0000000..e34e9e5 --- /dev/null +++ b/app/model/prestadb/ps_profile_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_psgdpr_consent.go b/app/model/prestadb/ps_psgdpr_consent.go new file mode 100644 index 0000000..f331a0b --- /dev/null +++ b/app/model/prestadb/ps_psgdpr_consent.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_psgdpr_consent_lang.go b/app/model/prestadb/ps_psgdpr_consent_lang.go new file mode 100644 index 0000000..9d56705 --- /dev/null +++ b/app/model/prestadb/ps_psgdpr_consent_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_psgdpr_log.go b/app/model/prestadb/ps_psgdpr_log.go new file mode 100644 index 0000000..09df6d8 --- /dev/null +++ b/app/model/prestadb/ps_psgdpr_log.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_pshow_pshowproducttabs_hook.go b/app/model/prestadb/ps_pshow_pshowproducttabs_hook.go new file mode 100644 index 0000000..c38b750 --- /dev/null +++ b/app/model/prestadb/ps_pshow_pshowproducttabs_hook.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_quick_access.go b/app/model/prestadb/ps_quick_access.go new file mode 100644 index 0000000..cfaa1bf --- /dev/null +++ b/app/model/prestadb/ps_quick_access.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_quick_access_lang.go b/app/model/prestadb/ps_quick_access_lang.go new file mode 100644 index 0000000..e02ab4c --- /dev/null +++ b/app/model/prestadb/ps_quick_access_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_range_price.go b/app/model/prestadb/ps_range_price.go new file mode 100644 index 0000000..b28d7cd --- /dev/null +++ b/app/model/prestadb/ps_range_price.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_range_weight.go b/app/model/prestadb/ps_range_weight.go new file mode 100644 index 0000000..0c2055c --- /dev/null +++ b/app/model/prestadb/ps_range_weight.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_reassurance.go b/app/model/prestadb/ps_reassurance.go new file mode 100644 index 0000000..32bddf0 --- /dev/null +++ b/app/model/prestadb/ps_reassurance.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_reassurance_lang.go b/app/model/prestadb/ps_reassurance_lang.go new file mode 100644 index 0000000..fc51776 --- /dev/null +++ b/app/model/prestadb/ps_reassurance_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_referrer.go b/app/model/prestadb/ps_referrer.go new file mode 100644 index 0000000..ff228bf --- /dev/null +++ b/app/model/prestadb/ps_referrer.go @@ -0,0 +1,35 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_referrer_cache.go b/app/model/prestadb/ps_referrer_cache.go new file mode 100644 index 0000000..1918e82 --- /dev/null +++ b/app/model/prestadb/ps_referrer_cache.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_referrer_shop.go b/app/model/prestadb/ps_referrer_shop.go new file mode 100644 index 0000000..b07137e --- /dev/null +++ b/app/model/prestadb/ps_referrer_shop.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_request_sql.go b/app/model/prestadb/ps_request_sql.go new file mode 100644 index 0000000..7d77496 --- /dev/null +++ b/app/model/prestadb/ps_request_sql.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_required_field.go b/app/model/prestadb/ps_required_field.go new file mode 100644 index 0000000..33205cf --- /dev/null +++ b/app/model/prestadb/ps_required_field.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_risk.go b/app/model/prestadb/ps_risk.go new file mode 100644 index 0000000..b9020c5 --- /dev/null +++ b/app/model/prestadb/ps_risk.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_risk_lang.go b/app/model/prestadb/ps_risk_lang.go new file mode 100644 index 0000000..1c7804f --- /dev/null +++ b/app/model/prestadb/ps_risk_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_search_engine.go b/app/model/prestadb/ps_search_engine.go new file mode 100644 index 0000000..7cbe910 --- /dev/null +++ b/app/model/prestadb/ps_search_engine.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_search_index.go b/app/model/prestadb/ps_search_index.go new file mode 100644 index 0000000..830207b --- /dev/null +++ b/app/model/prestadb/ps_search_index.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_search_word.go b/app/model/prestadb/ps_search_word.go new file mode 100644 index 0000000..8609915 --- /dev/null +++ b/app/model/prestadb/ps_search_word.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_sekeyword.go b/app/model/prestadb/ps_sekeyword.go new file mode 100644 index 0000000..e438c9f --- /dev/null +++ b/app/model/prestadb/ps_sekeyword.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_shop.go b/app/model/prestadb/ps_shop.go new file mode 100644 index 0000000..d6811ea --- /dev/null +++ b/app/model/prestadb/ps_shop.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_shop_company.go b/app/model/prestadb/ps_shop_company.go new file mode 100644 index 0000000..5b773bd --- /dev/null +++ b/app/model/prestadb/ps_shop_company.go @@ -0,0 +1,35 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_shop_group.go b/app/model/prestadb/ps_shop_group.go new file mode 100644 index 0000000..b6c54f2 --- /dev/null +++ b/app/model/prestadb/ps_shop_group.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_shop_url.go b/app/model/prestadb/ps_shop_url.go new file mode 100644 index 0000000..467eaae --- /dev/null +++ b/app/model/prestadb/ps_shop_url.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_smarty_cache.go b/app/model/prestadb/ps_smarty_cache.go new file mode 100644 index 0000000..30ddd67 --- /dev/null +++ b/app/model/prestadb/ps_smarty_cache.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_smarty_last_flush.go b/app/model/prestadb/ps_smarty_last_flush.go new file mode 100644 index 0000000..0d09bee --- /dev/null +++ b/app/model/prestadb/ps_smarty_last_flush.go @@ -0,0 +1,22 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_smarty_lazy_cache.go b/app/model/prestadb/ps_smarty_lazy_cache.go new file mode 100644 index 0000000..3c70aa3 --- /dev/null +++ b/app/model/prestadb/ps_smarty_lazy_cache.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_specific_price.go b/app/model/prestadb/ps_specific_price.go new file mode 100644 index 0000000..08f3137 --- /dev/null +++ b/app/model/prestadb/ps_specific_price.go @@ -0,0 +1,38 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_specific_price_priority.go b/app/model/prestadb/ps_specific_price_priority.go new file mode 100644 index 0000000..6cb7260 --- /dev/null +++ b/app/model/prestadb/ps_specific_price_priority.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_specific_price_rule.go b/app/model/prestadb/ps_specific_price_rule.go new file mode 100644 index 0000000..459633b --- /dev/null +++ b/app/model/prestadb/ps_specific_price_rule.go @@ -0,0 +1,33 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_specific_price_rule_condition.go b/app/model/prestadb/ps_specific_price_rule_condition.go new file mode 100644 index 0000000..baa7caf --- /dev/null +++ b/app/model/prestadb/ps_specific_price_rule_condition.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_specific_price_rule_condition_group.go b/app/model/prestadb/ps_specific_price_rule_condition_group.go new file mode 100644 index 0000000..37b17f2 --- /dev/null +++ b/app/model/prestadb/ps_specific_price_rule_condition_group.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_state.go b/app/model/prestadb/ps_state.go new file mode 100644 index 0000000..eecf901 --- /dev/null +++ b/app/model/prestadb/ps_state.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_statssearch.go b/app/model/prestadb/ps_statssearch.go new file mode 100644 index 0000000..608be9d --- /dev/null +++ b/app/model/prestadb/ps_statssearch.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_stock.go b/app/model/prestadb/ps_stock.go new file mode 100644 index 0000000..6c9a77e --- /dev/null +++ b/app/model/prestadb/ps_stock.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_stock_available.go b/app/model/prestadb/ps_stock_available.go new file mode 100644 index 0000000..8730aa7 --- /dev/null +++ b/app/model/prestadb/ps_stock_available.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_stock_mvt.go b/app/model/prestadb/ps_stock_mvt.go new file mode 100644 index 0000000..f13690c --- /dev/null +++ b/app/model/prestadb/ps_stock_mvt.go @@ -0,0 +1,35 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_stock_mvt_reason.go b/app/model/prestadb/ps_stock_mvt_reason.go new file mode 100644 index 0000000..fdb8e3e --- /dev/null +++ b/app/model/prestadb/ps_stock_mvt_reason.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_stock_mvt_reason_lang.go b/app/model/prestadb/ps_stock_mvt_reason_lang.go new file mode 100644 index 0000000..95f46d9 --- /dev/null +++ b/app/model/prestadb/ps_stock_mvt_reason_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_store.go b/app/model/prestadb/ps_store.go new file mode 100644 index 0000000..c9e6a49 --- /dev/null +++ b/app/model/prestadb/ps_store.go @@ -0,0 +1,33 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_store_lang.go b/app/model/prestadb/ps_store_lang.go new file mode 100644 index 0000000..382a282 --- /dev/null +++ b/app/model/prestadb/ps_store_lang.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_store_shop.go b/app/model/prestadb/ps_store_shop.go new file mode 100644 index 0000000..30d1327 --- /dev/null +++ b/app/model/prestadb/ps_store_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_supplier.go b/app/model/prestadb/ps_supplier.go new file mode 100644 index 0000000..8ac59c0 --- /dev/null +++ b/app/model/prestadb/ps_supplier.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_supplier_lang.go b/app/model/prestadb/ps_supplier_lang.go new file mode 100644 index 0000000..cca4872 --- /dev/null +++ b/app/model/prestadb/ps_supplier_lang.go @@ -0,0 +1,22 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_supplier_shop.go b/app/model/prestadb/ps_supplier_shop.go new file mode 100644 index 0000000..fc0f7c7 --- /dev/null +++ b/app/model/prestadb/ps_supplier_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_supply_order.go b/app/model/prestadb/ps_supply_order.go new file mode 100644 index 0000000..fcdce9b --- /dev/null +++ b/app/model/prestadb/ps_supply_order.go @@ -0,0 +1,39 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_supply_order_detail.go b/app/model/prestadb/ps_supply_order_detail.go new file mode 100644 index 0000000..3c39475 --- /dev/null +++ b/app/model/prestadb/ps_supply_order_detail.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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_supply_order_history.go b/app/model/prestadb/ps_supply_order_history.go new file mode 100644 index 0000000..c59132f --- /dev/null +++ b/app/model/prestadb/ps_supply_order_history.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_supply_order_receipt_history.go b/app/model/prestadb/ps_supply_order_receipt_history.go new file mode 100644 index 0000000..ee26f80 --- /dev/null +++ b/app/model/prestadb/ps_supply_order_receipt_history.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 prestadb + +import ( + "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 +} diff --git a/app/model/prestadb/ps_supply_order_state.go b/app/model/prestadb/ps_supply_order_state.go new file mode 100644 index 0000000..37e6f9a --- /dev/null +++ b/app/model/prestadb/ps_supply_order_state.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_supply_order_state_lang.go b/app/model/prestadb/ps_supply_order_state_lang.go new file mode 100644 index 0000000..2702fbe --- /dev/null +++ b/app/model/prestadb/ps_supply_order_state_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_tab.go b/app/model/prestadb/ps_tab.go new file mode 100644 index 0000000..3017297 --- /dev/null +++ b/app/model/prestadb/ps_tab.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_tab_advice.go b/app/model/prestadb/ps_tab_advice.go new file mode 100644 index 0000000..de3383b --- /dev/null +++ b/app/model/prestadb/ps_tab_advice.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_tab_lang.go b/app/model/prestadb/ps_tab_lang.go new file mode 100644 index 0000000..4f34e2e --- /dev/null +++ b/app/model/prestadb/ps_tab_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_tab_module_preference.go b/app/model/prestadb/ps_tab_module_preference.go new file mode 100644 index 0000000..f0238a3 --- /dev/null +++ b/app/model/prestadb/ps_tab_module_preference.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_tag.go b/app/model/prestadb/ps_tag.go new file mode 100644 index 0000000..9c4d454 --- /dev/null +++ b/app/model/prestadb/ps_tag.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_tag_count.go b/app/model/prestadb/ps_tag_count.go new file mode 100644 index 0000000..4f3c03d --- /dev/null +++ b/app/model/prestadb/ps_tag_count.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_tax.go b/app/model/prestadb/ps_tax.go new file mode 100644 index 0000000..d128f34 --- /dev/null +++ b/app/model/prestadb/ps_tax.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_tax_lang.go b/app/model/prestadb/ps_tax_lang.go new file mode 100644 index 0000000..0c98088 --- /dev/null +++ b/app/model/prestadb/ps_tax_lang.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_tax_rule.go b/app/model/prestadb/ps_tax_rule.go new file mode 100644 index 0000000..d3cc9bb --- /dev/null +++ b/app/model/prestadb/ps_tax_rule.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 prestadb + +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 +} diff --git a/app/model/prestadb/ps_tax_rules_group.go b/app/model/prestadb/ps_tax_rules_group.go new file mode 100644 index 0000000..51bff1b --- /dev/null +++ b/app/model/prestadb/ps_tax_rules_group.go @@ -0,0 +1,26 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +import ( + "time" +) + +const 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 +} diff --git a/app/model/prestadb/ps_tax_rules_group_shop.go b/app/model/prestadb/ps_tax_rules_group_shop.go new file mode 100644 index 0000000..865ae4a --- /dev/null +++ b/app/model/prestadb/ps_tax_rules_group_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_timezone.go b/app/model/prestadb/ps_timezone.go new file mode 100644 index 0000000..66be37a --- /dev/null +++ b/app/model/prestadb/ps_timezone.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_translation.go b/app/model/prestadb/ps_translation.go new file mode 100644 index 0000000..dc7a673 --- /dev/null +++ b/app/model/prestadb/ps_translation.go @@ -0,0 +1,22 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_unit.go b/app/model/prestadb/ps_unit.go new file mode 100644 index 0000000..805604d --- /dev/null +++ b/app/model/prestadb/ps_unit.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_unit_lang.go b/app/model/prestadb/ps_unit_lang.go new file mode 100644 index 0000000..8e55aca --- /dev/null +++ b/app/model/prestadb/ps_unit_lang.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_warehouse.go b/app/model/prestadb/ps_warehouse.go new file mode 100644 index 0000000..99cfbe9 --- /dev/null +++ b/app/model/prestadb/ps_warehouse.go @@ -0,0 +1,24 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_warehouse_carrier.go b/app/model/prestadb/ps_warehouse_carrier.go new file mode 100644 index 0000000..3f0bff6 --- /dev/null +++ b/app/model/prestadb/ps_warehouse_carrier.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_warehouse_product_location.go b/app/model/prestadb/ps_warehouse_product_location.go new file mode 100644 index 0000000..7e4301d --- /dev/null +++ b/app/model/prestadb/ps_warehouse_product_location.go @@ -0,0 +1,21 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_warehouse_shop.go b/app/model/prestadb/ps_warehouse_shop.go new file mode 100644 index 0000000..3fb883f --- /dev/null +++ b/app/model/prestadb/ps_warehouse_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_web_browser.go b/app/model/prestadb/ps_web_browser.go new file mode 100644 index 0000000..63739cd --- /dev/null +++ b/app/model/prestadb/ps_web_browser.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_webservice_account.go b/app/model/prestadb/ps_webservice_account.go new file mode 100644 index 0000000..5fa1c3b --- /dev/null +++ b/app/model/prestadb/ps_webservice_account.go @@ -0,0 +1,23 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_webservice_account_shop.go b/app/model/prestadb/ps_webservice_account_shop.go new file mode 100644 index 0000000..d07de13 --- /dev/null +++ b/app/model/prestadb/ps_webservice_account_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_webservice_permission.go b/app/model/prestadb/ps_webservice_permission.go new file mode 100644 index 0000000..910c6ef --- /dev/null +++ b/app/model/prestadb/ps_webservice_permission.go @@ -0,0 +1,20 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_zone.go b/app/model/prestadb/ps_zone.go new file mode 100644 index 0000000..e6643d1 --- /dev/null +++ b/app/model/prestadb/ps_zone.go @@ -0,0 +1,19 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/model/prestadb/ps_zone_shop.go b/app/model/prestadb/ps_zone_shop.go new file mode 100644 index 0000000..8dcdd87 --- /dev/null +++ b/app/model/prestadb/ps_zone_shop.go @@ -0,0 +1,18 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package prestadb + +const 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 +} diff --git a/app/service/menuService/menuService.go b/app/service/menuService/menuService.go index d0f3d09..757c9dd 100644 --- a/app/service/menuService/menuService.go +++ b/app/service/menuService/menuService.go @@ -1,12 +1,14 @@ package menuService import ( - "fmt" "sort" + "git.ma-al.com/goc_daniel/b2b/app/db" "git.ma-al.com/goc_daniel/b2b/app/model" + "git.ma-al.com/goc_daniel/b2b/app/model/prestadb" "git.ma-al.com/goc_daniel/b2b/app/repos/categoriesRepo" routesRepo "git.ma-al.com/goc_daniel/b2b/app/repos/routesRepo" + "git.ma-al.com/goc_daniel/b2b/app/utils/jsonprint" "git.ma-al.com/goc_daniel/b2b/app/utils/responseErrors" ) @@ -28,10 +30,6 @@ func (s *MenuService) GetMenu(id_lang uint) (*model.Category, error) { return &model.Category{}, err } - fmt.Printf("all_categories: %v\n", all_categories) - - fmt.Printf("id_lang: %v\n", id_lang) - // find the root root_index := 0 root_found := false @@ -79,6 +77,17 @@ func (s *MenuService) createTree(index int, all_categories *([]model.ScannedCate } func (s *MenuService) GetRoutes(id_lang uint) ([]model.Route, error) { + + type XX struct { + prestadb.PsProduct + // PsProductLang prestadb.PsProductLang `gorm:"foreignKey:IDProduct;references:IDProduct"` + // PSProductAttribute prestadb.PsProductAttribute `gorm:"foreignKey:IDProduct;references:IDProduct"` + } + product := XX{} + db.Get().Debug().Find(&product, prestadb.PsCategoryProduct{IDProduct: 53}) + // fmt.Printf("%v\n nnnnnnnn", product) + jsonprint.Print(product) + return s.routesRepo.GetRoutes(id_lang) } diff --git a/app/utils/genModels/genModels.go b/app/utils/genModels/genModels.go new file mode 100644 index 0000000..f3e64d2 --- /dev/null +++ b/app/utils/genModels/genModels.go @@ -0,0 +1,191 @@ +package genmodels + +import ( + "context" + "fmt" + "os" + "path/filepath" + "strings" + + "gorm.io/gen" + "gorm.io/gorm" +) + +const GENERATED_FILES_FOLDER = "./app/model/prestadb" +const GENERATED_MODEL_PKG = "prestadb" + +type GormGenModels struct { + db *gorm.DB +} + +func New(db *gorm.DB) *GormGenModels { + return &GormGenModels{ + db: db, + } +} + +func (m *GormGenModels) GormGenModels(ctx context.Context) error { + // Use gorm gen to generate models + g := gen.NewGenerator(gen.Config{ + OutPath: GENERATED_FILES_FOLDER, + ModelPkgPath: GENERATED_MODEL_PKG, + // Mode: gen.WithoutContext, + // OutFile: GENERATED_FILES_FOLDER + "/../gen.go", + FieldNullable: true, + FieldWithIndexTag: true, + // Mode: gen.WithoutContext, + }) + + g.UseDB(m.db) + + // Get all table names from the database and filter for 'ps_' prefix + tableNames, err := m.db.Migrator().GetTables() + if err != nil { + return fmt.Errorf("failed to get table list: %w", err) + } + + // Generate models only for tables with 'ps_' prefix + // Generate models without relations - relations can be added manually if needed + for _, tableName := range tableNames { + if strings.HasPrefix(tableName, "ps_") { + g.GenerateModel(tableName) + } + } + + g.Execute() + + // Post-process: remove query/DO files and keep only model files + if err := m.cleanupGeneratedFiles(); err != nil { + return fmt.Errorf("failed to cleanup generated files: %w", err) + } + + return nil +} + +func (m *GormGenModels) cleanupGeneratedFiles() error { + // Files to remove (query/DO code) + filesToRemove := []string{ + "gen.go", + "do.go", + "_gen.go", + } + + // Directory to clean + dir := GENERATED_FILES_FOLDER + if !strings.HasPrefix(dir, "./") { + dir = "./" + dir + } + + // Get absolute path if needed + absDir, err := filepath.Abs(dir) + if err != nil { + return err + } + + // Remove query files + for _, fileName := range filesToRemove { + filePath := filepath.Join(absDir, fileName) + if _, err := os.Stat(filePath); err == nil { + if err := os.Remove(filePath); err != nil { + return fmt.Errorf("failed to remove %s: %w", filePath, err) + } + fmt.Printf("Removed: %s\n", filePath) + } + } + + // Rename ps_*.gen.go to *.go (e.g., ps_category.gen.go -> category.go) + files, err := os.ReadDir(absDir) + if err != nil { + return err + } + + for _, file := range files { + name := file.Name() + // Check if it's a generated model file like ps_category.gen.go + if strings.HasSuffix(name, ".gen.go") && strings.HasPrefix(name, "ps_") { + oldPath := filepath.Join(absDir, name) + // Extract name: ps_category.gen.go -> category + baseName := strings.TrimSuffix(name, ".gen.go") + // baseName, _ = strings.CutPrefix(baseName, "ps_") + newPath := filepath.Join(absDir, baseName+".go") + + // Read file content + content, err := os.ReadFile(oldPath) + if err != nil { + return err + } + + // Remove package prestadb imports that reference generated DO + // and clean up the code + content = m.cleanModelContent(content) + + // Write to new file + if err := os.WriteFile(newPath, content, 0644); err != nil { + return err + } + + // Remove old file + if err := os.Remove(oldPath); err != nil { + return err + } + + fmt.Printf("Renamed: %s -> %s\n", oldPath, newPath) + } + } + + return nil +} + +func (m *GormGenModels) cleanModelContent(content []byte) []byte { + result := string(content) + + // Remove imports that are only needed for query code + // Keep "gorm.io/gorm/schema" for TableName method + lines := strings.Split(result, "\n") + var newLines []string + importStarted := false + importEnded := false + + for _, line := range lines { + trimmed := strings.TrimSpace(line) + + // Track import block + if trimmed == "import (" { + importStarted = true + newLines = append(newLines, line) + continue + } + if importStarted && trimmed == ")" { + importEnded = true + importStarted = false + newLines = append(newLines, line) + continue + } + + // Inside import block, remove query-related imports + if importStarted && !importEnded { + // Skip these imports as they're only for query code + if strings.Contains(trimmed, "\"gorm.io/gen\"") || + strings.Contains(trimmed, "\"gorm.io/gen/field\"") || + strings.Contains(trimmed, "\"gorm.io/plugin/dbresolver\"") || + strings.Contains(trimmed, "gen.DO") { + continue + } + } + + // Remove DO (Data Object) type definitions + if strings.Contains(trimmed, "type psCategoryDo struct") || + strings.HasPrefix(trimmed, "func (p psCategoryDo)") { + continue + } + + newLines = append(newLines, line) + } + + result = strings.Join(newLines, "\n") + + // Also remove the psCategoryDo references in methods + result = strings.ReplaceAll(result, "psCategoryDo", "") + + return []byte(result) +} diff --git a/app/utils/jsonprint/jsonprint.go b/app/utils/jsonprint/jsonprint.go new file mode 100644 index 0000000..fbfa7a0 --- /dev/null +++ b/app/utils/jsonprint/jsonprint.go @@ -0,0 +1,23 @@ +package jsonprint + +import ( + "encoding/json" + "os" + + "github.com/alecthomas/chroma/quick" +) + +func Print(v any) { + // Marshal your data to pretty JSON + b, err := json.MarshalIndent(v, "", " ") + if err != nil { + panic(err) + } + + // Use Chroma to print colored JSON to stdout + // lexer: "json", style: "monokai", writer: os.Stdout + err = quick.Highlight(os.Stdout, string(b), "json", "terminal", "solarized") + if err != nil { + panic(err) + } +} diff --git a/bo/components.d.ts b/bo/components.d.ts index 30a5d75..6060914 100644 --- a/bo/components.d.ts +++ b/bo/components.d.ts @@ -43,12 +43,15 @@ declare module 'vue' { UCard: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Card.vue')['default'] UCheckbox: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Checkbox.vue')['default'] UDrawer: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Drawer.vue')['default'] + UDropdownMenu: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/DropdownMenu.vue')['default'] UForm: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Form.vue')['default'] UFormField: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/FormField.vue')['default'] UIcon: typeof import('./node_modules/@nuxt/ui/dist/runtime/vue/components/Icon.vue')['default'] UInput: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Input.vue')['default'] UInputNumber: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/InputNumber.vue')['default'] + ULink: typeof import('./node_modules/@nuxt/ui/dist/runtime/vue/overrides/vue-router/Link.vue')['default'] UModal: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Modal.vue')['default'] + UNavigationMenu: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/NavigationMenu.vue')['default'] UPagination: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Pagination.vue')['default'] USelect: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Select.vue')['default'] USelectMenu: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/SelectMenu.vue')['default'] diff --git a/bo/src/components/admin/PageProductsList.vue b/bo/src/components/admin/PageProductsList.vue index 8482ed4..876251d 100644 --- a/bo/src/components/admin/PageProductsList.vue +++ b/bo/src/components/admin/PageProductsList.vue @@ -1,11 +1,16 @@ +const selectedCount = ref({ + product_id: null, + count: 0 +}) + +function getIcon(name: string) { + if (sortField.value[0] === name) { + if (sortField.value[1] === 'asc') return 'i-lucide-arrow-up-narrow-wide' + if (sortField.value[1] === 'desc') return 'i-lucide-arrow-down-wide-narrow' + } + return 'i-lucide-arrow-up-down' +} + +const UInputNumber = resolveComponent('UInputNumber') +const UInput = resolveComponent('UInput') +const UButton = resolveComponent('UButton') +const UIcon = resolveComponent('UIcon') + +const columns: TableColumn[] = [ + { + id: 'expand', + cell: ({ row }) => + h(UButton, { + color: 'neutral', + variant: 'ghost', + icon: 'i-lucide-chevron-down', + square: true, + 'aria-label': 'Expand', + ui: { + leadingIcon: [ + 'transition-transform', + row.getIsExpanded() ? 'duration-200 rotate-180' : '' + ] + }, + onClick: () => row.toggleExpanded() + }) + }, + { + accessorKey: 'product_id', + header: ({ column }) => { + return h('div', { class: 'flex flex-col gap-1' }, [ + h('div', { + class: 'flex items-center gap-2 cursor-pointer', + onClick: () => { + sortField.value = ['product_id', 'asc'] + } + }, [ + h('span', 'ID'), + h(UIcon, { + name: getIcon('product_id') + }) + ]), + + h(UInput, { + placeholder: 'Search...', + modelValue: column.getFilterValue() ?? '', + 'onUpdate:modelValue': (val: string) => { + if (val) { + filters.value[column.id] = val + } else { + delete filters.value[column.id] + } + }, + size: 'xs' + }) + ]) + }, + // header: '#', + cell: ({ row }) => `#${row.getValue('product_id') as number}` + }, + { + accessorKey: 'image_link', + header: 'Image', + cell: ({ row }) => { + return h('img', { + src: row.getValue('image_link') as string, + style: 'width:40px;height:40px;object-fit:cover;' + }) + } + }, + { + accessorKey: 'name', + header: ({ column }) => { + return h('div', { class: 'flex flex-col gap-1' }, [ + h('div', { + class: 'flex items-center gap-2 cursor-pointer', + onClick: () => { + sortField.value = ['name', 'asc'] + } + }, [ + h('span', 'Name'), + h(UIcon, { + name: getIcon('name') + }) + ]), + + h(UInput, { + placeholder: 'Search...', + modelValue: column.getFilterValue() ?? '', + 'onUpdate:modelValue': (val: string) => { + if (val) { + filters.value[column.id] = val + } else { + delete filters.value[column.id] + } + }, + size: 'xs' + }) + ]) + }, + cell: ({ row }) => row.getValue('name') as string, + filterFn: (row, columnId, value) => { + const name = row.getValue(columnId) as string + return name.toLowerCase().includes(value.toLowerCase()) + } + }, + { + accessorKey: 'quantity', + header: ({ column }) => { + return h('div', { class: 'flex flex-col gap-1' }, [ + h('div', { + class: 'flex items-center gap-2 cursor-pointer', + onClick: () => { + sortField.value = ['quantity', 'asc'] + } + }, [ + h('span', 'In stock'), + h(UIcon, { + name: getIcon('quantity') + }) + ]), + ]) + }, + cell: ({ row }) => row.getValue('quantity') as number + }, + { + accessorKey: 'count', + header: 'Count', + cell: ({ row }) => { + return h(UInputNumber, { + modelValue: selectedCount.value.product_id === row.original.product_id ? selectedCount.value.count : 0, + 'onUpdate:modelValue': (val: number) => { + if (val) + selectedCount.value = { + product_id: row.original.product_id, + count: val + } + else { + selectedCount.value = { + product_id: null, + count: 0 + } + } + }, + min: 0, + max: row.original.quantity + }) + } + }, + { + accessorKey: 'count', + header: '', + cell: ({ row }) => { + return h(UButton, { + onClick: () => { + console.log('Clicked', row.original) + }, + color: selectedCount.value.product_id !== row.original.product_id ? 'info' : 'primary', + disabled: selectedCount.value.product_id !== row.original.product_id, + variant: 'solid' + }, 'Add to cart') + }, + } +] + +const columnsChild: TableColumn[] = [ + { + accessorKey: 'product_id', + header: '', + cell: ({ row }) => `#${row.getValue('product_id') as number}` + }, + { + accessorKey: 'image_link', + header: '', + cell: ({ row }) => { + return h('img', { + src: row.getValue('image_link') as string, + style: 'width:40px;height:40px;object-fit:cover;' + }) + } + }, + { + accessorKey: 'name', + header: '', + cell: ({ row }) => row.getValue('name') as string + }, + { + accessorKey: 'quantity', + header: '', + cell: ({ row }) => row.getValue('quantity') as number + }, + { + accessorKey: 'count', + header: '', + cell: ({ row }) => { + return h(UInputNumber, { + modelValue: selectedCount.value.product_id === row.original.product_id ? selectedCount.value.count : 0, + 'onUpdate:modelValue': (val: number) => { + if (val) + selectedCount.value = { + product_id: row.original.product_id, + count: val + } + else { + selectedCount.value = { + product_id: null, + count: 0 + } + } + }, + min: 0, + max: row.original.quantity + }) + } + }, + { + accessorKey: 'count', + header: '', + cell: ({ row }) => { + return h(UButton, { + onClick: () => { + console.log('Clicked', row.original) + }, + color: selectedCount.value.product_id !== row.original.product_id ? 'info' : 'primary', + disabled: selectedCount.value.product_id !== row.original.product_id, + variant: 'solid' + }, 'Add to cart') + }, + } +] + +watch([page, sortField, filters.value], () => { + fetchProductList() +}, { immediate: true }) + diff --git a/go.mod b/go.mod index 53d022d..3c6905a 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ require ( cloud.google.com/go/auth v0.16.4 cloud.google.com/go/translate v1.12.7 github.com/a-h/templ v0.3.1001 + github.com/alecthomas/chroma v0.10.0 github.com/dlclark/regexp2 v1.11.5 github.com/go-git/go-git/v5 v5.17.0 github.com/gofiber/fiber/v3 v3.1.0 @@ -14,9 +15,11 @@ require ( github.com/meilisearch/meilisearch-go v0.36.1 github.com/openai/openai-go/v3 v3.28.0 github.com/samber/lo v1.53.0 + github.com/spf13/cobra v1.9.1 golang.org/x/crypto v0.48.0 golang.org/x/oauth2 v0.36.0 google.golang.org/api v0.247.0 + gorm.io/gen v0.3.27 gorm.io/gorm v1.31.1 ) @@ -30,6 +33,8 @@ require ( github.com/google/s2a-go v0.1.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect github.com/googleapis/gax-go/v2 v2.15.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/spf13/pflag v1.0.6 // indirect github.com/tidwall/gjson v1.18.0 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.1 // indirect @@ -40,12 +45,17 @@ require ( go.opentelemetry.io/otel v1.36.0 // indirect go.opentelemetry.io/otel/metric v1.36.0 // indirect go.opentelemetry.io/otel/trace v1.36.0 // indirect + golang.org/x/mod v0.33.0 // indirect golang.org/x/time v0.12.0 // indirect + golang.org/x/tools v0.42.0 // indirect google.golang.org/genproto v0.0.0-20250603155806-513f23925822 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20250818200422-3122310a409c // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20250818200422-3122310a409c // indirect google.golang.org/grpc v1.74.2 // indirect google.golang.org/protobuf v1.36.7 // indirect + gorm.io/datatypes v1.2.4 // indirect + gorm.io/hints v1.1.0 // indirect + gorm.io/plugin/dbresolver v1.6.2 // indirect ) require ( diff --git a/go.sum b/go.sum index 6b02711..cdcd176 100644 --- a/go.sum +++ b/go.sum @@ -21,6 +21,8 @@ github.com/ProtonMail/go-crypto v1.4.0 h1:Zq/pbM3F5DFgJiMouxEdSVY44MVoQNEKp5d5Qx github.com/ProtonMail/go-crypto v1.4.0/go.mod h1:e1OaTyu5SYVrO9gKOEhTc+5UcXtTUa+P3uLudwcgPqo= github.com/a-h/templ v0.3.1001 h1:yHDTgexACdJttyiyamcTHXr2QkIeVF1MukLy44EAhMY= github.com/a-h/templ v0.3.1001/go.mod h1:oCZcnKRf5jjsGpf2yELzQfodLphd2mwecwG4Crk5HBo= +github.com/alecthomas/chroma v0.10.0 h1:7XDcGkCQopCNKjZHfYrNLraA+M7e0fMiJ/Mfikbfjek= +github.com/alecthomas/chroma v0.10.0/go.mod h1:jtJATyUxlIORhUOFNA9NZDWGAQ8wpxQQqNSB4rjA/1s= github.com/andybalholm/brotli v1.2.0 h1:ukwgCxwYrmACq68yiUqwIWnGY0cTPox/M94sVwToPjQ= github.com/andybalholm/brotli v1.2.0/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= @@ -29,12 +31,14 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPd github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8= github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/cyphar/filepath-securejoin v0.6.1 h1:5CeZ1jPXEiYt3+Z6zqprSAgSWiggmpVyciv8syjIpVE= github.com/cyphar/filepath-securejoin v0.6.1/go.mod h1:A8hd4EnAeyujCJRrICiOWqjS1AX0a9kM5XL+NwKoYSc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dlclark/regexp2 v1.4.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= github.com/dlclark/regexp2 v1.11.5 h1:Q/sSnsKerHeCkc/jSTNq1oCm7KiVgUMZRDUoRu0JQZQ= github.com/dlclark/regexp2 v1.11.5/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= github.com/elazarl/goproxy v1.8.2 h1:keGt9KHFAnrXFEctQuOF9NRxKFCXtd5cQg5PrBdeVW4= @@ -70,6 +74,10 @@ github.com/gofiber/utils/v2 v2.0.2 h1:ShRRssz0F3AhTlAQcuEj54OEDtWF7+HJDwEi/aa6QL github.com/gofiber/utils/v2 v2.0.2/go.mod h1:+9Ub4NqQ+IaJoTliq5LfdmOJAA/Hzwf4pXOxOa3RrJ0= github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= +github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 h1:au07oEsX2xN0ktxqI+Sida1w446QrXBRJ0nee3SNZlA= +github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= +github.com/golang-sql/sqlexp v0.1.0 h1:ZCD6MBpcuOVfGVqsEmY5/4FtYiKz6tSyUv9LPEDei6A= +github.com/golang-sql/sqlexp v0.1.0/go.mod h1:J4ad9Vo8ZCWQ2GMrC4UCQy1JpCbwU9m3EOqtpKwwwHI= github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ= github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= @@ -84,10 +92,21 @@ github.com/googleapis/enterprise-certificate-proxy v0.3.6 h1:GW/XbdyBFQ8Qe+YAmFU github.com/googleapis/enterprise-certificate-proxy v0.3.6/go.mod h1:MkHOF77EYAE7qfSuSS9PU6g4Nt4e11cnsDUowfwewLA= github.com/googleapis/gax-go/v2 v2.15.0 h1:SyjDc1mGgZU5LncH8gimWo9lW1DtIfPibOG81vgd/bo= github.com/googleapis/gax-go/v2 v2.15.0/go.mod h1:zVVkkxAQHa1RQpg9z2AUCMnKhi0Qld9rcmyfL1OZhoc= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= +github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= +github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 h1:L0QtFUgDarD7Fpv9jeVMgy/+Ec0mtnmYuImjTz6dtDA= +github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= +github.com/jackc/pgx/v5 v5.5.5 h1:amBjrZVmksIdNjxGW/IiIMzxMKZFelXbUoPNb+8sjQw= +github.com/jackc/pgx/v5 v5.5.5/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A= +github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk= +github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= +github.com/jinzhu/now v1.1.2/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= @@ -109,8 +128,13 @@ github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHP github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-sqlite3 v1.14.8/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= +github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= +github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/meilisearch/meilisearch-go v0.36.1 h1:mJTCJE5g7tRvaqKco6DfqOuJEjX+rRltDEnkEC02Y0M= github.com/meilisearch/meilisearch-go v0.36.1/go.mod h1:hWcR0MuWLSzHfbz9GGzIr3s9rnXLm1jqkmHkJPbUSvM= +github.com/microsoft/go-mssqldb v0.17.0 h1:Fto83dMZPnYv1Zwx5vHHxpNraeEaUlQ/hhHLgZiaenE= +github.com/microsoft/go-mssqldb v0.17.0/go.mod h1:OkoNGhGEs8EZqchVTtochlXruEhEOaO4S0d2sB5aeGQ= github.com/onsi/gomega v1.39.1 h1:1IJLAad4zjPn2PsnhH70V4DKRFlrCzGBNrNaru+Vf28= github.com/onsi/gomega v1.39.1/go.mod h1:hL6yVALoTOxeWudERyfppUcZXjMwIMLnuSfruD2lcfg= github.com/openai/openai-go/v3 v3.28.0 h1:2+FfrCVMdGXSQrBv1tLWtokm+BU7+3hJ/8rAHPQ63KM= @@ -126,6 +150,7 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/samber/lo v1.53.0 h1:t975lj2py4kJPQ6haz1QMgtId2gtmfktACxIXArw3HM= github.com/samber/lo v1.53.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0= github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw= @@ -135,9 +160,14 @@ github.com/shamaton/msgpack/v3 v3.1.0/go.mod h1:DcQG8jrdrQCIxr3HlMYkiXdMhK+KfN2C github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/skeema/knownhosts v1.3.2 h1:EDL9mgf4NzwMXCTfaxSD/o/a5fxDw/xL9nkU28JjdBg= github.com/skeema/knownhosts v1.3.2/go.mod h1:bEg3iQAuw+jyiw+484wwFJoKSLwcfd7fqRy+N0QTiow= +github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo= +github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= +github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= +github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= @@ -183,6 +213,8 @@ go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts= golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos= +golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8= +golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.51.0 h1:94R/GTO7mt3/4wIKpcR5gkGmRLOuE/2hNGeWq/GBIFo= golang.org/x/net v0.51.0/go.mod h1:aamm+2QF5ogm02fjy5Bb7CQ0WMt1/WVM7FtyaTLlA9Y= @@ -208,6 +240,8 @@ golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA= golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE= golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k= +golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0= google.golang.org/api v0.247.0 h1:tSd/e0QrUlLsrwMKmkbQhYVa109qIintOls2Wh6bngc= google.golang.org/api v0.247.0/go.mod h1:r1qZOPmxXffXg6xS5uhx16Fa/UFY8QU/K4bfKrnvovM= google.golang.org/genproto v0.0.0-20250603155806-513f23925822 h1:rHWScKit0gvAPuOnu87KpaYtjK5zBMLcULh7gxkCXu4= @@ -228,9 +262,27 @@ gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gorm.io/datatypes v1.2.4 h1:uZmGAcK/QZ0uyfCuVg0VQY1ZmV9h1fuG0tMwKByO1z4= +gorm.io/datatypes v1.2.4/go.mod h1:f4BsLcFAX67szSv8svwLRjklArSHAvHLeE3pXAS5DZI= gorm.io/driver/mysql v1.6.0 h1:eNbLmNTpPpTOVZi8MMxCi2aaIm0ZpInbORNXDwyLGvg= gorm.io/driver/mysql v1.6.0/go.mod h1:D/oCC2GWK3M/dqoLxnOlaNKmXz8WNTfcS9y5ovaSqKo= +gorm.io/driver/postgres v1.5.0 h1:u2FXTy14l45qc3UeCJ7QaAXZmZfDDv0YrthvmRq1l0U= +gorm.io/driver/postgres v1.5.0/go.mod h1:FUZXzO+5Uqg5zzwzv4KK49R8lvGIyscBOqYrtI1Ce9A= +gorm.io/driver/sqlite v1.1.6/go.mod h1:W8LmC/6UvVbHKah0+QOC7Ja66EaZXHwUTjgXY8YNWX8= +gorm.io/driver/sqlite v1.6.0 h1:WHRRrIiulaPiPFmDcod6prc4l2VGVWHz80KspNsxSfQ= +gorm.io/driver/sqlite v1.6.0/go.mod h1:AO9V1qIQddBESngQUKWL9yoH93HIeA1X6V633rBwyT8= +gorm.io/driver/sqlserver v1.4.1 h1:t4r4r6Jam5E6ejqP7N82qAJIJAht27EGT41HyPfXRw0= +gorm.io/driver/sqlserver v1.4.1/go.mod h1:DJ4P+MeZbc5rvY58PnmN1Lnyvb5gw5NPzGshHDnJLig= +gorm.io/gen v0.3.27 h1:ziocAFLpE7e0g4Rum69pGfB9S6DweTxK8gAun7cU8as= +gorm.io/gen v0.3.27/go.mod h1:9zquz2xD1f3Eb/eHq4oLn2z6vDVvQlCY5S3uMBLv4EA= +gorm.io/gorm v1.21.15/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0= +gorm.io/gorm v1.22.2/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0= gorm.io/gorm v1.31.1 h1:7CA8FTFz/gRfgqgpeKIBcervUn3xSyPUmr6B2WXJ7kg= gorm.io/gorm v1.31.1/go.mod h1:XyQVbO2k6YkOis7C2437jSit3SsDK72s7n7rsSHd+Gs= +gorm.io/hints v1.1.0 h1:Lp4z3rxREufSdxn4qmkK3TLDltrM10FLTHiuqwDPvXw= +gorm.io/hints v1.1.0/go.mod h1:lKQ0JjySsPBj3uslFzY3JhYDtqEwzm+G1hv8rWujB6Y= +gorm.io/plugin/dbresolver v1.6.2 h1:F4b85TenghUeITqe3+epPSUtHH7RIk3fXr5l83DF8Pc= +gorm.io/plugin/dbresolver v1.6.2/go.mod h1:tctw63jdrOezFR9HmrKnPkmig3m5Edem9fdxk9bQSzM= diff --git a/i18n/migrations/20260302163110_menus_routes.sql b/i18n/migrations/20260302163110_menus_routes.sql new file mode 100644 index 0000000..db5cf89 --- /dev/null +++ b/i18n/migrations/20260302163110_menus_routes.sql @@ -0,0 +1,34 @@ +-- +goose Up +-- -- create routes table +-- CREATE TABLE IF NOT EXISTS b2b_routes ( +-- id INT AUTO_INCREMENT PRIMARY KEY, +-- name VARCHAR(255) NOT NULL UNIQUE, +-- path VARCHAR(255) NULL, +-- component VARCHAR(255) NOT NULL COMMENT 'path to component file', +-- layout VARCHAR(50) DEFAULT 'default' COMMENT "'default' | 'empty'", +-- meta JSON DEFAULT '{}', +-- is_active BOOLEAN DEFAULT TRUE, +-- sort_order INT DEFAULT 0, +-- parent_id INT NULL, + +-- CONSTRAINT fk_parent +-- FOREIGN KEY (parent_id) +-- REFERENCES b2b_routes(id) +-- ON DELETE SET NULL +-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- INSERT IGNORE INTO b2b_routes +-- (name, path, component, layout, meta, is_active, sort_order, parent_id) +-- VALUES +-- ('root', '', '', 'default', '{"trans": "route.root"}', 0, 0, 0), +-- ('home', '', '@/views/HomeView.vue', 'default', '{"trans": "route.home"}', 1, 0, 0), +-- ('login', 'login', '@/views/LoginView.vue', 'empty', '{"guest":true}', 1, 2, NULL), +-- ('register', 'register', '@/views/RegisterView.vue', 'empty', '{"guest":true}', 1, 3, NULL), +-- ('password-recovery', 'password-recovery', '@/views/PasswordRecoveryView.vue', 'empty', '{"guest":true}', 1, 4, NULL), +-- ('reset-password', 'reset-password', '@/views/ResetPasswordView.vue', 'empty', '{"guest":true}', 1, 5, NULL), +-- ('verify-email', 'verify-email', '@/views/VerifyEmailView.vue', 'empty', '{"guest":true}', 1, 6, NULL); + +-- +goose Down + +-- DROP TABLE IF EXISTS b2b_routes; +