diff --git a/app/model/dbmodel/b2b_carts_products.go b/app/model/dbmodel/b2b_carts_products.go new file mode 100644 index 0000000..2d64af1 --- /dev/null +++ b/app/model/dbmodel/b2b_carts_products.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNameB2bCartsProduct = "b2b_carts_products" + +// B2bCartsProduct mapped from table +type B2bCartsProduct struct { + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + CartID int64 `gorm:"column:cart_id;not null;index:idx_carts_products_cart_id,priority:1" json:"cart_id"` + ProductID int32 `gorm:"column:product_id;not null;index:fk_carts_products_product,priority:1" json:"product_id"` + ProductAttributeID *int64 `gorm:"column:product_attribute_id" json:"product_attribute_id"` + Amount int32 `gorm:"column:amount;not null" json:"amount"` +} + +// TableName B2bCartsProduct's table name +func (*B2bCartsProduct) TableName() string { + return TableNameB2bCartsProduct +} + +var B2bCartsProductCols = struct { + ID gormcol.Field + CartID gormcol.Field + ProductID gormcol.Field + ProductAttributeID gormcol.Field + Amount gormcol.Field +}{ + ID: gormcol.Field{}.Set((&B2bCartsProduct{}).TableName(), "id"), + CartID: gormcol.Field{}.Set((&B2bCartsProduct{}).TableName(), "cart_id"), + ProductID: gormcol.Field{}.Set((&B2bCartsProduct{}).TableName(), "product_id"), + ProductAttributeID: gormcol.Field{}.Set((&B2bCartsProduct{}).TableName(), "product_attribute_id"), + Amount: gormcol.Field{}.Set((&B2bCartsProduct{}).TableName(), "amount"), +} diff --git a/app/model/dbmodel/b2b_components.go b/app/model/dbmodel/b2b_components.go new file mode 100644 index 0000000..52c60dc --- /dev/null +++ b/app/model/dbmodel/b2b_components.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNameB2bComponent = "b2b_components" + +// B2bComponent mapped from table +type B2bComponent struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;uniqueIndex:uk_components_name,priority:2" json:"id"` + Name string `gorm:"column:name;not null;uniqueIndex:uk_components_name,priority:1" json:"name"` +} + +// TableName B2bComponent's table name +func (*B2bComponent) TableName() string { + return TableNameB2bComponent +} + +var B2bComponentCols = struct { + ID gormcol.Field + Name gormcol.Field +}{ + ID: gormcol.Field{}.Set((&B2bComponent{}).TableName(), "id"), + Name: gormcol.Field{}.Set((&B2bComponent{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/b2b_countries.go b/app/model/dbmodel/b2b_countries.go new file mode 100644 index 0000000..f5597ec --- /dev/null +++ b/app/model/dbmodel/b2b_countries.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNameB2bCountry = "b2b_countries" + +// B2bCountry mapped from table +type B2bCountry struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + Name string `gorm:"column:name;not null" json:"name"` + CurrencyID int32 `gorm:"column:currency_id;not null;index:fk_countries_currency,priority:1" json:"currency_id"` + Flag string `gorm:"column:flag;not null" json:"flag"` +} + +// TableName B2bCountry's table name +func (*B2bCountry) TableName() string { + return TableNameB2bCountry +} + +var B2bCountryCols = struct { + ID gormcol.Field + Name gormcol.Field + CurrencyID gormcol.Field + Flag gormcol.Field +}{ + ID: gormcol.Field{}.Set((&B2bCountry{}).TableName(), "id"), + Name: gormcol.Field{}.Set((&B2bCountry{}).TableName(), "name"), + CurrencyID: gormcol.Field{}.Set((&B2bCountry{}).TableName(), "currency_id"), + Flag: gormcol.Field{}.Set((&B2bCountry{}).TableName(), "flag"), +} diff --git a/app/model/dbmodel/b2b_customer_carts.go b/app/model/dbmodel/b2b_customer_carts.go new file mode 100644 index 0000000..7d9b0af --- /dev/null +++ b/app/model/dbmodel/b2b_customer_carts.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNameB2bCustomerCart = "b2b_customer_carts" + +// B2bCustomerCart mapped from table +type B2bCustomerCart struct { + CartID int64 `gorm:"column:cart_id;primaryKey;autoIncrement:true" json:"cart_id"` + UserID int64 `gorm:"column:user_id;not null;index:idx_customer_carts_user_id,priority:1" json:"user_id"` + Name *string `gorm:"column:name" json:"name"` +} + +// TableName B2bCustomerCart's table name +func (*B2bCustomerCart) TableName() string { + return TableNameB2bCustomerCart +} + +var B2bCustomerCartCols = struct { + CartID gormcol.Field + UserID gormcol.Field + Name gormcol.Field +}{ + CartID: gormcol.Field{}.Set((&B2bCustomerCart{}).TableName(), "cart_id"), + UserID: gormcol.Field{}.Set((&B2bCustomerCart{}).TableName(), "user_id"), + Name: gormcol.Field{}.Set((&B2bCustomerCart{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/b2b_customers.go b/app/model/dbmodel/b2b_customers.go new file mode 100644 index 0000000..b45b64f --- /dev/null +++ b/app/model/dbmodel/b2b_customers.go @@ -0,0 +1,93 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" + + "gorm.io/gorm" +) + +const TableNameB2bCustomer = "b2b_customers" + +// B2bCustomer mapped from table +type B2bCustomer struct { + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + Email string `gorm:"column:email;not null;uniqueIndex:idx_customers_email,priority:1" json:"email"` + Password *string `gorm:"column:password" json:"password"` + FirstName *string `gorm:"column:first_name" json:"first_name"` + LastName *string `gorm:"column:last_name" json:"last_name"` + Role *string `gorm:"column:role;default:user" json:"role"` + Provider *string `gorm:"column:provider;default:local" json:"provider"` + ProviderID *string `gorm:"column:provider_id" json:"provider_id"` + AvatarURL *string `gorm:"column:avatar_url" json:"avatar_url"` + IsActive *bool `gorm:"column:is_active;default:1" json:"is_active"` + EmailVerified *bool `gorm:"column:email_verified" json:"email_verified"` + EmailVerificationToken *string `gorm:"column:email_verification_token" json:"email_verification_token"` + EmailVerificationExpires *time.Time `gorm:"column:email_verification_expires" json:"email_verification_expires"` + PasswordResetToken *string `gorm:"column:password_reset_token" json:"password_reset_token"` + PasswordResetExpires *time.Time `gorm:"column:password_reset_expires" json:"password_reset_expires"` + LastPasswordResetRequest *time.Time `gorm:"column:last_password_reset_request" json:"last_password_reset_request"` + LastLoginAt *time.Time `gorm:"column:last_login_at" json:"last_login_at"` + LangID *int64 `gorm:"column:lang_id;default:2" json:"lang_id"` + CountryID *int64 `gorm:"column:country_id;default:2" json:"country_id"` + CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` + UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` + DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_customers_deleted_at,priority:1" json:"deleted_at"` +} + +// TableName B2bCustomer's table name +func (*B2bCustomer) TableName() string { + return TableNameB2bCustomer +} + +var B2bCustomerCols = struct { + ID gormcol.Field + Email gormcol.Field + Password gormcol.Field + FirstName gormcol.Field + LastName gormcol.Field + Role gormcol.Field + Provider gormcol.Field + ProviderID gormcol.Field + AvatarURL gormcol.Field + IsActive gormcol.Field + EmailVerified gormcol.Field + EmailVerificationToken gormcol.Field + EmailVerificationExpires gormcol.Field + PasswordResetToken gormcol.Field + PasswordResetExpires gormcol.Field + LastPasswordResetRequest gormcol.Field + LastLoginAt gormcol.Field + LangID gormcol.Field + CountryID gormcol.Field + CreatedAt gormcol.Field + UpdatedAt gormcol.Field + DeletedAt gormcol.Field +}{ + ID: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "id"), + Email: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "email"), + Password: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "password"), + FirstName: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "first_name"), + LastName: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "last_name"), + Role: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "role"), + Provider: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "provider"), + ProviderID: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "provider_id"), + AvatarURL: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "avatar_url"), + IsActive: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "is_active"), + EmailVerified: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "email_verified"), + EmailVerificationToken: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "email_verification_token"), + EmailVerificationExpires: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "email_verification_expires"), + PasswordResetToken: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "password_reset_token"), + PasswordResetExpires: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "password_reset_expires"), + LastPasswordResetRequest: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "last_password_reset_request"), + LastLoginAt: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "last_login_at"), + LangID: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "lang_id"), + CountryID: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "country_id"), + CreatedAt: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "created_at"), + UpdatedAt: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "updated_at"), + DeletedAt: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "deleted_at"), +} diff --git a/app/model/dbmodel/b2b_language.go b/app/model/dbmodel/b2b_language.go new file mode 100644 index 0000000..1b2e0cc --- /dev/null +++ b/app/model/dbmodel/b2b_language.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 dbmodel + +import ( + "time" + + "git.ma-al.com/goc_marek/gormcol" + + "gorm.io/gorm" +) + +const TableNameB2bLanguage = "b2b_language" + +// B2bLanguage mapped from table +type B2bLanguage struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"` + UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` + DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_language_deleted_at,priority:1" json:"deleted_at"` + Name string `gorm:"column:name;not null" json:"name"` + IsoCode string `gorm:"column:iso_code;not null" json:"iso_code"` + LangCode string `gorm:"column:lang_code;not null" json:"lang_code"` + DateFormat string `gorm:"column:date_format;not null" json:"date_format"` + DateFormatShort string `gorm:"column:date_format_short;not null" json:"date_format_short"` + Rtl bool `gorm:"column:rtl;not null" json:"rtl"` + IsDefault bool `gorm:"column:is_default;not null" json:"is_default"` + Active bool `gorm:"column:active;not null;default:1" json:"active"` + Flag string `gorm:"column:flag;not null" json:"flag"` + Product *PsProduct +} + +// TableName B2bLanguage's table name +func (*B2bLanguage) TableName() string { + return TableNameB2bLanguage +} + +var B2bLanguageCols = struct { + ID gormcol.Field + CreatedAt gormcol.Field + UpdatedAt gormcol.Field + DeletedAt gormcol.Field + Name gormcol.Field + IsoCode gormcol.Field + LangCode gormcol.Field + DateFormat gormcol.Field + DateFormatShort gormcol.Field + Rtl gormcol.Field + IsDefault gormcol.Field + Active gormcol.Field + Flag gormcol.Field +}{ + ID: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "id"), + CreatedAt: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "created_at"), + UpdatedAt: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "updated_at"), + DeletedAt: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "deleted_at"), + Name: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "name"), + IsoCode: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "iso_code"), + LangCode: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "lang_code"), + DateFormat: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "date_format"), + DateFormatShort: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "date_format_short"), + Rtl: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "rtl"), + IsDefault: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "is_default"), + Active: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "active"), + Flag: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "flag"), +} diff --git a/app/model/dbmodel/b2b_refresh_tokens.go b/app/model/dbmodel/b2b_refresh_tokens.go new file mode 100644 index 0000000..317f1a1 --- /dev/null +++ b/app/model/dbmodel/b2b_refresh_tokens.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNameB2bRefreshToken = "b2b_refresh_tokens" + +// B2bRefreshToken mapped from table +type B2bRefreshToken struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + CustomerID int64 `gorm:"column:customer_id;not null;index:idx_b2b_refresh_tokens_customer_id,priority:1;index:idx_refresh_tokens_customer_id,priority:1" json:"customer_id"` + TokenHash string `gorm:"column:token_hash;not null;uniqueIndex:idx_b2b_refresh_tokens_token_hash,priority:1" json:"token_hash"` + ExpiresAt time.Time `gorm:"column:expires_at;not null" json:"expires_at"` + CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` +} + +// TableName B2bRefreshToken's table name +func (*B2bRefreshToken) TableName() string { + return TableNameB2bRefreshToken +} + +var B2bRefreshTokenCols = struct { + ID gormcol.Field + CustomerID gormcol.Field + TokenHash gormcol.Field + ExpiresAt gormcol.Field + CreatedAt gormcol.Field +}{ + ID: gormcol.Field{}.Set((&B2bRefreshToken{}).TableName(), "id"), + CustomerID: gormcol.Field{}.Set((&B2bRefreshToken{}).TableName(), "customer_id"), + TokenHash: gormcol.Field{}.Set((&B2bRefreshToken{}).TableName(), "token_hash"), + ExpiresAt: gormcol.Field{}.Set((&B2bRefreshToken{}).TableName(), "expires_at"), + CreatedAt: gormcol.Field{}.Set((&B2bRefreshToken{}).TableName(), "created_at"), +} diff --git a/app/model/dbmodel/b2b_routes.go b/app/model/dbmodel/b2b_routes.go new file mode 100644 index 0000000..fdd7008 --- /dev/null +++ b/app/model/dbmodel/b2b_routes.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNameB2bRoute = "b2b_routes" + +// B2bRoute mapped from table +type B2bRoute struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + Name string `gorm:"column:name;not null;uniqueIndex:name,priority:1" json:"name"` + Path *string `gorm:"column:path" json:"path"` + Component string `gorm:"column:component;not null;comment:path to component file" json:"component"` // path to component file + Meta *string `gorm:"column:meta;default:{}" json:"meta"` + Active *bool `gorm:"column:active;default:1" json:"active"` +} + +// TableName B2bRoute's table name +func (*B2bRoute) TableName() string { + return TableNameB2bRoute +} + +var B2bRouteCols = struct { + ID gormcol.Field + Name gormcol.Field + Path gormcol.Field + Component gormcol.Field + Meta gormcol.Field + Active gormcol.Field +}{ + ID: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "id"), + Name: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "name"), + Path: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "path"), + Component: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "component"), + Meta: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "meta"), + Active: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/b2b_scopes.go b/app/model/dbmodel/b2b_scopes.go new file mode 100644 index 0000000..6557867 --- /dev/null +++ b/app/model/dbmodel/b2b_scopes.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNameB2bScope = "b2b_scopes" + +// B2bScope mapped from table +type B2bScope struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + Name string `gorm:"column:name;not null;uniqueIndex:uk_scopes_name,priority:1" json:"name"` +} + +// TableName B2bScope's table name +func (*B2bScope) TableName() string { + return TableNameB2bScope +} + +var B2bScopeCols = struct { + ID gormcol.Field + Name gormcol.Field +}{ + ID: gormcol.Field{}.Set((&B2bScope{}).TableName(), "id"), + Name: gormcol.Field{}.Set((&B2bScope{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/b2b_top_menu.go b/app/model/dbmodel/b2b_top_menu.go new file mode 100644 index 0000000..477ff63 --- /dev/null +++ b/app/model/dbmodel/b2b_top_menu.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNameB2bTopMenu = "b2b_top_menu" + +// B2bTopMenu mapped from table +type B2bTopMenu struct { + MenuID int32 `gorm:"column:menu_id;primaryKey;autoIncrement:true" json:"menu_id"` + Label string `gorm:"column:label;not null;default:{}" json:"label"` + ParentID *int32 `gorm:"column:parent_id;index:FK_b2b_top_menu_parent_id_idx,priority:1" json:"parent_id"` + Params string `gorm:"column:params;not null;default:{}" json:"params"` + Active int32 `gorm:"column:active;not null;default:1" json:"active"` + Position int32 `gorm:"column:position;not null;default:1" json:"position"` +} + +// TableName B2bTopMenu's table name +func (*B2bTopMenu) TableName() string { + return TableNameB2bTopMenu +} + +var B2bTopMenuCols = struct { + MenuID gormcol.Field + Label gormcol.Field + ParentID gormcol.Field + Params gormcol.Field + Active gormcol.Field + Position gormcol.Field +}{ + MenuID: gormcol.Field{}.Set((&B2bTopMenu{}).TableName(), "menu_id"), + Label: gormcol.Field{}.Set((&B2bTopMenu{}).TableName(), "label"), + ParentID: gormcol.Field{}.Set((&B2bTopMenu{}).TableName(), "parent_id"), + Params: gormcol.Field{}.Set((&B2bTopMenu{}).TableName(), "params"), + Active: gormcol.Field{}.Set((&B2bTopMenu{}).TableName(), "active"), + Position: gormcol.Field{}.Set((&B2bTopMenu{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/b2b_translations.go b/app/model/dbmodel/b2b_translations.go new file mode 100644 index 0000000..b766c21 --- /dev/null +++ b/app/model/dbmodel/b2b_translations.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNameB2bTranslation = "b2b_translations" + +// B2bTranslation mapped from table +type B2bTranslation struct { + LangID int32 `gorm:"column:lang_id;primaryKey" json:"lang_id"` + ScopeID int32 `gorm:"column:scope_id;primaryKey;index:fk_translations_scope,priority:1" json:"scope_id"` + ComponentID int32 `gorm:"column:component_id;primaryKey;index:fk_translations_component,priority:1" json:"component_id"` + Key string `gorm:"column:key;primaryKey" json:"key"` + Data *string `gorm:"column:data" json:"data"` +} + +// TableName B2bTranslation's table name +func (*B2bTranslation) TableName() string { + return TableNameB2bTranslation +} + +var B2bTranslationCols = struct { + LangID gormcol.Field + ScopeID gormcol.Field + ComponentID gormcol.Field + Key gormcol.Field + Data gormcol.Field +}{ + LangID: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "lang_id"), + ScopeID: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "scope_id"), + ComponentID: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "component_id"), + Key: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "key"), + Data: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "data"), +} diff --git a/app/model/dbmodel/ps_access.go b/app/model/dbmodel/ps_access.go new file mode 100644 index 0000000..2e21765 --- /dev/null +++ b/app/model/dbmodel/ps_access.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAccess = "ps_access" + +// PsAccess mapped from table +type PsAccess struct { + IDProfile int32 `gorm:"column:id_profile;primaryKey" json:"id_profile"` + IDAuthorizationRole int32 `gorm:"column:id_authorization_role;primaryKey" json:"id_authorization_role"` +} + +// TableName PsAccess's table name +func (*PsAccess) TableName() string { + return TableNamePsAccess +} + +var PsAccessCols = struct { + IDProfile gormcol.Field + IDAuthorizationRole gormcol.Field +}{ + IDProfile: gormcol.Field{}.Set((&PsAccess{}).TableName(), "id_profile"), + IDAuthorizationRole: gormcol.Field{}.Set((&PsAccess{}).TableName(), "id_authorization_role"), +} diff --git a/app/model/dbmodel/ps_accessory.go b/app/model/dbmodel/ps_accessory.go new file mode 100644 index 0000000..fc29db1 --- /dev/null +++ b/app/model/dbmodel/ps_accessory.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAccessory = "ps_accessory" + +// PsAccessory mapped from table +type PsAccessory struct { + IDProduct1 int32 `gorm:"column:id_product_1;not null;index:accessory_product,priority:1" json:"id_product_1"` + IDProduct2 int32 `gorm:"column:id_product_2;not null;index:accessory_product,priority:2" json:"id_product_2"` +} + +// TableName PsAccessory's table name +func (*PsAccessory) TableName() string { + return TableNamePsAccessory +} + +var PsAccessoryCols = struct { + IDProduct1 gormcol.Field + IDProduct2 gormcol.Field +}{ + IDProduct1: gormcol.Field{}.Set((&PsAccessory{}).TableName(), "id_product_1"), + IDProduct2: gormcol.Field{}.Set((&PsAccessory{}).TableName(), "id_product_2"), +} diff --git a/app/model/dbmodel/ps_address.go b/app/model/dbmodel/ps_address.go new file mode 100644 index 0000000..805d922 --- /dev/null +++ b/app/model/dbmodel/ps_address.go @@ -0,0 +1,100 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsAddress = "ps_address" + +// PsAddress mapped from table +type PsAddress struct { + IDAddress int32 `gorm:"column:id_address;primaryKey;autoIncrement:true" json:"id_address"` + IDCountry int32 `gorm:"column:id_country;not null;index:id_country,priority:1" json:"id_country"` + IDState *int32 `gorm:"column:id_state;index:id_state,priority:1" json:"id_state"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:address_customer,priority:1" json:"id_customer"` + IDManufacturer int32 `gorm:"column:id_manufacturer;not null;index:id_manufacturer,priority:1" json:"id_manufacturer"` + IDSupplier int32 `gorm:"column:id_supplier;not null;index:id_supplier,priority:1" json:"id_supplier"` + IDWarehouse int32 `gorm:"column:id_warehouse;not null;index:id_warehouse,priority:1" json:"id_warehouse"` + Alias string `gorm:"column:alias;not null" json:"alias"` + Company *string `gorm:"column:company" json:"company"` + Lastname string `gorm:"column:lastname;not null" json:"lastname"` + Firstname string `gorm:"column:firstname;not null" json:"firstname"` + Address1 string `gorm:"column:address1;not null" json:"address1"` + Address2 *string `gorm:"column:address2" json:"address2"` + Postcode *string `gorm:"column:postcode" json:"postcode"` + City string `gorm:"column:city;not null" json:"city"` + Other *string `gorm:"column:other" json:"other"` + Phone *string `gorm:"column:phone" json:"phone"` + PhoneMobile *string `gorm:"column:phone_mobile" json:"phone_mobile"` + VatNumber *string `gorm:"column:vat_number" json:"vat_number"` + Dni *string `gorm:"column:dni" json:"dni"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + Active bool `gorm:"column:active;not null;default:1" json:"active"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` + IsNovat int32 `gorm:"column:is_novat;not null" json:"is_novat"` +} + +// TableName PsAddress's table name +func (*PsAddress) TableName() string { + return TableNamePsAddress +} + +var PsAddressCols = struct { + IDAddress gormcol.Field + IDCountry gormcol.Field + IDState gormcol.Field + IDCustomer gormcol.Field + IDManufacturer gormcol.Field + IDSupplier gormcol.Field + IDWarehouse gormcol.Field + Alias gormcol.Field + Company gormcol.Field + Lastname gormcol.Field + Firstname gormcol.Field + Address1 gormcol.Field + Address2 gormcol.Field + Postcode gormcol.Field + City gormcol.Field + Other gormcol.Field + Phone gormcol.Field + PhoneMobile gormcol.Field + VatNumber gormcol.Field + Dni gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Active gormcol.Field + Deleted gormcol.Field + IsNovat gormcol.Field +}{ + IDAddress: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_address"), + IDCountry: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_country"), + IDState: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_state"), + IDCustomer: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_customer"), + IDManufacturer: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_manufacturer"), + IDSupplier: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_supplier"), + IDWarehouse: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_warehouse"), + Alias: gormcol.Field{}.Set((&PsAddress{}).TableName(), "alias"), + Company: gormcol.Field{}.Set((&PsAddress{}).TableName(), "company"), + Lastname: gormcol.Field{}.Set((&PsAddress{}).TableName(), "lastname"), + Firstname: gormcol.Field{}.Set((&PsAddress{}).TableName(), "firstname"), + Address1: gormcol.Field{}.Set((&PsAddress{}).TableName(), "address1"), + Address2: gormcol.Field{}.Set((&PsAddress{}).TableName(), "address2"), + Postcode: gormcol.Field{}.Set((&PsAddress{}).TableName(), "postcode"), + City: gormcol.Field{}.Set((&PsAddress{}).TableName(), "city"), + Other: gormcol.Field{}.Set((&PsAddress{}).TableName(), "other"), + Phone: gormcol.Field{}.Set((&PsAddress{}).TableName(), "phone"), + PhoneMobile: gormcol.Field{}.Set((&PsAddress{}).TableName(), "phone_mobile"), + VatNumber: gormcol.Field{}.Set((&PsAddress{}).TableName(), "vat_number"), + Dni: gormcol.Field{}.Set((&PsAddress{}).TableName(), "dni"), + DateAdd: gormcol.Field{}.Set((&PsAddress{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsAddress{}).TableName(), "date_upd"), + Active: gormcol.Field{}.Set((&PsAddress{}).TableName(), "active"), + Deleted: gormcol.Field{}.Set((&PsAddress{}).TableName(), "deleted"), + IsNovat: gormcol.Field{}.Set((&PsAddress{}).TableName(), "is_novat"), +} diff --git a/app/model/dbmodel/ps_address_format.go b/app/model/dbmodel/ps_address_format.go new file mode 100644 index 0000000..14ecde6 --- /dev/null +++ b/app/model/dbmodel/ps_address_format.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAddressFormat = "ps_address_format" + +// PsAddressFormat mapped from table +type PsAddressFormat struct { + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` + Format string `gorm:"column:format;not null" json:"format"` +} + +// TableName PsAddressFormat's table name +func (*PsAddressFormat) TableName() string { + return TableNamePsAddressFormat +} + +var PsAddressFormatCols = struct { + IDCountry gormcol.Field + Format gormcol.Field +}{ + IDCountry: gormcol.Field{}.Set((&PsAddressFormat{}).TableName(), "id_country"), + Format: gormcol.Field{}.Set((&PsAddressFormat{}).TableName(), "format"), +} diff --git a/app/model/dbmodel/ps_admin_filter.go b/app/model/dbmodel/ps_admin_filter.go new file mode 100644 index 0000000..2f12c3d --- /dev/null +++ b/app/model/dbmodel/ps_admin_filter.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAdminFilter = "ps_admin_filter" + +// PsAdminFilter mapped from table +type PsAdminFilter struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + Employee int32 `gorm:"column:employee;not null;uniqueIndex:admin_filter_search_id_idx,priority:1" json:"employee"` + Shop int32 `gorm:"column:shop;not null;uniqueIndex:admin_filter_search_id_idx,priority:2" json:"shop"` + Controller string `gorm:"column:controller;not null;uniqueIndex:admin_filter_search_id_idx,priority:3" json:"controller"` + Action string `gorm:"column:action;not null;uniqueIndex:admin_filter_search_id_idx,priority:4" json:"action"` + Filter string `gorm:"column:filter;not null" json:"filter"` + FilterID string `gorm:"column:filter_id;not null;uniqueIndex:admin_filter_search_id_idx,priority:5" json:"filter_id"` +} + +// TableName PsAdminFilter's table name +func (*PsAdminFilter) TableName() string { + return TableNamePsAdminFilter +} + +var PsAdminFilterCols = struct { + ID gormcol.Field + Employee gormcol.Field + Shop gormcol.Field + Controller gormcol.Field + Action gormcol.Field + Filter gormcol.Field + FilterID gormcol.Field +}{ + ID: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "id"), + Employee: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "employee"), + Shop: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "shop"), + Controller: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "controller"), + Action: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "action"), + Filter: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "filter"), + FilterID: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "filter_id"), +} diff --git a/app/model/dbmodel/ps_advice.go b/app/model/dbmodel/ps_advice.go new file mode 100644 index 0000000..572ca9e --- /dev/null +++ b/app/model/dbmodel/ps_advice.go @@ -0,0 +1,55 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAdvice = "ps_advice" + +// PsAdvice mapped from table +type PsAdvice struct { + IDAdvice int32 `gorm:"column:id_advice;primaryKey;autoIncrement:true" json:"id_advice"` + IDPsAdvice int32 `gorm:"column:id_ps_advice;not null" json:"id_ps_advice"` + IDTab int32 `gorm:"column:id_tab;not null" json:"id_tab"` + IdsTab *string `gorm:"column:ids_tab" json:"ids_tab"` + Validated bool `gorm:"column:validated;not null" json:"validated"` + Hide bool `gorm:"column:hide;not null" json:"hide"` + Location string `gorm:"column:location;not null" json:"location"` + Selector *string `gorm:"column:selector" json:"selector"` + StartDay int32 `gorm:"column:start_day;not null" json:"start_day"` + StopDay int32 `gorm:"column:stop_day;not null" json:"stop_day"` + Weight *int32 `gorm:"column:weight;default:1" json:"weight"` +} + +// TableName PsAdvice's table name +func (*PsAdvice) TableName() string { + return TableNamePsAdvice +} + +var PsAdviceCols = struct { + IDAdvice gormcol.Field + IDPsAdvice gormcol.Field + IDTab gormcol.Field + IdsTab gormcol.Field + Validated gormcol.Field + Hide gormcol.Field + Location gormcol.Field + Selector gormcol.Field + StartDay gormcol.Field + StopDay gormcol.Field + Weight gormcol.Field +}{ + IDAdvice: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "id_advice"), + IDPsAdvice: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "id_ps_advice"), + IDTab: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "id_tab"), + IdsTab: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "ids_tab"), + Validated: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "validated"), + Hide: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "hide"), + Location: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "location"), + Selector: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "selector"), + StartDay: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "start_day"), + StopDay: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "stop_day"), + Weight: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "weight"), +} diff --git a/app/model/dbmodel/ps_advice_lang.go b/app/model/dbmodel/ps_advice_lang.go new file mode 100644 index 0000000..bbea073 --- /dev/null +++ b/app/model/dbmodel/ps_advice_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAdviceLang = "ps_advice_lang" + +// PsAdviceLang mapped from table +type PsAdviceLang struct { + IDAdvice int32 `gorm:"column:id_advice;primaryKey" json:"id_advice"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + HTML *string `gorm:"column:html" json:"html"` +} + +// TableName PsAdviceLang's table name +func (*PsAdviceLang) TableName() string { + return TableNamePsAdviceLang +} + +var PsAdviceLangCols = struct { + IDAdvice gormcol.Field + IDLang gormcol.Field + HTML gormcol.Field +}{ + IDAdvice: gormcol.Field{}.Set((&PsAdviceLang{}).TableName(), "id_advice"), + IDLang: gormcol.Field{}.Set((&PsAdviceLang{}).TableName(), "id_lang"), + HTML: gormcol.Field{}.Set((&PsAdviceLang{}).TableName(), "html"), +} diff --git a/app/model/dbmodel/ps_alias.go b/app/model/dbmodel/ps_alias.go new file mode 100644 index 0000000..253fb9e --- /dev/null +++ b/app/model/dbmodel/ps_alias.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAlias = "ps_alias" + +// PsAlias mapped from table +type PsAlias struct { + IDAlias int32 `gorm:"column:id_alias;primaryKey;autoIncrement:true" json:"id_alias"` + Alias string `gorm:"column:alias;not null;uniqueIndex:alias,priority:1" json:"alias"` + Search string `gorm:"column:search;not null" json:"search"` + Active bool `gorm:"column:active;not null;default:1" json:"active"` +} + +// TableName PsAlias's table name +func (*PsAlias) TableName() string { + return TableNamePsAlias +} + +var PsAliasCols = struct { + IDAlias gormcol.Field + Alias gormcol.Field + Search gormcol.Field + Active gormcol.Field +}{ + IDAlias: gormcol.Field{}.Set((&PsAlias{}).TableName(), "id_alias"), + Alias: gormcol.Field{}.Set((&PsAlias{}).TableName(), "alias"), + Search: gormcol.Field{}.Set((&PsAlias{}).TableName(), "search"), + Active: gormcol.Field{}.Set((&PsAlias{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_attachment.go b/app/model/dbmodel/ps_attachment.go new file mode 100644 index 0000000..14ab801 --- /dev/null +++ b/app/model/dbmodel/ps_attachment.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAttachment = "ps_attachment" + +// PsAttachment mapped from table +type PsAttachment struct { + IDAttachment int32 `gorm:"column:id_attachment;primaryKey;autoIncrement:true" json:"id_attachment"` + File string `gorm:"column:file;not null" json:"file"` + FileName string `gorm:"column:file_name;not null" json:"file_name"` + FileSize int64 `gorm:"column:file_size;not null" json:"file_size"` + Mime string `gorm:"column:mime;not null" json:"mime"` +} + +// TableName PsAttachment's table name +func (*PsAttachment) TableName() string { + return TableNamePsAttachment +} + +var PsAttachmentCols = struct { + IDAttachment gormcol.Field + File gormcol.Field + FileName gormcol.Field + FileSize gormcol.Field + Mime gormcol.Field +}{ + IDAttachment: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "id_attachment"), + File: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "file"), + FileName: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "file_name"), + FileSize: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "file_size"), + Mime: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "mime"), +} diff --git a/app/model/dbmodel/ps_attachment_lang.go b/app/model/dbmodel/ps_attachment_lang.go new file mode 100644 index 0000000..85a6f9e --- /dev/null +++ b/app/model/dbmodel/ps_attachment_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAttachmentLang = "ps_attachment_lang" + +// PsAttachmentLang mapped from table +type PsAttachmentLang struct { + IDAttachment int32 `gorm:"column:id_attachment;primaryKey;autoIncrement:true" json:"id_attachment"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name *string `gorm:"column:name" json:"name"` + Description *string `gorm:"column:description" json:"description"` +} + +// TableName PsAttachmentLang's table name +func (*PsAttachmentLang) TableName() string { + return TableNamePsAttachmentLang +} + +var PsAttachmentLangCols = struct { + IDAttachment gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Description gormcol.Field +}{ + IDAttachment: gormcol.Field{}.Set((&PsAttachmentLang{}).TableName(), "id_attachment"), + IDLang: gormcol.Field{}.Set((&PsAttachmentLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsAttachmentLang{}).TableName(), "name"), + Description: gormcol.Field{}.Set((&PsAttachmentLang{}).TableName(), "description"), +} diff --git a/app/model/dbmodel/ps_attribute.go b/app/model/dbmodel/ps_attribute.go new file mode 100644 index 0000000..d6441d8 --- /dev/null +++ b/app/model/dbmodel/ps_attribute.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAttribute = "ps_attribute" + +// PsAttribute mapped from table +type PsAttribute struct { + IDAttribute int32 `gorm:"column:id_attribute;primaryKey;autoIncrement:true" json:"id_attribute"` + IDAttributeGroup int32 `gorm:"column:id_attribute_group;not null;index:attribute_group,priority:1" json:"id_attribute_group"` + Color string `gorm:"column:color;not null" json:"color"` + Position int32 `gorm:"column:position;not null" json:"position"` +} + +// TableName PsAttribute's table name +func (*PsAttribute) TableName() string { + return TableNamePsAttribute +} + +var PsAttributeCols = struct { + IDAttribute gormcol.Field + IDAttributeGroup gormcol.Field + Color gormcol.Field + Position gormcol.Field +}{ + IDAttribute: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "id_attribute"), + IDAttributeGroup: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "id_attribute_group"), + Color: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "color"), + Position: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_attribute_group.go b/app/model/dbmodel/ps_attribute_group.go new file mode 100644 index 0000000..dc79629 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_group.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAttributeGroup = "ps_attribute_group" + +// PsAttributeGroup mapped from table +type PsAttributeGroup struct { + IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey;autoIncrement:true" json:"id_attribute_group"` + IsColorGroup bool `gorm:"column:is_color_group;not null" json:"is_color_group"` + GroupType string `gorm:"column:group_type;not null" json:"group_type"` + Position int32 `gorm:"column:position;not null" json:"position"` +} + +// TableName PsAttributeGroup's table name +func (*PsAttributeGroup) TableName() string { + return TableNamePsAttributeGroup +} + +var PsAttributeGroupCols = struct { + IDAttributeGroup gormcol.Field + IsColorGroup gormcol.Field + GroupType gormcol.Field + Position gormcol.Field +}{ + IDAttributeGroup: gormcol.Field{}.Set((&PsAttributeGroup{}).TableName(), "id_attribute_group"), + IsColorGroup: gormcol.Field{}.Set((&PsAttributeGroup{}).TableName(), "is_color_group"), + GroupType: gormcol.Field{}.Set((&PsAttributeGroup{}).TableName(), "group_type"), + Position: gormcol.Field{}.Set((&PsAttributeGroup{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_attribute_group_lang.go b/app/model/dbmodel/ps_attribute_group_lang.go new file mode 100644 index 0000000..033bba0 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_group_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAttributeGroupLang = "ps_attribute_group_lang" + +// PsAttributeGroupLang mapped from table +type PsAttributeGroupLang struct { + IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey;index:IDX_4653726C67A664FB,priority:1" json:"id_attribute_group"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:IDX_4653726CBA299860,priority:1" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + PublicName string `gorm:"column:public_name;not null" json:"public_name"` +} + +// TableName PsAttributeGroupLang's table name +func (*PsAttributeGroupLang) TableName() string { + return TableNamePsAttributeGroupLang +} + +var PsAttributeGroupLangCols = struct { + IDAttributeGroup gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + PublicName gormcol.Field +}{ + IDAttributeGroup: gormcol.Field{}.Set((&PsAttributeGroupLang{}).TableName(), "id_attribute_group"), + IDLang: gormcol.Field{}.Set((&PsAttributeGroupLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsAttributeGroupLang{}).TableName(), "name"), + PublicName: gormcol.Field{}.Set((&PsAttributeGroupLang{}).TableName(), "public_name"), +} diff --git a/app/model/dbmodel/ps_attribute_group_shop.go b/app/model/dbmodel/ps_attribute_group_shop.go new file mode 100644 index 0000000..67fe985 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_group_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAttributeGroupShop = "ps_attribute_group_shop" + +// PsAttributeGroupShop mapped from table +type PsAttributeGroupShop struct { + IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey;index:IDX_DB30BAAC67A664FB,priority:1" json:"id_attribute_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:IDX_DB30BAAC274A50A0,priority:1" json:"id_shop"` +} + +// TableName PsAttributeGroupShop's table name +func (*PsAttributeGroupShop) TableName() string { + return TableNamePsAttributeGroupShop +} + +var PsAttributeGroupShopCols = struct { + IDAttributeGroup gormcol.Field + IDShop gormcol.Field +}{ + IDAttributeGroup: gormcol.Field{}.Set((&PsAttributeGroupShop{}).TableName(), "id_attribute_group"), + IDShop: gormcol.Field{}.Set((&PsAttributeGroupShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_attribute_impact.go b/app/model/dbmodel/ps_attribute_impact.go new file mode 100644 index 0000000..8096216 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_impact.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAttributeImpact = "ps_attribute_impact" + +// PsAttributeImpact mapped from table +type PsAttributeImpact struct { + IDAttributeImpact int32 `gorm:"column:id_attribute_impact;primaryKey;autoIncrement:true" json:"id_attribute_impact"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"` + IDAttribute int32 `gorm:"column:id_attribute;not null;uniqueIndex:id_product,priority:2" json:"id_attribute"` + Weight float64 `gorm:"column:weight;not null" json:"weight"` + Price float64 `gorm:"column:price;not null" json:"price"` +} + +// TableName PsAttributeImpact's table name +func (*PsAttributeImpact) TableName() string { + return TableNamePsAttributeImpact +} + +var PsAttributeImpactCols = struct { + IDAttributeImpact gormcol.Field + IDProduct gormcol.Field + IDAttribute gormcol.Field + Weight gormcol.Field + Price gormcol.Field +}{ + IDAttributeImpact: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "id_attribute_impact"), + IDProduct: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "id_product"), + IDAttribute: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "id_attribute"), + Weight: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "weight"), + Price: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "price"), +} diff --git a/app/model/dbmodel/ps_attribute_lang.go b/app/model/dbmodel/ps_attribute_lang.go new file mode 100644 index 0000000..03fed28 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAttributeLang = "ps_attribute_lang" + +// PsAttributeLang mapped from table +type PsAttributeLang struct { + IDAttribute int32 `gorm:"column:id_attribute;primaryKey;index:IDX_3ABE46A77A4F53DC,priority:1" json:"id_attribute"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:IDX_3ABE46A7BA299860,priority:1" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsAttributeLang's table name +func (*PsAttributeLang) TableName() string { + return TableNamePsAttributeLang +} + +var PsAttributeLangCols = struct { + IDAttribute gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDAttribute: gormcol.Field{}.Set((&PsAttributeLang{}).TableName(), "id_attribute"), + IDLang: gormcol.Field{}.Set((&PsAttributeLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsAttributeLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_attribute_shop.go b/app/model/dbmodel/ps_attribute_shop.go new file mode 100644 index 0000000..3605fb4 --- /dev/null +++ b/app/model/dbmodel/ps_attribute_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAttributeShop = "ps_attribute_shop" + +// PsAttributeShop mapped from table +type PsAttributeShop struct { + IDAttribute int32 `gorm:"column:id_attribute;primaryKey;index:IDX_A7DD8E677A4F53DC,priority:1" json:"id_attribute"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:IDX_A7DD8E67274A50A0,priority:1" json:"id_shop"` +} + +// TableName PsAttributeShop's table name +func (*PsAttributeShop) TableName() string { + return TableNamePsAttributeShop +} + +var PsAttributeShopCols = struct { + IDAttribute gormcol.Field + IDShop gormcol.Field +}{ + IDAttribute: gormcol.Field{}.Set((&PsAttributeShop{}).TableName(), "id_attribute"), + IDShop: gormcol.Field{}.Set((&PsAttributeShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_authorization_role.go b/app/model/dbmodel/ps_authorization_role.go new file mode 100644 index 0000000..79582d5 --- /dev/null +++ b/app/model/dbmodel/ps_authorization_role.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsAuthorizationRole = "ps_authorization_role" + +// PsAuthorizationRole mapped from table +type PsAuthorizationRole struct { + IDAuthorizationRole int32 `gorm:"column:id_authorization_role;primaryKey;autoIncrement:true" json:"id_authorization_role"` + Slug string `gorm:"column:slug;not null;uniqueIndex:slug,priority:1" json:"slug"` +} + +// TableName PsAuthorizationRole's table name +func (*PsAuthorizationRole) TableName() string { + return TableNamePsAuthorizationRole +} + +var PsAuthorizationRoleCols = struct { + IDAuthorizationRole gormcol.Field + Slug gormcol.Field +}{ + IDAuthorizationRole: gormcol.Field{}.Set((&PsAuthorizationRole{}).TableName(), "id_authorization_role"), + Slug: gormcol.Field{}.Set((&PsAuthorizationRole{}).TableName(), "slug"), +} diff --git a/app/model/dbmodel/ps_badge.go b/app/model/dbmodel/ps_badge.go new file mode 100644 index 0000000..57ac3d5 --- /dev/null +++ b/app/model/dbmodel/ps_badge.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsBadge = "ps_badge" + +// PsBadge mapped from table +type PsBadge struct { + IDBadge int32 `gorm:"column:id_badge;primaryKey;autoIncrement:true" json:"id_badge"` + IDPsBadge int32 `gorm:"column:id_ps_badge;not null" json:"id_ps_badge"` + Type string `gorm:"column:type;not null" json:"type"` + IDGroup int32 `gorm:"column:id_group;not null" json:"id_group"` + GroupPosition int32 `gorm:"column:group_position;not null" json:"group_position"` + Scoring int32 `gorm:"column:scoring;not null" json:"scoring"` + Awb *int32 `gorm:"column:awb" json:"awb"` + Validated bool `gorm:"column:validated;not null" json:"validated"` +} + +// TableName PsBadge's table name +func (*PsBadge) TableName() string { + return TableNamePsBadge +} + +var PsBadgeCols = struct { + IDBadge gormcol.Field + IDPsBadge gormcol.Field + Type gormcol.Field + IDGroup gormcol.Field + GroupPosition gormcol.Field + Scoring gormcol.Field + Awb gormcol.Field + Validated gormcol.Field +}{ + IDBadge: gormcol.Field{}.Set((&PsBadge{}).TableName(), "id_badge"), + IDPsBadge: gormcol.Field{}.Set((&PsBadge{}).TableName(), "id_ps_badge"), + Type: gormcol.Field{}.Set((&PsBadge{}).TableName(), "type"), + IDGroup: gormcol.Field{}.Set((&PsBadge{}).TableName(), "id_group"), + GroupPosition: gormcol.Field{}.Set((&PsBadge{}).TableName(), "group_position"), + Scoring: gormcol.Field{}.Set((&PsBadge{}).TableName(), "scoring"), + Awb: gormcol.Field{}.Set((&PsBadge{}).TableName(), "awb"), + Validated: gormcol.Field{}.Set((&PsBadge{}).TableName(), "validated"), +} diff --git a/app/model/dbmodel/ps_badge_lang.go b/app/model/dbmodel/ps_badge_lang.go new file mode 100644 index 0000000..90c3043 --- /dev/null +++ b/app/model/dbmodel/ps_badge_lang.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsBadgeLang = "ps_badge_lang" + +// PsBadgeLang mapped from table +type PsBadgeLang struct { + IDBadge int32 `gorm:"column:id_badge;primaryKey" json:"id_badge"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name *string `gorm:"column:name" json:"name"` + Description *string `gorm:"column:description" json:"description"` + GroupName *string `gorm:"column:group_name" json:"group_name"` +} + +// TableName PsBadgeLang's table name +func (*PsBadgeLang) TableName() string { + return TableNamePsBadgeLang +} + +var PsBadgeLangCols = struct { + IDBadge gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Description gormcol.Field + GroupName gormcol.Field +}{ + IDBadge: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "id_badge"), + IDLang: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "name"), + Description: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "description"), + GroupName: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "group_name"), +} diff --git a/app/model/dbmodel/ps_carrier.go b/app/model/dbmodel/ps_carrier.go new file mode 100644 index 0000000..8f6eaae --- /dev/null +++ b/app/model/dbmodel/ps_carrier.go @@ -0,0 +1,85 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCarrier = "ps_carrier" + +// PsCarrier mapped from table +type PsCarrier struct { + IDCarrier int32 `gorm:"column:id_carrier;primaryKey;autoIncrement:true" json:"id_carrier"` + IDReference int32 `gorm:"column:id_reference;not null;index:reference,priority:1" json:"id_reference"` + IDTaxRulesGroup *int32 `gorm:"column:id_tax_rules_group;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"` + Name string `gorm:"column:name;not null" json:"name"` + URL *string `gorm:"column:url" json:"url"` + Active bool `gorm:"column:active;not null;index:deleted,priority:2;index:reference,priority:3" json:"active"` + Deleted bool `gorm:"column:deleted;not null;index:deleted,priority:1;index:reference,priority:2" json:"deleted"` + ShippingHandling bool `gorm:"column:shipping_handling;not null;default:1" json:"shipping_handling"` + RangeBehavior bool `gorm:"column:range_behavior;not null" json:"range_behavior"` + IsModule bool `gorm:"column:is_module;not null" json:"is_module"` + IsFree bool `gorm:"column:is_free;not null" json:"is_free"` + ShippingExternal bool `gorm:"column:shipping_external;not null" json:"shipping_external"` + NeedRange bool `gorm:"column:need_range;not null" json:"need_range"` + ExternalModuleName *string `gorm:"column:external_module_name" json:"external_module_name"` + ShippingMethod int32 `gorm:"column:shipping_method;not null" json:"shipping_method"` + Position int32 `gorm:"column:position;not null" json:"position"` + MaxWidth *int32 `gorm:"column:max_width" json:"max_width"` + MaxHeight *int32 `gorm:"column:max_height" json:"max_height"` + MaxDepth *int32 `gorm:"column:max_depth" json:"max_depth"` + MaxWeight *float64 `gorm:"column:max_weight;default:0.000000" json:"max_weight"` + Grade *int32 `gorm:"column:grade" json:"grade"` +} + +// TableName PsCarrier's table name +func (*PsCarrier) TableName() string { + return TableNamePsCarrier +} + +var PsCarrierCols = struct { + IDCarrier gormcol.Field + IDReference gormcol.Field + IDTaxRulesGroup gormcol.Field + Name gormcol.Field + URL gormcol.Field + Active gormcol.Field + Deleted gormcol.Field + ShippingHandling gormcol.Field + RangeBehavior gormcol.Field + IsModule gormcol.Field + IsFree gormcol.Field + ShippingExternal gormcol.Field + NeedRange gormcol.Field + ExternalModuleName gormcol.Field + ShippingMethod gormcol.Field + Position gormcol.Field + MaxWidth gormcol.Field + MaxHeight gormcol.Field + MaxDepth gormcol.Field + MaxWeight gormcol.Field + Grade gormcol.Field +}{ + IDCarrier: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "id_carrier"), + IDReference: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "id_reference"), + IDTaxRulesGroup: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "id_tax_rules_group"), + Name: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "name"), + URL: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "url"), + Active: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "active"), + Deleted: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "deleted"), + ShippingHandling: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "shipping_handling"), + RangeBehavior: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "range_behavior"), + IsModule: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "is_module"), + IsFree: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "is_free"), + ShippingExternal: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "shipping_external"), + NeedRange: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "need_range"), + ExternalModuleName: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "external_module_name"), + ShippingMethod: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "shipping_method"), + Position: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "position"), + MaxWidth: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_width"), + MaxHeight: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_height"), + MaxDepth: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_depth"), + MaxWeight: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_weight"), + Grade: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "grade"), +} diff --git a/app/model/dbmodel/ps_carrier_group.go b/app/model/dbmodel/ps_carrier_group.go new file mode 100644 index 0000000..5370bc6 --- /dev/null +++ b/app/model/dbmodel/ps_carrier_group.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCarrierGroup = "ps_carrier_group" + +// PsCarrierGroup mapped from table +type PsCarrierGroup struct { + IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"` + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` +} + +// TableName PsCarrierGroup's table name +func (*PsCarrierGroup) TableName() string { + return TableNamePsCarrierGroup +} + +var PsCarrierGroupCols = struct { + IDCarrier gormcol.Field + IDGroup gormcol.Field +}{ + IDCarrier: gormcol.Field{}.Set((&PsCarrierGroup{}).TableName(), "id_carrier"), + IDGroup: gormcol.Field{}.Set((&PsCarrierGroup{}).TableName(), "id_group"), +} diff --git a/app/model/dbmodel/ps_carrier_lang.go b/app/model/dbmodel/ps_carrier_lang.go new file mode 100644 index 0000000..394b449 --- /dev/null +++ b/app/model/dbmodel/ps_carrier_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCarrierLang = "ps_carrier_lang" + +// PsCarrierLang mapped from table +type PsCarrierLang struct { + IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Delay *string `gorm:"column:delay" json:"delay"` +} + +// TableName PsCarrierLang's table name +func (*PsCarrierLang) TableName() string { + return TableNamePsCarrierLang +} + +var PsCarrierLangCols = struct { + IDCarrier gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Delay gormcol.Field +}{ + IDCarrier: gormcol.Field{}.Set((&PsCarrierLang{}).TableName(), "id_carrier"), + IDShop: gormcol.Field{}.Set((&PsCarrierLang{}).TableName(), "id_shop"), + IDLang: gormcol.Field{}.Set((&PsCarrierLang{}).TableName(), "id_lang"), + Delay: gormcol.Field{}.Set((&PsCarrierLang{}).TableName(), "delay"), +} diff --git a/app/model/dbmodel/ps_carrier_shop.go b/app/model/dbmodel/ps_carrier_shop.go new file mode 100644 index 0000000..1cec6cc --- /dev/null +++ b/app/model/dbmodel/ps_carrier_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCarrierShop = "ps_carrier_shop" + +// PsCarrierShop mapped from table +type PsCarrierShop struct { + IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsCarrierShop's table name +func (*PsCarrierShop) TableName() string { + return TableNamePsCarrierShop +} + +var PsCarrierShopCols = struct { + IDCarrier gormcol.Field + IDShop gormcol.Field +}{ + IDCarrier: gormcol.Field{}.Set((&PsCarrierShop{}).TableName(), "id_carrier"), + IDShop: gormcol.Field{}.Set((&PsCarrierShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_carrier_tax_rules_group_shop.go b/app/model/dbmodel/ps_carrier_tax_rules_group_shop.go new file mode 100644 index 0000000..38d36e5 --- /dev/null +++ b/app/model/dbmodel/ps_carrier_tax_rules_group_shop.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCarrierTaxRulesGroupShop = "ps_carrier_tax_rules_group_shop" + +// PsCarrierTaxRulesGroupShop mapped from table +type PsCarrierTaxRulesGroupShop struct { + IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"` + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;primaryKey" json:"id_tax_rules_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsCarrierTaxRulesGroupShop's table name +func (*PsCarrierTaxRulesGroupShop) TableName() string { + return TableNamePsCarrierTaxRulesGroupShop +} + +var PsCarrierTaxRulesGroupShopCols = struct { + IDCarrier gormcol.Field + IDTaxRulesGroup gormcol.Field + IDShop gormcol.Field +}{ + IDCarrier: gormcol.Field{}.Set((&PsCarrierTaxRulesGroupShop{}).TableName(), "id_carrier"), + IDTaxRulesGroup: gormcol.Field{}.Set((&PsCarrierTaxRulesGroupShop{}).TableName(), "id_tax_rules_group"), + IDShop: gormcol.Field{}.Set((&PsCarrierTaxRulesGroupShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_carrier_zone.go b/app/model/dbmodel/ps_carrier_zone.go new file mode 100644 index 0000000..4b22203 --- /dev/null +++ b/app/model/dbmodel/ps_carrier_zone.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCarrierZone = "ps_carrier_zone" + +// PsCarrierZone mapped from table +type PsCarrierZone struct { + IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"` + IDZone int32 `gorm:"column:id_zone;primaryKey" json:"id_zone"` +} + +// TableName PsCarrierZone's table name +func (*PsCarrierZone) TableName() string { + return TableNamePsCarrierZone +} + +var PsCarrierZoneCols = struct { + IDCarrier gormcol.Field + IDZone gormcol.Field +}{ + IDCarrier: gormcol.Field{}.Set((&PsCarrierZone{}).TableName(), "id_carrier"), + IDZone: gormcol.Field{}.Set((&PsCarrierZone{}).TableName(), "id_zone"), +} diff --git a/app/model/dbmodel/ps_cart.go b/app/model/dbmodel/ps_cart.go new file mode 100644 index 0000000..59911fb --- /dev/null +++ b/app/model/dbmodel/ps_cart.go @@ -0,0 +1,94 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsCart = "ps_cart" + +// PsCart mapped from table +type PsCart struct { + IDCart int32 `gorm:"column:id_cart;primaryKey;autoIncrement:true" json:"id_cart"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;index:id_shop_group,priority:1;default:1" json:"id_shop_group"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;index:id_shop_2,priority:1;default:1" json:"id_shop"` + IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"` + DeliveryOption string `gorm:"column:delivery_option;not null" json:"delivery_option"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"` + IDAddressDelivery int32 `gorm:"column:id_address_delivery;not null;index:id_address_delivery,priority:1" json:"id_address_delivery"` + IDAddressInvoice int32 `gorm:"column:id_address_invoice;not null;index:id_address_invoice,priority:1" json:"id_address_invoice"` + IDCurrency int32 `gorm:"column:id_currency;not null;index:id_currency,priority:1" json:"id_currency"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:cart_customer,priority:1" json:"id_customer"` + IDGuest int32 `gorm:"column:id_guest;not null;index:id_guest,priority:1" json:"id_guest"` + SecureKey string `gorm:"column:secure_key;not null;default:-1" json:"secure_key"` + Recyclable bool `gorm:"column:recyclable;not null;default:1" json:"recyclable"` + Gift bool `gorm:"column:gift;not null" json:"gift"` + GiftMessage *string `gorm:"column:gift_message" json:"gift_message"` + MobileTheme bool `gorm:"column:mobile_theme;not null" json:"mobile_theme"` + AllowSeperatedPackage bool `gorm:"column:allow_seperated_package;not null" json:"allow_seperated_package"` + DateAdd time.Time `gorm:"column:date_add;not null;index:id_shop,priority:2" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null;index:id_shop_2,priority:2" json:"date_upd"` + CheckoutSessionData *string `gorm:"column:checkout_session_data" json:"checkout_session_data"` + CustomeShippingPriceNetto *float64 `gorm:"column:custome_shipping_price_netto" json:"custome_shipping_price_netto"` + CustomeShippingPrice *float64 `gorm:"column:custome_shipping_price" json:"custome_shipping_price"` + CustomeShippingTaxRate *float64 `gorm:"column:custome_shipping_tax_rate" json:"custome_shipping_tax_rate"` +} + +// TableName PsCart's table name +func (*PsCart) TableName() string { + return TableNamePsCart +} + +var PsCartCols = struct { + IDCart gormcol.Field + IDShopGroup gormcol.Field + IDShop gormcol.Field + IDCarrier gormcol.Field + DeliveryOption gormcol.Field + IDLang gormcol.Field + IDAddressDelivery gormcol.Field + IDAddressInvoice gormcol.Field + IDCurrency gormcol.Field + IDCustomer gormcol.Field + IDGuest gormcol.Field + SecureKey gormcol.Field + Recyclable gormcol.Field + Gift gormcol.Field + GiftMessage gormcol.Field + MobileTheme gormcol.Field + AllowSeperatedPackage gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + CheckoutSessionData gormcol.Field + CustomeShippingPriceNetto gormcol.Field + CustomeShippingPrice gormcol.Field + CustomeShippingTaxRate gormcol.Field +}{ + IDCart: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_cart"), + IDShopGroup: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_shop_group"), + IDShop: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_shop"), + IDCarrier: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_carrier"), + DeliveryOption: gormcol.Field{}.Set((&PsCart{}).TableName(), "delivery_option"), + IDLang: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_lang"), + IDAddressDelivery: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_address_delivery"), + IDAddressInvoice: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_address_invoice"), + IDCurrency: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_currency"), + IDCustomer: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_customer"), + IDGuest: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_guest"), + SecureKey: gormcol.Field{}.Set((&PsCart{}).TableName(), "secure_key"), + Recyclable: gormcol.Field{}.Set((&PsCart{}).TableName(), "recyclable"), + Gift: gormcol.Field{}.Set((&PsCart{}).TableName(), "gift"), + GiftMessage: gormcol.Field{}.Set((&PsCart{}).TableName(), "gift_message"), + MobileTheme: gormcol.Field{}.Set((&PsCart{}).TableName(), "mobile_theme"), + AllowSeperatedPackage: gormcol.Field{}.Set((&PsCart{}).TableName(), "allow_seperated_package"), + DateAdd: gormcol.Field{}.Set((&PsCart{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsCart{}).TableName(), "date_upd"), + CheckoutSessionData: gormcol.Field{}.Set((&PsCart{}).TableName(), "checkout_session_data"), + CustomeShippingPriceNetto: gormcol.Field{}.Set((&PsCart{}).TableName(), "custome_shipping_price_netto"), + CustomeShippingPrice: gormcol.Field{}.Set((&PsCart{}).TableName(), "custome_shipping_price"), + CustomeShippingTaxRate: gormcol.Field{}.Set((&PsCart{}).TableName(), "custome_shipping_tax_rate"), +} diff --git a/app/model/dbmodel/ps_cart_cart_rule.go b/app/model/dbmodel/ps_cart_cart_rule.go new file mode 100644 index 0000000..63a6f06 --- /dev/null +++ b/app/model/dbmodel/ps_cart_cart_rule.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartCartRule = "ps_cart_cart_rule" + +// PsCartCartRule mapped from table +type PsCartCartRule struct { + IDCart int32 `gorm:"column:id_cart;primaryKey" json:"id_cart"` + IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey;index:id_cart_rule,priority:1" json:"id_cart_rule"` +} + +// TableName PsCartCartRule's table name +func (*PsCartCartRule) TableName() string { + return TableNamePsCartCartRule +} + +var PsCartCartRuleCols = struct { + IDCart gormcol.Field + IDCartRule gormcol.Field +}{ + IDCart: gormcol.Field{}.Set((&PsCartCartRule{}).TableName(), "id_cart"), + IDCartRule: gormcol.Field{}.Set((&PsCartCartRule{}).TableName(), "id_cart_rule"), +} diff --git a/app/model/dbmodel/ps_cart_product.go b/app/model/dbmodel/ps_cart_product.go new file mode 100644 index 0000000..7f6aea4 --- /dev/null +++ b/app/model/dbmodel/ps_cart_product.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsCartProduct = "ps_cart_product" + +// PsCartProduct mapped from table +type PsCartProduct struct { + IDCart int32 `gorm:"column:id_cart;primaryKey;index:id_cart_order,priority:1" json:"id_cart"` + IDProduct int32 `gorm:"column:id_product;primaryKey;index:id_cart_order,priority:3" json:"id_product"` + IDAddressDelivery int32 `gorm:"column:id_address_delivery;primaryKey" json:"id_address_delivery"` + IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey;index:id_cart_order,priority:4;index:id_product_attribute,priority:1" json:"id_product_attribute"` + IDCustomization int32 `gorm:"column:id_customization;primaryKey" json:"id_customization"` + Quantity int32 `gorm:"column:quantity;not null" json:"quantity"` + DateAdd time.Time `gorm:"column:date_add;not null;index:id_cart_order,priority:2" json:"date_add"` +} + +// TableName PsCartProduct's table name +func (*PsCartProduct) TableName() string { + return TableNamePsCartProduct +} + +var PsCartProductCols = struct { + IDCart gormcol.Field + IDProduct gormcol.Field + IDAddressDelivery gormcol.Field + IDShop gormcol.Field + IDProductAttribute gormcol.Field + IDCustomization gormcol.Field + Quantity gormcol.Field + DateAdd gormcol.Field +}{ + IDCart: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_cart"), + IDProduct: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_product"), + IDAddressDelivery: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_address_delivery"), + IDShop: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_shop"), + IDProductAttribute: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_product_attribute"), + IDCustomization: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_customization"), + Quantity: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "quantity"), + DateAdd: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_cart_rule.go b/app/model/dbmodel/ps_cart_rule.go new file mode 100644 index 0000000..a5944fe --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule.go @@ -0,0 +1,124 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsCartRule = "ps_cart_rule" + +// PsCartRule mapped from table +type PsCartRule struct { + IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey;autoIncrement:true" json:"id_cart_rule"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:id_customer,priority:1;index:id_customer_2,priority:1" json:"id_customer"` + DateFrom time.Time `gorm:"column:date_from;not null;index:date_from,priority:1" json:"date_from"` + DateTo time.Time `gorm:"column:date_to;not null;index:date_to,priority:1;index:group_restriction,priority:3;index:group_restriction_2,priority:4;index:id_customer,priority:3;index:id_customer_2,priority:4" json:"date_to"` + Description *string `gorm:"column:description" json:"description"` + Quantity int32 `gorm:"column:quantity;not null" json:"quantity"` + QuantityPerUser int32 `gorm:"column:quantity_per_user;not null" json:"quantity_per_user"` + Priority int32 `gorm:"column:priority;not null;default:1" json:"priority"` + PartialUse bool `gorm:"column:partial_use;not null" json:"partial_use"` + Code string `gorm:"column:code;not null" json:"code"` + MinimumAmount float64 `gorm:"column:minimum_amount;not null;default:0.00" json:"minimum_amount"` + MinimumAmountTax bool `gorm:"column:minimum_amount_tax;not null" json:"minimum_amount_tax"` + MinimumAmountCurrency int32 `gorm:"column:minimum_amount_currency;not null" json:"minimum_amount_currency"` + MinimumAmountShipping bool `gorm:"column:minimum_amount_shipping;not null" json:"minimum_amount_shipping"` + CountryRestriction bool `gorm:"column:country_restriction;not null" json:"country_restriction"` + CarrierRestriction bool `gorm:"column:carrier_restriction;not null" json:"carrier_restriction"` + GroupRestriction bool `gorm:"column:group_restriction;not null;index:group_restriction,priority:1;index:group_restriction_2,priority:1" json:"group_restriction"` + CartRuleRestriction bool `gorm:"column:cart_rule_restriction;not null" json:"cart_rule_restriction"` + ProductRestriction bool `gorm:"column:product_restriction;not null" json:"product_restriction"` + ShopRestriction bool `gorm:"column:shop_restriction;not null" json:"shop_restriction"` + FreeShipping bool `gorm:"column:free_shipping;not null" json:"free_shipping"` + ReductionPercent float64 `gorm:"column:reduction_percent;not null;default:0.00" json:"reduction_percent"` + ReductionAmount float64 `gorm:"column:reduction_amount;not null;default:0.00" json:"reduction_amount"` + ReductionTax bool `gorm:"column:reduction_tax;not null" json:"reduction_tax"` + ReductionCurrency int32 `gorm:"column:reduction_currency;not null" json:"reduction_currency"` + ReductionProduct int32 `gorm:"column:reduction_product;not null" json:"reduction_product"` + ReductionExcludeSpecial bool `gorm:"column:reduction_exclude_special;not null" json:"reduction_exclude_special"` + GiftProduct int32 `gorm:"column:gift_product;not null" json:"gift_product"` + GiftProductAttribute int32 `gorm:"column:gift_product_attribute;not null" json:"gift_product_attribute"` + Highlight bool `gorm:"column:highlight;not null;index:group_restriction_2,priority:3;index:id_customer_2,priority:3" json:"highlight"` + Active bool `gorm:"column:active;not null;index:group_restriction,priority:2;index:group_restriction_2,priority:2;index:id_customer,priority:2;index:id_customer_2,priority:2" json:"active"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsCartRule's table name +func (*PsCartRule) TableName() string { + return TableNamePsCartRule +} + +var PsCartRuleCols = struct { + IDCartRule gormcol.Field + IDCustomer gormcol.Field + DateFrom gormcol.Field + DateTo gormcol.Field + Description gormcol.Field + Quantity gormcol.Field + QuantityPerUser gormcol.Field + Priority gormcol.Field + PartialUse gormcol.Field + Code gormcol.Field + MinimumAmount gormcol.Field + MinimumAmountTax gormcol.Field + MinimumAmountCurrency gormcol.Field + MinimumAmountShipping gormcol.Field + CountryRestriction gormcol.Field + CarrierRestriction gormcol.Field + GroupRestriction gormcol.Field + CartRuleRestriction gormcol.Field + ProductRestriction gormcol.Field + ShopRestriction gormcol.Field + FreeShipping gormcol.Field + ReductionPercent gormcol.Field + ReductionAmount gormcol.Field + ReductionTax gormcol.Field + ReductionCurrency gormcol.Field + ReductionProduct gormcol.Field + ReductionExcludeSpecial gormcol.Field + GiftProduct gormcol.Field + GiftProductAttribute gormcol.Field + Highlight gormcol.Field + Active gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDCartRule: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "id_cart_rule"), + IDCustomer: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "id_customer"), + DateFrom: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "date_from"), + DateTo: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "date_to"), + Description: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "description"), + Quantity: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "quantity"), + QuantityPerUser: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "quantity_per_user"), + Priority: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "priority"), + PartialUse: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "partial_use"), + Code: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "code"), + MinimumAmount: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "minimum_amount"), + MinimumAmountTax: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "minimum_amount_tax"), + MinimumAmountCurrency: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "minimum_amount_currency"), + MinimumAmountShipping: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "minimum_amount_shipping"), + CountryRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "country_restriction"), + CarrierRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "carrier_restriction"), + GroupRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "group_restriction"), + CartRuleRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "cart_rule_restriction"), + ProductRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "product_restriction"), + ShopRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "shop_restriction"), + FreeShipping: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "free_shipping"), + ReductionPercent: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_percent"), + ReductionAmount: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_amount"), + ReductionTax: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_tax"), + ReductionCurrency: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_currency"), + ReductionProduct: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_product"), + ReductionExcludeSpecial: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_exclude_special"), + GiftProduct: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "gift_product"), + GiftProductAttribute: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "gift_product_attribute"), + Highlight: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "highlight"), + Active: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "active"), + DateAdd: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_cart_rule_carrier.go b/app/model/dbmodel/ps_cart_rule_carrier.go new file mode 100644 index 0000000..371d4ec --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_carrier.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartRuleCarrier = "ps_cart_rule_carrier" + +// PsCartRuleCarrier mapped from table +type PsCartRuleCarrier struct { + IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"` + IDCarrier int32 `gorm:"column:id_carrier;primaryKey" json:"id_carrier"` +} + +// TableName PsCartRuleCarrier's table name +func (*PsCartRuleCarrier) TableName() string { + return TableNamePsCartRuleCarrier +} + +var PsCartRuleCarrierCols = struct { + IDCartRule gormcol.Field + IDCarrier gormcol.Field +}{ + IDCartRule: gormcol.Field{}.Set((&PsCartRuleCarrier{}).TableName(), "id_cart_rule"), + IDCarrier: gormcol.Field{}.Set((&PsCartRuleCarrier{}).TableName(), "id_carrier"), +} diff --git a/app/model/dbmodel/ps_cart_rule_combination.go b/app/model/dbmodel/ps_cart_rule_combination.go new file mode 100644 index 0000000..64f780f --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_combination.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartRuleCombination = "ps_cart_rule_combination" + +// PsCartRuleCombination mapped from table +type PsCartRuleCombination struct { + IDCartRule1 int32 `gorm:"column:id_cart_rule_1;primaryKey;index:id_cart_rule_1,priority:1" json:"id_cart_rule_1"` + IDCartRule2 int32 `gorm:"column:id_cart_rule_2;primaryKey;index:id_cart_rule_2,priority:1" json:"id_cart_rule_2"` +} + +// TableName PsCartRuleCombination's table name +func (*PsCartRuleCombination) TableName() string { + return TableNamePsCartRuleCombination +} + +var PsCartRuleCombinationCols = struct { + IDCartRule1 gormcol.Field + IDCartRule2 gormcol.Field +}{ + IDCartRule1: gormcol.Field{}.Set((&PsCartRuleCombination{}).TableName(), "id_cart_rule_1"), + IDCartRule2: gormcol.Field{}.Set((&PsCartRuleCombination{}).TableName(), "id_cart_rule_2"), +} diff --git a/app/model/dbmodel/ps_cart_rule_country.go b/app/model/dbmodel/ps_cart_rule_country.go new file mode 100644 index 0000000..1b0389e --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_country.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartRuleCountry = "ps_cart_rule_country" + +// PsCartRuleCountry mapped from table +type PsCartRuleCountry struct { + IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"` + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` +} + +// TableName PsCartRuleCountry's table name +func (*PsCartRuleCountry) TableName() string { + return TableNamePsCartRuleCountry +} + +var PsCartRuleCountryCols = struct { + IDCartRule gormcol.Field + IDCountry gormcol.Field +}{ + IDCartRule: gormcol.Field{}.Set((&PsCartRuleCountry{}).TableName(), "id_cart_rule"), + IDCountry: gormcol.Field{}.Set((&PsCartRuleCountry{}).TableName(), "id_country"), +} diff --git a/app/model/dbmodel/ps_cart_rule_group.go b/app/model/dbmodel/ps_cart_rule_group.go new file mode 100644 index 0000000..1b1faac --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_group.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartRuleGroup = "ps_cart_rule_group" + +// PsCartRuleGroup mapped from table +type PsCartRuleGroup struct { + IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"` + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` +} + +// TableName PsCartRuleGroup's table name +func (*PsCartRuleGroup) TableName() string { + return TableNamePsCartRuleGroup +} + +var PsCartRuleGroupCols = struct { + IDCartRule gormcol.Field + IDGroup gormcol.Field +}{ + IDCartRule: gormcol.Field{}.Set((&PsCartRuleGroup{}).TableName(), "id_cart_rule"), + IDGroup: gormcol.Field{}.Set((&PsCartRuleGroup{}).TableName(), "id_group"), +} diff --git a/app/model/dbmodel/ps_cart_rule_lang.go b/app/model/dbmodel/ps_cart_rule_lang.go new file mode 100644 index 0000000..5ee6228 --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartRuleLang = "ps_cart_rule_lang" + +// PsCartRuleLang mapped from table +type PsCartRuleLang struct { + IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsCartRuleLang's table name +func (*PsCartRuleLang) TableName() string { + return TableNamePsCartRuleLang +} + +var PsCartRuleLangCols = struct { + IDCartRule gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDCartRule: gormcol.Field{}.Set((&PsCartRuleLang{}).TableName(), "id_cart_rule"), + IDLang: gormcol.Field{}.Set((&PsCartRuleLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsCartRuleLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_cart_rule_product_rule.go b/app/model/dbmodel/ps_cart_rule_product_rule.go new file mode 100644 index 0000000..564d36a --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_product_rule.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartRuleProductRule = "ps_cart_rule_product_rule" + +// PsCartRuleProductRule mapped from table +type PsCartRuleProductRule struct { + IDProductRule int32 `gorm:"column:id_product_rule;primaryKey;autoIncrement:true" json:"id_product_rule"` + IDProductRuleGroup int32 `gorm:"column:id_product_rule_group;not null" json:"id_product_rule_group"` + Type string `gorm:"column:type;not null" json:"type"` +} + +// TableName PsCartRuleProductRule's table name +func (*PsCartRuleProductRule) TableName() string { + return TableNamePsCartRuleProductRule +} + +var PsCartRuleProductRuleCols = struct { + IDProductRule gormcol.Field + IDProductRuleGroup gormcol.Field + Type gormcol.Field +}{ + IDProductRule: gormcol.Field{}.Set((&PsCartRuleProductRule{}).TableName(), "id_product_rule"), + IDProductRuleGroup: gormcol.Field{}.Set((&PsCartRuleProductRule{}).TableName(), "id_product_rule_group"), + Type: gormcol.Field{}.Set((&PsCartRuleProductRule{}).TableName(), "type"), +} diff --git a/app/model/dbmodel/ps_cart_rule_product_rule_group.go b/app/model/dbmodel/ps_cart_rule_product_rule_group.go new file mode 100644 index 0000000..2066af5 --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_product_rule_group.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartRuleProductRuleGroup = "ps_cart_rule_product_rule_group" + +// PsCartRuleProductRuleGroup mapped from table +type PsCartRuleProductRuleGroup struct { + IDProductRuleGroup int32 `gorm:"column:id_product_rule_group;primaryKey;autoIncrement:true" json:"id_product_rule_group"` + IDCartRule int32 `gorm:"column:id_cart_rule;not null" json:"id_cart_rule"` + Quantity int32 `gorm:"column:quantity;not null;default:1" json:"quantity"` +} + +// TableName PsCartRuleProductRuleGroup's table name +func (*PsCartRuleProductRuleGroup) TableName() string { + return TableNamePsCartRuleProductRuleGroup +} + +var PsCartRuleProductRuleGroupCols = struct { + IDProductRuleGroup gormcol.Field + IDCartRule gormcol.Field + Quantity gormcol.Field +}{ + IDProductRuleGroup: gormcol.Field{}.Set((&PsCartRuleProductRuleGroup{}).TableName(), "id_product_rule_group"), + IDCartRule: gormcol.Field{}.Set((&PsCartRuleProductRuleGroup{}).TableName(), "id_cart_rule"), + Quantity: gormcol.Field{}.Set((&PsCartRuleProductRuleGroup{}).TableName(), "quantity"), +} diff --git a/app/model/dbmodel/ps_cart_rule_product_rule_value.go b/app/model/dbmodel/ps_cart_rule_product_rule_value.go new file mode 100644 index 0000000..444defb --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_product_rule_value.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartRuleProductRuleValue = "ps_cart_rule_product_rule_value" + +// PsCartRuleProductRuleValue mapped from table +type PsCartRuleProductRuleValue struct { + IDProductRule int32 `gorm:"column:id_product_rule;primaryKey" json:"id_product_rule"` + IDItem int32 `gorm:"column:id_item;primaryKey" json:"id_item"` +} + +// TableName PsCartRuleProductRuleValue's table name +func (*PsCartRuleProductRuleValue) TableName() string { + return TableNamePsCartRuleProductRuleValue +} + +var PsCartRuleProductRuleValueCols = struct { + IDProductRule gormcol.Field + IDItem gormcol.Field +}{ + IDProductRule: gormcol.Field{}.Set((&PsCartRuleProductRuleValue{}).TableName(), "id_product_rule"), + IDItem: gormcol.Field{}.Set((&PsCartRuleProductRuleValue{}).TableName(), "id_item"), +} diff --git a/app/model/dbmodel/ps_cart_rule_shop.go b/app/model/dbmodel/ps_cart_rule_shop.go new file mode 100644 index 0000000..80e109a --- /dev/null +++ b/app/model/dbmodel/ps_cart_rule_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCartRuleShop = "ps_cart_rule_shop" + +// PsCartRuleShop mapped from table +type PsCartRuleShop struct { + IDCartRule int32 `gorm:"column:id_cart_rule;primaryKey" json:"id_cart_rule"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsCartRuleShop's table name +func (*PsCartRuleShop) TableName() string { + return TableNamePsCartRuleShop +} + +var PsCartRuleShopCols = struct { + IDCartRule gormcol.Field + IDShop gormcol.Field +}{ + IDCartRule: gormcol.Field{}.Set((&PsCartRuleShop{}).TableName(), "id_cart_rule"), + IDShop: gormcol.Field{}.Set((&PsCartRuleShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_category.go b/app/model/dbmodel/ps_category.go new file mode 100644 index 0000000..dade91d --- /dev/null +++ b/app/model/dbmodel/ps_category.go @@ -0,0 +1,58 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsCategory = "ps_category" + +// PsCategory mapped from table +type PsCategory struct { + IDCategory int32 `gorm:"column:id_category;primaryKey;autoIncrement:true;index:idx_category,priority:1" json:"id_category"` + IDParent int32 `gorm:"column:id_parent;not null;index:category_parent,priority:1" json:"id_parent"` + IDShopDefault int32 `gorm:"column:id_shop_default;not null;default:1" json:"id_shop_default"` + LevelDepth int32 `gorm:"column:level_depth;not null;index:level_depth,priority:1" json:"level_depth"` + Nleft int32 `gorm:"column:nleft;not null;index:activenleft,priority:2;index:idx_category,priority:3;index:nleftrightactive,priority:1" json:"nleft"` + Nright int32 `gorm:"column:nright;not null;index:activenright,priority:2;index:idx_category,priority:4;index:nleftrightactive,priority:2;index:nright,priority:1" json:"nright"` + Active bool `gorm:"column:active;not null;index:activenleft,priority:1;index:activenright,priority:1;index:idx_category,priority:2;index:idx_ps_category_active,priority:1;index:nleftrightactive,priority:3" json:"active"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + Position int32 `gorm:"column:position;not null" json:"position"` + IsRootCategory bool `gorm:"column:is_root_category;not null" json:"is_root_category"` +} + +// TableName PsCategory's table name +func (*PsCategory) TableName() string { + return TableNamePsCategory +} + +var PsCategoryCols = struct { + IDCategory gormcol.Field + IDParent gormcol.Field + IDShopDefault gormcol.Field + LevelDepth gormcol.Field + Nleft gormcol.Field + Nright gormcol.Field + Active gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Position gormcol.Field + IsRootCategory gormcol.Field +}{ + IDCategory: gormcol.Field{}.Set((&PsCategory{}).TableName(), "id_category"), + IDParent: gormcol.Field{}.Set((&PsCategory{}).TableName(), "id_parent"), + IDShopDefault: gormcol.Field{}.Set((&PsCategory{}).TableName(), "id_shop_default"), + LevelDepth: gormcol.Field{}.Set((&PsCategory{}).TableName(), "level_depth"), + Nleft: gormcol.Field{}.Set((&PsCategory{}).TableName(), "nleft"), + Nright: gormcol.Field{}.Set((&PsCategory{}).TableName(), "nright"), + Active: gormcol.Field{}.Set((&PsCategory{}).TableName(), "active"), + DateAdd: gormcol.Field{}.Set((&PsCategory{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsCategory{}).TableName(), "date_upd"), + Position: gormcol.Field{}.Set((&PsCategory{}).TableName(), "position"), + IsRootCategory: gormcol.Field{}.Set((&PsCategory{}).TableName(), "is_root_category"), +} diff --git a/app/model/dbmodel/ps_category_group.go b/app/model/dbmodel/ps_category_group.go new file mode 100644 index 0000000..5ac7f84 --- /dev/null +++ b/app/model/dbmodel/ps_category_group.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCategoryGroup = "ps_category_group" + +// PsCategoryGroup mapped from table +type PsCategoryGroup struct { + IDCategory int32 `gorm:"column:id_category;primaryKey;index:id_category,priority:1" json:"id_category"` + IDGroup int32 `gorm:"column:id_group;primaryKey;index:id_group,priority:1" json:"id_group"` +} + +// TableName PsCategoryGroup's table name +func (*PsCategoryGroup) TableName() string { + return TableNamePsCategoryGroup +} + +var PsCategoryGroupCols = struct { + IDCategory gormcol.Field + IDGroup gormcol.Field +}{ + IDCategory: gormcol.Field{}.Set((&PsCategoryGroup{}).TableName(), "id_category"), + IDGroup: gormcol.Field{}.Set((&PsCategoryGroup{}).TableName(), "id_group"), +} diff --git a/app/model/dbmodel/ps_category_lang.go b/app/model/dbmodel/ps_category_lang.go new file mode 100644 index 0000000..a643b88 --- /dev/null +++ b/app/model/dbmodel/ps_category_lang.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCategoryLang = "ps_category_lang" + +// PsCategoryLang mapped from table +type PsCategoryLang struct { + IDCategory int32 `gorm:"column:id_category;primaryKey" json:"id_category"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null;index:category_name,priority:1" json:"name"` + Description *string `gorm:"column:description" json:"description"` + LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` + MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` +} + +// TableName PsCategoryLang's table name +func (*PsCategoryLang) TableName() string { + return TableNamePsCategoryLang +} + +var PsCategoryLangCols = struct { + IDCategory gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Description gormcol.Field + LinkRewrite gormcol.Field + MetaTitle gormcol.Field + MetaKeywords gormcol.Field + MetaDescription gormcol.Field +}{ + IDCategory: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "id_category"), + IDShop: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "id_shop"), + IDLang: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "name"), + Description: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "description"), + LinkRewrite: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "link_rewrite"), + MetaTitle: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "meta_title"), + MetaKeywords: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "meta_keywords"), + MetaDescription: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "meta_description"), +} diff --git a/app/model/dbmodel/ps_category_product.go b/app/model/dbmodel/ps_category_product.go new file mode 100644 index 0000000..b965b17 --- /dev/null +++ b/app/model/dbmodel/ps_category_product.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCategoryProduct = "ps_category_product" + +// PsCategoryProduct mapped from table +type PsCategoryProduct struct { + IDCategory int32 `gorm:"column:id_category;primaryKey;index:idx_category_product,priority:2;index:id_category,priority:1" json:"id_category"` + IDProduct int32 `gorm:"column:id_product;primaryKey;index:idx_category_product,priority:1;index:id_product,priority:1" json:"id_product"` + Position int32 `gorm:"column:position;not null;index:id_category,priority:2" json:"position"` +} + +// TableName PsCategoryProduct's table name +func (*PsCategoryProduct) TableName() string { + return TableNamePsCategoryProduct +} + +var PsCategoryProductCols = struct { + IDCategory gormcol.Field + IDProduct gormcol.Field + Position gormcol.Field +}{ + IDCategory: gormcol.Field{}.Set((&PsCategoryProduct{}).TableName(), "id_category"), + IDProduct: gormcol.Field{}.Set((&PsCategoryProduct{}).TableName(), "id_product"), + Position: gormcol.Field{}.Set((&PsCategoryProduct{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_category_shop.go b/app/model/dbmodel/ps_category_shop.go new file mode 100644 index 0000000..f406a5a --- /dev/null +++ b/app/model/dbmodel/ps_category_shop.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCategoryShop = "ps_category_shop" + +// PsCategoryShop mapped from table +type PsCategoryShop struct { + IDCategory int32 `gorm:"column:id_category;primaryKey" json:"id_category"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` + Position int32 `gorm:"column:position;not null" json:"position"` +} + +// TableName PsCategoryShop's table name +func (*PsCategoryShop) TableName() string { + return TableNamePsCategoryShop +} + +var PsCategoryShopCols = struct { + IDCategory gormcol.Field + IDShop gormcol.Field + Position gormcol.Field +}{ + IDCategory: gormcol.Field{}.Set((&PsCategoryShop{}).TableName(), "id_category"), + IDShop: gormcol.Field{}.Set((&PsCategoryShop{}).TableName(), "id_shop"), + Position: gormcol.Field{}.Set((&PsCategoryShop{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_cms.go b/app/model/dbmodel/ps_cms.go new file mode 100644 index 0000000..7ddb8d8 --- /dev/null +++ b/app/model/dbmodel/ps_cms.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCm = "ps_cms" + +// PsCm mapped from table +type PsCm struct { + IDCms int32 `gorm:"column:id_cms;primaryKey;autoIncrement:true" json:"id_cms"` + IDCmsCategory int32 `gorm:"column:id_cms_category;not null" json:"id_cms_category"` + Position int32 `gorm:"column:position;not null" json:"position"` + Active bool `gorm:"column:active;not null" json:"active"` + Indexation bool `gorm:"column:indexation;not null;default:1" json:"indexation"` +} + +// TableName PsCm's table name +func (*PsCm) TableName() string { + return TableNamePsCm +} + +var PsCmCols = struct { + IDCms gormcol.Field + IDCmsCategory gormcol.Field + Position gormcol.Field + Active gormcol.Field + Indexation gormcol.Field +}{ + IDCms: gormcol.Field{}.Set((&PsCm{}).TableName(), "id_cms"), + IDCmsCategory: gormcol.Field{}.Set((&PsCm{}).TableName(), "id_cms_category"), + Position: gormcol.Field{}.Set((&PsCm{}).TableName(), "position"), + Active: gormcol.Field{}.Set((&PsCm{}).TableName(), "active"), + Indexation: gormcol.Field{}.Set((&PsCm{}).TableName(), "indexation"), +} diff --git a/app/model/dbmodel/ps_cms_category.go b/app/model/dbmodel/ps_cms_category.go new file mode 100644 index 0000000..8a8f941 --- /dev/null +++ b/app/model/dbmodel/ps_cms_category.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsCmsCategory = "ps_cms_category" + +// PsCmsCategory mapped from table +type PsCmsCategory struct { + IDCmsCategory int32 `gorm:"column:id_cms_category;primaryKey;autoIncrement:true" json:"id_cms_category"` + IDParent int32 `gorm:"column:id_parent;not null;index:category_parent,priority:1" json:"id_parent"` + LevelDepth int32 `gorm:"column:level_depth;not null" json:"level_depth"` + Active bool `gorm:"column:active;not null" json:"active"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + Position int32 `gorm:"column:position;not null" json:"position"` +} + +// TableName PsCmsCategory's table name +func (*PsCmsCategory) TableName() string { + return TableNamePsCmsCategory +} + +var PsCmsCategoryCols = struct { + IDCmsCategory gormcol.Field + IDParent gormcol.Field + LevelDepth gormcol.Field + Active gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Position gormcol.Field +}{ + IDCmsCategory: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "id_cms_category"), + IDParent: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "id_parent"), + LevelDepth: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "level_depth"), + Active: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "active"), + DateAdd: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "date_upd"), + Position: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_cms_category_lang.go b/app/model/dbmodel/ps_cms_category_lang.go new file mode 100644 index 0000000..d7fed73 --- /dev/null +++ b/app/model/dbmodel/ps_cms_category_lang.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCmsCategoryLang = "ps_cms_category_lang" + +// PsCmsCategoryLang mapped from table +type PsCmsCategoryLang struct { + IDCmsCategory int32 `gorm:"column:id_cms_category;primaryKey" json:"id_cms_category"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + Name string `gorm:"column:name;not null;index:category_name,priority:1" json:"name"` + Description *string `gorm:"column:description" json:"description"` + LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` + MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` +} + +// TableName PsCmsCategoryLang's table name +func (*PsCmsCategoryLang) TableName() string { + return TableNamePsCmsCategoryLang +} + +var PsCmsCategoryLangCols = struct { + IDCmsCategory gormcol.Field + IDLang gormcol.Field + IDShop gormcol.Field + Name gormcol.Field + Description gormcol.Field + LinkRewrite gormcol.Field + MetaTitle gormcol.Field + MetaKeywords gormcol.Field + MetaDescription gormcol.Field +}{ + IDCmsCategory: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "id_cms_category"), + IDLang: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "id_lang"), + IDShop: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "id_shop"), + Name: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "name"), + Description: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "description"), + LinkRewrite: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "link_rewrite"), + MetaTitle: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "meta_title"), + MetaKeywords: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "meta_keywords"), + MetaDescription: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "meta_description"), +} diff --git a/app/model/dbmodel/ps_cms_category_shop.go b/app/model/dbmodel/ps_cms_category_shop.go new file mode 100644 index 0000000..9ae604e --- /dev/null +++ b/app/model/dbmodel/ps_cms_category_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCmsCategoryShop = "ps_cms_category_shop" + +// PsCmsCategoryShop mapped from table +type PsCmsCategoryShop struct { + IDCmsCategory int32 `gorm:"column:id_cms_category;primaryKey;autoIncrement:true" json:"id_cms_category"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsCmsCategoryShop's table name +func (*PsCmsCategoryShop) TableName() string { + return TableNamePsCmsCategoryShop +} + +var PsCmsCategoryShopCols = struct { + IDCmsCategory gormcol.Field + IDShop gormcol.Field +}{ + IDCmsCategory: gormcol.Field{}.Set((&PsCmsCategoryShop{}).TableName(), "id_cms_category"), + IDShop: gormcol.Field{}.Set((&PsCmsCategoryShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_cms_lang.go b/app/model/dbmodel/ps_cms_lang.go new file mode 100644 index 0000000..c4bdf7b --- /dev/null +++ b/app/model/dbmodel/ps_cms_lang.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCmsLang = "ps_cms_lang" + +// PsCmsLang mapped from table +type PsCmsLang struct { + IDCms int32 `gorm:"column:id_cms;primaryKey" json:"id_cms"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + MetaTitle string `gorm:"column:meta_title;not null" json:"meta_title"` + HeadSeoTitle *string `gorm:"column:head_seo_title" json:"head_seo_title"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` + MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"` + Content *string `gorm:"column:content" json:"content"` + LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"` +} + +// TableName PsCmsLang's table name +func (*PsCmsLang) TableName() string { + return TableNamePsCmsLang +} + +var PsCmsLangCols = struct { + IDCms gormcol.Field + IDLang gormcol.Field + IDShop gormcol.Field + MetaTitle gormcol.Field + HeadSeoTitle gormcol.Field + MetaDescription gormcol.Field + MetaKeywords gormcol.Field + Content gormcol.Field + LinkRewrite gormcol.Field +}{ + IDCms: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "id_cms"), + IDLang: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "id_lang"), + IDShop: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "id_shop"), + MetaTitle: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "meta_title"), + HeadSeoTitle: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "head_seo_title"), + MetaDescription: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "meta_description"), + MetaKeywords: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "meta_keywords"), + Content: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "content"), + LinkRewrite: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "link_rewrite"), +} diff --git a/app/model/dbmodel/ps_cms_role.go b/app/model/dbmodel/ps_cms_role.go new file mode 100644 index 0000000..aad8cda --- /dev/null +++ b/app/model/dbmodel/ps_cms_role.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCmsRole = "ps_cms_role" + +// PsCmsRole mapped from table +type PsCmsRole struct { + IDCmsRole int32 `gorm:"column:id_cms_role;primaryKey;autoIncrement:true" json:"id_cms_role"` + Name string `gorm:"column:name;not null;uniqueIndex:name,priority:1" json:"name"` + IDCms int32 `gorm:"column:id_cms;primaryKey" json:"id_cms"` +} + +// TableName PsCmsRole's table name +func (*PsCmsRole) TableName() string { + return TableNamePsCmsRole +} + +var PsCmsRoleCols = struct { + IDCmsRole gormcol.Field + Name gormcol.Field + IDCms gormcol.Field +}{ + IDCmsRole: gormcol.Field{}.Set((&PsCmsRole{}).TableName(), "id_cms_role"), + Name: gormcol.Field{}.Set((&PsCmsRole{}).TableName(), "name"), + IDCms: gormcol.Field{}.Set((&PsCmsRole{}).TableName(), "id_cms"), +} diff --git a/app/model/dbmodel/ps_cms_role_lang.go b/app/model/dbmodel/ps_cms_role_lang.go new file mode 100644 index 0000000..35d0975 --- /dev/null +++ b/app/model/dbmodel/ps_cms_role_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCmsRoleLang = "ps_cms_role_lang" + +// PsCmsRoleLang mapped from table +type PsCmsRoleLang struct { + IDCmsRole int32 `gorm:"column:id_cms_role;primaryKey" json:"id_cms_role"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` + Name *string `gorm:"column:name" json:"name"` +} + +// TableName PsCmsRoleLang's table name +func (*PsCmsRoleLang) TableName() string { + return TableNamePsCmsRoleLang +} + +var PsCmsRoleLangCols = struct { + IDCmsRole gormcol.Field + IDLang gormcol.Field + IDShop gormcol.Field + Name gormcol.Field +}{ + IDCmsRole: gormcol.Field{}.Set((&PsCmsRoleLang{}).TableName(), "id_cms_role"), + IDLang: gormcol.Field{}.Set((&PsCmsRoleLang{}).TableName(), "id_lang"), + IDShop: gormcol.Field{}.Set((&PsCmsRoleLang{}).TableName(), "id_shop"), + Name: gormcol.Field{}.Set((&PsCmsRoleLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_cms_shop.go b/app/model/dbmodel/ps_cms_shop.go new file mode 100644 index 0000000..46a0334 --- /dev/null +++ b/app/model/dbmodel/ps_cms_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCmsShop = "ps_cms_shop" + +// PsCmsShop mapped from table +type PsCmsShop struct { + IDCms int32 `gorm:"column:id_cms;primaryKey" json:"id_cms"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsCmsShop's table name +func (*PsCmsShop) TableName() string { + return TableNamePsCmsShop +} + +var PsCmsShopCols = struct { + IDCms gormcol.Field + IDShop gormcol.Field +}{ + IDCms: gormcol.Field{}.Set((&PsCmsShop{}).TableName(), "id_cms"), + IDShop: gormcol.Field{}.Set((&PsCmsShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_condition.go b/app/model/dbmodel/ps_condition.go new file mode 100644 index 0000000..951247c --- /dev/null +++ b/app/model/dbmodel/ps_condition.go @@ -0,0 +1,61 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsCondition = "ps_condition" + +// PsCondition mapped from table +type PsCondition struct { + IDCondition int32 `gorm:"column:id_condition;primaryKey;autoIncrement:true" json:"id_condition"` + IDPsCondition int32 `gorm:"column:id_ps_condition;primaryKey" json:"id_ps_condition"` + Type string `gorm:"column:type;not null" json:"type"` + Request *string `gorm:"column:request" json:"request"` + Operator *string `gorm:"column:operator" json:"operator"` + Value *string `gorm:"column:value" json:"value"` + Result *string `gorm:"column:result" json:"result"` + CalculationType *string `gorm:"column:calculation_type" json:"calculation_type"` + CalculationDetail *string `gorm:"column:calculation_detail" json:"calculation_detail"` + Validated bool `gorm:"column:validated;not null" json:"validated"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsCondition's table name +func (*PsCondition) TableName() string { + return TableNamePsCondition +} + +var PsConditionCols = struct { + IDCondition gormcol.Field + IDPsCondition gormcol.Field + Type gormcol.Field + Request gormcol.Field + Operator gormcol.Field + Value gormcol.Field + Result gormcol.Field + CalculationType gormcol.Field + CalculationDetail gormcol.Field + Validated gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDCondition: gormcol.Field{}.Set((&PsCondition{}).TableName(), "id_condition"), + IDPsCondition: gormcol.Field{}.Set((&PsCondition{}).TableName(), "id_ps_condition"), + Type: gormcol.Field{}.Set((&PsCondition{}).TableName(), "type"), + Request: gormcol.Field{}.Set((&PsCondition{}).TableName(), "request"), + Operator: gormcol.Field{}.Set((&PsCondition{}).TableName(), "operator"), + Value: gormcol.Field{}.Set((&PsCondition{}).TableName(), "value"), + Result: gormcol.Field{}.Set((&PsCondition{}).TableName(), "result"), + CalculationType: gormcol.Field{}.Set((&PsCondition{}).TableName(), "calculation_type"), + CalculationDetail: gormcol.Field{}.Set((&PsCondition{}).TableName(), "calculation_detail"), + Validated: gormcol.Field{}.Set((&PsCondition{}).TableName(), "validated"), + DateAdd: gormcol.Field{}.Set((&PsCondition{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsCondition{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_condition_advice.go b/app/model/dbmodel/ps_condition_advice.go new file mode 100644 index 0000000..6da00ee --- /dev/null +++ b/app/model/dbmodel/ps_condition_advice.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsConditionAdvice = "ps_condition_advice" + +// PsConditionAdvice mapped from table +type PsConditionAdvice struct { + IDCondition int32 `gorm:"column:id_condition;primaryKey" json:"id_condition"` + IDAdvice int32 `gorm:"column:id_advice;primaryKey" json:"id_advice"` + Display bool `gorm:"column:display;not null" json:"display"` +} + +// TableName PsConditionAdvice's table name +func (*PsConditionAdvice) TableName() string { + return TableNamePsConditionAdvice +} + +var PsConditionAdviceCols = struct { + IDCondition gormcol.Field + IDAdvice gormcol.Field + Display gormcol.Field +}{ + IDCondition: gormcol.Field{}.Set((&PsConditionAdvice{}).TableName(), "id_condition"), + IDAdvice: gormcol.Field{}.Set((&PsConditionAdvice{}).TableName(), "id_advice"), + Display: gormcol.Field{}.Set((&PsConditionAdvice{}).TableName(), "display"), +} diff --git a/app/model/dbmodel/ps_condition_badge.go b/app/model/dbmodel/ps_condition_badge.go new file mode 100644 index 0000000..2acc1ab --- /dev/null +++ b/app/model/dbmodel/ps_condition_badge.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsConditionBadge = "ps_condition_badge" + +// PsConditionBadge mapped from table +type PsConditionBadge struct { + IDCondition int32 `gorm:"column:id_condition;primaryKey" json:"id_condition"` + IDBadge int32 `gorm:"column:id_badge;primaryKey" json:"id_badge"` +} + +// TableName PsConditionBadge's table name +func (*PsConditionBadge) TableName() string { + return TableNamePsConditionBadge +} + +var PsConditionBadgeCols = struct { + IDCondition gormcol.Field + IDBadge gormcol.Field +}{ + IDCondition: gormcol.Field{}.Set((&PsConditionBadge{}).TableName(), "id_condition"), + IDBadge: gormcol.Field{}.Set((&PsConditionBadge{}).TableName(), "id_badge"), +} diff --git a/app/model/dbmodel/ps_configuration.go b/app/model/dbmodel/ps_configuration.go new file mode 100644 index 0000000..a2b99de --- /dev/null +++ b/app/model/dbmodel/ps_configuration.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsConfiguration = "ps_configuration" + +// PsConfiguration mapped from table +type PsConfiguration struct { + IDConfiguration int32 `gorm:"column:id_configuration;primaryKey;autoIncrement:true" json:"id_configuration"` + IDShopGroup *int32 `gorm:"column:id_shop_group;index:id_shop_group,priority:1" json:"id_shop_group"` + IDShop *int32 `gorm:"column:id_shop;index:id_shop,priority:1" json:"id_shop"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` + Value *string `gorm:"column:value" json:"value"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsConfiguration's table name +func (*PsConfiguration) TableName() string { + return TableNamePsConfiguration +} + +var PsConfigurationCols = struct { + IDConfiguration gormcol.Field + IDShopGroup gormcol.Field + IDShop gormcol.Field + Name gormcol.Field + Value gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDConfiguration: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "id_configuration"), + IDShopGroup: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "id_shop_group"), + IDShop: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "id_shop"), + Name: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "name"), + Value: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "value"), + DateAdd: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_configuration_kpi.go b/app/model/dbmodel/ps_configuration_kpi.go new file mode 100644 index 0000000..0503ef1 --- /dev/null +++ b/app/model/dbmodel/ps_configuration_kpi.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsConfigurationKpi = "ps_configuration_kpi" + +// PsConfigurationKpi mapped from table +type PsConfigurationKpi struct { + IDConfigurationKpi int32 `gorm:"column:id_configuration_kpi;primaryKey;autoIncrement:true" json:"id_configuration_kpi"` + IDShopGroup *int32 `gorm:"column:id_shop_group;index:id_shop_group,priority:1" json:"id_shop_group"` + IDShop *int32 `gorm:"column:id_shop;index:id_shop,priority:1" json:"id_shop"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` + Value *string `gorm:"column:value" json:"value"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsConfigurationKpi's table name +func (*PsConfigurationKpi) TableName() string { + return TableNamePsConfigurationKpi +} + +var PsConfigurationKpiCols = struct { + IDConfigurationKpi gormcol.Field + IDShopGroup gormcol.Field + IDShop gormcol.Field + Name gormcol.Field + Value gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDConfigurationKpi: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "id_configuration_kpi"), + IDShopGroup: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "id_shop_group"), + IDShop: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "id_shop"), + Name: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "name"), + Value: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "value"), + DateAdd: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_configuration_kpi_lang.go b/app/model/dbmodel/ps_configuration_kpi_lang.go new file mode 100644 index 0000000..f4f2efc --- /dev/null +++ b/app/model/dbmodel/ps_configuration_kpi_lang.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsConfigurationKpiLang = "ps_configuration_kpi_lang" + +// PsConfigurationKpiLang mapped from table +type PsConfigurationKpiLang struct { + IDConfigurationKpi int32 `gorm:"column:id_configuration_kpi;primaryKey" json:"id_configuration_kpi"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Value *string `gorm:"column:value" json:"value"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsConfigurationKpiLang's table name +func (*PsConfigurationKpiLang) TableName() string { + return TableNamePsConfigurationKpiLang +} + +var PsConfigurationKpiLangCols = struct { + IDConfigurationKpi gormcol.Field + IDLang gormcol.Field + Value gormcol.Field + DateUpd gormcol.Field +}{ + IDConfigurationKpi: gormcol.Field{}.Set((&PsConfigurationKpiLang{}).TableName(), "id_configuration_kpi"), + IDLang: gormcol.Field{}.Set((&PsConfigurationKpiLang{}).TableName(), "id_lang"), + Value: gormcol.Field{}.Set((&PsConfigurationKpiLang{}).TableName(), "value"), + DateUpd: gormcol.Field{}.Set((&PsConfigurationKpiLang{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_configuration_lang.go b/app/model/dbmodel/ps_configuration_lang.go new file mode 100644 index 0000000..441bb58 --- /dev/null +++ b/app/model/dbmodel/ps_configuration_lang.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsConfigurationLang = "ps_configuration_lang" + +// PsConfigurationLang mapped from table +type PsConfigurationLang struct { + IDConfiguration int32 `gorm:"column:id_configuration;primaryKey" json:"id_configuration"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Value *string `gorm:"column:value" json:"value"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsConfigurationLang's table name +func (*PsConfigurationLang) TableName() string { + return TableNamePsConfigurationLang +} + +var PsConfigurationLangCols = struct { + IDConfiguration gormcol.Field + IDLang gormcol.Field + Value gormcol.Field + DateUpd gormcol.Field +}{ + IDConfiguration: gormcol.Field{}.Set((&PsConfigurationLang{}).TableName(), "id_configuration"), + IDLang: gormcol.Field{}.Set((&PsConfigurationLang{}).TableName(), "id_lang"), + Value: gormcol.Field{}.Set((&PsConfigurationLang{}).TableName(), "value"), + DateUpd: gormcol.Field{}.Set((&PsConfigurationLang{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_connections.go b/app/model/dbmodel/ps_connections.go new file mode 100644 index 0000000..7fc24ee --- /dev/null +++ b/app/model/dbmodel/ps_connections.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsConnection = "ps_connections" + +// PsConnection mapped from table +type PsConnection struct { + IDConnections int32 `gorm:"column:id_connections;primaryKey;autoIncrement:true" json:"id_connections"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"` + IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` + IDGuest int32 `gorm:"column:id_guest;not null;index:id_guest,priority:1" json:"id_guest"` + IDPage int32 `gorm:"column:id_page;not null;index:id_page,priority:1" json:"id_page"` + IPAddress *int64 `gorm:"column:ip_address" json:"ip_address"` + DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"` + HTTPReferer *string `gorm:"column:http_referer" json:"http_referer"` +} + +// TableName PsConnection's table name +func (*PsConnection) TableName() string { + return TableNamePsConnection +} + +var PsConnectionCols = struct { + IDConnections gormcol.Field + IDShopGroup gormcol.Field + IDShop gormcol.Field + IDGuest gormcol.Field + IDPage gormcol.Field + IPAddress gormcol.Field + DateAdd gormcol.Field + HTTPReferer gormcol.Field +}{ + IDConnections: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_connections"), + IDShopGroup: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_shop_group"), + IDShop: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_shop"), + IDGuest: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_guest"), + IDPage: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_page"), + IPAddress: gormcol.Field{}.Set((&PsConnection{}).TableName(), "ip_address"), + DateAdd: gormcol.Field{}.Set((&PsConnection{}).TableName(), "date_add"), + HTTPReferer: gormcol.Field{}.Set((&PsConnection{}).TableName(), "http_referer"), +} diff --git a/app/model/dbmodel/ps_connections_page.go b/app/model/dbmodel/ps_connections_page.go new file mode 100644 index 0000000..b413132 --- /dev/null +++ b/app/model/dbmodel/ps_connections_page.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsConnectionsPage = "ps_connections_page" + +// PsConnectionsPage mapped from table +type PsConnectionsPage struct { + IDConnections int32 `gorm:"column:id_connections;primaryKey" json:"id_connections"` + IDPage int32 `gorm:"column:id_page;primaryKey" json:"id_page"` + TimeStart time.Time `gorm:"column:time_start;primaryKey" json:"time_start"` + TimeEnd *time.Time `gorm:"column:time_end" json:"time_end"` +} + +// TableName PsConnectionsPage's table name +func (*PsConnectionsPage) TableName() string { + return TableNamePsConnectionsPage +} + +var PsConnectionsPageCols = struct { + IDConnections gormcol.Field + IDPage gormcol.Field + TimeStart gormcol.Field + TimeEnd gormcol.Field +}{ + IDConnections: gormcol.Field{}.Set((&PsConnectionsPage{}).TableName(), "id_connections"), + IDPage: gormcol.Field{}.Set((&PsConnectionsPage{}).TableName(), "id_page"), + TimeStart: gormcol.Field{}.Set((&PsConnectionsPage{}).TableName(), "time_start"), + TimeEnd: gormcol.Field{}.Set((&PsConnectionsPage{}).TableName(), "time_end"), +} diff --git a/app/model/dbmodel/ps_connections_source.go b/app/model/dbmodel/ps_connections_source.go new file mode 100644 index 0000000..8735c3b --- /dev/null +++ b/app/model/dbmodel/ps_connections_source.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsConnectionsSource = "ps_connections_source" + +// PsConnectionsSource mapped from table +type PsConnectionsSource struct { + IDConnectionsSource int32 `gorm:"column:id_connections_source;primaryKey;autoIncrement:true" json:"id_connections_source"` + IDConnections int32 `gorm:"column:id_connections;not null;index:connections,priority:1" json:"id_connections"` + HTTPReferer *string `gorm:"column:http_referer;index:http_referer,priority:1" json:"http_referer"` + RequestURI *string `gorm:"column:request_uri;index:request_uri,priority:1" json:"request_uri"` + Keywords *string `gorm:"column:keywords" json:"keywords"` + DateAdd time.Time `gorm:"column:date_add;not null;index:orderby,priority:1" json:"date_add"` +} + +// TableName PsConnectionsSource's table name +func (*PsConnectionsSource) TableName() string { + return TableNamePsConnectionsSource +} + +var PsConnectionsSourceCols = struct { + IDConnectionsSource gormcol.Field + IDConnections gormcol.Field + HTTPReferer gormcol.Field + RequestURI gormcol.Field + Keywords gormcol.Field + DateAdd gormcol.Field +}{ + IDConnectionsSource: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "id_connections_source"), + IDConnections: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "id_connections"), + HTTPReferer: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "http_referer"), + RequestURI: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "request_uri"), + Keywords: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "keywords"), + DateAdd: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_contact.go b/app/model/dbmodel/ps_contact.go new file mode 100644 index 0000000..2982e69 --- /dev/null +++ b/app/model/dbmodel/ps_contact.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsContact = "ps_contact" + +// PsContact mapped from table +type PsContact struct { + IDContact int32 `gorm:"column:id_contact;primaryKey;autoIncrement:true" json:"id_contact"` + Email string `gorm:"column:email;not null" json:"email"` + CustomerService bool `gorm:"column:customer_service;not null" json:"customer_service"` + Position int32 `gorm:"column:position;not null" json:"position"` +} + +// TableName PsContact's table name +func (*PsContact) TableName() string { + return TableNamePsContact +} + +var PsContactCols = struct { + IDContact gormcol.Field + Email gormcol.Field + CustomerService gormcol.Field + Position gormcol.Field +}{ + IDContact: gormcol.Field{}.Set((&PsContact{}).TableName(), "id_contact"), + Email: gormcol.Field{}.Set((&PsContact{}).TableName(), "email"), + CustomerService: gormcol.Field{}.Set((&PsContact{}).TableName(), "customer_service"), + Position: gormcol.Field{}.Set((&PsContact{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_contact_lang.go b/app/model/dbmodel/ps_contact_lang.go new file mode 100644 index 0000000..7b53da3 --- /dev/null +++ b/app/model/dbmodel/ps_contact_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsContactLang = "ps_contact_lang" + +// PsContactLang mapped from table +type PsContactLang struct { + IDContact int32 `gorm:"column:id_contact;primaryKey" json:"id_contact"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Description *string `gorm:"column:description" json:"description"` +} + +// TableName PsContactLang's table name +func (*PsContactLang) TableName() string { + return TableNamePsContactLang +} + +var PsContactLangCols = struct { + IDContact gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Description gormcol.Field +}{ + IDContact: gormcol.Field{}.Set((&PsContactLang{}).TableName(), "id_contact"), + IDLang: gormcol.Field{}.Set((&PsContactLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsContactLang{}).TableName(), "name"), + Description: gormcol.Field{}.Set((&PsContactLang{}).TableName(), "description"), +} diff --git a/app/model/dbmodel/ps_contact_shop.go b/app/model/dbmodel/ps_contact_shop.go new file mode 100644 index 0000000..9c7f345 --- /dev/null +++ b/app/model/dbmodel/ps_contact_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsContactShop = "ps_contact_shop" + +// PsContactShop mapped from table +type PsContactShop struct { + IDContact int32 `gorm:"column:id_contact;primaryKey" json:"id_contact"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsContactShop's table name +func (*PsContactShop) TableName() string { + return TableNamePsContactShop +} + +var PsContactShopCols = struct { + IDContact gormcol.Field + IDShop gormcol.Field +}{ + IDContact: gormcol.Field{}.Set((&PsContactShop{}).TableName(), "id_contact"), + IDShop: gormcol.Field{}.Set((&PsContactShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_country.go b/app/model/dbmodel/ps_country.go new file mode 100644 index 0000000..915a2a3 --- /dev/null +++ b/app/model/dbmodel/ps_country.go @@ -0,0 +1,55 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCountry = "ps_country" + +// PsCountry mapped from table +type PsCountry struct { + IDCountry int32 `gorm:"column:id_country;primaryKey;autoIncrement:true" json:"id_country"` + IDZone int32 `gorm:"column:id_zone;not null;index:country_,priority:1" json:"id_zone"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` + IsoCode string `gorm:"column:iso_code;not null;index:country_iso_code,priority:1" json:"iso_code"` + CallPrefix int32 `gorm:"column:call_prefix;not null" json:"call_prefix"` + Active bool `gorm:"column:active;not null" json:"active"` + ContainsStates bool `gorm:"column:contains_states;not null" json:"contains_states"` + NeedIdentificationNumber bool `gorm:"column:need_identification_number;not null" json:"need_identification_number"` + NeedZipCode bool `gorm:"column:need_zip_code;not null;default:1" json:"need_zip_code"` + ZipCodeFormat string `gorm:"column:zip_code_format;not null" json:"zip_code_format"` + DisplayTaxLabel bool `gorm:"column:display_tax_label;not null" json:"display_tax_label"` +} + +// TableName PsCountry's table name +func (*PsCountry) TableName() string { + return TableNamePsCountry +} + +var PsCountryCols = struct { + IDCountry gormcol.Field + IDZone gormcol.Field + IDCurrency gormcol.Field + IsoCode gormcol.Field + CallPrefix gormcol.Field + Active gormcol.Field + ContainsStates gormcol.Field + NeedIdentificationNumber gormcol.Field + NeedZipCode gormcol.Field + ZipCodeFormat gormcol.Field + DisplayTaxLabel gormcol.Field +}{ + IDCountry: gormcol.Field{}.Set((&PsCountry{}).TableName(), "id_country"), + IDZone: gormcol.Field{}.Set((&PsCountry{}).TableName(), "id_zone"), + IDCurrency: gormcol.Field{}.Set((&PsCountry{}).TableName(), "id_currency"), + IsoCode: gormcol.Field{}.Set((&PsCountry{}).TableName(), "iso_code"), + CallPrefix: gormcol.Field{}.Set((&PsCountry{}).TableName(), "call_prefix"), + Active: gormcol.Field{}.Set((&PsCountry{}).TableName(), "active"), + ContainsStates: gormcol.Field{}.Set((&PsCountry{}).TableName(), "contains_states"), + NeedIdentificationNumber: gormcol.Field{}.Set((&PsCountry{}).TableName(), "need_identification_number"), + NeedZipCode: gormcol.Field{}.Set((&PsCountry{}).TableName(), "need_zip_code"), + ZipCodeFormat: gormcol.Field{}.Set((&PsCountry{}).TableName(), "zip_code_format"), + DisplayTaxLabel: gormcol.Field{}.Set((&PsCountry{}).TableName(), "display_tax_label"), +} diff --git a/app/model/dbmodel/ps_country_lang.go b/app/model/dbmodel/ps_country_lang.go new file mode 100644 index 0000000..2bafed6 --- /dev/null +++ b/app/model/dbmodel/ps_country_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCountryLang = "ps_country_lang" + +// PsCountryLang mapped from table +type PsCountryLang struct { + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsCountryLang's table name +func (*PsCountryLang) TableName() string { + return TableNamePsCountryLang +} + +var PsCountryLangCols = struct { + IDCountry gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDCountry: gormcol.Field{}.Set((&PsCountryLang{}).TableName(), "id_country"), + IDLang: gormcol.Field{}.Set((&PsCountryLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsCountryLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_country_shop.go b/app/model/dbmodel/ps_country_shop.go new file mode 100644 index 0000000..8dabb8f --- /dev/null +++ b/app/model/dbmodel/ps_country_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCountryShop = "ps_country_shop" + +// PsCountryShop mapped from table +type PsCountryShop struct { + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsCountryShop's table name +func (*PsCountryShop) TableName() string { + return TableNamePsCountryShop +} + +var PsCountryShopCols = struct { + IDCountry gormcol.Field + IDShop gormcol.Field +}{ + IDCountry: gormcol.Field{}.Set((&PsCountryShop{}).TableName(), "id_country"), + IDShop: gormcol.Field{}.Set((&PsCountryShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_currency.go b/app/model/dbmodel/ps_currency.go new file mode 100644 index 0000000..fdaff8d --- /dev/null +++ b/app/model/dbmodel/ps_currency.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCurrency = "ps_currency" + +// PsCurrency mapped from table +type PsCurrency struct { + IDCurrency int32 `gorm:"column:id_currency;primaryKey;autoIncrement:true" json:"id_currency"` + Name string `gorm:"column:name;not null" json:"name"` + IsoCode string `gorm:"column:iso_code;not null;index:currency_iso_code,priority:1;default:0" json:"iso_code"` + NumericIsoCode *string `gorm:"column:numeric_iso_code" json:"numeric_iso_code"` + Precision int32 `gorm:"column:precision;not null;default:6" json:"precision"` + ConversionRate float64 `gorm:"column:conversion_rate;not null" json:"conversion_rate"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` + Active bool `gorm:"column:active;not null;default:1" json:"active"` +} + +// TableName PsCurrency's table name +func (*PsCurrency) TableName() string { + return TableNamePsCurrency +} + +var PsCurrencyCols = struct { + IDCurrency gormcol.Field + Name gormcol.Field + IsoCode gormcol.Field + NumericIsoCode gormcol.Field + Precision gormcol.Field + ConversionRate gormcol.Field + Deleted gormcol.Field + Active gormcol.Field +}{ + IDCurrency: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "id_currency"), + Name: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "name"), + IsoCode: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "iso_code"), + NumericIsoCode: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "numeric_iso_code"), + Precision: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "precision"), + ConversionRate: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "conversion_rate"), + Deleted: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "deleted"), + Active: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_currency_lang.go b/app/model/dbmodel/ps_currency_lang.go new file mode 100644 index 0000000..b16bb37 --- /dev/null +++ b/app/model/dbmodel/ps_currency_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCurrencyLang = "ps_currency_lang" + +// PsCurrencyLang mapped from table +type PsCurrencyLang struct { + IDCurrency int32 `gorm:"column:id_currency;primaryKey" json:"id_currency"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Symbol string `gorm:"column:symbol;not null" json:"symbol"` +} + +// TableName PsCurrencyLang's table name +func (*PsCurrencyLang) TableName() string { + return TableNamePsCurrencyLang +} + +var PsCurrencyLangCols = struct { + IDCurrency gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Symbol gormcol.Field +}{ + IDCurrency: gormcol.Field{}.Set((&PsCurrencyLang{}).TableName(), "id_currency"), + IDLang: gormcol.Field{}.Set((&PsCurrencyLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsCurrencyLang{}).TableName(), "name"), + Symbol: gormcol.Field{}.Set((&PsCurrencyLang{}).TableName(), "symbol"), +} diff --git a/app/model/dbmodel/ps_currency_shop.go b/app/model/dbmodel/ps_currency_shop.go new file mode 100644 index 0000000..3a42512 --- /dev/null +++ b/app/model/dbmodel/ps_currency_shop.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCurrencyShop = "ps_currency_shop" + +// PsCurrencyShop mapped from table +type PsCurrencyShop struct { + IDCurrency int32 `gorm:"column:id_currency;primaryKey" json:"id_currency"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` + ConversionRate float64 `gorm:"column:conversion_rate;not null" json:"conversion_rate"` +} + +// TableName PsCurrencyShop's table name +func (*PsCurrencyShop) TableName() string { + return TableNamePsCurrencyShop +} + +var PsCurrencyShopCols = struct { + IDCurrency gormcol.Field + IDShop gormcol.Field + ConversionRate gormcol.Field +}{ + IDCurrency: gormcol.Field{}.Set((&PsCurrencyShop{}).TableName(), "id_currency"), + IDShop: gormcol.Field{}.Set((&PsCurrencyShop{}).TableName(), "id_shop"), + ConversionRate: gormcol.Field{}.Set((&PsCurrencyShop{}).TableName(), "conversion_rate"), +} diff --git a/app/model/dbmodel/ps_customer.go b/app/model/dbmodel/ps_customer.go new file mode 100644 index 0000000..f08b4fc --- /dev/null +++ b/app/model/dbmodel/ps_customer.go @@ -0,0 +1,124 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsCustomer = "ps_customer" + +// PsCustomer mapped from table +type PsCustomer struct { + IDCustomer int32 `gorm:"column:id_customer;primaryKey;autoIncrement:true;index:id_customer_passwd,priority:1" json:"id_customer"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;index:id_shop_group,priority:1;default:1" json:"id_shop_group"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;default:1" json:"id_shop"` + IDGender int32 `gorm:"column:id_gender;not null;index:id_gender,priority:1" json:"id_gender"` + IDDefaultGroup int32 `gorm:"column:id_default_group;not null;default:1" json:"id_default_group"` + IDLang *int32 `gorm:"column:id_lang" json:"id_lang"` + IDRisk int32 `gorm:"column:id_risk;not null;default:1" json:"id_risk"` + Company *string `gorm:"column:company" json:"company"` + Siret *string `gorm:"column:siret" json:"siret"` + Ape *string `gorm:"column:ape" json:"ape"` + Firstname string `gorm:"column:firstname;not null" json:"firstname"` + Lastname string `gorm:"column:lastname;not null" json:"lastname"` + Email string `gorm:"column:email;not null;index:customer_email,priority:1;index:customer_login,priority:1" json:"email"` + Passwd string `gorm:"column:passwd;not null;index:customer_login,priority:2;index:id_customer_passwd,priority:2" json:"passwd"` + LastPasswdGen time.Time `gorm:"column:last_passwd_gen;not null;default:current_timestamp()" json:"last_passwd_gen"` + Birthday *time.Time `gorm:"column:birthday" json:"birthday"` + Newsletter bool `gorm:"column:newsletter;not null" json:"newsletter"` + IPRegistrationNewsletter *string `gorm:"column:ip_registration_newsletter" json:"ip_registration_newsletter"` + NewsletterDateAdd *time.Time `gorm:"column:newsletter_date_add" json:"newsletter_date_add"` + Optin bool `gorm:"column:optin;not null" json:"optin"` + Website *string `gorm:"column:website" json:"website"` + OutstandingAllowAmount float64 `gorm:"column:outstanding_allow_amount;not null;default:0.000000" json:"outstanding_allow_amount"` + ShowPublicPrices bool `gorm:"column:show_public_prices;not null" json:"show_public_prices"` + MaxPaymentDays int32 `gorm:"column:max_payment_days;not null;default:60" json:"max_payment_days"` + SecureKey string `gorm:"column:secure_key;not null;default:-1" json:"secure_key"` + Note *string `gorm:"column:note" json:"note"` + Active bool `gorm:"column:active;not null" json:"active"` + IsGuest bool `gorm:"column:is_guest;not null" json:"is_guest"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` + DateAdd time.Time `gorm:"column:date_add;not null;index:id_shop,priority:2" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + ResetPasswordToken *string `gorm:"column:reset_password_token" json:"reset_password_token"` + ResetPasswordValidity *time.Time `gorm:"column:reset_password_validity" json:"reset_password_validity"` +} + +// TableName PsCustomer's table name +func (*PsCustomer) TableName() string { + return TableNamePsCustomer +} + +var PsCustomerCols = struct { + IDCustomer gormcol.Field + IDShopGroup gormcol.Field + IDShop gormcol.Field + IDGender gormcol.Field + IDDefaultGroup gormcol.Field + IDLang gormcol.Field + IDRisk gormcol.Field + Company gormcol.Field + Siret gormcol.Field + Ape gormcol.Field + Firstname gormcol.Field + Lastname gormcol.Field + Email gormcol.Field + Passwd gormcol.Field + LastPasswdGen gormcol.Field + Birthday gormcol.Field + Newsletter gormcol.Field + IPRegistrationNewsletter gormcol.Field + NewsletterDateAdd gormcol.Field + Optin gormcol.Field + Website gormcol.Field + OutstandingAllowAmount gormcol.Field + ShowPublicPrices gormcol.Field + MaxPaymentDays gormcol.Field + SecureKey gormcol.Field + Note gormcol.Field + Active gormcol.Field + IsGuest gormcol.Field + Deleted gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + ResetPasswordToken gormcol.Field + ResetPasswordValidity gormcol.Field +}{ + IDCustomer: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_customer"), + IDShopGroup: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_shop_group"), + IDShop: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_shop"), + IDGender: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_gender"), + IDDefaultGroup: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_default_group"), + IDLang: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_lang"), + IDRisk: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_risk"), + Company: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "company"), + Siret: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "siret"), + Ape: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "ape"), + Firstname: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "firstname"), + Lastname: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "lastname"), + Email: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "email"), + Passwd: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "passwd"), + LastPasswdGen: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "last_passwd_gen"), + Birthday: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "birthday"), + Newsletter: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "newsletter"), + IPRegistrationNewsletter: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "ip_registration_newsletter"), + NewsletterDateAdd: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "newsletter_date_add"), + Optin: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "optin"), + Website: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "website"), + OutstandingAllowAmount: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "outstanding_allow_amount"), + ShowPublicPrices: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "show_public_prices"), + MaxPaymentDays: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "max_payment_days"), + SecureKey: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "secure_key"), + Note: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "note"), + Active: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "active"), + IsGuest: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "is_guest"), + Deleted: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "deleted"), + DateAdd: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "date_upd"), + ResetPasswordToken: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "reset_password_token"), + ResetPasswordValidity: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "reset_password_validity"), +} diff --git a/app/model/dbmodel/ps_customer_group.go b/app/model/dbmodel/ps_customer_group.go new file mode 100644 index 0000000..511a60e --- /dev/null +++ b/app/model/dbmodel/ps_customer_group.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCustomerGroup = "ps_customer_group" + +// PsCustomerGroup mapped from table +type PsCustomerGroup struct { + IDCustomer int32 `gorm:"column:id_customer;primaryKey;index:id_customer,priority:1" json:"id_customer"` + IDGroup int32 `gorm:"column:id_group;primaryKey;index:customer_login,priority:1" json:"id_group"` +} + +// TableName PsCustomerGroup's table name +func (*PsCustomerGroup) TableName() string { + return TableNamePsCustomerGroup +} + +var PsCustomerGroupCols = struct { + IDCustomer gormcol.Field + IDGroup gormcol.Field +}{ + IDCustomer: gormcol.Field{}.Set((&PsCustomerGroup{}).TableName(), "id_customer"), + IDGroup: gormcol.Field{}.Set((&PsCustomerGroup{}).TableName(), "id_group"), +} diff --git a/app/model/dbmodel/ps_customer_message.go b/app/model/dbmodel/ps_customer_message.go new file mode 100644 index 0000000..ea72df7 --- /dev/null +++ b/app/model/dbmodel/ps_customer_message.go @@ -0,0 +1,61 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsCustomerMessage = "ps_customer_message" + +// PsCustomerMessage mapped from table +type PsCustomerMessage struct { + IDCustomerMessage int32 `gorm:"column:id_customer_message;primaryKey;autoIncrement:true" json:"id_customer_message"` + IDCustomerThread *int32 `gorm:"column:id_customer_thread;index:id_customer_thread,priority:1" json:"id_customer_thread"` + IDEmployee *int32 `gorm:"column:id_employee;index:id_employee,priority:1" json:"id_employee"` + Message string `gorm:"column:message;not null" json:"message"` + FileName *string `gorm:"column:file_name" json:"file_name"` + IPAddress *string `gorm:"column:ip_address" json:"ip_address"` + UserAgent *string `gorm:"column:user_agent" json:"user_agent"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + Private int32 `gorm:"column:private;not null" json:"private"` + Read bool `gorm:"column:read;not null" json:"read"` + Product *string `gorm:"column:product" json:"product"` +} + +// TableName PsCustomerMessage's table name +func (*PsCustomerMessage) TableName() string { + return TableNamePsCustomerMessage +} + +var PsCustomerMessageCols = struct { + IDCustomerMessage gormcol.Field + IDCustomerThread gormcol.Field + IDEmployee gormcol.Field + Message gormcol.Field + FileName gormcol.Field + IPAddress gormcol.Field + UserAgent gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Private gormcol.Field + Read gormcol.Field + Product gormcol.Field +}{ + IDCustomerMessage: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "id_customer_message"), + IDCustomerThread: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "id_customer_thread"), + IDEmployee: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "id_employee"), + Message: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "message"), + FileName: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "file_name"), + IPAddress: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "ip_address"), + UserAgent: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "user_agent"), + DateAdd: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "date_upd"), + Private: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "private"), + Read: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "read"), + Product: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "product"), +} diff --git a/app/model/dbmodel/ps_customer_message_sync_imap.go b/app/model/dbmodel/ps_customer_message_sync_imap.go new file mode 100644 index 0000000..eccea28 --- /dev/null +++ b/app/model/dbmodel/ps_customer_message_sync_imap.go @@ -0,0 +1,25 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCustomerMessageSyncImap = "ps_customer_message_sync_imap" + +// PsCustomerMessageSyncImap mapped from table +type PsCustomerMessageSyncImap struct { + Md5Header []byte `gorm:"column:md5_header;not null;index:md5_header_index,priority:1" json:"md5_header"` +} + +// TableName PsCustomerMessageSyncImap's table name +func (*PsCustomerMessageSyncImap) TableName() string { + return TableNamePsCustomerMessageSyncImap +} + +var PsCustomerMessageSyncImapCols = struct { + Md5Header gormcol.Field +}{ + Md5Header: gormcol.Field{}.Set((&PsCustomerMessageSyncImap{}).TableName(), "md5_header"), +} diff --git a/app/model/dbmodel/ps_customer_thread.go b/app/model/dbmodel/ps_customer_thread.go new file mode 100644 index 0000000..e50343f --- /dev/null +++ b/app/model/dbmodel/ps_customer_thread.go @@ -0,0 +1,61 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsCustomerThread = "ps_customer_thread" + +// PsCustomerThread mapped from table +type PsCustomerThread struct { + IDCustomerThread int32 `gorm:"column:id_customer_thread;primaryKey;autoIncrement:true" json:"id_customer_thread"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"` + IDContact int32 `gorm:"column:id_contact;not null;index:id_contact,priority:1" json:"id_contact"` + IDCustomer *int32 `gorm:"column:id_customer;index:id_customer,priority:1" json:"id_customer"` + IDOrder *int32 `gorm:"column:id_order;index:id_order,priority:1" json:"id_order"` + IDProduct *int32 `gorm:"column:id_product;index:id_product,priority:1" json:"id_product"` + Status string `gorm:"column:status;not null;default:open" json:"status"` + Email string `gorm:"column:email;not null" json:"email"` + Token *string `gorm:"column:token" json:"token"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsCustomerThread's table name +func (*PsCustomerThread) TableName() string { + return TableNamePsCustomerThread +} + +var PsCustomerThreadCols = struct { + IDCustomerThread gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + IDContact gormcol.Field + IDCustomer gormcol.Field + IDOrder gormcol.Field + IDProduct gormcol.Field + Status gormcol.Field + Email gormcol.Field + Token gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDCustomerThread: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_customer_thread"), + IDShop: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_shop"), + IDLang: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_lang"), + IDContact: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_contact"), + IDCustomer: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_customer"), + IDOrder: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_order"), + IDProduct: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_product"), + Status: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "status"), + Email: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "email"), + Token: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "token"), + DateAdd: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_customization.go b/app/model/dbmodel/ps_customization.go new file mode 100644 index 0000000..7556e38 --- /dev/null +++ b/app/model/dbmodel/ps_customization.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCustomization = "ps_customization" + +// PsCustomization mapped from table +type PsCustomization struct { + IDCustomization int32 `gorm:"column:id_customization;primaryKey;autoIncrement:true" json:"id_customization"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;index:id_cart_product,priority:3;index:id_product_attribute,priority:1" json:"id_product_attribute"` + IDAddressDelivery int32 `gorm:"column:id_address_delivery;primaryKey" json:"id_address_delivery"` + IDCart int32 `gorm:"column:id_cart;primaryKey;index:id_cart_product,priority:1" json:"id_cart"` + IDProduct int32 `gorm:"column:id_product;primaryKey;index:id_cart_product,priority:2" json:"id_product"` + Quantity int32 `gorm:"column:quantity;not null" json:"quantity"` + QuantityRefunded int32 `gorm:"column:quantity_refunded;not null" json:"quantity_refunded"` + QuantityReturned int32 `gorm:"column:quantity_returned;not null" json:"quantity_returned"` + InCart bool `gorm:"column:in_cart;not null" json:"in_cart"` +} + +// TableName PsCustomization's table name +func (*PsCustomization) TableName() string { + return TableNamePsCustomization +} + +var PsCustomizationCols = struct { + IDCustomization gormcol.Field + IDProductAttribute gormcol.Field + IDAddressDelivery gormcol.Field + IDCart gormcol.Field + IDProduct gormcol.Field + Quantity gormcol.Field + QuantityRefunded gormcol.Field + QuantityReturned gormcol.Field + InCart gormcol.Field +}{ + IDCustomization: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_customization"), + IDProductAttribute: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_product_attribute"), + IDAddressDelivery: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_address_delivery"), + IDCart: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_cart"), + IDProduct: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_product"), + Quantity: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "quantity"), + QuantityRefunded: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "quantity_refunded"), + QuantityReturned: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "quantity_returned"), + InCart: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "in_cart"), +} diff --git a/app/model/dbmodel/ps_customization_field.go b/app/model/dbmodel/ps_customization_field.go new file mode 100644 index 0000000..2e5bf4a --- /dev/null +++ b/app/model/dbmodel/ps_customization_field.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCustomizationField = "ps_customization_field" + +// PsCustomizationField mapped from table +type PsCustomizationField struct { + IDCustomizationField int32 `gorm:"column:id_customization_field;primaryKey;autoIncrement:true" json:"id_customization_field"` + IDProduct int32 `gorm:"column:id_product;not null;index:id_product,priority:1" json:"id_product"` + Type bool `gorm:"column:type;not null" json:"type"` + Required bool `gorm:"column:required;not null" json:"required"` + IsModule bool `gorm:"column:is_module;not null" json:"is_module"` + IsDeleted bool `gorm:"column:is_deleted;not null" json:"is_deleted"` +} + +// TableName PsCustomizationField's table name +func (*PsCustomizationField) TableName() string { + return TableNamePsCustomizationField +} + +var PsCustomizationFieldCols = struct { + IDCustomizationField gormcol.Field + IDProduct gormcol.Field + Type gormcol.Field + Required gormcol.Field + IsModule gormcol.Field + IsDeleted gormcol.Field +}{ + IDCustomizationField: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "id_customization_field"), + IDProduct: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "id_product"), + Type: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "type"), + Required: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "required"), + IsModule: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "is_module"), + IsDeleted: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "is_deleted"), +} diff --git a/app/model/dbmodel/ps_customization_field_lang.go b/app/model/dbmodel/ps_customization_field_lang.go new file mode 100644 index 0000000..da6695a --- /dev/null +++ b/app/model/dbmodel/ps_customization_field_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCustomizationFieldLang = "ps_customization_field_lang" + +// PsCustomizationFieldLang mapped from table +type PsCustomizationFieldLang struct { + IDCustomizationField int32 `gorm:"column:id_customization_field;primaryKey" json:"id_customization_field"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsCustomizationFieldLang's table name +func (*PsCustomizationFieldLang) TableName() string { + return TableNamePsCustomizationFieldLang +} + +var PsCustomizationFieldLangCols = struct { + IDCustomizationField gormcol.Field + IDLang gormcol.Field + IDShop gormcol.Field + Name gormcol.Field +}{ + IDCustomizationField: gormcol.Field{}.Set((&PsCustomizationFieldLang{}).TableName(), "id_customization_field"), + IDLang: gormcol.Field{}.Set((&PsCustomizationFieldLang{}).TableName(), "id_lang"), + IDShop: gormcol.Field{}.Set((&PsCustomizationFieldLang{}).TableName(), "id_shop"), + Name: gormcol.Field{}.Set((&PsCustomizationFieldLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_customized_data.go b/app/model/dbmodel/ps_customized_data.go new file mode 100644 index 0000000..5cbdc06 --- /dev/null +++ b/app/model/dbmodel/ps_customized_data.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsCustomizedDatum = "ps_customized_data" + +// PsCustomizedDatum mapped from table +type PsCustomizedDatum struct { + IDCustomization int32 `gorm:"column:id_customization;primaryKey" json:"id_customization"` + Type bool `gorm:"column:type;primaryKey" json:"type"` + Index int32 `gorm:"column:index;primaryKey" json:"index"` + Value string `gorm:"column:value;not null" json:"value"` + IDModule int32 `gorm:"column:id_module;not null" json:"id_module"` + Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"` + Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"` +} + +// TableName PsCustomizedDatum's table name +func (*PsCustomizedDatum) TableName() string { + return TableNamePsCustomizedDatum +} + +var PsCustomizedDatumCols = struct { + IDCustomization gormcol.Field + Type gormcol.Field + Index gormcol.Field + Value gormcol.Field + IDModule gormcol.Field + Price gormcol.Field + Weight gormcol.Field +}{ + IDCustomization: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "id_customization"), + Type: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "type"), + Index: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "index"), + Value: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "value"), + IDModule: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "id_module"), + Price: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "price"), + Weight: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "weight"), +} diff --git a/app/model/dbmodel/ps_date_range.go b/app/model/dbmodel/ps_date_range.go new file mode 100644 index 0000000..c32fd29 --- /dev/null +++ b/app/model/dbmodel/ps_date_range.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDateRange = "ps_date_range" + +// PsDateRange mapped from table +type PsDateRange struct { + IDDateRange int32 `gorm:"column:id_date_range;primaryKey;autoIncrement:true" json:"id_date_range"` + TimeStart time.Time `gorm:"column:time_start;not null" json:"time_start"` + TimeEnd time.Time `gorm:"column:time_end;not null" json:"time_end"` +} + +// TableName PsDateRange's table name +func (*PsDateRange) TableName() string { + return TableNamePsDateRange +} + +var PsDateRangeCols = struct { + IDDateRange gormcol.Field + TimeStart gormcol.Field + TimeEnd gormcol.Field +}{ + IDDateRange: gormcol.Field{}.Set((&PsDateRange{}).TableName(), "id_date_range"), + TimeStart: gormcol.Field{}.Set((&PsDateRange{}).TableName(), "time_start"), + TimeEnd: gormcol.Field{}.Set((&PsDateRange{}).TableName(), "time_end"), +} diff --git a/app/model/dbmodel/ps_delivery.go b/app/model/dbmodel/ps_delivery.go new file mode 100644 index 0000000..9bfbb6b --- /dev/null +++ b/app/model/dbmodel/ps_delivery.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsDelivery = "ps_delivery" + +// PsDelivery mapped from table +type PsDelivery struct { + IDDelivery int32 `gorm:"column:id_delivery;primaryKey;autoIncrement:true" json:"id_delivery"` + IDShop *int32 `gorm:"column:id_shop" json:"id_shop"` + IDShopGroup *int32 `gorm:"column:id_shop_group" json:"id_shop_group"` + IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"` + IDRangePrice *int32 `gorm:"column:id_range_price;index:id_range_price,priority:1" json:"id_range_price"` + IDRangeWeight *int32 `gorm:"column:id_range_weight;index:id_range_weight,priority:1" json:"id_range_weight"` + IDZone int32 `gorm:"column:id_zone;not null;index:id_carrier,priority:2;index:id_zone,priority:1" json:"id_zone"` + Price float64 `gorm:"column:price;not null" json:"price"` +} + +// TableName PsDelivery's table name +func (*PsDelivery) TableName() string { + return TableNamePsDelivery +} + +var PsDeliveryCols = struct { + IDDelivery gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + IDCarrier gormcol.Field + IDRangePrice gormcol.Field + IDRangeWeight gormcol.Field + IDZone gormcol.Field + Price gormcol.Field +}{ + IDDelivery: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_delivery"), + IDShop: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_shop"), + IDShopGroup: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_shop_group"), + IDCarrier: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_carrier"), + IDRangePrice: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_range_price"), + IDRangeWeight: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_range_weight"), + IDZone: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_zone"), + Price: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "price"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_carrier.go b/app/model/dbmodel/ps_dpdpoland_carrier.go new file mode 100644 index 0000000..19cff01 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_carrier.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDpdpolandCarrier = "ps_dpdpoland_carrier" + +// PsDpdpolandCarrier mapped from table +type PsDpdpolandCarrier struct { + IDDpdpolandCarrier int32 `gorm:"column:id_dpdpoland_carrier;primaryKey;autoIncrement:true" json:"id_dpdpoland_carrier"` + IDCarrier int32 `gorm:"column:id_carrier;not null" json:"id_carrier"` + IDReference int32 `gorm:"column:id_reference;not null" json:"id_reference"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsDpdpolandCarrier's table name +func (*PsDpdpolandCarrier) TableName() string { + return TableNamePsDpdpolandCarrier +} + +var PsDpdpolandCarrierCols = struct { + IDDpdpolandCarrier gormcol.Field + IDCarrier gormcol.Field + IDReference gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDDpdpolandCarrier: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "id_dpdpoland_carrier"), + IDCarrier: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "id_carrier"), + IDReference: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "id_reference"), + DateAdd: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_country.go b/app/model/dbmodel/ps_dpdpoland_country.go new file mode 100644 index 0000000..72483e2 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_country.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDpdpolandCountry = "ps_dpdpoland_country" + +// PsDpdpolandCountry mapped from table +type PsDpdpolandCountry struct { + IDDpdpolandCountry int32 `gorm:"column:id_dpdpoland_country;primaryKey;autoIncrement:true" json:"id_dpdpoland_country"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` + IDCountry int32 `gorm:"column:id_country;not null" json:"id_country"` + Enabled bool `gorm:"column:enabled;not null" json:"enabled"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsDpdpolandCountry's table name +func (*PsDpdpolandCountry) TableName() string { + return TableNamePsDpdpolandCountry +} + +var PsDpdpolandCountryCols = struct { + IDDpdpolandCountry gormcol.Field + IDShop gormcol.Field + IDCountry gormcol.Field + Enabled gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDDpdpolandCountry: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "id_dpdpoland_country"), + IDShop: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "id_shop"), + IDCountry: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "id_country"), + Enabled: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "enabled"), + DateAdd: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_manifest.go b/app/model/dbmodel/ps_dpdpoland_manifest.go new file mode 100644 index 0000000..2e425a7 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_manifest.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDpdpolandManifest = "ps_dpdpoland_manifest" + +// PsDpdpolandManifest mapped from table +type PsDpdpolandManifest struct { + IDManifest int32 `gorm:"column:id_manifest;primaryKey;autoIncrement:true" json:"id_manifest"` + IDManifestWs int32 `gorm:"column:id_manifest_ws;not null;uniqueIndex:id_manifest_ws,priority:1" json:"id_manifest_ws"` + IDPackageWs int32 `gorm:"column:id_package_ws;not null;uniqueIndex:id_manifest_ws,priority:2" json:"id_package_ws"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsDpdpolandManifest's table name +func (*PsDpdpolandManifest) TableName() string { + return TableNamePsDpdpolandManifest +} + +var PsDpdpolandManifestCols = struct { + IDManifest gormcol.Field + IDManifestWs gormcol.Field + IDPackageWs gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDManifest: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "id_manifest"), + IDManifestWs: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "id_manifest_ws"), + IDPackageWs: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "id_package_ws"), + DateAdd: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_package.go b/app/model/dbmodel/ps_dpdpoland_package.go new file mode 100644 index 0000000..39b811f --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_package.go @@ -0,0 +1,88 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDpdpolandPackage = "ps_dpdpoland_package" + +// PsDpdpolandPackage mapped from table +type PsDpdpolandPackage struct { + IDPackage int32 `gorm:"column:id_package;primaryKey;autoIncrement:true" json:"id_package"` + IDPackageWs int32 `gorm:"column:id_package_ws;not null;uniqueIndex:id_package_ws,priority:1" json:"id_package_ws"` + IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"` + SessionID int32 `gorm:"column:sessionId;not null" json:"sessionId"` + SessionType string `gorm:"column:sessionType;not null" json:"sessionType"` + PayerNumber string `gorm:"column:payerNumber;not null" json:"payerNumber"` + IDAddressSender int32 `gorm:"column:id_address_sender;not null" json:"id_address_sender"` + IDAddressDelivery int32 `gorm:"column:id_address_delivery;not null" json:"id_address_delivery"` + CodAmount *float64 `gorm:"column:cod_amount" json:"cod_amount"` + DeclaredValueAmount *float64 `gorm:"column:declaredValue_amount" json:"declaredValue_amount"` + Ref1 *string `gorm:"column:ref1" json:"ref1"` + Ref2 *string `gorm:"column:ref2" json:"ref2"` + AdditionalInfo *string `gorm:"column:additional_info" json:"additional_info"` + LabelsPrinted bool `gorm:"column:labels_printed;not null" json:"labels_printed"` + IDSenderAddress int32 `gorm:"column:id_sender_address;not null" json:"id_sender_address"` + Cud bool `gorm:"column:cud;not null" json:"cud"` + Rod bool `gorm:"column:rod;not null" json:"rod"` + Dpde bool `gorm:"column:dpde;not null" json:"dpde"` + Dpdnd bool `gorm:"column:dpdnd;not null" json:"dpdnd"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsDpdpolandPackage's table name +func (*PsDpdpolandPackage) TableName() string { + return TableNamePsDpdpolandPackage +} + +var PsDpdpolandPackageCols = struct { + IDPackage gormcol.Field + IDPackageWs gormcol.Field + IDOrder gormcol.Field + SessionID gormcol.Field + SessionType gormcol.Field + PayerNumber gormcol.Field + IDAddressSender gormcol.Field + IDAddressDelivery gormcol.Field + CodAmount gormcol.Field + DeclaredValueAmount gormcol.Field + Ref1 gormcol.Field + Ref2 gormcol.Field + AdditionalInfo gormcol.Field + LabelsPrinted gormcol.Field + IDSenderAddress gormcol.Field + Cud gormcol.Field + Rod gormcol.Field + Dpde gormcol.Field + Dpdnd gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDPackage: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_package"), + IDPackageWs: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_package_ws"), + IDOrder: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_order"), + SessionID: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "sessionId"), + SessionType: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "sessionType"), + PayerNumber: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "payerNumber"), + IDAddressSender: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_address_sender"), + IDAddressDelivery: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_address_delivery"), + CodAmount: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "cod_amount"), + DeclaredValueAmount: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "declaredValue_amount"), + Ref1: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "ref1"), + Ref2: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "ref2"), + AdditionalInfo: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "additional_info"), + LabelsPrinted: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "labels_printed"), + IDSenderAddress: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_sender_address"), + Cud: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "cud"), + Rod: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "rod"), + Dpde: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "dpde"), + Dpdnd: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "dpdnd"), + DateAdd: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_parcel.go b/app/model/dbmodel/ps_dpdpoland_parcel.go new file mode 100644 index 0000000..37f7589 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_parcel.go @@ -0,0 +1,58 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDpdpolandParcel = "ps_dpdpoland_parcel" + +// PsDpdpolandParcel mapped from table +type PsDpdpolandParcel struct { + IDParcel int32 `gorm:"column:id_parcel;primaryKey" json:"id_parcel"` + IDPackageWs int32 `gorm:"column:id_package_ws;not null" json:"id_package_ws"` + Waybill string `gorm:"column:waybill;not null" json:"waybill"` + Content string `gorm:"column:content;not null" json:"content"` + Weight float64 `gorm:"column:weight;not null" json:"weight"` + Height float64 `gorm:"column:height;not null" json:"height"` + Length float64 `gorm:"column:length;not null" json:"length"` + Width float64 `gorm:"column:width;not null" json:"width"` + Number int32 `gorm:"column:number;not null" json:"number"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsDpdpolandParcel's table name +func (*PsDpdpolandParcel) TableName() string { + return TableNamePsDpdpolandParcel +} + +var PsDpdpolandParcelCols = struct { + IDParcel gormcol.Field + IDPackageWs gormcol.Field + Waybill gormcol.Field + Content gormcol.Field + Weight gormcol.Field + Height gormcol.Field + Length gormcol.Field + Width gormcol.Field + Number gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDParcel: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "id_parcel"), + IDPackageWs: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "id_package_ws"), + Waybill: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "waybill"), + Content: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "content"), + Weight: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "weight"), + Height: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "height"), + Length: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "length"), + Width: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "width"), + Number: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "number"), + DateAdd: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_parcel_product.go b/app/model/dbmodel/ps_dpdpoland_parcel_product.go new file mode 100644 index 0000000..e86aafa --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_parcel_product.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDpdpolandParcelProduct = "ps_dpdpoland_parcel_product" + +// PsDpdpolandParcelProduct mapped from table +type PsDpdpolandParcelProduct struct { + IDParcelProduct int32 `gorm:"column:id_parcel_product;primaryKey;autoIncrement:true" json:"id_parcel_product"` + IDParcel int32 `gorm:"column:id_parcel;not null" json:"id_parcel"` + IDProduct int32 `gorm:"column:id_product;not null" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null" json:"id_product_attribute"` + Name string `gorm:"column:name;not null" json:"name"` + Weight float64 `gorm:"column:weight;not null" json:"weight"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsDpdpolandParcelProduct's table name +func (*PsDpdpolandParcelProduct) TableName() string { + return TableNamePsDpdpolandParcelProduct +} + +var PsDpdpolandParcelProductCols = struct { + IDParcelProduct gormcol.Field + IDParcel gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + Name gormcol.Field + Weight gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDParcelProduct: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "id_parcel_product"), + IDParcel: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "id_parcel"), + IDProduct: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "id_product"), + IDProductAttribute: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "id_product_attribute"), + Name: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "name"), + Weight: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "weight"), + DateAdd: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_payer_number.go b/app/model/dbmodel/ps_dpdpoland_payer_number.go new file mode 100644 index 0000000..2555238 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_payer_number.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDpdpolandPayerNumber = "ps_dpdpoland_payer_number" + +// PsDpdpolandPayerNumber mapped from table +type PsDpdpolandPayerNumber struct { + IDDpdpolandPayerNumber int32 `gorm:"column:id_dpdpoland_payer_number;primaryKey;autoIncrement:true" json:"id_dpdpoland_payer_number"` + IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"` + PayerNumber string `gorm:"column:payer_number;not null" json:"payer_number"` + Name string `gorm:"column:name;not null" json:"name"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsDpdpolandPayerNumber's table name +func (*PsDpdpolandPayerNumber) TableName() string { + return TableNamePsDpdpolandPayerNumber +} + +var PsDpdpolandPayerNumberCols = struct { + IDDpdpolandPayerNumber gormcol.Field + IDShop gormcol.Field + PayerNumber gormcol.Field + Name gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDDpdpolandPayerNumber: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "id_dpdpoland_payer_number"), + IDShop: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "id_shop"), + PayerNumber: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "payer_number"), + Name: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "name"), + DateAdd: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_price_rule.go b/app/model/dbmodel/ps_dpdpoland_price_rule.go new file mode 100644 index 0000000..eceeca2 --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_price_rule.go @@ -0,0 +1,61 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDpdpolandPriceRule = "ps_dpdpoland_price_rule" + +// PsDpdpolandPriceRule mapped from table +type PsDpdpolandPriceRule struct { + IDCsv int32 `gorm:"column:id_csv;primaryKey;autoIncrement:true" json:"id_csv"` + IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` + IsoCountry string `gorm:"column:iso_country;not null" json:"iso_country"` + PriceFrom float64 `gorm:"column:price_from;not null" json:"price_from"` + PriceTo float64 `gorm:"column:price_to;not null" json:"price_to"` + WeightFrom float64 `gorm:"column:weight_from;not null" json:"weight_from"` + WeightTo float64 `gorm:"column:weight_to;not null" json:"weight_to"` + ParcelPrice float32 `gorm:"column:parcel_price;not null" json:"parcel_price"` + CodPrice string `gorm:"column:cod_price;not null" json:"cod_price"` + IDCarrier string `gorm:"column:id_carrier;not null" json:"id_carrier"` +} + +// TableName PsDpdpolandPriceRule's table name +func (*PsDpdpolandPriceRule) TableName() string { + return TableNamePsDpdpolandPriceRule +} + +var PsDpdpolandPriceRuleCols = struct { + IDCsv gormcol.Field + IDShop gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + IsoCountry gormcol.Field + PriceFrom gormcol.Field + PriceTo gormcol.Field + WeightFrom gormcol.Field + WeightTo gormcol.Field + ParcelPrice gormcol.Field + CodPrice gormcol.Field + IDCarrier gormcol.Field +}{ + IDCsv: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "id_csv"), + IDShop: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "id_shop"), + DateAdd: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "date_upd"), + IsoCountry: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "iso_country"), + PriceFrom: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "price_from"), + PriceTo: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "price_to"), + WeightFrom: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "weight_from"), + WeightTo: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "weight_to"), + ParcelPrice: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "parcel_price"), + CodPrice: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "cod_price"), + IDCarrier: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "id_carrier"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_pudo_cart.go b/app/model/dbmodel/ps_dpdpoland_pudo_cart.go new file mode 100644 index 0000000..690a79d --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_pudo_cart.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsDpdpolandPudoCart = "ps_dpdpoland_pudo_cart" + +// PsDpdpolandPudoCart mapped from table +type PsDpdpolandPudoCart struct { + PudoCode string `gorm:"column:pudo_code;not null" json:"pudo_code"` + IDCart int32 `gorm:"column:id_cart;primaryKey" json:"id_cart"` +} + +// TableName PsDpdpolandPudoCart's table name +func (*PsDpdpolandPudoCart) TableName() string { + return TableNamePsDpdpolandPudoCart +} + +var PsDpdpolandPudoCartCols = struct { + PudoCode gormcol.Field + IDCart gormcol.Field +}{ + PudoCode: gormcol.Field{}.Set((&PsDpdpolandPudoCart{}).TableName(), "pudo_code"), + IDCart: gormcol.Field{}.Set((&PsDpdpolandPudoCart{}).TableName(), "id_cart"), +} diff --git a/app/model/dbmodel/ps_dpdpoland_sender_address.go b/app/model/dbmodel/ps_dpdpoland_sender_address.go new file mode 100644 index 0000000..ae8ad7f --- /dev/null +++ b/app/model/dbmodel/ps_dpdpoland_sender_address.go @@ -0,0 +1,61 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsDpdpolandSenderAddress = "ps_dpdpoland_sender_address" + +// PsDpdpolandSenderAddress mapped from table +type PsDpdpolandSenderAddress struct { + IDSenderAddress int32 `gorm:"column:id_sender_address;primaryKey;autoIncrement:true" json:"id_sender_address"` + Alias string `gorm:"column:alias;not null" json:"alias"` + Company string `gorm:"column:company;not null" json:"company"` + Name string `gorm:"column:name;not null" json:"name"` + Address string `gorm:"column:address;not null" json:"address"` + City string `gorm:"column:city;not null" json:"city"` + Email string `gorm:"column:email;not null" json:"email"` + Postcode string `gorm:"column:postcode;not null" json:"postcode"` + Phone string `gorm:"column:phone;not null" json:"phone"` + IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsDpdpolandSenderAddress's table name +func (*PsDpdpolandSenderAddress) TableName() string { + return TableNamePsDpdpolandSenderAddress +} + +var PsDpdpolandSenderAddressCols = struct { + IDSenderAddress gormcol.Field + Alias gormcol.Field + Company gormcol.Field + Name gormcol.Field + Address gormcol.Field + City gormcol.Field + Email gormcol.Field + Postcode gormcol.Field + Phone gormcol.Field + IDShop gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDSenderAddress: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "id_sender_address"), + Alias: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "alias"), + Company: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "company"), + Name: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "name"), + Address: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "address"), + City: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "city"), + Email: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "email"), + Postcode: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "postcode"), + Phone: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "phone"), + IDShop: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "id_shop"), + DateAdd: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsDpdpolandSenderAddress{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_emailsubscription.go b/app/model/dbmodel/ps_emailsubscription.go new file mode 100644 index 0000000..f9524a8 --- /dev/null +++ b/app/model/dbmodel/ps_emailsubscription.go @@ -0,0 +1,52 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsEmailsubscription = "ps_emailsubscription" + +// PsEmailsubscription mapped from table +type PsEmailsubscription struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"` + Email string `gorm:"column:email;not null" json:"email"` + NewsletterDateAdd *time.Time `gorm:"column:newsletter_date_add" json:"newsletter_date_add"` + IPRegistrationNewsletter string `gorm:"column:ip_registration_newsletter;not null" json:"ip_registration_newsletter"` + HTTPReferer *string `gorm:"column:http_referer" json:"http_referer"` + Active bool `gorm:"column:active;not null" json:"active"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` +} + +// TableName PsEmailsubscription's table name +func (*PsEmailsubscription) TableName() string { + return TableNamePsEmailsubscription +} + +var PsEmailsubscriptionCols = struct { + ID gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + Email gormcol.Field + NewsletterDateAdd gormcol.Field + IPRegistrationNewsletter gormcol.Field + HTTPReferer gormcol.Field + Active gormcol.Field + IDLang gormcol.Field +}{ + ID: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "id"), + IDShop: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "id_shop"), + IDShopGroup: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "id_shop_group"), + Email: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "email"), + NewsletterDateAdd: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "newsletter_date_add"), + IPRegistrationNewsletter: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "ip_registration_newsletter"), + HTTPReferer: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "http_referer"), + Active: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "active"), + IDLang: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "id_lang"), +} diff --git a/app/model/dbmodel/ps_employee.go b/app/model/dbmodel/ps_employee.go new file mode 100644 index 0000000..5401462 --- /dev/null +++ b/app/model/dbmodel/ps_employee.go @@ -0,0 +1,109 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsEmployee = "ps_employee" + +// PsEmployee mapped from table +type PsEmployee struct { + IDEmployee int32 `gorm:"column:id_employee;primaryKey;autoIncrement:true;index:id_employee_passwd,priority:1" json:"id_employee"` + IDProfile int32 `gorm:"column:id_profile;not null;index:id_profile,priority:1" json:"id_profile"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` + Lastname string `gorm:"column:lastname;not null" json:"lastname"` + Firstname string `gorm:"column:firstname;not null" json:"firstname"` + Email string `gorm:"column:email;not null;index:employee_login,priority:1" json:"email"` + Passwd string `gorm:"column:passwd;not null;index:employee_login,priority:2;index:id_employee_passwd,priority:2" json:"passwd"` + LastPasswdGen time.Time `gorm:"column:last_passwd_gen;not null;default:current_timestamp()" json:"last_passwd_gen"` + StatsDateFrom *time.Time `gorm:"column:stats_date_from" json:"stats_date_from"` + StatsDateTo *time.Time `gorm:"column:stats_date_to" json:"stats_date_to"` + StatsCompareFrom *time.Time `gorm:"column:stats_compare_from" json:"stats_compare_from"` + StatsCompareTo *time.Time `gorm:"column:stats_compare_to" json:"stats_compare_to"` + StatsCompareOption int32 `gorm:"column:stats_compare_option;not null;default:1" json:"stats_compare_option"` + PreselectDateRange *string `gorm:"column:preselect_date_range" json:"preselect_date_range"` + BoColor *string `gorm:"column:bo_color" json:"bo_color"` + BoTheme *string `gorm:"column:bo_theme" json:"bo_theme"` + BoCSS *string `gorm:"column:bo_css" json:"bo_css"` + DefaultTab int32 `gorm:"column:default_tab;not null" json:"default_tab"` + BoWidth int32 `gorm:"column:bo_width;not null" json:"bo_width"` + BoMenu bool `gorm:"column:bo_menu;not null;default:1" json:"bo_menu"` + Active bool `gorm:"column:active;not null" json:"active"` + Optin bool `gorm:"column:optin;not null;default:1" json:"optin"` + IDLastOrder int32 `gorm:"column:id_last_order;not null" json:"id_last_order"` + IDLastCustomerMessage int32 `gorm:"column:id_last_customer_message;not null" json:"id_last_customer_message"` + IDLastCustomer int32 `gorm:"column:id_last_customer;not null" json:"id_last_customer"` + LastConnectionDate *time.Time `gorm:"column:last_connection_date" json:"last_connection_date"` + ResetPasswordToken *string `gorm:"column:reset_password_token" json:"reset_password_token"` + ResetPasswordValidity *time.Time `gorm:"column:reset_password_validity" json:"reset_password_validity"` +} + +// TableName PsEmployee's table name +func (*PsEmployee) TableName() string { + return TableNamePsEmployee +} + +var PsEmployeeCols = struct { + IDEmployee gormcol.Field + IDProfile gormcol.Field + IDLang gormcol.Field + Lastname gormcol.Field + Firstname gormcol.Field + Email gormcol.Field + Passwd gormcol.Field + LastPasswdGen gormcol.Field + StatsDateFrom gormcol.Field + StatsDateTo gormcol.Field + StatsCompareFrom gormcol.Field + StatsCompareTo gormcol.Field + StatsCompareOption gormcol.Field + PreselectDateRange gormcol.Field + BoColor gormcol.Field + BoTheme gormcol.Field + BoCSS gormcol.Field + DefaultTab gormcol.Field + BoWidth gormcol.Field + BoMenu gormcol.Field + Active gormcol.Field + Optin gormcol.Field + IDLastOrder gormcol.Field + IDLastCustomerMessage gormcol.Field + IDLastCustomer gormcol.Field + LastConnectionDate gormcol.Field + ResetPasswordToken gormcol.Field + ResetPasswordValidity gormcol.Field +}{ + IDEmployee: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_employee"), + IDProfile: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_profile"), + IDLang: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_lang"), + Lastname: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "lastname"), + Firstname: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "firstname"), + Email: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "email"), + Passwd: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "passwd"), + LastPasswdGen: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "last_passwd_gen"), + StatsDateFrom: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_date_from"), + StatsDateTo: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_date_to"), + StatsCompareFrom: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_compare_from"), + StatsCompareTo: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_compare_to"), + StatsCompareOption: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_compare_option"), + PreselectDateRange: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "preselect_date_range"), + BoColor: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_color"), + BoTheme: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_theme"), + BoCSS: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_css"), + DefaultTab: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "default_tab"), + BoWidth: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_width"), + BoMenu: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_menu"), + Active: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "active"), + Optin: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "optin"), + IDLastOrder: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_last_order"), + IDLastCustomerMessage: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_last_customer_message"), + IDLastCustomer: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_last_customer"), + LastConnectionDate: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "last_connection_date"), + ResetPasswordToken: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "reset_password_token"), + ResetPasswordValidity: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "reset_password_validity"), +} diff --git a/app/model/dbmodel/ps_employee_shop.go b/app/model/dbmodel/ps_employee_shop.go new file mode 100644 index 0000000..b288211 --- /dev/null +++ b/app/model/dbmodel/ps_employee_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsEmployeeShop = "ps_employee_shop" + +// PsEmployeeShop mapped from table +type PsEmployeeShop struct { + IDEmployee int32 `gorm:"column:id_employee;primaryKey" json:"id_employee"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsEmployeeShop's table name +func (*PsEmployeeShop) TableName() string { + return TableNamePsEmployeeShop +} + +var PsEmployeeShopCols = struct { + IDEmployee gormcol.Field + IDShop gormcol.Field +}{ + IDEmployee: gormcol.Field{}.Set((&PsEmployeeShop{}).TableName(), "id_employee"), + IDShop: gormcol.Field{}.Set((&PsEmployeeShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_export_invoice.go b/app/model/dbmodel/ps_export_invoice.go new file mode 100644 index 0000000..ba733a1 --- /dev/null +++ b/app/model/dbmodel/ps_export_invoice.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsExportInvoice = "ps_export_invoice" + +// PsExportInvoice mapped from table +type PsExportInvoice struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"` + IsExport bool `gorm:"column:is_export;not null" json:"is_export"` +} + +// TableName PsExportInvoice's table name +func (*PsExportInvoice) TableName() string { + return TableNamePsExportInvoice +} + +var PsExportInvoiceCols = struct { + ID gormcol.Field + IDOrder gormcol.Field + IsExport gormcol.Field +}{ + ID: gormcol.Field{}.Set((&PsExportInvoice{}).TableName(), "id"), + IDOrder: gormcol.Field{}.Set((&PsExportInvoice{}).TableName(), "id_order"), + IsExport: gormcol.Field{}.Set((&PsExportInvoice{}).TableName(), "is_export"), +} diff --git a/app/model/dbmodel/ps_feature.go b/app/model/dbmodel/ps_feature.go new file mode 100644 index 0000000..d337f5f --- /dev/null +++ b/app/model/dbmodel/ps_feature.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsFeature = "ps_feature" + +// PsFeature mapped from table +type PsFeature struct { + IDFeature int32 `gorm:"column:id_feature;primaryKey;autoIncrement:true" json:"id_feature"` + Position int32 `gorm:"column:position;not null" json:"position"` +} + +// TableName PsFeature's table name +func (*PsFeature) TableName() string { + return TableNamePsFeature +} + +var PsFeatureCols = struct { + IDFeature gormcol.Field + Position gormcol.Field +}{ + IDFeature: gormcol.Field{}.Set((&PsFeature{}).TableName(), "id_feature"), + Position: gormcol.Field{}.Set((&PsFeature{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_feature_lang.go b/app/model/dbmodel/ps_feature_lang.go new file mode 100644 index 0000000..2919b3c --- /dev/null +++ b/app/model/dbmodel/ps_feature_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsFeatureLang = "ps_feature_lang" + +// PsFeatureLang mapped from table +type PsFeatureLang struct { + IDFeature int32 `gorm:"column:id_feature;primaryKey" json:"id_feature"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:id_lang,priority:1" json:"id_lang"` + Name *string `gorm:"column:name;index:id_lang,priority:2" json:"name"` +} + +// TableName PsFeatureLang's table name +func (*PsFeatureLang) TableName() string { + return TableNamePsFeatureLang +} + +var PsFeatureLangCols = struct { + IDFeature gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDFeature: gormcol.Field{}.Set((&PsFeatureLang{}).TableName(), "id_feature"), + IDLang: gormcol.Field{}.Set((&PsFeatureLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsFeatureLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_feature_product.go b/app/model/dbmodel/ps_feature_product.go new file mode 100644 index 0000000..1c5feaa --- /dev/null +++ b/app/model/dbmodel/ps_feature_product.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsFeatureProduct = "ps_feature_product" + +// PsFeatureProduct mapped from table +type PsFeatureProduct struct { + IDFeature int32 `gorm:"column:id_feature;primaryKey;index:idx_ps_feature_product,priority:2" json:"id_feature"` + IDProduct int32 `gorm:"column:id_product;primaryKey;index:idx_ps_feature_product,priority:1;index:id_product,priority:1" json:"id_product"` + IDFeatureValue int32 `gorm:"column:id_feature_value;primaryKey;index:idx_ps_feature_product,priority:3;index:id_feature_value,priority:1" json:"id_feature_value"` +} + +// TableName PsFeatureProduct's table name +func (*PsFeatureProduct) TableName() string { + return TableNamePsFeatureProduct +} + +var PsFeatureProductCols = struct { + IDFeature gormcol.Field + IDProduct gormcol.Field + IDFeatureValue gormcol.Field +}{ + IDFeature: gormcol.Field{}.Set((&PsFeatureProduct{}).TableName(), "id_feature"), + IDProduct: gormcol.Field{}.Set((&PsFeatureProduct{}).TableName(), "id_product"), + IDFeatureValue: gormcol.Field{}.Set((&PsFeatureProduct{}).TableName(), "id_feature_value"), +} diff --git a/app/model/dbmodel/ps_feature_shop.go b/app/model/dbmodel/ps_feature_shop.go new file mode 100644 index 0000000..bc4f7ef --- /dev/null +++ b/app/model/dbmodel/ps_feature_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsFeatureShop = "ps_feature_shop" + +// PsFeatureShop mapped from table +type PsFeatureShop struct { + IDFeature int32 `gorm:"column:id_feature;primaryKey" json:"id_feature"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsFeatureShop's table name +func (*PsFeatureShop) TableName() string { + return TableNamePsFeatureShop +} + +var PsFeatureShopCols = struct { + IDFeature gormcol.Field + IDShop gormcol.Field +}{ + IDFeature: gormcol.Field{}.Set((&PsFeatureShop{}).TableName(), "id_feature"), + IDShop: gormcol.Field{}.Set((&PsFeatureShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_feature_value.go b/app/model/dbmodel/ps_feature_value.go new file mode 100644 index 0000000..73a9ec4 --- /dev/null +++ b/app/model/dbmodel/ps_feature_value.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsFeatureValue = "ps_feature_value" + +// PsFeatureValue mapped from table +type PsFeatureValue struct { + IDFeatureValue int32 `gorm:"column:id_feature_value;primaryKey;autoIncrement:true" json:"id_feature_value"` + IDFeature int32 `gorm:"column:id_feature;not null;index:feature,priority:1" json:"id_feature"` + Custom *int32 `gorm:"column:custom" json:"custom"` +} + +// TableName PsFeatureValue's table name +func (*PsFeatureValue) TableName() string { + return TableNamePsFeatureValue +} + +var PsFeatureValueCols = struct { + IDFeatureValue gormcol.Field + IDFeature gormcol.Field + Custom gormcol.Field +}{ + IDFeatureValue: gormcol.Field{}.Set((&PsFeatureValue{}).TableName(), "id_feature_value"), + IDFeature: gormcol.Field{}.Set((&PsFeatureValue{}).TableName(), "id_feature"), + Custom: gormcol.Field{}.Set((&PsFeatureValue{}).TableName(), "custom"), +} diff --git a/app/model/dbmodel/ps_feature_value_lang.go b/app/model/dbmodel/ps_feature_value_lang.go new file mode 100644 index 0000000..e10adbc --- /dev/null +++ b/app/model/dbmodel/ps_feature_value_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsFeatureValueLang = "ps_feature_value_lang" + +// PsFeatureValueLang mapped from table +type PsFeatureValueLang struct { + IDFeatureValue int32 `gorm:"column:id_feature_value;primaryKey" json:"id_feature_value"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Value *string `gorm:"column:value" json:"value"` +} + +// TableName PsFeatureValueLang's table name +func (*PsFeatureValueLang) TableName() string { + return TableNamePsFeatureValueLang +} + +var PsFeatureValueLangCols = struct { + IDFeatureValue gormcol.Field + IDLang gormcol.Field + Value gormcol.Field +}{ + IDFeatureValue: gormcol.Field{}.Set((&PsFeatureValueLang{}).TableName(), "id_feature_value"), + IDLang: gormcol.Field{}.Set((&PsFeatureValueLang{}).TableName(), "id_lang"), + Value: gormcol.Field{}.Set((&PsFeatureValueLang{}).TableName(), "value"), +} diff --git a/app/model/dbmodel/ps_gender.go b/app/model/dbmodel/ps_gender.go new file mode 100644 index 0000000..8ab6680 --- /dev/null +++ b/app/model/dbmodel/ps_gender.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsGender = "ps_gender" + +// PsGender mapped from table +type PsGender struct { + IDGender int32 `gorm:"column:id_gender;primaryKey;autoIncrement:true" json:"id_gender"` + Type bool `gorm:"column:type;not null" json:"type"` +} + +// TableName PsGender's table name +func (*PsGender) TableName() string { + return TableNamePsGender +} + +var PsGenderCols = struct { + IDGender gormcol.Field + Type gormcol.Field +}{ + IDGender: gormcol.Field{}.Set((&PsGender{}).TableName(), "id_gender"), + Type: gormcol.Field{}.Set((&PsGender{}).TableName(), "type"), +} diff --git a/app/model/dbmodel/ps_gender_lang.go b/app/model/dbmodel/ps_gender_lang.go new file mode 100644 index 0000000..ca37396 --- /dev/null +++ b/app/model/dbmodel/ps_gender_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsGenderLang = "ps_gender_lang" + +// PsGenderLang mapped from table +type PsGenderLang struct { + IDGender int32 `gorm:"column:id_gender;primaryKey;index:id_gender,priority:1" json:"id_gender"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsGenderLang's table name +func (*PsGenderLang) TableName() string { + return TableNamePsGenderLang +} + +var PsGenderLangCols = struct { + IDGender gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDGender: gormcol.Field{}.Set((&PsGenderLang{}).TableName(), "id_gender"), + IDLang: gormcol.Field{}.Set((&PsGenderLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsGenderLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_group.go b/app/model/dbmodel/ps_group.go new file mode 100644 index 0000000..9166d95 --- /dev/null +++ b/app/model/dbmodel/ps_group.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsGroup = "ps_group" + +// PsGroup mapped from table +type PsGroup struct { + IDGroup int32 `gorm:"column:id_group;primaryKey;autoIncrement:true" json:"id_group"` + Reduction float64 `gorm:"column:reduction;not null;default:0.00" json:"reduction"` + PriceDisplayMethod int32 `gorm:"column:price_display_method;not null" json:"price_display_method"` + ShowPrices bool `gorm:"column:show_prices;not null;default:1" json:"show_prices"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsGroup's table name +func (*PsGroup) TableName() string { + return TableNamePsGroup +} + +var PsGroupCols = struct { + IDGroup gormcol.Field + Reduction gormcol.Field + PriceDisplayMethod gormcol.Field + ShowPrices gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDGroup: gormcol.Field{}.Set((&PsGroup{}).TableName(), "id_group"), + Reduction: gormcol.Field{}.Set((&PsGroup{}).TableName(), "reduction"), + PriceDisplayMethod: gormcol.Field{}.Set((&PsGroup{}).TableName(), "price_display_method"), + ShowPrices: gormcol.Field{}.Set((&PsGroup{}).TableName(), "show_prices"), + DateAdd: gormcol.Field{}.Set((&PsGroup{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsGroup{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_group_lang.go b/app/model/dbmodel/ps_group_lang.go new file mode 100644 index 0000000..bf60a2a --- /dev/null +++ b/app/model/dbmodel/ps_group_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsGroupLang = "ps_group_lang" + +// PsGroupLang mapped from table +type PsGroupLang struct { + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsGroupLang's table name +func (*PsGroupLang) TableName() string { + return TableNamePsGroupLang +} + +var PsGroupLangCols = struct { + IDGroup gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDGroup: gormcol.Field{}.Set((&PsGroupLang{}).TableName(), "id_group"), + IDLang: gormcol.Field{}.Set((&PsGroupLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsGroupLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_group_reduction.go b/app/model/dbmodel/ps_group_reduction.go new file mode 100644 index 0000000..b410274 --- /dev/null +++ b/app/model/dbmodel/ps_group_reduction.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsGroupReduction = "ps_group_reduction" + +// PsGroupReduction mapped from table +type PsGroupReduction struct { + IDGroupReduction int32 `gorm:"column:id_group_reduction;primaryKey;autoIncrement:true" json:"id_group_reduction"` + IDGroup int32 `gorm:"column:id_group;not null;uniqueIndex:id_group,priority:1" json:"id_group"` + IDCategory int32 `gorm:"column:id_category;not null;uniqueIndex:id_group,priority:2" json:"id_category"` + Reduction float64 `gorm:"column:reduction;not null" json:"reduction"` +} + +// TableName PsGroupReduction's table name +func (*PsGroupReduction) TableName() string { + return TableNamePsGroupReduction +} + +var PsGroupReductionCols = struct { + IDGroupReduction gormcol.Field + IDGroup gormcol.Field + IDCategory gormcol.Field + Reduction gormcol.Field +}{ + IDGroupReduction: gormcol.Field{}.Set((&PsGroupReduction{}).TableName(), "id_group_reduction"), + IDGroup: gormcol.Field{}.Set((&PsGroupReduction{}).TableName(), "id_group"), + IDCategory: gormcol.Field{}.Set((&PsGroupReduction{}).TableName(), "id_category"), + Reduction: gormcol.Field{}.Set((&PsGroupReduction{}).TableName(), "reduction"), +} diff --git a/app/model/dbmodel/ps_group_shop.go b/app/model/dbmodel/ps_group_shop.go new file mode 100644 index 0000000..d2e7c09 --- /dev/null +++ b/app/model/dbmodel/ps_group_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsGroupShop = "ps_group_shop" + +// PsGroupShop mapped from table +type PsGroupShop struct { + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsGroupShop's table name +func (*PsGroupShop) TableName() string { + return TableNamePsGroupShop +} + +var PsGroupShopCols = struct { + IDGroup gormcol.Field + IDShop gormcol.Field +}{ + IDGroup: gormcol.Field{}.Set((&PsGroupShop{}).TableName(), "id_group"), + IDShop: gormcol.Field{}.Set((&PsGroupShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_gsitemap_sitemap.go b/app/model/dbmodel/ps_gsitemap_sitemap.go new file mode 100644 index 0000000..3c96ab6 --- /dev/null +++ b/app/model/dbmodel/ps_gsitemap_sitemap.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsGsitemapSitemap = "ps_gsitemap_sitemap" + +// PsGsitemapSitemap mapped from table +type PsGsitemapSitemap struct { + Link *string `gorm:"column:link" json:"link"` + IDShop *int32 `gorm:"column:id_shop" json:"id_shop"` +} + +// TableName PsGsitemapSitemap's table name +func (*PsGsitemapSitemap) TableName() string { + return TableNamePsGsitemapSitemap +} + +var PsGsitemapSitemapCols = struct { + Link gormcol.Field + IDShop gormcol.Field +}{ + Link: gormcol.Field{}.Set((&PsGsitemapSitemap{}).TableName(), "link"), + IDShop: gormcol.Field{}.Set((&PsGsitemapSitemap{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_guest.go b/app/model/dbmodel/ps_guest.go new file mode 100644 index 0000000..3ddb333 --- /dev/null +++ b/app/model/dbmodel/ps_guest.go @@ -0,0 +1,70 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsGuest = "ps_guest" + +// PsGuest mapped from table +type PsGuest struct { + IDGuest int32 `gorm:"column:id_guest;primaryKey;autoIncrement:true" json:"id_guest"` + IDOperatingSystem *int32 `gorm:"column:id_operating_system;index:id_operating_system,priority:1" json:"id_operating_system"` + IDWebBrowser *int32 `gorm:"column:id_web_browser;index:id_web_browser,priority:1" json:"id_web_browser"` + IDCustomer *int32 `gorm:"column:id_customer;index:id_customer,priority:1" json:"id_customer"` + Javascript *bool `gorm:"column:javascript" json:"javascript"` + ScreenResolutionX *int32 `gorm:"column:screen_resolution_x" json:"screen_resolution_x"` + ScreenResolutionY *int32 `gorm:"column:screen_resolution_y" json:"screen_resolution_y"` + ScreenColor *int32 `gorm:"column:screen_color" json:"screen_color"` + SunJava *bool `gorm:"column:sun_java" json:"sun_java"` + AdobeFlash *bool `gorm:"column:adobe_flash" json:"adobe_flash"` + AdobeDirector *bool `gorm:"column:adobe_director" json:"adobe_director"` + AppleQuicktime *bool `gorm:"column:apple_quicktime" json:"apple_quicktime"` + RealPlayer *bool `gorm:"column:real_player" json:"real_player"` + WindowsMedia *bool `gorm:"column:windows_media" json:"windows_media"` + AcceptLanguage *string `gorm:"column:accept_language" json:"accept_language"` + MobileTheme bool `gorm:"column:mobile_theme;not null" json:"mobile_theme"` +} + +// TableName PsGuest's table name +func (*PsGuest) TableName() string { + return TableNamePsGuest +} + +var PsGuestCols = struct { + IDGuest gormcol.Field + IDOperatingSystem gormcol.Field + IDWebBrowser gormcol.Field + IDCustomer gormcol.Field + Javascript gormcol.Field + ScreenResolutionX gormcol.Field + ScreenResolutionY gormcol.Field + ScreenColor gormcol.Field + SunJava gormcol.Field + AdobeFlash gormcol.Field + AdobeDirector gormcol.Field + AppleQuicktime gormcol.Field + RealPlayer gormcol.Field + WindowsMedia gormcol.Field + AcceptLanguage gormcol.Field + MobileTheme gormcol.Field +}{ + IDGuest: gormcol.Field{}.Set((&PsGuest{}).TableName(), "id_guest"), + IDOperatingSystem: gormcol.Field{}.Set((&PsGuest{}).TableName(), "id_operating_system"), + IDWebBrowser: gormcol.Field{}.Set((&PsGuest{}).TableName(), "id_web_browser"), + IDCustomer: gormcol.Field{}.Set((&PsGuest{}).TableName(), "id_customer"), + Javascript: gormcol.Field{}.Set((&PsGuest{}).TableName(), "javascript"), + ScreenResolutionX: gormcol.Field{}.Set((&PsGuest{}).TableName(), "screen_resolution_x"), + ScreenResolutionY: gormcol.Field{}.Set((&PsGuest{}).TableName(), "screen_resolution_y"), + ScreenColor: gormcol.Field{}.Set((&PsGuest{}).TableName(), "screen_color"), + SunJava: gormcol.Field{}.Set((&PsGuest{}).TableName(), "sun_java"), + AdobeFlash: gormcol.Field{}.Set((&PsGuest{}).TableName(), "adobe_flash"), + AdobeDirector: gormcol.Field{}.Set((&PsGuest{}).TableName(), "adobe_director"), + AppleQuicktime: gormcol.Field{}.Set((&PsGuest{}).TableName(), "apple_quicktime"), + RealPlayer: gormcol.Field{}.Set((&PsGuest{}).TableName(), "real_player"), + WindowsMedia: gormcol.Field{}.Set((&PsGuest{}).TableName(), "windows_media"), + AcceptLanguage: gormcol.Field{}.Set((&PsGuest{}).TableName(), "accept_language"), + MobileTheme: gormcol.Field{}.Set((&PsGuest{}).TableName(), "mobile_theme"), +} diff --git a/app/model/dbmodel/ps_homeslider.go b/app/model/dbmodel/ps_homeslider.go new file mode 100644 index 0000000..0071b0f --- /dev/null +++ b/app/model/dbmodel/ps_homeslider.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsHomeslider = "ps_homeslider" + +// PsHomeslider mapped from table +type PsHomeslider struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsHomeslider's table name +func (*PsHomeslider) TableName() string { + return TableNamePsHomeslider +} + +var PsHomesliderCols = struct { + IDHomesliderSlides gormcol.Field + IDShop gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{}.Set((&PsHomeslider{}).TableName(), "id_homeslider_slides"), + IDShop: gormcol.Field{}.Set((&PsHomeslider{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_homeslider_slides.go b/app/model/dbmodel/ps_homeslider_slides.go new file mode 100644 index 0000000..bdc9a0a --- /dev/null +++ b/app/model/dbmodel/ps_homeslider_slides.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsHomesliderSlide = "ps_homeslider_slides" + +// PsHomesliderSlide mapped from table +type PsHomesliderSlide struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + Position int32 `gorm:"column:position;not null" json:"position"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsHomesliderSlide's table name +func (*PsHomesliderSlide) TableName() string { + return TableNamePsHomesliderSlide +} + +var PsHomesliderSlideCols = struct { + IDHomesliderSlides gormcol.Field + Position gormcol.Field + Active gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{}.Set((&PsHomesliderSlide{}).TableName(), "id_homeslider_slides"), + Position: gormcol.Field{}.Set((&PsHomesliderSlide{}).TableName(), "position"), + Active: gormcol.Field{}.Set((&PsHomesliderSlide{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_homeslider_slides_lang.go b/app/model/dbmodel/ps_homeslider_slides_lang.go new file mode 100644 index 0000000..258903e --- /dev/null +++ b/app/model/dbmodel/ps_homeslider_slides_lang.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsHomesliderSlidesLang = "ps_homeslider_slides_lang" + +// PsHomesliderSlidesLang mapped from table +type PsHomesliderSlidesLang struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey" json:"id_homeslider_slides"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Title string `gorm:"column:title;not null" json:"title"` + Description string `gorm:"column:description;not null" json:"description"` + Legend string `gorm:"column:legend;not null" json:"legend"` + URL string `gorm:"column:url;not null" json:"url"` + Image string `gorm:"column:image;not null" json:"image"` +} + +// TableName PsHomesliderSlidesLang's table name +func (*PsHomesliderSlidesLang) TableName() string { + return TableNamePsHomesliderSlidesLang +} + +var PsHomesliderSlidesLangCols = struct { + IDHomesliderSlides gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field + Legend gormcol.Field + URL gormcol.Field + Image gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{}.Set((&PsHomesliderSlidesLang{}).TableName(), "id_homeslider_slides"), + IDLang: gormcol.Field{}.Set((&PsHomesliderSlidesLang{}).TableName(), "id_lang"), + Title: gormcol.Field{}.Set((&PsHomesliderSlidesLang{}).TableName(), "title"), + Description: gormcol.Field{}.Set((&PsHomesliderSlidesLang{}).TableName(), "description"), + Legend: gormcol.Field{}.Set((&PsHomesliderSlidesLang{}).TableName(), "legend"), + URL: gormcol.Field{}.Set((&PsHomesliderSlidesLang{}).TableName(), "url"), + Image: gormcol.Field{}.Set((&PsHomesliderSlidesLang{}).TableName(), "image"), +} diff --git a/app/model/dbmodel/ps_hook.go b/app/model/dbmodel/ps_hook.go new file mode 100644 index 0000000..dc6c332 --- /dev/null +++ b/app/model/dbmodel/ps_hook.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsHook = "ps_hook" + +// PsHook mapped from table +type PsHook struct { + IDHook int32 `gorm:"column:id_hook;primaryKey;autoIncrement:true" json:"id_hook"` + Name string `gorm:"column:name;not null;uniqueIndex:hook_name,priority:1" json:"name"` + Title string `gorm:"column:title;not null" json:"title"` + Description *string `gorm:"column:description" json:"description"` + Position bool `gorm:"column:position;not null;default:1" json:"position"` +} + +// TableName PsHook's table name +func (*PsHook) TableName() string { + return TableNamePsHook +} + +var PsHookCols = struct { + IDHook gormcol.Field + Name gormcol.Field + Title gormcol.Field + Description gormcol.Field + Position gormcol.Field +}{ + IDHook: gormcol.Field{}.Set((&PsHook{}).TableName(), "id_hook"), + Name: gormcol.Field{}.Set((&PsHook{}).TableName(), "name"), + Title: gormcol.Field{}.Set((&PsHook{}).TableName(), "title"), + Description: gormcol.Field{}.Set((&PsHook{}).TableName(), "description"), + Position: gormcol.Field{}.Set((&PsHook{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_hook_alias.go b/app/model/dbmodel/ps_hook_alias.go new file mode 100644 index 0000000..776ffe4 --- /dev/null +++ b/app/model/dbmodel/ps_hook_alias.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsHookAlias = "ps_hook_alias" + +// PsHookAlias mapped from table +type PsHookAlias struct { + IDHookAlias int32 `gorm:"column:id_hook_alias;primaryKey;autoIncrement:true" json:"id_hook_alias"` + Alias string `gorm:"column:alias;not null;uniqueIndex:alias,priority:1" json:"alias"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsHookAlias's table name +func (*PsHookAlias) TableName() string { + return TableNamePsHookAlias +} + +var PsHookAliasCols = struct { + IDHookAlias gormcol.Field + Alias gormcol.Field + Name gormcol.Field +}{ + IDHookAlias: gormcol.Field{}.Set((&PsHookAlias{}).TableName(), "id_hook_alias"), + Alias: gormcol.Field{}.Set((&PsHookAlias{}).TableName(), "alias"), + Name: gormcol.Field{}.Set((&PsHookAlias{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_hook_module.go b/app/model/dbmodel/ps_hook_module.go new file mode 100644 index 0000000..9212691 --- /dev/null +++ b/app/model/dbmodel/ps_hook_module.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsHookModule = "ps_hook_module" + +// PsHookModule mapped from table +type PsHookModule struct { + IDModule int32 `gorm:"column:id_module;primaryKey;index:id_module,priority:1" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:position,priority:1;default:1" json:"id_shop"` + IDHook int32 `gorm:"column:id_hook;primaryKey;index:id_hook,priority:1" json:"id_hook"` + Position int32 `gorm:"column:position;not null;index:position,priority:2" json:"position"` +} + +// TableName PsHookModule's table name +func (*PsHookModule) TableName() string { + return TableNamePsHookModule +} + +var PsHookModuleCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDHook gormcol.Field + Position gormcol.Field +}{ + IDModule: gormcol.Field{}.Set((&PsHookModule{}).TableName(), "id_module"), + IDShop: gormcol.Field{}.Set((&PsHookModule{}).TableName(), "id_shop"), + IDHook: gormcol.Field{}.Set((&PsHookModule{}).TableName(), "id_hook"), + Position: gormcol.Field{}.Set((&PsHookModule{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_hook_module_exceptions.go b/app/model/dbmodel/ps_hook_module_exceptions.go new file mode 100644 index 0000000..c071fdc --- /dev/null +++ b/app/model/dbmodel/ps_hook_module_exceptions.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsHookModuleException = "ps_hook_module_exceptions" + +// PsHookModuleException mapped from table +type PsHookModuleException struct { + IDHookModuleExceptions int32 `gorm:"column:id_hook_module_exceptions;primaryKey;autoIncrement:true" json:"id_hook_module_exceptions"` + IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` + IDModule int32 `gorm:"column:id_module;not null;index:id_module,priority:1" json:"id_module"` + IDHook int32 `gorm:"column:id_hook;not null;index:id_hook,priority:1" json:"id_hook"` + FileName *string `gorm:"column:file_name" json:"file_name"` +} + +// TableName PsHookModuleException's table name +func (*PsHookModuleException) TableName() string { + return TableNamePsHookModuleException +} + +var PsHookModuleExceptionCols = struct { + IDHookModuleExceptions gormcol.Field + IDShop gormcol.Field + IDModule gormcol.Field + IDHook gormcol.Field + FileName gormcol.Field +}{ + IDHookModuleExceptions: gormcol.Field{}.Set((&PsHookModuleException{}).TableName(), "id_hook_module_exceptions"), + IDShop: gormcol.Field{}.Set((&PsHookModuleException{}).TableName(), "id_shop"), + IDModule: gormcol.Field{}.Set((&PsHookModuleException{}).TableName(), "id_module"), + IDHook: gormcol.Field{}.Set((&PsHookModuleException{}).TableName(), "id_hook"), + FileName: gormcol.Field{}.Set((&PsHookModuleException{}).TableName(), "file_name"), +} diff --git a/app/model/dbmodel/ps_image.go b/app/model/dbmodel/ps_image.go new file mode 100644 index 0000000..8e556fe --- /dev/null +++ b/app/model/dbmodel/ps_image.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsImage = "ps_image" + +// PsImage mapped from table +type PsImage struct { + IDImage int32 `gorm:"column:id_image;primaryKey;autoIncrement:true;uniqueIndex:idx_product_image,priority:1" json:"id_image"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:idx_product_image,priority:2;uniqueIndex:id_product_cover,priority:1;index:image_product,priority:1" json:"id_product"` + Position int32 `gorm:"column:position;not null" json:"position"` + Cover *bool `gorm:"column:cover;uniqueIndex:idx_product_image,priority:3;uniqueIndex:id_product_cover,priority:2" json:"cover"` +} + +// TableName PsImage's table name +func (*PsImage) TableName() string { + return TableNamePsImage +} + +var PsImageCols = struct { + IDImage gormcol.Field + IDProduct gormcol.Field + Position gormcol.Field + Cover gormcol.Field +}{ + IDImage: gormcol.Field{}.Set((&PsImage{}).TableName(), "id_image"), + IDProduct: gormcol.Field{}.Set((&PsImage{}).TableName(), "id_product"), + Position: gormcol.Field{}.Set((&PsImage{}).TableName(), "position"), + Cover: gormcol.Field{}.Set((&PsImage{}).TableName(), "cover"), +} diff --git a/app/model/dbmodel/ps_image_lang.go b/app/model/dbmodel/ps_image_lang.go new file mode 100644 index 0000000..ca34120 --- /dev/null +++ b/app/model/dbmodel/ps_image_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsImageLang = "ps_image_lang" + +// PsImageLang mapped from table +type PsImageLang struct { + IDImage int32 `gorm:"column:id_image;primaryKey;index:id_image,priority:1" json:"id_image"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Legend *string `gorm:"column:legend" json:"legend"` +} + +// TableName PsImageLang's table name +func (*PsImageLang) TableName() string { + return TableNamePsImageLang +} + +var PsImageLangCols = struct { + IDImage gormcol.Field + IDLang gormcol.Field + Legend gormcol.Field +}{ + IDImage: gormcol.Field{}.Set((&PsImageLang{}).TableName(), "id_image"), + IDLang: gormcol.Field{}.Set((&PsImageLang{}).TableName(), "id_lang"), + Legend: gormcol.Field{}.Set((&PsImageLang{}).TableName(), "legend"), +} diff --git a/app/model/dbmodel/ps_image_shop.go b/app/model/dbmodel/ps_image_shop.go new file mode 100644 index 0000000..6ed8d31 --- /dev/null +++ b/app/model/dbmodel/ps_image_shop.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsImageShop = "ps_image_shop" + +// PsImageShop mapped from table +type PsImageShop struct { + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"` + IDImage int32 `gorm:"column:id_image;primaryKey" json:"id_image"` + IDShop int32 `gorm:"column:id_shop;primaryKey;uniqueIndex:id_product,priority:2;index:id_shop,priority:1" json:"id_shop"` + Cover *bool `gorm:"column:cover;uniqueIndex:id_product,priority:3" json:"cover"` +} + +// TableName PsImageShop's table name +func (*PsImageShop) TableName() string { + return TableNamePsImageShop +} + +var PsImageShopCols = struct { + IDProduct gormcol.Field + IDImage gormcol.Field + IDShop gormcol.Field + Cover gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsImageShop{}).TableName(), "id_product"), + IDImage: gormcol.Field{}.Set((&PsImageShop{}).TableName(), "id_image"), + IDShop: gormcol.Field{}.Set((&PsImageShop{}).TableName(), "id_shop"), + Cover: gormcol.Field{}.Set((&PsImageShop{}).TableName(), "cover"), +} diff --git a/app/model/dbmodel/ps_image_type.go b/app/model/dbmodel/ps_image_type.go new file mode 100644 index 0000000..8912659 --- /dev/null +++ b/app/model/dbmodel/ps_image_type.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsImageType = "ps_image_type" + +// PsImageType mapped from table +type PsImageType struct { + IDImageType int32 `gorm:"column:id_image_type;primaryKey;autoIncrement:true" json:"id_image_type"` + Name string `gorm:"column:name;not null;index:image_type_name,priority:1" json:"name"` + Width int32 `gorm:"column:width;not null" json:"width"` + Height int32 `gorm:"column:height;not null" json:"height"` + Products bool `gorm:"column:products;not null;default:1" json:"products"` + Categories bool `gorm:"column:categories;not null;default:1" json:"categories"` + Manufacturers bool `gorm:"column:manufacturers;not null;default:1" json:"manufacturers"` + Suppliers bool `gorm:"column:suppliers;not null;default:1" json:"suppliers"` + Stores bool `gorm:"column:stores;not null;default:1" json:"stores"` +} + +// TableName PsImageType's table name +func (*PsImageType) TableName() string { + return TableNamePsImageType +} + +var PsImageTypeCols = struct { + IDImageType gormcol.Field + Name gormcol.Field + Width gormcol.Field + Height gormcol.Field + Products gormcol.Field + Categories gormcol.Field + Manufacturers gormcol.Field + Suppliers gormcol.Field + Stores gormcol.Field +}{ + IDImageType: gormcol.Field{}.Set((&PsImageType{}).TableName(), "id_image_type"), + Name: gormcol.Field{}.Set((&PsImageType{}).TableName(), "name"), + Width: gormcol.Field{}.Set((&PsImageType{}).TableName(), "width"), + Height: gormcol.Field{}.Set((&PsImageType{}).TableName(), "height"), + Products: gormcol.Field{}.Set((&PsImageType{}).TableName(), "products"), + Categories: gormcol.Field{}.Set((&PsImageType{}).TableName(), "categories"), + Manufacturers: gormcol.Field{}.Set((&PsImageType{}).TableName(), "manufacturers"), + Suppliers: gormcol.Field{}.Set((&PsImageType{}).TableName(), "suppliers"), + Stores: gormcol.Field{}.Set((&PsImageType{}).TableName(), "stores"), +} diff --git a/app/model/dbmodel/ps_import_match.go b/app/model/dbmodel/ps_import_match.go new file mode 100644 index 0000000..16ccd96 --- /dev/null +++ b/app/model/dbmodel/ps_import_match.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsImportMatch = "ps_import_match" + +// PsImportMatch mapped from table +type PsImportMatch struct { + IDImportMatch int32 `gorm:"column:id_import_match;primaryKey;autoIncrement:true" json:"id_import_match"` + Name string `gorm:"column:name;not null" json:"name"` + Match string `gorm:"column:match;not null" json:"match"` + Skip int32 `gorm:"column:skip;not null" json:"skip"` +} + +// TableName PsImportMatch's table name +func (*PsImportMatch) TableName() string { + return TableNamePsImportMatch +} + +var PsImportMatchCols = struct { + IDImportMatch gormcol.Field + Name gormcol.Field + Match gormcol.Field + Skip gormcol.Field +}{ + IDImportMatch: gormcol.Field{}.Set((&PsImportMatch{}).TableName(), "id_import_match"), + Name: gormcol.Field{}.Set((&PsImportMatch{}).TableName(), "name"), + Match: gormcol.Field{}.Set((&PsImportMatch{}).TableName(), "match"), + Skip: gormcol.Field{}.Set((&PsImportMatch{}).TableName(), "skip"), +} diff --git a/app/model/dbmodel/ps_info.go b/app/model/dbmodel/ps_info.go new file mode 100644 index 0000000..ab3caad --- /dev/null +++ b/app/model/dbmodel/ps_info.go @@ -0,0 +1,25 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsInfo = "ps_info" + +// PsInfo mapped from table +type PsInfo struct { + IDInfo int32 `gorm:"column:id_info;primaryKey;autoIncrement:true" json:"id_info"` +} + +// TableName PsInfo's table name +func (*PsInfo) TableName() string { + return TableNamePsInfo +} + +var PsInfoCols = struct { + IDInfo gormcol.Field +}{ + IDInfo: gormcol.Field{}.Set((&PsInfo{}).TableName(), "id_info"), +} diff --git a/app/model/dbmodel/ps_info_lang.go b/app/model/dbmodel/ps_info_lang.go new file mode 100644 index 0000000..dbed447 --- /dev/null +++ b/app/model/dbmodel/ps_info_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsInfoLang = "ps_info_lang" + +// PsInfoLang mapped from table +type PsInfoLang struct { + IDInfo int32 `gorm:"column:id_info;primaryKey" json:"id_info"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Text string `gorm:"column:text;not null" json:"text"` +} + +// TableName PsInfoLang's table name +func (*PsInfoLang) TableName() string { + return TableNamePsInfoLang +} + +var PsInfoLangCols = struct { + IDInfo gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Text gormcol.Field +}{ + IDInfo: gormcol.Field{}.Set((&PsInfoLang{}).TableName(), "id_info"), + IDShop: gormcol.Field{}.Set((&PsInfoLang{}).TableName(), "id_shop"), + IDLang: gormcol.Field{}.Set((&PsInfoLang{}).TableName(), "id_lang"), + Text: gormcol.Field{}.Set((&PsInfoLang{}).TableName(), "text"), +} diff --git a/app/model/dbmodel/ps_info_shop.go b/app/model/dbmodel/ps_info_shop.go new file mode 100644 index 0000000..f937187 --- /dev/null +++ b/app/model/dbmodel/ps_info_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsInfoShop = "ps_info_shop" + +// PsInfoShop mapped from table +type PsInfoShop struct { + IDInfo int32 `gorm:"column:id_info;primaryKey" json:"id_info"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsInfoShop's table name +func (*PsInfoShop) TableName() string { + return TableNamePsInfoShop +} + +var PsInfoShopCols = struct { + IDInfo gormcol.Field + IDShop gormcol.Field +}{ + IDInfo: gormcol.Field{}.Set((&PsInfoShop{}).TableName(), "id_info"), + IDShop: gormcol.Field{}.Set((&PsInfoShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_inpost_carrier.go b/app/model/dbmodel/ps_inpost_carrier.go new file mode 100644 index 0000000..505f201 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_carrier.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsInpostCarrier = "ps_inpost_carrier" + +// PsInpostCarrier mapped from table +type PsInpostCarrier struct { + IDReference int32 `gorm:"column:id_reference;primaryKey" json:"id_reference"` + Service string `gorm:"column:service;not null" json:"service"` + CommercialProductIdentifier *string `gorm:"column:commercial_product_identifier" json:"commercial_product_identifier"` + Cod bool `gorm:"column:cod;not null" json:"cod"` + WeekendDelivery bool `gorm:"column:weekend_delivery;not null" json:"weekend_delivery"` + UseProductDimensions bool `gorm:"column:use_product_dimensions;not null" json:"use_product_dimensions"` +} + +// TableName PsInpostCarrier's table name +func (*PsInpostCarrier) TableName() string { + return TableNamePsInpostCarrier +} + +var PsInpostCarrierCols = struct { + IDReference gormcol.Field + Service gormcol.Field + CommercialProductIdentifier gormcol.Field + Cod gormcol.Field + WeekendDelivery gormcol.Field + UseProductDimensions gormcol.Field +}{ + IDReference: gormcol.Field{}.Set((&PsInpostCarrier{}).TableName(), "id_reference"), + Service: gormcol.Field{}.Set((&PsInpostCarrier{}).TableName(), "service"), + CommercialProductIdentifier: gormcol.Field{}.Set((&PsInpostCarrier{}).TableName(), "commercial_product_identifier"), + Cod: gormcol.Field{}.Set((&PsInpostCarrier{}).TableName(), "cod"), + WeekendDelivery: gormcol.Field{}.Set((&PsInpostCarrier{}).TableName(), "weekend_delivery"), + UseProductDimensions: gormcol.Field{}.Set((&PsInpostCarrier{}).TableName(), "use_product_dimensions"), +} diff --git a/app/model/dbmodel/ps_inpost_cart_choice.go b/app/model/dbmodel/ps_inpost_cart_choice.go new file mode 100644 index 0000000..16af35f --- /dev/null +++ b/app/model/dbmodel/ps_inpost_cart_choice.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsInpostCartChoice = "ps_inpost_cart_choice" + +// PsInpostCartChoice mapped from table +type PsInpostCartChoice struct { + IDCart int32 `gorm:"column:id_cart;primaryKey" json:"id_cart"` + Service string `gorm:"column:service;not null" json:"service"` + Email *string `gorm:"column:email" json:"email"` + Phone *string `gorm:"column:phone" json:"phone"` + Point *string `gorm:"column:point" json:"point"` +} + +// TableName PsInpostCartChoice's table name +func (*PsInpostCartChoice) TableName() string { + return TableNamePsInpostCartChoice +} + +var PsInpostCartChoiceCols = struct { + IDCart gormcol.Field + Service gormcol.Field + Email gormcol.Field + Phone gormcol.Field + Point gormcol.Field +}{ + IDCart: gormcol.Field{}.Set((&PsInpostCartChoice{}).TableName(), "id_cart"), + Service: gormcol.Field{}.Set((&PsInpostCartChoice{}).TableName(), "service"), + Email: gormcol.Field{}.Set((&PsInpostCartChoice{}).TableName(), "email"), + Phone: gormcol.Field{}.Set((&PsInpostCartChoice{}).TableName(), "phone"), + Point: gormcol.Field{}.Set((&PsInpostCartChoice{}).TableName(), "point"), +} diff --git a/app/model/dbmodel/ps_inpost_dispatch_order.go b/app/model/dbmodel/ps_inpost_dispatch_order.go new file mode 100644 index 0000000..f91641d --- /dev/null +++ b/app/model/dbmodel/ps_inpost_dispatch_order.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsInpostDispatchOrder = "ps_inpost_dispatch_order" + +// PsInpostDispatchOrder mapped from table +type PsInpostDispatchOrder struct { + IDDispatchOrder int32 `gorm:"column:id_dispatch_order;primaryKey;autoIncrement:true" json:"id_dispatch_order"` + IDDispatchPoint *int32 `gorm:"column:id_dispatch_point;index:id_dispatch_point,priority:1" json:"id_dispatch_point"` + ShipxDispatchOrderID int32 `gorm:"column:shipx_dispatch_order_id;not null" json:"shipx_dispatch_order_id"` + Number *int32 `gorm:"column:number" json:"number"` + Status *string `gorm:"column:status" json:"status"` + Price *float64 `gorm:"column:price" json:"price"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsInpostDispatchOrder's table name +func (*PsInpostDispatchOrder) TableName() string { + return TableNamePsInpostDispatchOrder +} + +var PsInpostDispatchOrderCols = struct { + IDDispatchOrder gormcol.Field + IDDispatchPoint gormcol.Field + ShipxDispatchOrderID gormcol.Field + Number gormcol.Field + Status gormcol.Field + Price gormcol.Field + DateAdd gormcol.Field +}{ + IDDispatchOrder: gormcol.Field{}.Set((&PsInpostDispatchOrder{}).TableName(), "id_dispatch_order"), + IDDispatchPoint: gormcol.Field{}.Set((&PsInpostDispatchOrder{}).TableName(), "id_dispatch_point"), + ShipxDispatchOrderID: gormcol.Field{}.Set((&PsInpostDispatchOrder{}).TableName(), "shipx_dispatch_order_id"), + Number: gormcol.Field{}.Set((&PsInpostDispatchOrder{}).TableName(), "number"), + Status: gormcol.Field{}.Set((&PsInpostDispatchOrder{}).TableName(), "status"), + Price: gormcol.Field{}.Set((&PsInpostDispatchOrder{}).TableName(), "price"), + DateAdd: gormcol.Field{}.Set((&PsInpostDispatchOrder{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_inpost_dispatch_point.go b/app/model/dbmodel/ps_inpost_dispatch_point.go new file mode 100644 index 0000000..e0a1128 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_dispatch_point.go @@ -0,0 +1,52 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsInpostDispatchPoint = "ps_inpost_dispatch_point" + +// PsInpostDispatchPoint mapped from table +type PsInpostDispatchPoint struct { + IDDispatchPoint int32 `gorm:"column:id_dispatch_point;primaryKey;autoIncrement:true" json:"id_dispatch_point"` + Name string `gorm:"column:name;not null" json:"name"` + OfficeHours *string `gorm:"column:office_hours" json:"office_hours"` + Email *string `gorm:"column:email" json:"email"` + Phone *string `gorm:"column:phone" json:"phone"` + Street string `gorm:"column:street;not null" json:"street"` + BuildingNumber string `gorm:"column:building_number;not null" json:"building_number"` + PostCode string `gorm:"column:post_code;not null" json:"post_code"` + City string `gorm:"column:city;not null" json:"city"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsInpostDispatchPoint's table name +func (*PsInpostDispatchPoint) TableName() string { + return TableNamePsInpostDispatchPoint +} + +var PsInpostDispatchPointCols = struct { + IDDispatchPoint gormcol.Field + Name gormcol.Field + OfficeHours gormcol.Field + Email gormcol.Field + Phone gormcol.Field + Street gormcol.Field + BuildingNumber gormcol.Field + PostCode gormcol.Field + City gormcol.Field + Deleted gormcol.Field +}{ + IDDispatchPoint: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "id_dispatch_point"), + Name: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "name"), + OfficeHours: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "office_hours"), + Email: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "email"), + Phone: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "phone"), + Street: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "street"), + BuildingNumber: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "building_number"), + PostCode: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "post_code"), + City: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "city"), + Deleted: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "deleted"), +} diff --git a/app/model/dbmodel/ps_inpost_point.go b/app/model/dbmodel/ps_inpost_point.go new file mode 100644 index 0000000..0af587b --- /dev/null +++ b/app/model/dbmodel/ps_inpost_point.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsInpostPoint = "ps_inpost_point" + +// PsInpostPoint mapped from table +type PsInpostPoint struct { + IDPoint string `gorm:"column:id_point;primaryKey" json:"id_point"` + Data string `gorm:"column:data;not null" json:"data"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsInpostPoint's table name +func (*PsInpostPoint) TableName() string { + return TableNamePsInpostPoint +} + +var PsInpostPointCols = struct { + IDPoint gormcol.Field + Data gormcol.Field + DateUpd gormcol.Field +}{ + IDPoint: gormcol.Field{}.Set((&PsInpostPoint{}).TableName(), "id_point"), + Data: gormcol.Field{}.Set((&PsInpostPoint{}).TableName(), "data"), + DateUpd: gormcol.Field{}.Set((&PsInpostPoint{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_inpost_product_template.go b/app/model/dbmodel/ps_inpost_product_template.go new file mode 100644 index 0000000..9331404 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_product_template.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsInpostProductTemplate = "ps_inpost_product_template" + +// PsInpostProductTemplate mapped from table +type PsInpostProductTemplate struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + Template string `gorm:"column:template;not null" json:"template"` +} + +// TableName PsInpostProductTemplate's table name +func (*PsInpostProductTemplate) TableName() string { + return TableNamePsInpostProductTemplate +} + +var PsInpostProductTemplateCols = struct { + IDProduct gormcol.Field + Template gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsInpostProductTemplate{}).TableName(), "id_product"), + Template: gormcol.Field{}.Set((&PsInpostProductTemplate{}).TableName(), "template"), +} diff --git a/app/model/dbmodel/ps_inpost_shipment.go b/app/model/dbmodel/ps_inpost_shipment.go new file mode 100644 index 0000000..afe3c7d --- /dev/null +++ b/app/model/dbmodel/ps_inpost_shipment.go @@ -0,0 +1,97 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsInpostShipment = "ps_inpost_shipment" + +// PsInpostShipment mapped from table +type PsInpostShipment struct { + IDShipment int32 `gorm:"column:id_shipment;primaryKey;autoIncrement:true" json:"id_shipment"` + OrganizationID int32 `gorm:"column:organization_id;not null" json:"organization_id"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + Sandbox bool `gorm:"column:sandbox;not null" json:"sandbox"` + ShipxShipmentID int32 `gorm:"column:shipx_shipment_id;not null" json:"shipx_shipment_id"` + Reference *string `gorm:"column:reference" json:"reference"` + Email string `gorm:"column:email;not null" json:"email"` + Phone string `gorm:"column:phone;not null" json:"phone"` + Service string `gorm:"column:service;not null" json:"service"` + CommercialProductIdentifier *string `gorm:"column:commercial_product_identifier" json:"commercial_product_identifier"` + SendingMethod *string `gorm:"column:sending_method" json:"sending_method"` + SendingPoint *string `gorm:"column:sending_point" json:"sending_point"` + WeekendDelivery *bool `gorm:"column:weekend_delivery" json:"weekend_delivery"` + Template *string `gorm:"column:template" json:"template"` + Dimensions *string `gorm:"column:dimensions" json:"dimensions"` + IDDispatchOrder *int32 `gorm:"column:id_dispatch_order;index:id_dispatch_order,priority:1" json:"id_dispatch_order"` + TargetPoint *string `gorm:"column:target_point" json:"target_point"` + CodAmount *float64 `gorm:"column:cod_amount" json:"cod_amount"` + InsuranceAmount *float64 `gorm:"column:insurance_amount" json:"insurance_amount"` + TrackingNumber *string `gorm:"column:tracking_number" json:"tracking_number"` + Status *string `gorm:"column:status" json:"status"` + Price *float64 `gorm:"column:price" json:"price"` + LabelPrinted bool `gorm:"column:label_printed;not null" json:"label_printed"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsInpostShipment's table name +func (*PsInpostShipment) TableName() string { + return TableNamePsInpostShipment +} + +var PsInpostShipmentCols = struct { + IDShipment gormcol.Field + OrganizationID gormcol.Field + IDOrder gormcol.Field + Sandbox gormcol.Field + ShipxShipmentID gormcol.Field + Reference gormcol.Field + Email gormcol.Field + Phone gormcol.Field + Service gormcol.Field + CommercialProductIdentifier gormcol.Field + SendingMethod gormcol.Field + SendingPoint gormcol.Field + WeekendDelivery gormcol.Field + Template gormcol.Field + Dimensions gormcol.Field + IDDispatchOrder gormcol.Field + TargetPoint gormcol.Field + CodAmount gormcol.Field + InsuranceAmount gormcol.Field + TrackingNumber gormcol.Field + Status gormcol.Field + Price gormcol.Field + LabelPrinted gormcol.Field + DateAdd gormcol.Field +}{ + IDShipment: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "id_shipment"), + OrganizationID: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "organization_id"), + IDOrder: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "id_order"), + Sandbox: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "sandbox"), + ShipxShipmentID: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "shipx_shipment_id"), + Reference: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "reference"), + Email: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "email"), + Phone: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "phone"), + Service: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "service"), + CommercialProductIdentifier: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "commercial_product_identifier"), + SendingMethod: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "sending_method"), + SendingPoint: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "sending_point"), + WeekendDelivery: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "weekend_delivery"), + Template: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "template"), + Dimensions: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "dimensions"), + IDDispatchOrder: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "id_dispatch_order"), + TargetPoint: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "target_point"), + CodAmount: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "cod_amount"), + InsuranceAmount: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "insurance_amount"), + TrackingNumber: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "tracking_number"), + Status: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "status"), + Price: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "price"), + LabelPrinted: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "label_printed"), + DateAdd: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_inpost_shipment_status.go b/app/model/dbmodel/ps_inpost_shipment_status.go new file mode 100644 index 0000000..22a1d4f --- /dev/null +++ b/app/model/dbmodel/ps_inpost_shipment_status.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsInpostShipmentStatus = "ps_inpost_shipment_status" + +// PsInpostShipmentStatus mapped from table +type PsInpostShipmentStatus struct { + IDStatus int32 `gorm:"column:id_status;primaryKey;autoIncrement:true" json:"id_status"` + Name string `gorm:"column:name;not null;uniqueIndex:name,priority:1" json:"name"` +} + +// TableName PsInpostShipmentStatus's table name +func (*PsInpostShipmentStatus) TableName() string { + return TableNamePsInpostShipmentStatus +} + +var PsInpostShipmentStatusCols = struct { + IDStatus gormcol.Field + Name gormcol.Field +}{ + IDStatus: gormcol.Field{}.Set((&PsInpostShipmentStatus{}).TableName(), "id_status"), + Name: gormcol.Field{}.Set((&PsInpostShipmentStatus{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_inpost_shipment_status_lang.go b/app/model/dbmodel/ps_inpost_shipment_status_lang.go new file mode 100644 index 0000000..84918f4 --- /dev/null +++ b/app/model/dbmodel/ps_inpost_shipment_status_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsInpostShipmentStatusLang = "ps_inpost_shipment_status_lang" + +// PsInpostShipmentStatusLang mapped from table +type PsInpostShipmentStatusLang struct { + IDStatus int32 `gorm:"column:id_status;primaryKey" json:"id_status"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:id_lang,priority:1" json:"id_lang"` + Title string `gorm:"column:title;not null" json:"title"` + Description string `gorm:"column:description;not null" json:"description"` +} + +// TableName PsInpostShipmentStatusLang's table name +func (*PsInpostShipmentStatusLang) TableName() string { + return TableNamePsInpostShipmentStatusLang +} + +var PsInpostShipmentStatusLangCols = struct { + IDStatus gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field +}{ + IDStatus: gormcol.Field{}.Set((&PsInpostShipmentStatusLang{}).TableName(), "id_status"), + IDLang: gormcol.Field{}.Set((&PsInpostShipmentStatusLang{}).TableName(), "id_lang"), + Title: gormcol.Field{}.Set((&PsInpostShipmentStatusLang{}).TableName(), "title"), + Description: gormcol.Field{}.Set((&PsInpostShipmentStatusLang{}).TableName(), "description"), +} diff --git a/app/model/dbmodel/ps_invoice_customer.go b/app/model/dbmodel/ps_invoice_customer.go new file mode 100644 index 0000000..4e3f824 --- /dev/null +++ b/app/model/dbmodel/ps_invoice_customer.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsInvoiceCustomer = "ps_invoice_customer" + +// PsInvoiceCustomer mapped from table +type PsInvoiceCustomer struct { + IDInvoiceCustomer int32 `gorm:"column:id_invoice_customer;primaryKey;autoIncrement:true" json:"id_invoice_customer"` + IDCustomer int32 `gorm:"column:id_customer;not null;uniqueIndex:UQ_ps_invoice_customer_id_customer,priority:1" json:"id_customer"` + IDShopCompany int32 `gorm:"column:id_shop_company;not null;index:FK_ps_invoice_customer_id_shop_company,priority:1" json:"id_shop_company"` + DateAdd *time.Time `gorm:"column:date_add;default:current_timestamp()" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd;default:current_timestamp()" json:"date_upd"` +} + +// TableName PsInvoiceCustomer's table name +func (*PsInvoiceCustomer) TableName() string { + return TableNamePsInvoiceCustomer +} + +var PsInvoiceCustomerCols = struct { + IDInvoiceCustomer gormcol.Field + IDCustomer gormcol.Field + IDShopCompany gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDInvoiceCustomer: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "id_invoice_customer"), + IDCustomer: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "id_customer"), + IDShopCompany: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "id_shop_company"), + DateAdd: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_lang.go b/app/model/dbmodel/ps_lang.go new file mode 100644 index 0000000..e6ace6b --- /dev/null +++ b/app/model/dbmodel/ps_lang.go @@ -0,0 +1,52 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLang = "ps_lang" + +// PsLang mapped from table +type PsLang struct { + IDLang int32 `gorm:"column:id_lang;primaryKey;autoIncrement:true" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Active bool `gorm:"column:active;not null" json:"active"` + IsoCode string `gorm:"column:iso_code;not null" json:"iso_code"` + CodeLong string `gorm:"column:code_long;not null" json:"code_long"` + LanguageCode string `gorm:"column:language_code;not null" json:"language_code"` + Locale string `gorm:"column:locale;not null" json:"locale"` + DateFormatLite string `gorm:"column:date_format_lite;not null" json:"date_format_lite"` + DateFormatFull string `gorm:"column:date_format_full;not null" json:"date_format_full"` + IsRtl bool `gorm:"column:is_rtl;not null" json:"is_rtl"` +} + +// TableName PsLang's table name +func (*PsLang) TableName() string { + return TableNamePsLang +} + +var PsLangCols = struct { + IDLang gormcol.Field + Name gormcol.Field + Active gormcol.Field + IsoCode gormcol.Field + CodeLong gormcol.Field + LanguageCode gormcol.Field + Locale gormcol.Field + DateFormatLite gormcol.Field + DateFormatFull gormcol.Field + IsRtl gormcol.Field +}{ + IDLang: gormcol.Field{}.Set((&PsLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsLang{}).TableName(), "name"), + Active: gormcol.Field{}.Set((&PsLang{}).TableName(), "active"), + IsoCode: gormcol.Field{}.Set((&PsLang{}).TableName(), "iso_code"), + CodeLong: gormcol.Field{}.Set((&PsLang{}).TableName(), "code_long"), + LanguageCode: gormcol.Field{}.Set((&PsLang{}).TableName(), "language_code"), + Locale: gormcol.Field{}.Set((&PsLang{}).TableName(), "locale"), + DateFormatLite: gormcol.Field{}.Set((&PsLang{}).TableName(), "date_format_lite"), + DateFormatFull: gormcol.Field{}.Set((&PsLang{}).TableName(), "date_format_full"), + IsRtl: gormcol.Field{}.Set((&PsLang{}).TableName(), "is_rtl"), +} diff --git a/app/model/dbmodel/ps_lang_shop.go b/app/model/dbmodel/ps_lang_shop.go new file mode 100644 index 0000000..4cf8774 --- /dev/null +++ b/app/model/dbmodel/ps_lang_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLangShop = "ps_lang_shop" + +// PsLangShop mapped from table +type PsLangShop struct { + IDLang int32 `gorm:"column:id_lang;primaryKey;index:IDX_2F43BFC7BA299860,priority:1" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:IDX_2F43BFC7274A50A0,priority:1" json:"id_shop"` +} + +// TableName PsLangShop's table name +func (*PsLangShop) TableName() string { + return TableNamePsLangShop +} + +var PsLangShopCols = struct { + IDLang gormcol.Field + IDShop gormcol.Field +}{ + IDLang: gormcol.Field{}.Set((&PsLangShop{}).TableName(), "id_lang"), + IDShop: gormcol.Field{}.Set((&PsLangShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_layered_category.go b/app/model/dbmodel/ps_layered_category.go new file mode 100644 index 0000000..ef2531e --- /dev/null +++ b/app/model/dbmodel/ps_layered_category.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredCategory = "ps_layered_category" + +// PsLayeredCategory mapped from table +type PsLayeredCategory struct { + IDLayeredCategory int32 `gorm:"column:id_layered_category;primaryKey;autoIncrement:true" json:"id_layered_category"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_category_shop,priority:2" json:"id_shop"` + IDCategory int32 `gorm:"column:id_category;not null;index:id_category,priority:1;index:id_category_shop,priority:1" json:"id_category"` + IDValue *int32 `gorm:"column:id_value;index:id_category_shop,priority:4" json:"id_value"` + Type string `gorm:"column:type;not null;index:id_category,priority:2;index:id_category_shop,priority:3" json:"type"` + Position int32 `gorm:"column:position;not null;index:id_category_shop,priority:5" json:"position"` + FilterType int32 `gorm:"column:filter_type;not null" json:"filter_type"` + FilterShowLimit int32 `gorm:"column:filter_show_limit;not null" json:"filter_show_limit"` +} + +// TableName PsLayeredCategory's table name +func (*PsLayeredCategory) TableName() string { + return TableNamePsLayeredCategory +} + +var PsLayeredCategoryCols = struct { + IDLayeredCategory gormcol.Field + IDShop gormcol.Field + IDCategory gormcol.Field + IDValue gormcol.Field + Type gormcol.Field + Position gormcol.Field + FilterType gormcol.Field + FilterShowLimit gormcol.Field +}{ + IDLayeredCategory: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "id_layered_category"), + IDShop: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "id_shop"), + IDCategory: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "id_category"), + IDValue: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "id_value"), + Type: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "type"), + Position: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "position"), + FilterType: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "filter_type"), + FilterShowLimit: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "filter_show_limit"), +} diff --git a/app/model/dbmodel/ps_layered_filter.go b/app/model/dbmodel/ps_layered_filter.go new file mode 100644 index 0000000..f934682 --- /dev/null +++ b/app/model/dbmodel/ps_layered_filter.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsLayeredFilter = "ps_layered_filter" + +// PsLayeredFilter mapped from table +type PsLayeredFilter struct { + IDLayeredFilter int32 `gorm:"column:id_layered_filter;primaryKey;autoIncrement:true" json:"id_layered_filter"` + Name string `gorm:"column:name;not null" json:"name"` + Filters *string `gorm:"column:filters" json:"filters"` + NCategories int32 `gorm:"column:n_categories;not null" json:"n_categories"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsLayeredFilter's table name +func (*PsLayeredFilter) TableName() string { + return TableNamePsLayeredFilter +} + +var PsLayeredFilterCols = struct { + IDLayeredFilter gormcol.Field + Name gormcol.Field + Filters gormcol.Field + NCategories gormcol.Field + DateAdd gormcol.Field +}{ + IDLayeredFilter: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "id_layered_filter"), + Name: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "name"), + Filters: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "filters"), + NCategories: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "n_categories"), + DateAdd: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_layered_filter_block.go b/app/model/dbmodel/ps_layered_filter_block.go new file mode 100644 index 0000000..a7af026 --- /dev/null +++ b/app/model/dbmodel/ps_layered_filter_block.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredFilterBlock = "ps_layered_filter_block" + +// PsLayeredFilterBlock mapped from table +type PsLayeredFilterBlock struct { + Hash string `gorm:"column:hash;primaryKey" json:"hash"` + Data *string `gorm:"column:data" json:"data"` +} + +// TableName PsLayeredFilterBlock's table name +func (*PsLayeredFilterBlock) TableName() string { + return TableNamePsLayeredFilterBlock +} + +var PsLayeredFilterBlockCols = struct { + Hash gormcol.Field + Data gormcol.Field +}{ + Hash: gormcol.Field{}.Set((&PsLayeredFilterBlock{}).TableName(), "hash"), + Data: gormcol.Field{}.Set((&PsLayeredFilterBlock{}).TableName(), "data"), +} diff --git a/app/model/dbmodel/ps_layered_filter_shop.go b/app/model/dbmodel/ps_layered_filter_shop.go new file mode 100644 index 0000000..198d401 --- /dev/null +++ b/app/model/dbmodel/ps_layered_filter_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredFilterShop = "ps_layered_filter_shop" + +// PsLayeredFilterShop mapped from table +type PsLayeredFilterShop struct { + IDLayeredFilter int32 `gorm:"column:id_layered_filter;primaryKey" json:"id_layered_filter"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsLayeredFilterShop's table name +func (*PsLayeredFilterShop) TableName() string { + return TableNamePsLayeredFilterShop +} + +var PsLayeredFilterShopCols = struct { + IDLayeredFilter gormcol.Field + IDShop gormcol.Field +}{ + IDLayeredFilter: gormcol.Field{}.Set((&PsLayeredFilterShop{}).TableName(), "id_layered_filter"), + IDShop: gormcol.Field{}.Set((&PsLayeredFilterShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_layered_indexable_attribute_group.go b/app/model/dbmodel/ps_layered_indexable_attribute_group.go new file mode 100644 index 0000000..82cc549 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_attribute_group.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredIndexableAttributeGroup = "ps_layered_indexable_attribute_group" + +// PsLayeredIndexableAttributeGroup mapped from table +type PsLayeredIndexableAttributeGroup struct { + IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey" json:"id_attribute_group"` + Indexable bool `gorm:"column:indexable;not null" json:"indexable"` +} + +// TableName PsLayeredIndexableAttributeGroup's table name +func (*PsLayeredIndexableAttributeGroup) TableName() string { + return TableNamePsLayeredIndexableAttributeGroup +} + +var PsLayeredIndexableAttributeGroupCols = struct { + IDAttributeGroup gormcol.Field + Indexable gormcol.Field +}{ + IDAttributeGroup: gormcol.Field{}.Set((&PsLayeredIndexableAttributeGroup{}).TableName(), "id_attribute_group"), + Indexable: gormcol.Field{}.Set((&PsLayeredIndexableAttributeGroup{}).TableName(), "indexable"), +} diff --git a/app/model/dbmodel/ps_layered_indexable_attribute_group_lang_value.go b/app/model/dbmodel/ps_layered_indexable_attribute_group_lang_value.go new file mode 100644 index 0000000..1718633 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_attribute_group_lang_value.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredIndexableAttributeGroupLangValue = "ps_layered_indexable_attribute_group_lang_value" + +// PsLayeredIndexableAttributeGroupLangValue mapped from table +type PsLayeredIndexableAttributeGroupLangValue struct { + IDAttributeGroup int32 `gorm:"column:id_attribute_group;primaryKey" json:"id_attribute_group"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + URLName *string `gorm:"column:url_name" json:"url_name"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` +} + +// TableName PsLayeredIndexableAttributeGroupLangValue's table name +func (*PsLayeredIndexableAttributeGroupLangValue) TableName() string { + return TableNamePsLayeredIndexableAttributeGroupLangValue +} + +var PsLayeredIndexableAttributeGroupLangValueCols = struct { + IDAttributeGroup gormcol.Field + IDLang gormcol.Field + URLName gormcol.Field + MetaTitle gormcol.Field +}{ + IDAttributeGroup: gormcol.Field{}.Set((&PsLayeredIndexableAttributeGroupLangValue{}).TableName(), "id_attribute_group"), + IDLang: gormcol.Field{}.Set((&PsLayeredIndexableAttributeGroupLangValue{}).TableName(), "id_lang"), + URLName: gormcol.Field{}.Set((&PsLayeredIndexableAttributeGroupLangValue{}).TableName(), "url_name"), + MetaTitle: gormcol.Field{}.Set((&PsLayeredIndexableAttributeGroupLangValue{}).TableName(), "meta_title"), +} diff --git a/app/model/dbmodel/ps_layered_indexable_attribute_lang_value.go b/app/model/dbmodel/ps_layered_indexable_attribute_lang_value.go new file mode 100644 index 0000000..d469603 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_attribute_lang_value.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredIndexableAttributeLangValue = "ps_layered_indexable_attribute_lang_value" + +// PsLayeredIndexableAttributeLangValue mapped from table +type PsLayeredIndexableAttributeLangValue struct { + IDAttribute int32 `gorm:"column:id_attribute;primaryKey" json:"id_attribute"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + URLName *string `gorm:"column:url_name" json:"url_name"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` +} + +// TableName PsLayeredIndexableAttributeLangValue's table name +func (*PsLayeredIndexableAttributeLangValue) TableName() string { + return TableNamePsLayeredIndexableAttributeLangValue +} + +var PsLayeredIndexableAttributeLangValueCols = struct { + IDAttribute gormcol.Field + IDLang gormcol.Field + URLName gormcol.Field + MetaTitle gormcol.Field +}{ + IDAttribute: gormcol.Field{}.Set((&PsLayeredIndexableAttributeLangValue{}).TableName(), "id_attribute"), + IDLang: gormcol.Field{}.Set((&PsLayeredIndexableAttributeLangValue{}).TableName(), "id_lang"), + URLName: gormcol.Field{}.Set((&PsLayeredIndexableAttributeLangValue{}).TableName(), "url_name"), + MetaTitle: gormcol.Field{}.Set((&PsLayeredIndexableAttributeLangValue{}).TableName(), "meta_title"), +} diff --git a/app/model/dbmodel/ps_layered_indexable_feature.go b/app/model/dbmodel/ps_layered_indexable_feature.go new file mode 100644 index 0000000..7e6c6ff --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_feature.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredIndexableFeature = "ps_layered_indexable_feature" + +// PsLayeredIndexableFeature mapped from table +type PsLayeredIndexableFeature struct { + IDFeature int32 `gorm:"column:id_feature;primaryKey" json:"id_feature"` + Indexable bool `gorm:"column:indexable;not null" json:"indexable"` +} + +// TableName PsLayeredIndexableFeature's table name +func (*PsLayeredIndexableFeature) TableName() string { + return TableNamePsLayeredIndexableFeature +} + +var PsLayeredIndexableFeatureCols = struct { + IDFeature gormcol.Field + Indexable gormcol.Field +}{ + IDFeature: gormcol.Field{}.Set((&PsLayeredIndexableFeature{}).TableName(), "id_feature"), + Indexable: gormcol.Field{}.Set((&PsLayeredIndexableFeature{}).TableName(), "indexable"), +} diff --git a/app/model/dbmodel/ps_layered_indexable_feature_lang_value.go b/app/model/dbmodel/ps_layered_indexable_feature_lang_value.go new file mode 100644 index 0000000..fd435b2 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_feature_lang_value.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredIndexableFeatureLangValue = "ps_layered_indexable_feature_lang_value" + +// PsLayeredIndexableFeatureLangValue mapped from table +type PsLayeredIndexableFeatureLangValue struct { + IDFeature int32 `gorm:"column:id_feature;primaryKey" json:"id_feature"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + URLName string `gorm:"column:url_name;not null" json:"url_name"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` +} + +// TableName PsLayeredIndexableFeatureLangValue's table name +func (*PsLayeredIndexableFeatureLangValue) TableName() string { + return TableNamePsLayeredIndexableFeatureLangValue +} + +var PsLayeredIndexableFeatureLangValueCols = struct { + IDFeature gormcol.Field + IDLang gormcol.Field + URLName gormcol.Field + MetaTitle gormcol.Field +}{ + IDFeature: gormcol.Field{}.Set((&PsLayeredIndexableFeatureLangValue{}).TableName(), "id_feature"), + IDLang: gormcol.Field{}.Set((&PsLayeredIndexableFeatureLangValue{}).TableName(), "id_lang"), + URLName: gormcol.Field{}.Set((&PsLayeredIndexableFeatureLangValue{}).TableName(), "url_name"), + MetaTitle: gormcol.Field{}.Set((&PsLayeredIndexableFeatureLangValue{}).TableName(), "meta_title"), +} diff --git a/app/model/dbmodel/ps_layered_indexable_feature_value_lang_value.go b/app/model/dbmodel/ps_layered_indexable_feature_value_lang_value.go new file mode 100644 index 0000000..4265a60 --- /dev/null +++ b/app/model/dbmodel/ps_layered_indexable_feature_value_lang_value.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredIndexableFeatureValueLangValue = "ps_layered_indexable_feature_value_lang_value" + +// PsLayeredIndexableFeatureValueLangValue mapped from table +type PsLayeredIndexableFeatureValueLangValue struct { + IDFeatureValue int32 `gorm:"column:id_feature_value;primaryKey" json:"id_feature_value"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + URLName *string `gorm:"column:url_name" json:"url_name"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` +} + +// TableName PsLayeredIndexableFeatureValueLangValue's table name +func (*PsLayeredIndexableFeatureValueLangValue) TableName() string { + return TableNamePsLayeredIndexableFeatureValueLangValue +} + +var PsLayeredIndexableFeatureValueLangValueCols = struct { + IDFeatureValue gormcol.Field + IDLang gormcol.Field + URLName gormcol.Field + MetaTitle gormcol.Field +}{ + IDFeatureValue: gormcol.Field{}.Set((&PsLayeredIndexableFeatureValueLangValue{}).TableName(), "id_feature_value"), + IDLang: gormcol.Field{}.Set((&PsLayeredIndexableFeatureValueLangValue{}).TableName(), "id_lang"), + URLName: gormcol.Field{}.Set((&PsLayeredIndexableFeatureValueLangValue{}).TableName(), "url_name"), + MetaTitle: gormcol.Field{}.Set((&PsLayeredIndexableFeatureValueLangValue{}).TableName(), "meta_title"), +} diff --git a/app/model/dbmodel/ps_layered_price_index.go b/app/model/dbmodel/ps_layered_price_index.go new file mode 100644 index 0000000..f7226c9 --- /dev/null +++ b/app/model/dbmodel/ps_layered_price_index.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredPriceIndex = "ps_layered_price_index" + +// PsLayeredPriceIndex mapped from table +type PsLayeredPriceIndex struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDCurrency int32 `gorm:"column:id_currency;primaryKey;index:id_currency,priority:1" json:"id_currency"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` + PriceMin float64 `gorm:"column:price_min;not null;index:price_min,priority:1" json:"price_min"` + PriceMax float64 `gorm:"column:price_max;not null;index:price_max,priority:1" json:"price_max"` + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` +} + +// TableName PsLayeredPriceIndex's table name +func (*PsLayeredPriceIndex) TableName() string { + return TableNamePsLayeredPriceIndex +} + +var PsLayeredPriceIndexCols = struct { + IDProduct gormcol.Field + IDCurrency gormcol.Field + IDShop gormcol.Field + PriceMin gormcol.Field + PriceMax gormcol.Field + IDCountry gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsLayeredPriceIndex{}).TableName(), "id_product"), + IDCurrency: gormcol.Field{}.Set((&PsLayeredPriceIndex{}).TableName(), "id_currency"), + IDShop: gormcol.Field{}.Set((&PsLayeredPriceIndex{}).TableName(), "id_shop"), + PriceMin: gormcol.Field{}.Set((&PsLayeredPriceIndex{}).TableName(), "price_min"), + PriceMax: gormcol.Field{}.Set((&PsLayeredPriceIndex{}).TableName(), "price_max"), + IDCountry: gormcol.Field{}.Set((&PsLayeredPriceIndex{}).TableName(), "id_country"), +} diff --git a/app/model/dbmodel/ps_layered_product_attribute.go b/app/model/dbmodel/ps_layered_product_attribute.go new file mode 100644 index 0000000..caf705a --- /dev/null +++ b/app/model/dbmodel/ps_layered_product_attribute.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLayeredProductAttribute = "ps_layered_product_attribute" + +// PsLayeredProductAttribute mapped from table +type PsLayeredProductAttribute struct { + IDAttribute int32 `gorm:"column:id_attribute;primaryKey;uniqueIndex:id_attribute_group,priority:2" json:"id_attribute"` + IDProduct int32 `gorm:"column:id_product;primaryKey;uniqueIndex:id_attribute_group,priority:3" json:"id_product"` + IDAttributeGroup int32 `gorm:"column:id_attribute_group;not null;uniqueIndex:id_attribute_group,priority:1" json:"id_attribute_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey;uniqueIndex:id_attribute_group,priority:4;default:1" json:"id_shop"` +} + +// TableName PsLayeredProductAttribute's table name +func (*PsLayeredProductAttribute) TableName() string { + return TableNamePsLayeredProductAttribute +} + +var PsLayeredProductAttributeCols = struct { + IDAttribute gormcol.Field + IDProduct gormcol.Field + IDAttributeGroup gormcol.Field + IDShop gormcol.Field +}{ + IDAttribute: gormcol.Field{}.Set((&PsLayeredProductAttribute{}).TableName(), "id_attribute"), + IDProduct: gormcol.Field{}.Set((&PsLayeredProductAttribute{}).TableName(), "id_product"), + IDAttributeGroup: gormcol.Field{}.Set((&PsLayeredProductAttribute{}).TableName(), "id_attribute_group"), + IDShop: gormcol.Field{}.Set((&PsLayeredProductAttribute{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_link_block.go b/app/model/dbmodel/ps_link_block.go new file mode 100644 index 0000000..7d51583 --- /dev/null +++ b/app/model/dbmodel/ps_link_block.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLinkBlock = "ps_link_block" + +// PsLinkBlock mapped from table +type PsLinkBlock struct { + IDLinkBlock int32 `gorm:"column:id_link_block;primaryKey;autoIncrement:true" json:"id_link_block"` + IDHook *int32 `gorm:"column:id_hook" json:"id_hook"` + Position int32 `gorm:"column:position;not null" json:"position"` + Content *string `gorm:"column:content" json:"content"` +} + +// TableName PsLinkBlock's table name +func (*PsLinkBlock) TableName() string { + return TableNamePsLinkBlock +} + +var PsLinkBlockCols = struct { + IDLinkBlock gormcol.Field + IDHook gormcol.Field + Position gormcol.Field + Content gormcol.Field +}{ + IDLinkBlock: gormcol.Field{}.Set((&PsLinkBlock{}).TableName(), "id_link_block"), + IDHook: gormcol.Field{}.Set((&PsLinkBlock{}).TableName(), "id_hook"), + Position: gormcol.Field{}.Set((&PsLinkBlock{}).TableName(), "position"), + Content: gormcol.Field{}.Set((&PsLinkBlock{}).TableName(), "content"), +} diff --git a/app/model/dbmodel/ps_link_block_lang.go b/app/model/dbmodel/ps_link_block_lang.go new file mode 100644 index 0000000..f355ea7 --- /dev/null +++ b/app/model/dbmodel/ps_link_block_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLinkBlockLang = "ps_link_block_lang" + +// PsLinkBlockLang mapped from table +type PsLinkBlockLang struct { + IDLinkBlock int32 `gorm:"column:id_link_block;primaryKey" json:"id_link_block"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + CustomContent *string `gorm:"column:custom_content" json:"custom_content"` +} + +// TableName PsLinkBlockLang's table name +func (*PsLinkBlockLang) TableName() string { + return TableNamePsLinkBlockLang +} + +var PsLinkBlockLangCols = struct { + IDLinkBlock gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + CustomContent gormcol.Field +}{ + IDLinkBlock: gormcol.Field{}.Set((&PsLinkBlockLang{}).TableName(), "id_link_block"), + IDLang: gormcol.Field{}.Set((&PsLinkBlockLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsLinkBlockLang{}).TableName(), "name"), + CustomContent: gormcol.Field{}.Set((&PsLinkBlockLang{}).TableName(), "custom_content"), +} diff --git a/app/model/dbmodel/ps_link_block_shop.go b/app/model/dbmodel/ps_link_block_shop.go new file mode 100644 index 0000000..80f3b8e --- /dev/null +++ b/app/model/dbmodel/ps_link_block_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLinkBlockShop = "ps_link_block_shop" + +// PsLinkBlockShop mapped from table +type PsLinkBlockShop struct { + IDLinkBlock int32 `gorm:"column:id_link_block;primaryKey;autoIncrement:true" json:"id_link_block"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsLinkBlockShop's table name +func (*PsLinkBlockShop) TableName() string { + return TableNamePsLinkBlockShop +} + +var PsLinkBlockShopCols = struct { + IDLinkBlock gormcol.Field + IDShop gormcol.Field +}{ + IDLinkBlock: gormcol.Field{}.Set((&PsLinkBlockShop{}).TableName(), "id_link_block"), + IDShop: gormcol.Field{}.Set((&PsLinkBlockShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_linksmenutop.go b/app/model/dbmodel/ps_linksmenutop.go new file mode 100644 index 0000000..e6e78e7 --- /dev/null +++ b/app/model/dbmodel/ps_linksmenutop.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLinksmenutop = "ps_linksmenutop" + +// PsLinksmenutop mapped from table +type PsLinksmenutop struct { + IDLinksmenutop int32 `gorm:"column:id_linksmenutop;primaryKey;autoIncrement:true" json:"id_linksmenutop"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1" json:"id_shop"` + NewWindow bool `gorm:"column:new_window;not null" json:"new_window"` +} + +// TableName PsLinksmenutop's table name +func (*PsLinksmenutop) TableName() string { + return TableNamePsLinksmenutop +} + +var PsLinksmenutopCols = struct { + IDLinksmenutop gormcol.Field + IDShop gormcol.Field + NewWindow gormcol.Field +}{ + IDLinksmenutop: gormcol.Field{}.Set((&PsLinksmenutop{}).TableName(), "id_linksmenutop"), + IDShop: gormcol.Field{}.Set((&PsLinksmenutop{}).TableName(), "id_shop"), + NewWindow: gormcol.Field{}.Set((&PsLinksmenutop{}).TableName(), "new_window"), +} diff --git a/app/model/dbmodel/ps_linksmenutop_lang.go b/app/model/dbmodel/ps_linksmenutop_lang.go new file mode 100644 index 0000000..deb0e3e --- /dev/null +++ b/app/model/dbmodel/ps_linksmenutop_lang.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsLinksmenutopLang = "ps_linksmenutop_lang" + +// PsLinksmenutopLang mapped from table +type PsLinksmenutopLang struct { + IDLinksmenutop int32 `gorm:"column:id_linksmenutop;primaryKey;uniqueIndex:id_lang_id_shop_id_linksmenutop,priority:3;index:id_linksmenutop,priority:1" json:"id_linksmenutop"` + IDLang int32 `gorm:"column:id_lang;primaryKey;uniqueIndex:id_lang_id_shop_id_linksmenutop,priority:1;index:id_linksmenutop,priority:2" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;primaryKey;uniqueIndex:id_lang_id_shop_id_linksmenutop,priority:2;index:id_linksmenutop,priority:3" json:"id_shop"` + Label string `gorm:"column:label;not null" json:"label"` + Link string `gorm:"column:link;not null" json:"link"` +} + +// TableName PsLinksmenutopLang's table name +func (*PsLinksmenutopLang) TableName() string { + return TableNamePsLinksmenutopLang +} + +var PsLinksmenutopLangCols = struct { + IDLinksmenutop gormcol.Field + IDLang gormcol.Field + IDShop gormcol.Field + Label gormcol.Field + Link gormcol.Field +}{ + IDLinksmenutop: gormcol.Field{}.Set((&PsLinksmenutopLang{}).TableName(), "id_linksmenutop"), + IDLang: gormcol.Field{}.Set((&PsLinksmenutopLang{}).TableName(), "id_lang"), + IDShop: gormcol.Field{}.Set((&PsLinksmenutopLang{}).TableName(), "id_shop"), + Label: gormcol.Field{}.Set((&PsLinksmenutopLang{}).TableName(), "label"), + Link: gormcol.Field{}.Set((&PsLinksmenutopLang{}).TableName(), "link"), +} diff --git a/app/model/dbmodel/ps_log.go b/app/model/dbmodel/ps_log.go new file mode 100644 index 0000000..f735685 --- /dev/null +++ b/app/model/dbmodel/ps_log.go @@ -0,0 +1,52 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsLog = "ps_log" + +// PsLog mapped from table +type PsLog struct { + IDLog int32 `gorm:"column:id_log;primaryKey;autoIncrement:true" json:"id_log"` + Severity bool `gorm:"column:severity;not null" json:"severity"` + ErrorCode *int32 `gorm:"column:error_code" json:"error_code"` + Message string `gorm:"column:message;not null" json:"message"` + ObjectType *string `gorm:"column:object_type" json:"object_type"` + ObjectID *int32 `gorm:"column:object_id" json:"object_id"` + IDEmployee *int32 `gorm:"column:id_employee" json:"id_employee"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsLog's table name +func (*PsLog) TableName() string { + return TableNamePsLog +} + +var PsLogCols = struct { + IDLog gormcol.Field + Severity gormcol.Field + ErrorCode gormcol.Field + Message gormcol.Field + ObjectType gormcol.Field + ObjectID gormcol.Field + IDEmployee gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDLog: gormcol.Field{}.Set((&PsLog{}).TableName(), "id_log"), + Severity: gormcol.Field{}.Set((&PsLog{}).TableName(), "severity"), + ErrorCode: gormcol.Field{}.Set((&PsLog{}).TableName(), "error_code"), + Message: gormcol.Field{}.Set((&PsLog{}).TableName(), "message"), + ObjectType: gormcol.Field{}.Set((&PsLog{}).TableName(), "object_type"), + ObjectID: gormcol.Field{}.Set((&PsLog{}).TableName(), "object_id"), + IDEmployee: gormcol.Field{}.Set((&PsLog{}).TableName(), "id_employee"), + DateAdd: gormcol.Field{}.Set((&PsLog{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsLog{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_maal_cms_category.go b/app/model/dbmodel/ps_maal_cms_category.go new file mode 100644 index 0000000..9a14d11 --- /dev/null +++ b/app/model/dbmodel/ps_maal_cms_category.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsMaalCmsCategory = "ps_maal_cms_category" + +// PsMaalCmsCategory mapped from table +type PsMaalCmsCategory struct { + IDCategory int32 `gorm:"column:id_category;primaryKey;autoIncrement:true" json:"id_category"` + IDParent int32 `gorm:"column:id_parent;not null;index:category_parent,priority:1" json:"id_parent"` + IDShopDefault int32 `gorm:"column:id_shop_default;not null;default:1" json:"id_shop_default"` + Active bool `gorm:"column:active;not null;index:activenleft,priority:1;index:activenright,priority:1;index:nleftrightactive,priority:1" json:"active"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + Position int32 `gorm:"column:position;not null" json:"position"` +} + +// TableName PsMaalCmsCategory's table name +func (*PsMaalCmsCategory) TableName() string { + return TableNamePsMaalCmsCategory +} + +var PsMaalCmsCategoryCols = struct { + IDCategory gormcol.Field + IDParent gormcol.Field + IDShopDefault gormcol.Field + Active gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Position gormcol.Field +}{ + IDCategory: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "id_category"), + IDParent: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "id_parent"), + IDShopDefault: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "id_shop_default"), + Active: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "active"), + DateAdd: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "date_upd"), + Position: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "position"), +} diff --git a/app/model/dbmodel/ps_maal_cms_category_lang.go b/app/model/dbmodel/ps_maal_cms_category_lang.go new file mode 100644 index 0000000..c558296 --- /dev/null +++ b/app/model/dbmodel/ps_maal_cms_category_lang.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMaalCmsCategoryLang = "ps_maal_cms_category_lang" + +// PsMaalCmsCategoryLang mapped from table +type PsMaalCmsCategoryLang struct { + IDCategory int32 `gorm:"column:id_category;primaryKey" json:"id_category"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null;index:category_name,priority:1" json:"name"` + Description *string `gorm:"column:description" json:"description"` + LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` +} + +// TableName PsMaalCmsCategoryLang's table name +func (*PsMaalCmsCategoryLang) TableName() string { + return TableNamePsMaalCmsCategoryLang +} + +var PsMaalCmsCategoryLangCols = struct { + IDCategory gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Description gormcol.Field + LinkRewrite gormcol.Field + MetaTitle gormcol.Field + MetaDescription gormcol.Field +}{ + IDCategory: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "id_category"), + IDShop: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "id_shop"), + IDLang: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "name"), + Description: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "description"), + LinkRewrite: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "link_rewrite"), + MetaTitle: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "meta_title"), + MetaDescription: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "meta_description"), +} diff --git a/app/model/dbmodel/ps_maal_cms_page.go b/app/model/dbmodel/ps_maal_cms_page.go new file mode 100644 index 0000000..c3ecea0 --- /dev/null +++ b/app/model/dbmodel/ps_maal_cms_page.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsMaalCmsPage = "ps_maal_cms_page" + +// PsMaalCmsPage mapped from table +type PsMaalCmsPage struct { + IDPage int32 `gorm:"column:id_page;primaryKey;autoIncrement:true" json:"id_page"` + IDCategory *int32 `gorm:"column:id_category" json:"id_category"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` + Content *string `gorm:"column:content" json:"content"` + Jumbotron *string `gorm:"column:jumbotron" json:"jumbotron"` +} + +// TableName PsMaalCmsPage's table name +func (*PsMaalCmsPage) TableName() string { + return TableNamePsMaalCmsPage +} + +var PsMaalCmsPageCols = struct { + IDPage gormcol.Field + IDCategory gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Content gormcol.Field + Jumbotron gormcol.Field +}{ + IDPage: gormcol.Field{}.Set((&PsMaalCmsPage{}).TableName(), "id_page"), + IDCategory: gormcol.Field{}.Set((&PsMaalCmsPage{}).TableName(), "id_category"), + DateAdd: gormcol.Field{}.Set((&PsMaalCmsPage{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsMaalCmsPage{}).TableName(), "date_upd"), + Content: gormcol.Field{}.Set((&PsMaalCmsPage{}).TableName(), "content"), + Jumbotron: gormcol.Field{}.Set((&PsMaalCmsPage{}).TableName(), "jumbotron"), +} diff --git a/app/model/dbmodel/ps_maal_events.go b/app/model/dbmodel/ps_maal_events.go new file mode 100644 index 0000000..8c3f277 --- /dev/null +++ b/app/model/dbmodel/ps_maal_events.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsMaalEvent = "ps_maal_events" + +// PsMaalEvent mapped from table +type PsMaalEvent struct { + IDEvent int32 `gorm:"column:id_event;primaryKey;autoIncrement:true" json:"id_event"` + Gallery *string `gorm:"column:gallery" json:"gallery"` + PostImg *string `gorm:"column:post_img" json:"post_img"` + Position *int32 `gorm:"column:position" json:"position"` + Active *int32 `gorm:"column:active" json:"active"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsMaalEvent's table name +func (*PsMaalEvent) TableName() string { + return TableNamePsMaalEvent +} + +var PsMaalEventCols = struct { + IDEvent gormcol.Field + Gallery gormcol.Field + PostImg gormcol.Field + Position gormcol.Field + Active gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDEvent: gormcol.Field{}.Set((&PsMaalEvent{}).TableName(), "id_event"), + Gallery: gormcol.Field{}.Set((&PsMaalEvent{}).TableName(), "gallery"), + PostImg: gormcol.Field{}.Set((&PsMaalEvent{}).TableName(), "post_img"), + Position: gormcol.Field{}.Set((&PsMaalEvent{}).TableName(), "position"), + Active: gormcol.Field{}.Set((&PsMaalEvent{}).TableName(), "active"), + DateAdd: gormcol.Field{}.Set((&PsMaalEvent{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsMaalEvent{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_maal_events_lang.go b/app/model/dbmodel/ps_maal_events_lang.go new file mode 100644 index 0000000..080a464 --- /dev/null +++ b/app/model/dbmodel/ps_maal_events_lang.go @@ -0,0 +1,52 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMaalEventsLang = "ps_maal_events_lang" + +// PsMaalEventsLang mapped from table +type PsMaalEventsLang struct { + IDEventLang int32 `gorm:"column:id_event_lang;primaryKey;autoIncrement:true" json:"id_event_lang"` + IDEvent int32 `gorm:"column:id_event;not null;index:id_event_id_lang,priority:1" json:"id_event"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_event_id_lang,priority:2" json:"id_lang"` + PostTitle *string `gorm:"column:post_title" json:"post_title"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` + ContentTop *string `gorm:"column:content_top" json:"content_top"` + ContentMiddle *string `gorm:"column:content_middle" json:"content_middle"` + ContentBottom *string `gorm:"column:content_bottom" json:"content_bottom"` + LinkRewrite *string `gorm:"column:link_rewrite" json:"link_rewrite"` +} + +// TableName PsMaalEventsLang's table name +func (*PsMaalEventsLang) TableName() string { + return TableNamePsMaalEventsLang +} + +var PsMaalEventsLangCols = struct { + IDEventLang gormcol.Field + IDEvent gormcol.Field + IDLang gormcol.Field + PostTitle gormcol.Field + MetaTitle gormcol.Field + MetaDescription gormcol.Field + ContentTop gormcol.Field + ContentMiddle gormcol.Field + ContentBottom gormcol.Field + LinkRewrite gormcol.Field +}{ + IDEventLang: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "id_event_lang"), + IDEvent: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "id_event"), + IDLang: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "id_lang"), + PostTitle: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "post_title"), + MetaTitle: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "meta_title"), + MetaDescription: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "meta_description"), + ContentTop: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "content_top"), + ContentMiddle: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "content_middle"), + ContentBottom: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "content_bottom"), + LinkRewrite: gormcol.Field{}.Set((&PsMaalEventsLang{}).TableName(), "link_rewrite"), +} diff --git a/app/model/dbmodel/ps_maal_invoice_note.go b/app/model/dbmodel/ps_maal_invoice_note.go new file mode 100644 index 0000000..00eb813 --- /dev/null +++ b/app/model/dbmodel/ps_maal_invoice_note.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsMaalInvoiceNote = "ps_maal_invoice_note" + +// PsMaalInvoiceNote mapped from table +type PsMaalInvoiceNote struct { + IDOrder int32 `gorm:"column:id_order;primaryKey" json:"id_order"` + Note *string `gorm:"column:note" json:"note"` + DateAdd time.Time `gorm:"column:date_add;not null;default:current_timestamp()" json:"date_add"` +} + +// TableName PsMaalInvoiceNote's table name +func (*PsMaalInvoiceNote) TableName() string { + return TableNamePsMaalInvoiceNote +} + +var PsMaalInvoiceNoteCols = struct { + IDOrder gormcol.Field + Note gormcol.Field + DateAdd gormcol.Field +}{ + IDOrder: gormcol.Field{}.Set((&PsMaalInvoiceNote{}).TableName(), "id_order"), + Note: gormcol.Field{}.Set((&PsMaalInvoiceNote{}).TableName(), "note"), + DateAdd: gormcol.Field{}.Set((&PsMaalInvoiceNote{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_maal_invoicehelper.go b/app/model/dbmodel/ps_maal_invoicehelper.go new file mode 100644 index 0000000..19ea6e4 --- /dev/null +++ b/app/model/dbmodel/ps_maal_invoicehelper.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsMaalInvoicehelper = "ps_maal_invoicehelper" + +// PsMaalInvoicehelper mapped from table +type PsMaalInvoicehelper struct { + IDOrder int32 `gorm:"column:id_order;primaryKey" json:"id_order"` + IDOrderInvoice *int32 `gorm:"column:id_order_invoice" json:"id_order_invoice"` + DateOfIssue *time.Time `gorm:"column:date_of_issue" json:"date_of_issue"` + DateDeliveryExpected *time.Time `gorm:"column:date_delivery_expected" json:"date_delivery_expected"` + DaysToPay *int32 `gorm:"column:days_to_pay" json:"days_to_pay"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsMaalInvoicehelper's table name +func (*PsMaalInvoicehelper) TableName() string { + return TableNamePsMaalInvoicehelper +} + +var PsMaalInvoicehelperCols = struct { + IDOrder gormcol.Field + IDOrderInvoice gormcol.Field + DateOfIssue gormcol.Field + DateDeliveryExpected gormcol.Field + DaysToPay gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrder: gormcol.Field{}.Set((&PsMaalInvoicehelper{}).TableName(), "id_order"), + IDOrderInvoice: gormcol.Field{}.Set((&PsMaalInvoicehelper{}).TableName(), "id_order_invoice"), + DateOfIssue: gormcol.Field{}.Set((&PsMaalInvoicehelper{}).TableName(), "date_of_issue"), + DateDeliveryExpected: gormcol.Field{}.Set((&PsMaalInvoicehelper{}).TableName(), "date_delivery_expected"), + DaysToPay: gormcol.Field{}.Set((&PsMaalInvoicehelper{}).TableName(), "days_to_pay"), + DateAdd: gormcol.Field{}.Set((&PsMaalInvoicehelper{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsMaalInvoicehelper{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_maal_links_blok.go b/app/model/dbmodel/ps_maal_links_blok.go new file mode 100644 index 0000000..90b7d4d --- /dev/null +++ b/app/model/dbmodel/ps_maal_links_blok.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMaalLinksBlok = "ps_maal_links_blok" + +// PsMaalLinksBlok mapped from table +type PsMaalLinksBlok struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsMaalLinksBlok's table name +func (*PsMaalLinksBlok) TableName() string { + return TableNamePsMaalLinksBlok +} + +var PsMaalLinksBlokCols = struct { + IDHomesliderSlides gormcol.Field + IDShop gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{}.Set((&PsMaalLinksBlok{}).TableName(), "id_homeslider_slides"), + IDShop: gormcol.Field{}.Set((&PsMaalLinksBlok{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_maal_links_blok_slides.go b/app/model/dbmodel/ps_maal_links_blok_slides.go new file mode 100644 index 0000000..daccb0b --- /dev/null +++ b/app/model/dbmodel/ps_maal_links_blok_slides.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMaalLinksBlokSlide = "ps_maal_links_blok_slides" + +// PsMaalLinksBlokSlide mapped from table +type PsMaalLinksBlokSlide struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + Position int32 `gorm:"column:position;not null" json:"position"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsMaalLinksBlokSlide's table name +func (*PsMaalLinksBlokSlide) TableName() string { + return TableNamePsMaalLinksBlokSlide +} + +var PsMaalLinksBlokSlideCols = struct { + IDHomesliderSlides gormcol.Field + Position gormcol.Field + Active gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{}.Set((&PsMaalLinksBlokSlide{}).TableName(), "id_homeslider_slides"), + Position: gormcol.Field{}.Set((&PsMaalLinksBlokSlide{}).TableName(), "position"), + Active: gormcol.Field{}.Set((&PsMaalLinksBlokSlide{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_maal_links_blok_slides_lang.go b/app/model/dbmodel/ps_maal_links_blok_slides_lang.go new file mode 100644 index 0000000..033a18e --- /dev/null +++ b/app/model/dbmodel/ps_maal_links_blok_slides_lang.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMaalLinksBlokSlidesLang = "ps_maal_links_blok_slides_lang" + +// PsMaalLinksBlokSlidesLang mapped from table +type PsMaalLinksBlokSlidesLang struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey" json:"id_homeslider_slides"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Title string `gorm:"column:title;not null" json:"title"` + Description string `gorm:"column:description;not null" json:"description"` + Legend string `gorm:"column:legend;not null" json:"legend"` + URL string `gorm:"column:url;not null" json:"url"` + Image string `gorm:"column:image;not null" json:"image"` +} + +// TableName PsMaalLinksBlokSlidesLang's table name +func (*PsMaalLinksBlokSlidesLang) TableName() string { + return TableNamePsMaalLinksBlokSlidesLang +} + +var PsMaalLinksBlokSlidesLangCols = struct { + IDHomesliderSlides gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field + Legend gormcol.Field + URL gormcol.Field + Image gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{}.Set((&PsMaalLinksBlokSlidesLang{}).TableName(), "id_homeslider_slides"), + IDLang: gormcol.Field{}.Set((&PsMaalLinksBlokSlidesLang{}).TableName(), "id_lang"), + Title: gormcol.Field{}.Set((&PsMaalLinksBlokSlidesLang{}).TableName(), "title"), + Description: gormcol.Field{}.Set((&PsMaalLinksBlokSlidesLang{}).TableName(), "description"), + Legend: gormcol.Field{}.Set((&PsMaalLinksBlokSlidesLang{}).TableName(), "legend"), + URL: gormcol.Field{}.Set((&PsMaalLinksBlokSlidesLang{}).TableName(), "url"), + Image: gormcol.Field{}.Set((&PsMaalLinksBlokSlidesLang{}).TableName(), "image"), +} diff --git a/app/model/dbmodel/ps_maal_slider.go b/app/model/dbmodel/ps_maal_slider.go new file mode 100644 index 0000000..71acc9c --- /dev/null +++ b/app/model/dbmodel/ps_maal_slider.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMaalSlider = "ps_maal_slider" + +// PsMaalSlider mapped from table +type PsMaalSlider struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsMaalSlider's table name +func (*PsMaalSlider) TableName() string { + return TableNamePsMaalSlider +} + +var PsMaalSliderCols = struct { + IDHomesliderSlides gormcol.Field + IDShop gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{}.Set((&PsMaalSlider{}).TableName(), "id_homeslider_slides"), + IDShop: gormcol.Field{}.Set((&PsMaalSlider{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_maal_slider_slides.go b/app/model/dbmodel/ps_maal_slider_slides.go new file mode 100644 index 0000000..e279a37 --- /dev/null +++ b/app/model/dbmodel/ps_maal_slider_slides.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMaalSliderSlide = "ps_maal_slider_slides" + +// PsMaalSliderSlide mapped from table +type PsMaalSliderSlide struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey;autoIncrement:true" json:"id_homeslider_slides"` + Position int32 `gorm:"column:position;not null" json:"position"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsMaalSliderSlide's table name +func (*PsMaalSliderSlide) TableName() string { + return TableNamePsMaalSliderSlide +} + +var PsMaalSliderSlideCols = struct { + IDHomesliderSlides gormcol.Field + Position gormcol.Field + Active gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{}.Set((&PsMaalSliderSlide{}).TableName(), "id_homeslider_slides"), + Position: gormcol.Field{}.Set((&PsMaalSliderSlide{}).TableName(), "position"), + Active: gormcol.Field{}.Set((&PsMaalSliderSlide{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_maal_slider_slides_lang.go b/app/model/dbmodel/ps_maal_slider_slides_lang.go new file mode 100644 index 0000000..c635209 --- /dev/null +++ b/app/model/dbmodel/ps_maal_slider_slides_lang.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMaalSliderSlidesLang = "ps_maal_slider_slides_lang" + +// PsMaalSliderSlidesLang mapped from table +type PsMaalSliderSlidesLang struct { + IDHomesliderSlides int32 `gorm:"column:id_homeslider_slides;primaryKey" json:"id_homeslider_slides"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Title string `gorm:"column:title;not null" json:"title"` + Description string `gorm:"column:description;not null" json:"description"` + Legend string `gorm:"column:legend;not null" json:"legend"` + URL string `gorm:"column:url;not null" json:"url"` + Image string `gorm:"column:image;not null" json:"image"` +} + +// TableName PsMaalSliderSlidesLang's table name +func (*PsMaalSliderSlidesLang) TableName() string { + return TableNamePsMaalSliderSlidesLang +} + +var PsMaalSliderSlidesLangCols = struct { + IDHomesliderSlides gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field + Legend gormcol.Field + URL gormcol.Field + Image gormcol.Field +}{ + IDHomesliderSlides: gormcol.Field{}.Set((&PsMaalSliderSlidesLang{}).TableName(), "id_homeslider_slides"), + IDLang: gormcol.Field{}.Set((&PsMaalSliderSlidesLang{}).TableName(), "id_lang"), + Title: gormcol.Field{}.Set((&PsMaalSliderSlidesLang{}).TableName(), "title"), + Description: gormcol.Field{}.Set((&PsMaalSliderSlidesLang{}).TableName(), "description"), + Legend: gormcol.Field{}.Set((&PsMaalSliderSlidesLang{}).TableName(), "legend"), + URL: gormcol.Field{}.Set((&PsMaalSliderSlidesLang{}).TableName(), "url"), + Image: gormcol.Field{}.Set((&PsMaalSliderSlidesLang{}).TableName(), "image"), +} diff --git a/app/model/dbmodel/ps_mail.go b/app/model/dbmodel/ps_mail.go new file mode 100644 index 0000000..915cb07 --- /dev/null +++ b/app/model/dbmodel/ps_mail.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsMail = "ps_mail" + +// PsMail mapped from table +type PsMail struct { + IDMail int32 `gorm:"column:id_mail;primaryKey;autoIncrement:true" json:"id_mail"` + Recipient string `gorm:"column:recipient;not null;index:recipient,priority:1" json:"recipient"` + Template string `gorm:"column:template;not null" json:"template"` + Subject string `gorm:"column:subject;not null" json:"subject"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` + DateAdd time.Time `gorm:"column:date_add;not null;default:current_timestamp()" json:"date_add"` +} + +// TableName PsMail's table name +func (*PsMail) TableName() string { + return TableNamePsMail +} + +var PsMailCols = struct { + IDMail gormcol.Field + Recipient gormcol.Field + Template gormcol.Field + Subject gormcol.Field + IDLang gormcol.Field + DateAdd gormcol.Field +}{ + IDMail: gormcol.Field{}.Set((&PsMail{}).TableName(), "id_mail"), + Recipient: gormcol.Field{}.Set((&PsMail{}).TableName(), "recipient"), + Template: gormcol.Field{}.Set((&PsMail{}).TableName(), "template"), + Subject: gormcol.Field{}.Set((&PsMail{}).TableName(), "subject"), + IDLang: gormcol.Field{}.Set((&PsMail{}).TableName(), "id_lang"), + DateAdd: gormcol.Field{}.Set((&PsMail{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_mailalert_customer_oos.go b/app/model/dbmodel/ps_mailalert_customer_oos.go new file mode 100644 index 0000000..f574a10 --- /dev/null +++ b/app/model/dbmodel/ps_mailalert_customer_oos.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMailalertCustomerOo = "ps_mailalert_customer_oos" + +// PsMailalertCustomerOo mapped from table +type PsMailalertCustomerOo struct { + IDCustomer int32 `gorm:"column:id_customer;primaryKey" json:"id_customer"` + CustomerEmail string `gorm:"column:customer_email;primaryKey" json:"customer_email"` + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey" json:"id_product_attribute"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` +} + +// TableName PsMailalertCustomerOo's table name +func (*PsMailalertCustomerOo) TableName() string { + return TableNamePsMailalertCustomerOo +} + +var PsMailalertCustomerOoCols = struct { + IDCustomer gormcol.Field + CustomerEmail gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field +}{ + IDCustomer: gormcol.Field{}.Set((&PsMailalertCustomerOo{}).TableName(), "id_customer"), + CustomerEmail: gormcol.Field{}.Set((&PsMailalertCustomerOo{}).TableName(), "customer_email"), + IDProduct: gormcol.Field{}.Set((&PsMailalertCustomerOo{}).TableName(), "id_product"), + IDProductAttribute: gormcol.Field{}.Set((&PsMailalertCustomerOo{}).TableName(), "id_product_attribute"), + IDShop: gormcol.Field{}.Set((&PsMailalertCustomerOo{}).TableName(), "id_shop"), + IDLang: gormcol.Field{}.Set((&PsMailalertCustomerOo{}).TableName(), "id_lang"), +} diff --git a/app/model/dbmodel/ps_manufacturer.go b/app/model/dbmodel/ps_manufacturer.go new file mode 100644 index 0000000..93f7843 --- /dev/null +++ b/app/model/dbmodel/ps_manufacturer.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsManufacturer = "ps_manufacturer" + +// PsManufacturer mapped from table +type PsManufacturer struct { + IDManufacturer int32 `gorm:"column:id_manufacturer;primaryKey;autoIncrement:true" json:"id_manufacturer"` + Name string `gorm:"column:name;not null" json:"name"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsManufacturer's table name +func (*PsManufacturer) TableName() string { + return TableNamePsManufacturer +} + +var PsManufacturerCols = struct { + IDManufacturer gormcol.Field + Name gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Active gormcol.Field +}{ + IDManufacturer: gormcol.Field{}.Set((&PsManufacturer{}).TableName(), "id_manufacturer"), + Name: gormcol.Field{}.Set((&PsManufacturer{}).TableName(), "name"), + DateAdd: gormcol.Field{}.Set((&PsManufacturer{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsManufacturer{}).TableName(), "date_upd"), + Active: gormcol.Field{}.Set((&PsManufacturer{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_manufacturer_lang.go b/app/model/dbmodel/ps_manufacturer_lang.go new file mode 100644 index 0000000..7ef0097 --- /dev/null +++ b/app/model/dbmodel/ps_manufacturer_lang.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsManufacturerLang = "ps_manufacturer_lang" + +// PsManufacturerLang mapped from table +type PsManufacturerLang struct { + IDManufacturer int32 `gorm:"column:id_manufacturer;primaryKey" json:"id_manufacturer"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Description *string `gorm:"column:description" json:"description"` + ShortDescription *string `gorm:"column:short_description" json:"short_description"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` + MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` +} + +// TableName PsManufacturerLang's table name +func (*PsManufacturerLang) TableName() string { + return TableNamePsManufacturerLang +} + +var PsManufacturerLangCols = struct { + IDManufacturer gormcol.Field + IDLang gormcol.Field + Description gormcol.Field + ShortDescription gormcol.Field + MetaTitle gormcol.Field + MetaKeywords gormcol.Field + MetaDescription gormcol.Field +}{ + IDManufacturer: gormcol.Field{}.Set((&PsManufacturerLang{}).TableName(), "id_manufacturer"), + IDLang: gormcol.Field{}.Set((&PsManufacturerLang{}).TableName(), "id_lang"), + Description: gormcol.Field{}.Set((&PsManufacturerLang{}).TableName(), "description"), + ShortDescription: gormcol.Field{}.Set((&PsManufacturerLang{}).TableName(), "short_description"), + MetaTitle: gormcol.Field{}.Set((&PsManufacturerLang{}).TableName(), "meta_title"), + MetaKeywords: gormcol.Field{}.Set((&PsManufacturerLang{}).TableName(), "meta_keywords"), + MetaDescription: gormcol.Field{}.Set((&PsManufacturerLang{}).TableName(), "meta_description"), +} diff --git a/app/model/dbmodel/ps_manufacturer_shop.go b/app/model/dbmodel/ps_manufacturer_shop.go new file mode 100644 index 0000000..ee43655 --- /dev/null +++ b/app/model/dbmodel/ps_manufacturer_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsManufacturerShop = "ps_manufacturer_shop" + +// PsManufacturerShop mapped from table +type PsManufacturerShop struct { + IDManufacturer int32 `gorm:"column:id_manufacturer;primaryKey" json:"id_manufacturer"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsManufacturerShop's table name +func (*PsManufacturerShop) TableName() string { + return TableNamePsManufacturerShop +} + +var PsManufacturerShopCols = struct { + IDManufacturer gormcol.Field + IDShop gormcol.Field +}{ + IDManufacturer: gormcol.Field{}.Set((&PsManufacturerShop{}).TableName(), "id_manufacturer"), + IDShop: gormcol.Field{}.Set((&PsManufacturerShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_memcached_servers.go b/app/model/dbmodel/ps_memcached_servers.go new file mode 100644 index 0000000..a828915 --- /dev/null +++ b/app/model/dbmodel/ps_memcached_servers.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMemcachedServer = "ps_memcached_servers" + +// PsMemcachedServer mapped from table +type PsMemcachedServer struct { + IDMemcachedServer int32 `gorm:"column:id_memcached_server;primaryKey;autoIncrement:true" json:"id_memcached_server"` + IP string `gorm:"column:ip;not null" json:"ip"` + Port int32 `gorm:"column:port;not null" json:"port"` + Weight int32 `gorm:"column:weight;not null" json:"weight"` +} + +// TableName PsMemcachedServer's table name +func (*PsMemcachedServer) TableName() string { + return TableNamePsMemcachedServer +} + +var PsMemcachedServerCols = struct { + IDMemcachedServer gormcol.Field + IP gormcol.Field + Port gormcol.Field + Weight gormcol.Field +}{ + IDMemcachedServer: gormcol.Field{}.Set((&PsMemcachedServer{}).TableName(), "id_memcached_server"), + IP: gormcol.Field{}.Set((&PsMemcachedServer{}).TableName(), "ip"), + Port: gormcol.Field{}.Set((&PsMemcachedServer{}).TableName(), "port"), + Weight: gormcol.Field{}.Set((&PsMemcachedServer{}).TableName(), "weight"), +} diff --git a/app/model/dbmodel/ps_message.go b/app/model/dbmodel/ps_message.go new file mode 100644 index 0000000..f3f95af --- /dev/null +++ b/app/model/dbmodel/ps_message.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsMessage = "ps_message" + +// PsMessage mapped from table +type PsMessage struct { + IDMessage int32 `gorm:"column:id_message;primaryKey;autoIncrement:true" json:"id_message"` + IDCart *int32 `gorm:"column:id_cart;index:id_cart,priority:1" json:"id_cart"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:id_customer,priority:1" json:"id_customer"` + IDEmployee *int32 `gorm:"column:id_employee;index:id_employee,priority:1" json:"id_employee"` + IDOrder int32 `gorm:"column:id_order;not null;index:message_order,priority:1" json:"id_order"` + Message string `gorm:"column:message;not null" json:"message"` + Private bool `gorm:"column:private;not null;default:1" json:"private"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsMessage's table name +func (*PsMessage) TableName() string { + return TableNamePsMessage +} + +var PsMessageCols = struct { + IDMessage gormcol.Field + IDCart gormcol.Field + IDCustomer gormcol.Field + IDEmployee gormcol.Field + IDOrder gormcol.Field + Message gormcol.Field + Private gormcol.Field + DateAdd gormcol.Field +}{ + IDMessage: gormcol.Field{}.Set((&PsMessage{}).TableName(), "id_message"), + IDCart: gormcol.Field{}.Set((&PsMessage{}).TableName(), "id_cart"), + IDCustomer: gormcol.Field{}.Set((&PsMessage{}).TableName(), "id_customer"), + IDEmployee: gormcol.Field{}.Set((&PsMessage{}).TableName(), "id_employee"), + IDOrder: gormcol.Field{}.Set((&PsMessage{}).TableName(), "id_order"), + Message: gormcol.Field{}.Set((&PsMessage{}).TableName(), "message"), + Private: gormcol.Field{}.Set((&PsMessage{}).TableName(), "private"), + DateAdd: gormcol.Field{}.Set((&PsMessage{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_message_readed.go b/app/model/dbmodel/ps_message_readed.go new file mode 100644 index 0000000..ac21066 --- /dev/null +++ b/app/model/dbmodel/ps_message_readed.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsMessageReaded = "ps_message_readed" + +// PsMessageReaded mapped from table +type PsMessageReaded struct { + IDMessage int32 `gorm:"column:id_message;primaryKey" json:"id_message"` + IDEmployee int32 `gorm:"column:id_employee;primaryKey" json:"id_employee"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsMessageReaded's table name +func (*PsMessageReaded) TableName() string { + return TableNamePsMessageReaded +} + +var PsMessageReadedCols = struct { + IDMessage gormcol.Field + IDEmployee gormcol.Field + DateAdd gormcol.Field +}{ + IDMessage: gormcol.Field{}.Set((&PsMessageReaded{}).TableName(), "id_message"), + IDEmployee: gormcol.Field{}.Set((&PsMessageReaded{}).TableName(), "id_employee"), + DateAdd: gormcol.Field{}.Set((&PsMessageReaded{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_meta.go b/app/model/dbmodel/ps_meta.go new file mode 100644 index 0000000..887ddbb --- /dev/null +++ b/app/model/dbmodel/ps_meta.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMetum = "ps_meta" + +// PsMetum mapped from table +type PsMetum struct { + IDMeta int32 `gorm:"column:id_meta;primaryKey;autoIncrement:true" json:"id_meta"` + Page string `gorm:"column:page;not null;uniqueIndex:page,priority:1" json:"page"` + Configurable bool `gorm:"column:configurable;not null;default:1" json:"configurable"` +} + +// TableName PsMetum's table name +func (*PsMetum) TableName() string { + return TableNamePsMetum +} + +var PsMetumCols = struct { + IDMeta gormcol.Field + Page gormcol.Field + Configurable gormcol.Field +}{ + IDMeta: gormcol.Field{}.Set((&PsMetum{}).TableName(), "id_meta"), + Page: gormcol.Field{}.Set((&PsMetum{}).TableName(), "page"), + Configurable: gormcol.Field{}.Set((&PsMetum{}).TableName(), "configurable"), +} diff --git a/app/model/dbmodel/ps_meta_lang.go b/app/model/dbmodel/ps_meta_lang.go new file mode 100644 index 0000000..d350339 --- /dev/null +++ b/app/model/dbmodel/ps_meta_lang.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsMetaLang = "ps_meta_lang" + +// PsMetaLang mapped from table +type PsMetaLang struct { + IDMeta int32 `gorm:"column:id_meta;primaryKey" json:"id_meta"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:id_lang,priority:1" json:"id_lang"` + Title *string `gorm:"column:title" json:"title"` + Description *string `gorm:"column:description" json:"description"` + Keywords *string `gorm:"column:keywords" json:"keywords"` + URLRewrite string `gorm:"column:url_rewrite;not null" json:"url_rewrite"` +} + +// TableName PsMetaLang's table name +func (*PsMetaLang) TableName() string { + return TableNamePsMetaLang +} + +var PsMetaLangCols = struct { + IDMeta gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Title gormcol.Field + Description gormcol.Field + Keywords gormcol.Field + URLRewrite gormcol.Field +}{ + IDMeta: gormcol.Field{}.Set((&PsMetaLang{}).TableName(), "id_meta"), + IDShop: gormcol.Field{}.Set((&PsMetaLang{}).TableName(), "id_shop"), + IDLang: gormcol.Field{}.Set((&PsMetaLang{}).TableName(), "id_lang"), + Title: gormcol.Field{}.Set((&PsMetaLang{}).TableName(), "title"), + Description: gormcol.Field{}.Set((&PsMetaLang{}).TableName(), "description"), + Keywords: gormcol.Field{}.Set((&PsMetaLang{}).TableName(), "keywords"), + URLRewrite: gormcol.Field{}.Set((&PsMetaLang{}).TableName(), "url_rewrite"), +} diff --git a/app/model/dbmodel/ps_module.go b/app/model/dbmodel/ps_module.go new file mode 100644 index 0000000..9f06985 --- /dev/null +++ b/app/model/dbmodel/ps_module.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsModule = "ps_module" + +// PsModule mapped from table +type PsModule struct { + IDModule int32 `gorm:"column:id_module;primaryKey;autoIncrement:true" json:"id_module"` + Name string `gorm:"column:name;not null;uniqueIndex:name_UNIQUE,priority:1;index:name,priority:1" json:"name"` + Active bool `gorm:"column:active;not null" json:"active"` + Version string `gorm:"column:version;not null" json:"version"` +} + +// TableName PsModule's table name +func (*PsModule) TableName() string { + return TableNamePsModule +} + +var PsModuleCols = struct { + IDModule gormcol.Field + Name gormcol.Field + Active gormcol.Field + Version gormcol.Field +}{ + IDModule: gormcol.Field{}.Set((&PsModule{}).TableName(), "id_module"), + Name: gormcol.Field{}.Set((&PsModule{}).TableName(), "name"), + Active: gormcol.Field{}.Set((&PsModule{}).TableName(), "active"), + Version: gormcol.Field{}.Set((&PsModule{}).TableName(), "version"), +} diff --git a/app/model/dbmodel/ps_module_access.go b/app/model/dbmodel/ps_module_access.go new file mode 100644 index 0000000..1cd1ecf --- /dev/null +++ b/app/model/dbmodel/ps_module_access.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsModuleAccess = "ps_module_access" + +// PsModuleAccess mapped from table +type PsModuleAccess struct { + IDProfile int32 `gorm:"column:id_profile;primaryKey" json:"id_profile"` + IDAuthorizationRole int32 `gorm:"column:id_authorization_role;primaryKey" json:"id_authorization_role"` +} + +// TableName PsModuleAccess's table name +func (*PsModuleAccess) TableName() string { + return TableNamePsModuleAccess +} + +var PsModuleAccessCols = struct { + IDProfile gormcol.Field + IDAuthorizationRole gormcol.Field +}{ + IDProfile: gormcol.Field{}.Set((&PsModuleAccess{}).TableName(), "id_profile"), + IDAuthorizationRole: gormcol.Field{}.Set((&PsModuleAccess{}).TableName(), "id_authorization_role"), +} diff --git a/app/model/dbmodel/ps_module_carrier.go b/app/model/dbmodel/ps_module_carrier.go new file mode 100644 index 0000000..348041c --- /dev/null +++ b/app/model/dbmodel/ps_module_carrier.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsModuleCarrier = "ps_module_carrier" + +// PsModuleCarrier mapped from table +type PsModuleCarrier struct { + IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDReference int32 `gorm:"column:id_reference;primaryKey" json:"id_reference"` +} + +// TableName PsModuleCarrier's table name +func (*PsModuleCarrier) TableName() string { + return TableNamePsModuleCarrier +} + +var PsModuleCarrierCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDReference gormcol.Field +}{ + IDModule: gormcol.Field{}.Set((&PsModuleCarrier{}).TableName(), "id_module"), + IDShop: gormcol.Field{}.Set((&PsModuleCarrier{}).TableName(), "id_shop"), + IDReference: gormcol.Field{}.Set((&PsModuleCarrier{}).TableName(), "id_reference"), +} diff --git a/app/model/dbmodel/ps_module_country.go b/app/model/dbmodel/ps_module_country.go new file mode 100644 index 0000000..45687b9 --- /dev/null +++ b/app/model/dbmodel/ps_module_country.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsModuleCountry = "ps_module_country" + +// PsModuleCountry mapped from table +type PsModuleCountry struct { + IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` +} + +// TableName PsModuleCountry's table name +func (*PsModuleCountry) TableName() string { + return TableNamePsModuleCountry +} + +var PsModuleCountryCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDCountry gormcol.Field +}{ + IDModule: gormcol.Field{}.Set((&PsModuleCountry{}).TableName(), "id_module"), + IDShop: gormcol.Field{}.Set((&PsModuleCountry{}).TableName(), "id_shop"), + IDCountry: gormcol.Field{}.Set((&PsModuleCountry{}).TableName(), "id_country"), +} diff --git a/app/model/dbmodel/ps_module_currency.go b/app/model/dbmodel/ps_module_currency.go new file mode 100644 index 0000000..8f823c0 --- /dev/null +++ b/app/model/dbmodel/ps_module_currency.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsModuleCurrency = "ps_module_currency" + +// PsModuleCurrency mapped from table +type PsModuleCurrency struct { + IDModule int32 `gorm:"column:id_module;primaryKey;index:id_module,priority:1" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDCurrency int32 `gorm:"column:id_currency;primaryKey" json:"id_currency"` +} + +// TableName PsModuleCurrency's table name +func (*PsModuleCurrency) TableName() string { + return TableNamePsModuleCurrency +} + +var PsModuleCurrencyCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDCurrency gormcol.Field +}{ + IDModule: gormcol.Field{}.Set((&PsModuleCurrency{}).TableName(), "id_module"), + IDShop: gormcol.Field{}.Set((&PsModuleCurrency{}).TableName(), "id_shop"), + IDCurrency: gormcol.Field{}.Set((&PsModuleCurrency{}).TableName(), "id_currency"), +} diff --git a/app/model/dbmodel/ps_module_group.go b/app/model/dbmodel/ps_module_group.go new file mode 100644 index 0000000..5383385 --- /dev/null +++ b/app/model/dbmodel/ps_module_group.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsModuleGroup = "ps_module_group" + +// PsModuleGroup mapped from table +type PsModuleGroup struct { + IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` +} + +// TableName PsModuleGroup's table name +func (*PsModuleGroup) TableName() string { + return TableNamePsModuleGroup +} + +var PsModuleGroupCols = struct { + IDModule gormcol.Field + IDShop gormcol.Field + IDGroup gormcol.Field +}{ + IDModule: gormcol.Field{}.Set((&PsModuleGroup{}).TableName(), "id_module"), + IDShop: gormcol.Field{}.Set((&PsModuleGroup{}).TableName(), "id_shop"), + IDGroup: gormcol.Field{}.Set((&PsModuleGroup{}).TableName(), "id_group"), +} diff --git a/app/model/dbmodel/ps_module_history.go b/app/model/dbmodel/ps_module_history.go new file mode 100644 index 0000000..a8da44b --- /dev/null +++ b/app/model/dbmodel/ps_module_history.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsModuleHistory = "ps_module_history" + +// PsModuleHistory mapped from table +type PsModuleHistory struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + IDModule int32 `gorm:"column:id_module;not null" json:"id_module"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsModuleHistory's table name +func (*PsModuleHistory) TableName() string { + return TableNamePsModuleHistory +} + +var PsModuleHistoryCols = struct { + ID gormcol.Field + IDEmployee gormcol.Field + IDModule gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + ID: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "id"), + IDEmployee: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "id_employee"), + IDModule: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "id_module"), + DateAdd: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_module_preference.go b/app/model/dbmodel/ps_module_preference.go new file mode 100644 index 0000000..1cb28b7 --- /dev/null +++ b/app/model/dbmodel/ps_module_preference.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsModulePreference = "ps_module_preference" + +// PsModulePreference mapped from table +type PsModulePreference struct { + IDModulePreference int32 `gorm:"column:id_module_preference;primaryKey;autoIncrement:true" json:"id_module_preference"` + IDEmployee int32 `gorm:"column:id_employee;not null;uniqueIndex:employee_module,priority:1" json:"id_employee"` + Module string `gorm:"column:module;not null;uniqueIndex:employee_module,priority:2" json:"module"` + Interest *bool `gorm:"column:interest" json:"interest"` + Favorite *bool `gorm:"column:favorite" json:"favorite"` +} + +// TableName PsModulePreference's table name +func (*PsModulePreference) TableName() string { + return TableNamePsModulePreference +} + +var PsModulePreferenceCols = struct { + IDModulePreference gormcol.Field + IDEmployee gormcol.Field + Module gormcol.Field + Interest gormcol.Field + Favorite gormcol.Field +}{ + IDModulePreference: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "id_module_preference"), + IDEmployee: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "id_employee"), + Module: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "module"), + Interest: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "interest"), + Favorite: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "favorite"), +} diff --git a/app/model/dbmodel/ps_module_shop.go b/app/model/dbmodel/ps_module_shop.go index 67d185b..47950a4 100644 --- a/app/model/dbmodel/ps_module_shop.go +++ b/app/model/dbmodel/ps_module_shop.go @@ -1,6 +1,4 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gormcol. DO NOT EDIT. package dbmodel diff --git a/app/model/dbmodel/ps_operating_system.go b/app/model/dbmodel/ps_operating_system.go new file mode 100644 index 0000000..b816a2a --- /dev/null +++ b/app/model/dbmodel/ps_operating_system.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOperatingSystem = "ps_operating_system" + +// PsOperatingSystem mapped from table +type PsOperatingSystem struct { + IDOperatingSystem int32 `gorm:"column:id_operating_system;primaryKey;autoIncrement:true" json:"id_operating_system"` + Name *string `gorm:"column:name" json:"name"` +} + +// TableName PsOperatingSystem's table name +func (*PsOperatingSystem) TableName() string { + return TableNamePsOperatingSystem +} + +var PsOperatingSystemCols = struct { + IDOperatingSystem gormcol.Field + Name gormcol.Field +}{ + IDOperatingSystem: gormcol.Field{}.Set((&PsOperatingSystem{}).TableName(), "id_operating_system"), + Name: gormcol.Field{}.Set((&PsOperatingSystem{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_order_carrier.go b/app/model/dbmodel/ps_order_carrier.go new file mode 100644 index 0000000..d7eada9 --- /dev/null +++ b/app/model/dbmodel/ps_order_carrier.go @@ -0,0 +1,52 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderCarrier = "ps_order_carrier" + +// PsOrderCarrier mapped from table +type PsOrderCarrier struct { + IDOrderCarrier int32 `gorm:"column:id_order_carrier;primaryKey;autoIncrement:true" json:"id_order_carrier"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"` + IDOrderInvoice *int32 `gorm:"column:id_order_invoice;index:id_order_invoice,priority:1" json:"id_order_invoice"` + Weight *float64 `gorm:"column:weight" json:"weight"` + ShippingCostTaxExcl *float64 `gorm:"column:shipping_cost_tax_excl" json:"shipping_cost_tax_excl"` + ShippingCostTaxIncl *float64 `gorm:"column:shipping_cost_tax_incl" json:"shipping_cost_tax_incl"` + TrackingNumber *string `gorm:"column:tracking_number" json:"tracking_number"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsOrderCarrier's table name +func (*PsOrderCarrier) TableName() string { + return TableNamePsOrderCarrier +} + +var PsOrderCarrierCols = struct { + IDOrderCarrier gormcol.Field + IDOrder gormcol.Field + IDCarrier gormcol.Field + IDOrderInvoice gormcol.Field + Weight gormcol.Field + ShippingCostTaxExcl gormcol.Field + ShippingCostTaxIncl gormcol.Field + TrackingNumber gormcol.Field + DateAdd gormcol.Field +}{ + IDOrderCarrier: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "id_order_carrier"), + IDOrder: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "id_order"), + IDCarrier: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "id_carrier"), + IDOrderInvoice: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "id_order_invoice"), + Weight: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "weight"), + ShippingCostTaxExcl: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "shipping_cost_tax_excl"), + ShippingCostTaxIncl: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "shipping_cost_tax_incl"), + TrackingNumber: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "tracking_number"), + DateAdd: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_order_cart_rule.go b/app/model/dbmodel/ps_order_cart_rule.go new file mode 100644 index 0000000..52a16ef --- /dev/null +++ b/app/model/dbmodel/ps_order_cart_rule.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderCartRule = "ps_order_cart_rule" + +// PsOrderCartRule mapped from table +type PsOrderCartRule struct { + IDOrderCartRule int32 `gorm:"column:id_order_cart_rule;primaryKey;autoIncrement:true" json:"id_order_cart_rule"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + IDCartRule int32 `gorm:"column:id_cart_rule;not null;index:id_cart_rule,priority:1" json:"id_cart_rule"` + IDOrderInvoice *int32 `gorm:"column:id_order_invoice" json:"id_order_invoice"` + Name string `gorm:"column:name;not null" json:"name"` + Value float64 `gorm:"column:value;not null;default:0.00" json:"value"` + ValueTaxExcl float64 `gorm:"column:value_tax_excl;not null;default:0.00" json:"value_tax_excl"` + FreeShipping bool `gorm:"column:free_shipping;not null" json:"free_shipping"` +} + +// TableName PsOrderCartRule's table name +func (*PsOrderCartRule) TableName() string { + return TableNamePsOrderCartRule +} + +var PsOrderCartRuleCols = struct { + IDOrderCartRule gormcol.Field + IDOrder gormcol.Field + IDCartRule gormcol.Field + IDOrderInvoice gormcol.Field + Name gormcol.Field + Value gormcol.Field + ValueTaxExcl gormcol.Field + FreeShipping gormcol.Field +}{ + IDOrderCartRule: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "id_order_cart_rule"), + IDOrder: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "id_order"), + IDCartRule: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "id_cart_rule"), + IDOrderInvoice: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "id_order_invoice"), + Name: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "name"), + Value: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "value"), + ValueTaxExcl: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "value_tax_excl"), + FreeShipping: gormcol.Field{}.Set((&PsOrderCartRule{}).TableName(), "free_shipping"), +} diff --git a/app/model/dbmodel/ps_order_detail.go b/app/model/dbmodel/ps_order_detail.go new file mode 100644 index 0000000..ff2b7c3 --- /dev/null +++ b/app/model/dbmodel/ps_order_detail.go @@ -0,0 +1,169 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderDetail = "ps_order_detail" + +// PsOrderDetail mapped from table +type PsOrderDetail struct { + IDOrderDetail int32 `gorm:"column:id_order_detail;primaryKey;autoIncrement:true;index:id_order_id_order_detail,priority:2" json:"id_order_detail"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order_id_order_detail,priority:1;index:order_detail_order,priority:1" json:"id_order"` + IDOrderInvoice *int32 `gorm:"column:id_order_invoice" json:"id_order_invoice"` + IDWarehouse *int32 `gorm:"column:id_warehouse" json:"id_warehouse"` + IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"` + ProductID int32 `gorm:"column:product_id;not null;index:product_id,priority:1" json:"product_id"` + ProductAttributeID *int32 `gorm:"column:product_attribute_id;index:product_attribute_id,priority:1;index:product_id,priority:2" json:"product_attribute_id"` + IDCustomization *int32 `gorm:"column:id_customization" json:"id_customization"` + ProductName string `gorm:"column:product_name;not null" json:"product_name"` + ProductQuantity int32 `gorm:"column:product_quantity;not null" json:"product_quantity"` + ProductQuantityInStock int32 `gorm:"column:product_quantity_in_stock;not null" json:"product_quantity_in_stock"` + ProductQuantityRefunded int32 `gorm:"column:product_quantity_refunded;not null" json:"product_quantity_refunded"` + ProductQuantityReturn int32 `gorm:"column:product_quantity_return;not null" json:"product_quantity_return"` + ProductQuantityReinjected int32 `gorm:"column:product_quantity_reinjected;not null" json:"product_quantity_reinjected"` + ProductPrice float64 `gorm:"column:product_price;not null;default:0.000000" json:"product_price"` + ReductionPercent float64 `gorm:"column:reduction_percent;not null;default:0.00" json:"reduction_percent"` + ReductionAmount float64 `gorm:"column:reduction_amount;not null;default:0.000000" json:"reduction_amount"` + ReductionAmountTaxIncl float64 `gorm:"column:reduction_amount_tax_incl;not null;default:0.000000" json:"reduction_amount_tax_incl"` + ReductionAmountTaxExcl float64 `gorm:"column:reduction_amount_tax_excl;not null;default:0.000000" json:"reduction_amount_tax_excl"` + GroupReduction float64 `gorm:"column:group_reduction;not null;default:0.00" json:"group_reduction"` + ProductQuantityDiscount float64 `gorm:"column:product_quantity_discount;not null;default:0.000000" json:"product_quantity_discount"` + ProductEan13 *string `gorm:"column:product_ean13" json:"product_ean13"` + ProductIsbn *string `gorm:"column:product_isbn" json:"product_isbn"` + ProductUpc *string `gorm:"column:product_upc" json:"product_upc"` + ProductReference *string `gorm:"column:product_reference" json:"product_reference"` + ProductSupplierReference *string `gorm:"column:product_supplier_reference" json:"product_supplier_reference"` + ProductWeight float64 `gorm:"column:product_weight;not null" json:"product_weight"` + IDTaxRulesGroup *int32 `gorm:"column:id_tax_rules_group;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"` + TaxComputationMethod bool `gorm:"column:tax_computation_method;not null" json:"tax_computation_method"` + TaxName string `gorm:"column:tax_name;not null" json:"tax_name"` + TaxRate float64 `gorm:"column:tax_rate;not null;default:0.000" json:"tax_rate"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + EcotaxTaxRate float64 `gorm:"column:ecotax_tax_rate;not null;default:0.000" json:"ecotax_tax_rate"` + DiscountQuantityApplied bool `gorm:"column:discount_quantity_applied;not null" json:"discount_quantity_applied"` + DownloadHash *string `gorm:"column:download_hash" json:"download_hash"` + DownloadNb *int32 `gorm:"column:download_nb" json:"download_nb"` + DownloadDeadline *time.Time `gorm:"column:download_deadline" json:"download_deadline"` + TotalPriceTaxIncl float64 `gorm:"column:total_price_tax_incl;not null;default:0.000000" json:"total_price_tax_incl"` + TotalPriceTaxExcl float64 `gorm:"column:total_price_tax_excl;not null;default:0.000000" json:"total_price_tax_excl"` + UnitPriceTaxIncl float64 `gorm:"column:unit_price_tax_incl;not null;default:0.000000" json:"unit_price_tax_incl"` + UnitPriceTaxExcl float64 `gorm:"column:unit_price_tax_excl;not null;default:0.000000" json:"unit_price_tax_excl"` + TotalShippingPriceTaxIncl float64 `gorm:"column:total_shipping_price_tax_incl;not null;default:0.000000" json:"total_shipping_price_tax_incl"` + TotalShippingPriceTaxExcl float64 `gorm:"column:total_shipping_price_tax_excl;not null;default:0.000000" json:"total_shipping_price_tax_excl"` + TotalPriceTaxInclDiscounted *float64 `gorm:"column:total_price_tax_incl_discounted" json:"total_price_tax_incl_discounted"` + CartRules *string `gorm:"column:cart_rules" json:"cart_rules"` + PurchaseSupplierPrice float64 `gorm:"column:purchase_supplier_price;not null;default:0.000000" json:"purchase_supplier_price"` + OriginalProductPrice float64 `gorm:"column:original_product_price;not null;default:0.000000" json:"original_product_price"` + OriginalWholesalePrice float64 `gorm:"column:original_wholesale_price;not null;default:0.000000" json:"original_wholesale_price"` +} + +// TableName PsOrderDetail's table name +func (*PsOrderDetail) TableName() string { + return TableNamePsOrderDetail +} + +var PsOrderDetailCols = struct { + IDOrderDetail gormcol.Field + IDOrder gormcol.Field + IDOrderInvoice gormcol.Field + IDWarehouse gormcol.Field + IDShop gormcol.Field + ProductID gormcol.Field + ProductAttributeID gormcol.Field + IDCustomization gormcol.Field + ProductName gormcol.Field + ProductQuantity gormcol.Field + ProductQuantityInStock gormcol.Field + ProductQuantityRefunded gormcol.Field + ProductQuantityReturn gormcol.Field + ProductQuantityReinjected gormcol.Field + ProductPrice gormcol.Field + ReductionPercent gormcol.Field + ReductionAmount gormcol.Field + ReductionAmountTaxIncl gormcol.Field + ReductionAmountTaxExcl gormcol.Field + GroupReduction gormcol.Field + ProductQuantityDiscount gormcol.Field + ProductEan13 gormcol.Field + ProductIsbn gormcol.Field + ProductUpc gormcol.Field + ProductReference gormcol.Field + ProductSupplierReference gormcol.Field + ProductWeight gormcol.Field + IDTaxRulesGroup gormcol.Field + TaxComputationMethod gormcol.Field + TaxName gormcol.Field + TaxRate gormcol.Field + Ecotax gormcol.Field + EcotaxTaxRate gormcol.Field + DiscountQuantityApplied gormcol.Field + DownloadHash gormcol.Field + DownloadNb gormcol.Field + DownloadDeadline gormcol.Field + TotalPriceTaxIncl gormcol.Field + TotalPriceTaxExcl gormcol.Field + UnitPriceTaxIncl gormcol.Field + UnitPriceTaxExcl gormcol.Field + TotalShippingPriceTaxIncl gormcol.Field + TotalShippingPriceTaxExcl gormcol.Field + TotalPriceTaxInclDiscounted gormcol.Field + CartRules gormcol.Field + PurchaseSupplierPrice gormcol.Field + OriginalProductPrice gormcol.Field + OriginalWholesalePrice gormcol.Field +}{ + IDOrderDetail: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_order_detail"), + IDOrder: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_order"), + IDOrderInvoice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_order_invoice"), + IDWarehouse: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_warehouse"), + IDShop: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_shop"), + ProductID: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_id"), + ProductAttributeID: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_attribute_id"), + IDCustomization: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_customization"), + ProductName: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_name"), + ProductQuantity: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity"), + ProductQuantityInStock: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_in_stock"), + ProductQuantityRefunded: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_refunded"), + ProductQuantityReturn: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_return"), + ProductQuantityReinjected: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_reinjected"), + ProductPrice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_price"), + ReductionPercent: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "reduction_percent"), + ReductionAmount: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "reduction_amount"), + ReductionAmountTaxIncl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "reduction_amount_tax_incl"), + ReductionAmountTaxExcl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "reduction_amount_tax_excl"), + GroupReduction: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "group_reduction"), + ProductQuantityDiscount: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_discount"), + ProductEan13: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_ean13"), + ProductIsbn: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_isbn"), + ProductUpc: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_upc"), + ProductReference: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_reference"), + ProductSupplierReference: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_supplier_reference"), + ProductWeight: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_weight"), + IDTaxRulesGroup: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_tax_rules_group"), + TaxComputationMethod: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "tax_computation_method"), + TaxName: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "tax_name"), + TaxRate: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "tax_rate"), + Ecotax: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "ecotax"), + EcotaxTaxRate: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "ecotax_tax_rate"), + DiscountQuantityApplied: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "discount_quantity_applied"), + DownloadHash: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "download_hash"), + DownloadNb: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "download_nb"), + DownloadDeadline: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "download_deadline"), + TotalPriceTaxIncl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_price_tax_incl"), + TotalPriceTaxExcl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_price_tax_excl"), + UnitPriceTaxIncl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "unit_price_tax_incl"), + UnitPriceTaxExcl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "unit_price_tax_excl"), + TotalShippingPriceTaxIncl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_shipping_price_tax_incl"), + TotalShippingPriceTaxExcl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_shipping_price_tax_excl"), + TotalPriceTaxInclDiscounted: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_price_tax_incl_discounted"), + CartRules: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "cart_rules"), + PurchaseSupplierPrice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "purchase_supplier_price"), + OriginalProductPrice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "original_product_price"), + OriginalWholesalePrice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "original_wholesale_price"), +} diff --git a/app/model/dbmodel/ps_order_detail_tax.go b/app/model/dbmodel/ps_order_detail_tax.go new file mode 100644 index 0000000..174bc63 --- /dev/null +++ b/app/model/dbmodel/ps_order_detail_tax.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderDetailTax = "ps_order_detail_tax" + +// PsOrderDetailTax mapped from table +type PsOrderDetailTax struct { + IDOrderDetail int32 `gorm:"column:id_order_detail;not null;index:id_order_detail,priority:1" json:"id_order_detail"` + IDTax int32 `gorm:"column:id_tax;not null;index:id_tax,priority:1" json:"id_tax"` + UnitAmount float64 `gorm:"column:unit_amount;not null;default:0.000000" json:"unit_amount"` + TotalAmount float64 `gorm:"column:total_amount;not null;default:0.000000" json:"total_amount"` +} + +// TableName PsOrderDetailTax's table name +func (*PsOrderDetailTax) TableName() string { + return TableNamePsOrderDetailTax +} + +var PsOrderDetailTaxCols = struct { + IDOrderDetail gormcol.Field + IDTax gormcol.Field + UnitAmount gormcol.Field + TotalAmount gormcol.Field +}{ + IDOrderDetail: gormcol.Field{}.Set((&PsOrderDetailTax{}).TableName(), "id_order_detail"), + IDTax: gormcol.Field{}.Set((&PsOrderDetailTax{}).TableName(), "id_tax"), + UnitAmount: gormcol.Field{}.Set((&PsOrderDetailTax{}).TableName(), "unit_amount"), + TotalAmount: gormcol.Field{}.Set((&PsOrderDetailTax{}).TableName(), "total_amount"), +} diff --git a/app/model/dbmodel/ps_order_history.go b/app/model/dbmodel/ps_order_history.go new file mode 100644 index 0000000..c639111 --- /dev/null +++ b/app/model/dbmodel/ps_order_history.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderHistory = "ps_order_history" + +// PsOrderHistory mapped from table +type PsOrderHistory struct { + IDOrderHistory int32 `gorm:"column:id_order_history;primaryKey;autoIncrement:true" json:"id_order_history"` + IDEmployee int32 `gorm:"column:id_employee;not null;index:id_employee,priority:1" json:"id_employee"` + IDOrder int32 `gorm:"column:id_order;not null;index:order_history_order,priority:1" json:"id_order"` + IDOrderState int32 `gorm:"column:id_order_state;not null;index:id_order_state,priority:1" json:"id_order_state"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsOrderHistory's table name +func (*PsOrderHistory) TableName() string { + return TableNamePsOrderHistory +} + +var PsOrderHistoryCols = struct { + IDOrderHistory gormcol.Field + IDEmployee gormcol.Field + IDOrder gormcol.Field + IDOrderState gormcol.Field + DateAdd gormcol.Field +}{ + IDOrderHistory: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "id_order_history"), + IDEmployee: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "id_employee"), + IDOrder: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "id_order"), + IDOrderState: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "id_order_state"), + DateAdd: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_order_invoice.go b/app/model/dbmodel/ps_order_invoice.go new file mode 100644 index 0000000..9aef203 --- /dev/null +++ b/app/model/dbmodel/ps_order_invoice.go @@ -0,0 +1,88 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderInvoice = "ps_order_invoice" + +// PsOrderInvoice mapped from table +type PsOrderInvoice struct { + IDOrderInvoice int32 `gorm:"column:id_order_invoice;primaryKey;autoIncrement:true" json:"id_order_invoice"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + Number int32 `gorm:"column:number;not null" json:"number"` + DeliveryNumber int32 `gorm:"column:delivery_number;not null" json:"delivery_number"` + DeliveryDate *time.Time `gorm:"column:delivery_date" json:"delivery_date"` + TotalDiscountTaxExcl float64 `gorm:"column:total_discount_tax_excl;not null;default:0.000000" json:"total_discount_tax_excl"` + TotalDiscountTaxIncl float64 `gorm:"column:total_discount_tax_incl;not null;default:0.000000" json:"total_discount_tax_incl"` + TotalPaidTaxExcl float64 `gorm:"column:total_paid_tax_excl;not null;default:0.000000" json:"total_paid_tax_excl"` + TotalPaidTaxIncl float64 `gorm:"column:total_paid_tax_incl;not null;default:0.000000" json:"total_paid_tax_incl"` + TotalProducts float64 `gorm:"column:total_products;not null;default:0.000000" json:"total_products"` + TotalProductsWt float64 `gorm:"column:total_products_wt;not null;default:0.000000" json:"total_products_wt"` + TotalShippingTaxExcl float64 `gorm:"column:total_shipping_tax_excl;not null;default:0.000000" json:"total_shipping_tax_excl"` + TotalShippingTaxIncl float64 `gorm:"column:total_shipping_tax_incl;not null;default:0.000000" json:"total_shipping_tax_incl"` + ShippingTaxComputationMethod int32 `gorm:"column:shipping_tax_computation_method;not null" json:"shipping_tax_computation_method"` + TotalWrappingTaxExcl float64 `gorm:"column:total_wrapping_tax_excl;not null;default:0.000000" json:"total_wrapping_tax_excl"` + TotalWrappingTaxIncl float64 `gorm:"column:total_wrapping_tax_incl;not null;default:0.000000" json:"total_wrapping_tax_incl"` + ShopAddress *string `gorm:"column:shop_address" json:"shop_address"` + Note *string `gorm:"column:note" json:"note"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + FinalNumber *int32 `gorm:"column:final_number" json:"final_number"` + IDShopCompany *int32 `gorm:"column:id_shop_company" json:"id_shop_company"` +} + +// TableName PsOrderInvoice's table name +func (*PsOrderInvoice) TableName() string { + return TableNamePsOrderInvoice +} + +var PsOrderInvoiceCols = struct { + IDOrderInvoice gormcol.Field + IDOrder gormcol.Field + Number gormcol.Field + DeliveryNumber gormcol.Field + DeliveryDate gormcol.Field + TotalDiscountTaxExcl gormcol.Field + TotalDiscountTaxIncl gormcol.Field + TotalPaidTaxExcl gormcol.Field + TotalPaidTaxIncl gormcol.Field + TotalProducts gormcol.Field + TotalProductsWt gormcol.Field + TotalShippingTaxExcl gormcol.Field + TotalShippingTaxIncl gormcol.Field + ShippingTaxComputationMethod gormcol.Field + TotalWrappingTaxExcl gormcol.Field + TotalWrappingTaxIncl gormcol.Field + ShopAddress gormcol.Field + Note gormcol.Field + DateAdd gormcol.Field + FinalNumber gormcol.Field + IDShopCompany gormcol.Field +}{ + IDOrderInvoice: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "id_order_invoice"), + IDOrder: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "id_order"), + Number: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "number"), + DeliveryNumber: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "delivery_number"), + DeliveryDate: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "delivery_date"), + TotalDiscountTaxExcl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_discount_tax_excl"), + TotalDiscountTaxIncl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_discount_tax_incl"), + TotalPaidTaxExcl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_paid_tax_excl"), + TotalPaidTaxIncl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_paid_tax_incl"), + TotalProducts: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_products"), + TotalProductsWt: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_products_wt"), + TotalShippingTaxExcl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_shipping_tax_excl"), + TotalShippingTaxIncl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_shipping_tax_incl"), + ShippingTaxComputationMethod: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "shipping_tax_computation_method"), + TotalWrappingTaxExcl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_wrapping_tax_excl"), + TotalWrappingTaxIncl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_wrapping_tax_incl"), + ShopAddress: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "shop_address"), + Note: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "note"), + DateAdd: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "date_add"), + FinalNumber: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "final_number"), + IDShopCompany: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "id_shop_company"), +} diff --git a/app/model/dbmodel/ps_order_invoice_payment.go b/app/model/dbmodel/ps_order_invoice_payment.go new file mode 100644 index 0000000..9b5dc23 --- /dev/null +++ b/app/model/dbmodel/ps_order_invoice_payment.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderInvoicePayment = "ps_order_invoice_payment" + +// PsOrderInvoicePayment mapped from table +type PsOrderInvoicePayment struct { + IDOrderInvoice int32 `gorm:"column:id_order_invoice;primaryKey" json:"id_order_invoice"` + IDOrderPayment int32 `gorm:"column:id_order_payment;primaryKey;index:order_payment,priority:1" json:"id_order_payment"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` +} + +// TableName PsOrderInvoicePayment's table name +func (*PsOrderInvoicePayment) TableName() string { + return TableNamePsOrderInvoicePayment +} + +var PsOrderInvoicePaymentCols = struct { + IDOrderInvoice gormcol.Field + IDOrderPayment gormcol.Field + IDOrder gormcol.Field +}{ + IDOrderInvoice: gormcol.Field{}.Set((&PsOrderInvoicePayment{}).TableName(), "id_order_invoice"), + IDOrderPayment: gormcol.Field{}.Set((&PsOrderInvoicePayment{}).TableName(), "id_order_payment"), + IDOrder: gormcol.Field{}.Set((&PsOrderInvoicePayment{}).TableName(), "id_order"), +} diff --git a/app/model/dbmodel/ps_order_invoice_tax.go b/app/model/dbmodel/ps_order_invoice_tax.go new file mode 100644 index 0000000..8f772fd --- /dev/null +++ b/app/model/dbmodel/ps_order_invoice_tax.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderInvoiceTax = "ps_order_invoice_tax" + +// PsOrderInvoiceTax mapped from table +type PsOrderInvoiceTax struct { + IDOrderInvoice int32 `gorm:"column:id_order_invoice;not null" json:"id_order_invoice"` + Type string `gorm:"column:type;not null" json:"type"` + IDTax int32 `gorm:"column:id_tax;not null;index:id_tax,priority:1" json:"id_tax"` + Amount float64 `gorm:"column:amount;not null;default:0.000000" json:"amount"` +} + +// TableName PsOrderInvoiceTax's table name +func (*PsOrderInvoiceTax) TableName() string { + return TableNamePsOrderInvoiceTax +} + +var PsOrderInvoiceTaxCols = struct { + IDOrderInvoice gormcol.Field + Type gormcol.Field + IDTax gormcol.Field + Amount gormcol.Field +}{ + IDOrderInvoice: gormcol.Field{}.Set((&PsOrderInvoiceTax{}).TableName(), "id_order_invoice"), + Type: gormcol.Field{}.Set((&PsOrderInvoiceTax{}).TableName(), "type"), + IDTax: gormcol.Field{}.Set((&PsOrderInvoiceTax{}).TableName(), "id_tax"), + Amount: gormcol.Field{}.Set((&PsOrderInvoiceTax{}).TableName(), "amount"), +} diff --git a/app/model/dbmodel/ps_order_message.go b/app/model/dbmodel/ps_order_message.go new file mode 100644 index 0000000..bf33937 --- /dev/null +++ b/app/model/dbmodel/ps_order_message.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderMessage = "ps_order_message" + +// PsOrderMessage mapped from table +type PsOrderMessage struct { + IDOrderMessage int32 `gorm:"column:id_order_message;primaryKey;autoIncrement:true" json:"id_order_message"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsOrderMessage's table name +func (*PsOrderMessage) TableName() string { + return TableNamePsOrderMessage +} + +var PsOrderMessageCols = struct { + IDOrderMessage gormcol.Field + DateAdd gormcol.Field +}{ + IDOrderMessage: gormcol.Field{}.Set((&PsOrderMessage{}).TableName(), "id_order_message"), + DateAdd: gormcol.Field{}.Set((&PsOrderMessage{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_order_message_lang.go b/app/model/dbmodel/ps_order_message_lang.go new file mode 100644 index 0000000..4be8a1d --- /dev/null +++ b/app/model/dbmodel/ps_order_message_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderMessageLang = "ps_order_message_lang" + +// PsOrderMessageLang mapped from table +type PsOrderMessageLang struct { + IDOrderMessage int32 `gorm:"column:id_order_message;primaryKey" json:"id_order_message"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Message string `gorm:"column:message;not null" json:"message"` +} + +// TableName PsOrderMessageLang's table name +func (*PsOrderMessageLang) TableName() string { + return TableNamePsOrderMessageLang +} + +var PsOrderMessageLangCols = struct { + IDOrderMessage gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Message gormcol.Field +}{ + IDOrderMessage: gormcol.Field{}.Set((&PsOrderMessageLang{}).TableName(), "id_order_message"), + IDLang: gormcol.Field{}.Set((&PsOrderMessageLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsOrderMessageLang{}).TableName(), "name"), + Message: gormcol.Field{}.Set((&PsOrderMessageLang{}).TableName(), "message"), +} diff --git a/app/model/dbmodel/ps_order_notes.go b/app/model/dbmodel/ps_order_notes.go new file mode 100644 index 0000000..4c06d4b --- /dev/null +++ b/app/model/dbmodel/ps_order_notes.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderNote = "ps_order_notes" + +// PsOrderNote mapped from table +type PsOrderNote struct { + ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + Note *string `gorm:"column:note" json:"note"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsOrderNote's table name +func (*PsOrderNote) TableName() string { + return TableNamePsOrderNote +} + +var PsOrderNoteCols = struct { + ID gormcol.Field + IDOrder gormcol.Field + IDEmployee gormcol.Field + Note gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + ID: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "id"), + IDOrder: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "id_order"), + IDEmployee: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "id_employee"), + Note: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "note"), + DateAdd: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsOrderNote{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_order_payment.go b/app/model/dbmodel/ps_order_payment.go new file mode 100644 index 0000000..7175108 --- /dev/null +++ b/app/model/dbmodel/ps_order_payment.go @@ -0,0 +1,64 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderPayment = "ps_order_payment" + +// PsOrderPayment mapped from table +type PsOrderPayment struct { + IDOrderPayment int32 `gorm:"column:id_order_payment;primaryKey;autoIncrement:true" json:"id_order_payment"` + OrderReference *string `gorm:"column:order_reference;index:order_reference,priority:1" json:"order_reference"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` + Amount float64 `gorm:"column:amount;not null" json:"amount"` + PaymentMethod string `gorm:"column:payment_method;not null" json:"payment_method"` + ConversionRate float64 `gorm:"column:conversion_rate;not null;default:1.000000" json:"conversion_rate"` + TransactionID *string `gorm:"column:transaction_id" json:"transaction_id"` + CardNumber *string `gorm:"column:card_number" json:"card_number"` + CardBrand *string `gorm:"column:card_brand" json:"card_brand"` + CardExpiration *string `gorm:"column:card_expiration" json:"card_expiration"` + CardHolder *string `gorm:"column:card_holder" json:"card_holder"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + IDPaymentModule int32 `gorm:"column:id_payment_module;not null" json:"id_payment_module"` +} + +// TableName PsOrderPayment's table name +func (*PsOrderPayment) TableName() string { + return TableNamePsOrderPayment +} + +var PsOrderPaymentCols = struct { + IDOrderPayment gormcol.Field + OrderReference gormcol.Field + IDCurrency gormcol.Field + Amount gormcol.Field + PaymentMethod gormcol.Field + ConversionRate gormcol.Field + TransactionID gormcol.Field + CardNumber gormcol.Field + CardBrand gormcol.Field + CardExpiration gormcol.Field + CardHolder gormcol.Field + DateAdd gormcol.Field + IDPaymentModule gormcol.Field +}{ + IDOrderPayment: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "id_order_payment"), + OrderReference: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "order_reference"), + IDCurrency: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "id_currency"), + Amount: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "amount"), + PaymentMethod: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "payment_method"), + ConversionRate: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "conversion_rate"), + TransactionID: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "transaction_id"), + CardNumber: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "card_number"), + CardBrand: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "card_brand"), + CardExpiration: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "card_expiration"), + CardHolder: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "card_holder"), + DateAdd: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "date_add"), + IDPaymentModule: gormcol.Field{}.Set((&PsOrderPayment{}).TableName(), "id_payment_module"), +} diff --git a/app/model/dbmodel/ps_order_payu_payments.go b/app/model/dbmodel/ps_order_payu_payments.go new file mode 100644 index 0000000..5e82205 --- /dev/null +++ b/app/model/dbmodel/ps_order_payu_payments.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderPayuPayment = "ps_order_payu_payments" + +// PsOrderPayuPayment mapped from table +type PsOrderPayuPayment struct { + IDPayuPayment int32 `gorm:"column:id_payu_payment;primaryKey;autoIncrement:true" json:"id_payu_payment"` + IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"` + IDCart int32 `gorm:"column:id_cart;not null" json:"id_cart"` + IDSession string `gorm:"column:id_session;not null" json:"id_session"` + ExtOrderID string `gorm:"column:ext_order_id;not null" json:"ext_order_id"` + Status string `gorm:"column:status;not null" json:"status"` + CreateAt *time.Time `gorm:"column:create_at" json:"create_at"` + UpdateAt *time.Time `gorm:"column:update_at" json:"update_at"` +} + +// TableName PsOrderPayuPayment's table name +func (*PsOrderPayuPayment) TableName() string { + return TableNamePsOrderPayuPayment +} + +var PsOrderPayuPaymentCols = struct { + IDPayuPayment gormcol.Field + IDOrder gormcol.Field + IDCart gormcol.Field + IDSession gormcol.Field + ExtOrderID gormcol.Field + Status gormcol.Field + CreateAt gormcol.Field + UpdateAt gormcol.Field +}{ + IDPayuPayment: gormcol.Field{}.Set((&PsOrderPayuPayment{}).TableName(), "id_payu_payment"), + IDOrder: gormcol.Field{}.Set((&PsOrderPayuPayment{}).TableName(), "id_order"), + IDCart: gormcol.Field{}.Set((&PsOrderPayuPayment{}).TableName(), "id_cart"), + IDSession: gormcol.Field{}.Set((&PsOrderPayuPayment{}).TableName(), "id_session"), + ExtOrderID: gormcol.Field{}.Set((&PsOrderPayuPayment{}).TableName(), "ext_order_id"), + Status: gormcol.Field{}.Set((&PsOrderPayuPayment{}).TableName(), "status"), + CreateAt: gormcol.Field{}.Set((&PsOrderPayuPayment{}).TableName(), "create_at"), + UpdateAt: gormcol.Field{}.Set((&PsOrderPayuPayment{}).TableName(), "update_at"), +} diff --git a/app/model/dbmodel/ps_order_return.go b/app/model/dbmodel/ps_order_return.go new file mode 100644 index 0000000..ac2f8ef --- /dev/null +++ b/app/model/dbmodel/ps_order_return.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderReturn = "ps_order_return" + +// PsOrderReturn mapped from table +type PsOrderReturn struct { + IDOrderReturn int32 `gorm:"column:id_order_return;primaryKey;autoIncrement:true" json:"id_order_return"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:order_return_customer,priority:1" json:"id_customer"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + State bool `gorm:"column:state;not null;default:1" json:"state"` + Question string `gorm:"column:question;not null" json:"question"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsOrderReturn's table name +func (*PsOrderReturn) TableName() string { + return TableNamePsOrderReturn +} + +var PsOrderReturnCols = struct { + IDOrderReturn gormcol.Field + IDCustomer gormcol.Field + IDOrder gormcol.Field + State gormcol.Field + Question gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrderReturn: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "id_order_return"), + IDCustomer: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "id_customer"), + IDOrder: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "id_order"), + State: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "state"), + Question: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "question"), + DateAdd: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsOrderReturn{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_order_return_detail.go b/app/model/dbmodel/ps_order_return_detail.go new file mode 100644 index 0000000..88bf157 --- /dev/null +++ b/app/model/dbmodel/ps_order_return_detail.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderReturnDetail = "ps_order_return_detail" + +// PsOrderReturnDetail mapped from table +type PsOrderReturnDetail struct { + IDOrderReturn int32 `gorm:"column:id_order_return;primaryKey" json:"id_order_return"` + IDOrderDetail int32 `gorm:"column:id_order_detail;primaryKey" json:"id_order_detail"` + IDCustomization int32 `gorm:"column:id_customization;primaryKey" json:"id_customization"` + ProductQuantity int32 `gorm:"column:product_quantity;not null" json:"product_quantity"` +} + +// TableName PsOrderReturnDetail's table name +func (*PsOrderReturnDetail) TableName() string { + return TableNamePsOrderReturnDetail +} + +var PsOrderReturnDetailCols = struct { + IDOrderReturn gormcol.Field + IDOrderDetail gormcol.Field + IDCustomization gormcol.Field + ProductQuantity gormcol.Field +}{ + IDOrderReturn: gormcol.Field{}.Set((&PsOrderReturnDetail{}).TableName(), "id_order_return"), + IDOrderDetail: gormcol.Field{}.Set((&PsOrderReturnDetail{}).TableName(), "id_order_detail"), + IDCustomization: gormcol.Field{}.Set((&PsOrderReturnDetail{}).TableName(), "id_customization"), + ProductQuantity: gormcol.Field{}.Set((&PsOrderReturnDetail{}).TableName(), "product_quantity"), +} diff --git a/app/model/dbmodel/ps_order_return_state.go b/app/model/dbmodel/ps_order_return_state.go new file mode 100644 index 0000000..aa0e902 --- /dev/null +++ b/app/model/dbmodel/ps_order_return_state.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderReturnState = "ps_order_return_state" + +// PsOrderReturnState mapped from table +type PsOrderReturnState struct { + IDOrderReturnState int32 `gorm:"column:id_order_return_state;primaryKey;autoIncrement:true" json:"id_order_return_state"` + Color *string `gorm:"column:color" json:"color"` +} + +// TableName PsOrderReturnState's table name +func (*PsOrderReturnState) TableName() string { + return TableNamePsOrderReturnState +} + +var PsOrderReturnStateCols = struct { + IDOrderReturnState gormcol.Field + Color gormcol.Field +}{ + IDOrderReturnState: gormcol.Field{}.Set((&PsOrderReturnState{}).TableName(), "id_order_return_state"), + Color: gormcol.Field{}.Set((&PsOrderReturnState{}).TableName(), "color"), +} diff --git a/app/model/dbmodel/ps_order_return_state_lang.go b/app/model/dbmodel/ps_order_return_state_lang.go new file mode 100644 index 0000000..6d760a6 --- /dev/null +++ b/app/model/dbmodel/ps_order_return_state_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderReturnStateLang = "ps_order_return_state_lang" + +// PsOrderReturnStateLang mapped from table +type PsOrderReturnStateLang struct { + IDOrderReturnState int32 `gorm:"column:id_order_return_state;primaryKey" json:"id_order_return_state"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsOrderReturnStateLang's table name +func (*PsOrderReturnStateLang) TableName() string { + return TableNamePsOrderReturnStateLang +} + +var PsOrderReturnStateLangCols = struct { + IDOrderReturnState gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDOrderReturnState: gormcol.Field{}.Set((&PsOrderReturnStateLang{}).TableName(), "id_order_return_state"), + IDLang: gormcol.Field{}.Set((&PsOrderReturnStateLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsOrderReturnStateLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_order_slip.go b/app/model/dbmodel/ps_order_slip.go new file mode 100644 index 0000000..e1644c4 --- /dev/null +++ b/app/model/dbmodel/ps_order_slip.go @@ -0,0 +1,70 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrderSlip = "ps_order_slip" + +// PsOrderSlip mapped from table +type PsOrderSlip struct { + IDOrderSlip int32 `gorm:"column:id_order_slip;primaryKey;autoIncrement:true" json:"id_order_slip"` + ConversionRate float64 `gorm:"column:conversion_rate;not null;default:1.000000" json:"conversion_rate"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:order_slip_customer,priority:1" json:"id_customer"` + IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"` + TotalProductsTaxExcl *float64 `gorm:"column:total_products_tax_excl" json:"total_products_tax_excl"` + TotalProductsTaxIncl *float64 `gorm:"column:total_products_tax_incl" json:"total_products_tax_incl"` + TotalShippingTaxExcl *float64 `gorm:"column:total_shipping_tax_excl" json:"total_shipping_tax_excl"` + TotalShippingTaxIncl *float64 `gorm:"column:total_shipping_tax_incl" json:"total_shipping_tax_incl"` + ShippingCost int32 `gorm:"column:shipping_cost;not null" json:"shipping_cost"` + Amount float64 `gorm:"column:amount;not null" json:"amount"` + ShippingCostAmount float64 `gorm:"column:shipping_cost_amount;not null" json:"shipping_cost_amount"` + Partial bool `gorm:"column:partial;not null" json:"partial"` + OrderSlipType bool `gorm:"column:order_slip_type;not null" json:"order_slip_type"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsOrderSlip's table name +func (*PsOrderSlip) TableName() string { + return TableNamePsOrderSlip +} + +var PsOrderSlipCols = struct { + IDOrderSlip gormcol.Field + ConversionRate gormcol.Field + IDCustomer gormcol.Field + IDOrder gormcol.Field + TotalProductsTaxExcl gormcol.Field + TotalProductsTaxIncl gormcol.Field + TotalShippingTaxExcl gormcol.Field + TotalShippingTaxIncl gormcol.Field + ShippingCost gormcol.Field + Amount gormcol.Field + ShippingCostAmount gormcol.Field + Partial gormcol.Field + OrderSlipType gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrderSlip: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "id_order_slip"), + ConversionRate: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "conversion_rate"), + IDCustomer: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "id_customer"), + IDOrder: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "id_order"), + TotalProductsTaxExcl: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "total_products_tax_excl"), + TotalProductsTaxIncl: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "total_products_tax_incl"), + TotalShippingTaxExcl: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "total_shipping_tax_excl"), + TotalShippingTaxIncl: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "total_shipping_tax_incl"), + ShippingCost: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "shipping_cost"), + Amount: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "amount"), + ShippingCostAmount: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "shipping_cost_amount"), + Partial: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "partial"), + OrderSlipType: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "order_slip_type"), + DateAdd: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_order_slip_detail.go b/app/model/dbmodel/ps_order_slip_detail.go new file mode 100644 index 0000000..1347e11 --- /dev/null +++ b/app/model/dbmodel/ps_order_slip_detail.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderSlipDetail = "ps_order_slip_detail" + +// PsOrderSlipDetail mapped from table +type PsOrderSlipDetail struct { + IDOrderSlip int32 `gorm:"column:id_order_slip;primaryKey" json:"id_order_slip"` + IDOrderDetail int32 `gorm:"column:id_order_detail;primaryKey" json:"id_order_detail"` + ProductQuantity int32 `gorm:"column:product_quantity;not null" json:"product_quantity"` + UnitPriceTaxExcl *float64 `gorm:"column:unit_price_tax_excl" json:"unit_price_tax_excl"` + UnitPriceTaxIncl *float64 `gorm:"column:unit_price_tax_incl" json:"unit_price_tax_incl"` + TotalPriceTaxExcl *float64 `gorm:"column:total_price_tax_excl" json:"total_price_tax_excl"` + TotalPriceTaxIncl *float64 `gorm:"column:total_price_tax_incl" json:"total_price_tax_incl"` + AmountTaxExcl *float64 `gorm:"column:amount_tax_excl" json:"amount_tax_excl"` + AmountTaxIncl *float64 `gorm:"column:amount_tax_incl" json:"amount_tax_incl"` +} + +// TableName PsOrderSlipDetail's table name +func (*PsOrderSlipDetail) TableName() string { + return TableNamePsOrderSlipDetail +} + +var PsOrderSlipDetailCols = struct { + IDOrderSlip gormcol.Field + IDOrderDetail gormcol.Field + ProductQuantity gormcol.Field + UnitPriceTaxExcl gormcol.Field + UnitPriceTaxIncl gormcol.Field + TotalPriceTaxExcl gormcol.Field + TotalPriceTaxIncl gormcol.Field + AmountTaxExcl gormcol.Field + AmountTaxIncl gormcol.Field +}{ + IDOrderSlip: gormcol.Field{}.Set((&PsOrderSlipDetail{}).TableName(), "id_order_slip"), + IDOrderDetail: gormcol.Field{}.Set((&PsOrderSlipDetail{}).TableName(), "id_order_detail"), + ProductQuantity: gormcol.Field{}.Set((&PsOrderSlipDetail{}).TableName(), "product_quantity"), + UnitPriceTaxExcl: gormcol.Field{}.Set((&PsOrderSlipDetail{}).TableName(), "unit_price_tax_excl"), + UnitPriceTaxIncl: gormcol.Field{}.Set((&PsOrderSlipDetail{}).TableName(), "unit_price_tax_incl"), + TotalPriceTaxExcl: gormcol.Field{}.Set((&PsOrderSlipDetail{}).TableName(), "total_price_tax_excl"), + TotalPriceTaxIncl: gormcol.Field{}.Set((&PsOrderSlipDetail{}).TableName(), "total_price_tax_incl"), + AmountTaxExcl: gormcol.Field{}.Set((&PsOrderSlipDetail{}).TableName(), "amount_tax_excl"), + AmountTaxIncl: gormcol.Field{}.Set((&PsOrderSlipDetail{}).TableName(), "amount_tax_incl"), +} diff --git a/app/model/dbmodel/ps_order_slip_detail_tax.go b/app/model/dbmodel/ps_order_slip_detail_tax.go new file mode 100644 index 0000000..49e5a80 --- /dev/null +++ b/app/model/dbmodel/ps_order_slip_detail_tax.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderSlipDetailTax = "ps_order_slip_detail_tax" + +// PsOrderSlipDetailTax mapped from table +type PsOrderSlipDetailTax struct { + IDOrderSlipDetail int32 `gorm:"column:id_order_slip_detail;not null;index:id_order_slip_detail,priority:1" json:"id_order_slip_detail"` + IDTax int32 `gorm:"column:id_tax;not null;index:id_tax,priority:1" json:"id_tax"` + UnitAmount float64 `gorm:"column:unit_amount;not null;default:0.000000" json:"unit_amount"` + TotalAmount float64 `gorm:"column:total_amount;not null;default:0.000000" json:"total_amount"` +} + +// TableName PsOrderSlipDetailTax's table name +func (*PsOrderSlipDetailTax) TableName() string { + return TableNamePsOrderSlipDetailTax +} + +var PsOrderSlipDetailTaxCols = struct { + IDOrderSlipDetail gormcol.Field + IDTax gormcol.Field + UnitAmount gormcol.Field + TotalAmount gormcol.Field +}{ + IDOrderSlipDetail: gormcol.Field{}.Set((&PsOrderSlipDetailTax{}).TableName(), "id_order_slip_detail"), + IDTax: gormcol.Field{}.Set((&PsOrderSlipDetailTax{}).TableName(), "id_tax"), + UnitAmount: gormcol.Field{}.Set((&PsOrderSlipDetailTax{}).TableName(), "unit_amount"), + TotalAmount: gormcol.Field{}.Set((&PsOrderSlipDetailTax{}).TableName(), "total_amount"), +} diff --git a/app/model/dbmodel/ps_order_state.go b/app/model/dbmodel/ps_order_state.go new file mode 100644 index 0000000..5ac4d79 --- /dev/null +++ b/app/model/dbmodel/ps_order_state.go @@ -0,0 +1,64 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderState = "ps_order_state" + +// PsOrderState mapped from table +type PsOrderState struct { + IDOrderState int32 `gorm:"column:id_order_state;primaryKey;autoIncrement:true" json:"id_order_state"` + Invoice *bool `gorm:"column:invoice" json:"invoice"` + SendEmail bool `gorm:"column:send_email;not null" json:"send_email"` + ModuleName *string `gorm:"column:module_name;index:module_name,priority:1" json:"module_name"` + Color *string `gorm:"column:color" json:"color"` + Unremovable bool `gorm:"column:unremovable;not null" json:"unremovable"` + Hidden bool `gorm:"column:hidden;not null" json:"hidden"` + Logable bool `gorm:"column:logable;not null" json:"logable"` + Delivery bool `gorm:"column:delivery;not null" json:"delivery"` + Shipped bool `gorm:"column:shipped;not null" json:"shipped"` + Paid bool `gorm:"column:paid;not null" json:"paid"` + PdfInvoice bool `gorm:"column:pdf_invoice;not null" json:"pdf_invoice"` + PdfDelivery bool `gorm:"column:pdf_delivery;not null" json:"pdf_delivery"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsOrderState's table name +func (*PsOrderState) TableName() string { + return TableNamePsOrderState +} + +var PsOrderStateCols = struct { + IDOrderState gormcol.Field + Invoice gormcol.Field + SendEmail gormcol.Field + ModuleName gormcol.Field + Color gormcol.Field + Unremovable gormcol.Field + Hidden gormcol.Field + Logable gormcol.Field + Delivery gormcol.Field + Shipped gormcol.Field + Paid gormcol.Field + PdfInvoice gormcol.Field + PdfDelivery gormcol.Field + Deleted gormcol.Field +}{ + IDOrderState: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "id_order_state"), + Invoice: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "invoice"), + SendEmail: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "send_email"), + ModuleName: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "module_name"), + Color: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "color"), + Unremovable: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "unremovable"), + Hidden: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "hidden"), + Logable: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "logable"), + Delivery: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "delivery"), + Shipped: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "shipped"), + Paid: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "paid"), + PdfInvoice: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "pdf_invoice"), + PdfDelivery: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "pdf_delivery"), + Deleted: gormcol.Field{}.Set((&PsOrderState{}).TableName(), "deleted"), +} diff --git a/app/model/dbmodel/ps_order_state_lang.go b/app/model/dbmodel/ps_order_state_lang.go new file mode 100644 index 0000000..3aa2a13 --- /dev/null +++ b/app/model/dbmodel/ps_order_state_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsOrderStateLang = "ps_order_state_lang" + +// PsOrderStateLang mapped from table +type PsOrderStateLang struct { + IDOrderState int32 `gorm:"column:id_order_state;primaryKey" json:"id_order_state"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Template string `gorm:"column:template;not null" json:"template"` +} + +// TableName PsOrderStateLang's table name +func (*PsOrderStateLang) TableName() string { + return TableNamePsOrderStateLang +} + +var PsOrderStateLangCols = struct { + IDOrderState gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Template gormcol.Field +}{ + IDOrderState: gormcol.Field{}.Set((&PsOrderStateLang{}).TableName(), "id_order_state"), + IDLang: gormcol.Field{}.Set((&PsOrderStateLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsOrderStateLang{}).TableName(), "name"), + Template: gormcol.Field{}.Set((&PsOrderStateLang{}).TableName(), "template"), +} diff --git a/app/model/dbmodel/ps_orders.go b/app/model/dbmodel/ps_orders.go new file mode 100644 index 0000000..52b4b1b --- /dev/null +++ b/app/model/dbmodel/ps_orders.go @@ -0,0 +1,163 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsOrder = "ps_orders" + +// PsOrder mapped from table +type PsOrder struct { + IDOrder int32 `gorm:"column:id_order;primaryKey;autoIncrement:true" json:"id_order"` + Reference *string `gorm:"column:reference;index:reference,priority:1" json:"reference"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;index:id_shop_group,priority:1;default:1" json:"id_shop_group"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;default:1" json:"id_shop"` + IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"` + IDCustomer int32 `gorm:"column:id_customer;not null;index:id_customer,priority:1" json:"id_customer"` + IDCart int32 `gorm:"column:id_cart;not null;index:id_cart,priority:1" json:"id_cart"` + IDCurrency int32 `gorm:"column:id_currency;not null;index:id_currency,priority:1" json:"id_currency"` + IDAddressDelivery int32 `gorm:"column:id_address_delivery;not null;index:id_address_delivery,priority:1" json:"id_address_delivery"` + IDAddressInvoice int32 `gorm:"column:id_address_invoice;not null;index:id_address_invoice,priority:1" json:"id_address_invoice"` + CurrentState int32 `gorm:"column:current_state;not null;index:current_state,priority:1" json:"current_state"` + SecureKey string `gorm:"column:secure_key;not null;default:-1" json:"secure_key"` + Payment string `gorm:"column:payment;not null" json:"payment"` + ConversionRate float64 `gorm:"column:conversion_rate;not null;default:1.000000" json:"conversion_rate"` + Module *string `gorm:"column:module" json:"module"` + Recyclable bool `gorm:"column:recyclable;not null" json:"recyclable"` + Gift bool `gorm:"column:gift;not null" json:"gift"` + GiftMessage *string `gorm:"column:gift_message" json:"gift_message"` + MobileTheme bool `gorm:"column:mobile_theme;not null" json:"mobile_theme"` + ShippingNumber *string `gorm:"column:shipping_number" json:"shipping_number"` + TotalDiscounts float64 `gorm:"column:total_discounts;not null;default:0.000000" json:"total_discounts"` + TotalDiscountsTaxIncl float64 `gorm:"column:total_discounts_tax_incl;not null;default:0.000000" json:"total_discounts_tax_incl"` + TotalDiscountsTaxExcl float64 `gorm:"column:total_discounts_tax_excl;not null;default:0.000000" json:"total_discounts_tax_excl"` + TotalPaid float64 `gorm:"column:total_paid;not null;default:0.000000" json:"total_paid"` + TotalPaidTaxIncl float64 `gorm:"column:total_paid_tax_incl;not null;default:0.000000" json:"total_paid_tax_incl"` + TotalPaidTaxExcl float64 `gorm:"column:total_paid_tax_excl;not null;default:0.000000" json:"total_paid_tax_excl"` + TotalPaidReal float64 `gorm:"column:total_paid_real;not null;default:0.000000" json:"total_paid_real"` + TotalProducts float64 `gorm:"column:total_products;not null;default:0.000000" json:"total_products"` + TotalProductsWt float64 `gorm:"column:total_products_wt;not null;default:0.000000" json:"total_products_wt"` + TotalShipping float64 `gorm:"column:total_shipping;not null;default:0.000000" json:"total_shipping"` + TotalShippingTaxIncl float64 `gorm:"column:total_shipping_tax_incl;not null;default:0.000000" json:"total_shipping_tax_incl"` + TotalShippingTaxExcl float64 `gorm:"column:total_shipping_tax_excl;not null;default:0.000000" json:"total_shipping_tax_excl"` + CarrierTaxRate float64 `gorm:"column:carrier_tax_rate;not null;default:0.000" json:"carrier_tax_rate"` + TotalWrapping float64 `gorm:"column:total_wrapping;not null;default:0.000000" json:"total_wrapping"` + TotalWrappingTaxIncl float64 `gorm:"column:total_wrapping_tax_incl;not null;default:0.000000" json:"total_wrapping_tax_incl"` + TotalWrappingTaxExcl float64 `gorm:"column:total_wrapping_tax_excl;not null;default:0.000000" json:"total_wrapping_tax_excl"` + RoundMode bool `gorm:"column:round_mode;not null;default:2" json:"round_mode"` + RoundType bool `gorm:"column:round_type;not null;default:1" json:"round_type"` + InvoiceNumber int32 `gorm:"column:invoice_number;not null;index:invoice_number,priority:1" json:"invoice_number"` + DeliveryNumber int32 `gorm:"column:delivery_number;not null" json:"delivery_number"` + InvoiceDate time.Time `gorm:"column:invoice_date;not null" json:"invoice_date"` + DeliveryDate time.Time `gorm:"column:delivery_date;not null" json:"delivery_date"` + Valid int32 `gorm:"column:valid;not null" json:"valid"` + DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsOrder's table name +func (*PsOrder) TableName() string { + return TableNamePsOrder +} + +var PsOrderCols = struct { + IDOrder gormcol.Field + Reference gormcol.Field + IDShopGroup gormcol.Field + IDShop gormcol.Field + IDCarrier gormcol.Field + IDLang gormcol.Field + IDCustomer gormcol.Field + IDCart gormcol.Field + IDCurrency gormcol.Field + IDAddressDelivery gormcol.Field + IDAddressInvoice gormcol.Field + CurrentState gormcol.Field + SecureKey gormcol.Field + Payment gormcol.Field + ConversionRate gormcol.Field + Module gormcol.Field + Recyclable gormcol.Field + Gift gormcol.Field + GiftMessage gormcol.Field + MobileTheme gormcol.Field + ShippingNumber gormcol.Field + TotalDiscounts gormcol.Field + TotalDiscountsTaxIncl gormcol.Field + TotalDiscountsTaxExcl gormcol.Field + TotalPaid gormcol.Field + TotalPaidTaxIncl gormcol.Field + TotalPaidTaxExcl gormcol.Field + TotalPaidReal gormcol.Field + TotalProducts gormcol.Field + TotalProductsWt gormcol.Field + TotalShipping gormcol.Field + TotalShippingTaxIncl gormcol.Field + TotalShippingTaxExcl gormcol.Field + CarrierTaxRate gormcol.Field + TotalWrapping gormcol.Field + TotalWrappingTaxIncl gormcol.Field + TotalWrappingTaxExcl gormcol.Field + RoundMode gormcol.Field + RoundType gormcol.Field + InvoiceNumber gormcol.Field + DeliveryNumber gormcol.Field + InvoiceDate gormcol.Field + DeliveryDate gormcol.Field + Valid gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrder: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_order"), + Reference: gormcol.Field{}.Set((&PsOrder{}).TableName(), "reference"), + IDShopGroup: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_shop_group"), + IDShop: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_shop"), + IDCarrier: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_carrier"), + IDLang: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_lang"), + IDCustomer: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_customer"), + IDCart: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_cart"), + IDCurrency: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_currency"), + IDAddressDelivery: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_address_delivery"), + IDAddressInvoice: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_address_invoice"), + CurrentState: gormcol.Field{}.Set((&PsOrder{}).TableName(), "current_state"), + SecureKey: gormcol.Field{}.Set((&PsOrder{}).TableName(), "secure_key"), + Payment: gormcol.Field{}.Set((&PsOrder{}).TableName(), "payment"), + ConversionRate: gormcol.Field{}.Set((&PsOrder{}).TableName(), "conversion_rate"), + Module: gormcol.Field{}.Set((&PsOrder{}).TableName(), "module"), + Recyclable: gormcol.Field{}.Set((&PsOrder{}).TableName(), "recyclable"), + Gift: gormcol.Field{}.Set((&PsOrder{}).TableName(), "gift"), + GiftMessage: gormcol.Field{}.Set((&PsOrder{}).TableName(), "gift_message"), + MobileTheme: gormcol.Field{}.Set((&PsOrder{}).TableName(), "mobile_theme"), + ShippingNumber: gormcol.Field{}.Set((&PsOrder{}).TableName(), "shipping_number"), + TotalDiscounts: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_discounts"), + TotalDiscountsTaxIncl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_discounts_tax_incl"), + TotalDiscountsTaxExcl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_discounts_tax_excl"), + TotalPaid: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_paid"), + TotalPaidTaxIncl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_paid_tax_incl"), + TotalPaidTaxExcl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_paid_tax_excl"), + TotalPaidReal: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_paid_real"), + TotalProducts: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_products"), + TotalProductsWt: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_products_wt"), + TotalShipping: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_shipping"), + TotalShippingTaxIncl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_shipping_tax_incl"), + TotalShippingTaxExcl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_shipping_tax_excl"), + CarrierTaxRate: gormcol.Field{}.Set((&PsOrder{}).TableName(), "carrier_tax_rate"), + TotalWrapping: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_wrapping"), + TotalWrappingTaxIncl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_wrapping_tax_incl"), + TotalWrappingTaxExcl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_wrapping_tax_excl"), + RoundMode: gormcol.Field{}.Set((&PsOrder{}).TableName(), "round_mode"), + RoundType: gormcol.Field{}.Set((&PsOrder{}).TableName(), "round_type"), + InvoiceNumber: gormcol.Field{}.Set((&PsOrder{}).TableName(), "invoice_number"), + DeliveryNumber: gormcol.Field{}.Set((&PsOrder{}).TableName(), "delivery_number"), + InvoiceDate: gormcol.Field{}.Set((&PsOrder{}).TableName(), "invoice_date"), + DeliveryDate: gormcol.Field{}.Set((&PsOrder{}).TableName(), "delivery_date"), + Valid: gormcol.Field{}.Set((&PsOrder{}).TableName(), "valid"), + DateAdd: gormcol.Field{}.Set((&PsOrder{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsOrder{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_pack.go b/app/model/dbmodel/ps_pack.go new file mode 100644 index 0000000..429d6a7 --- /dev/null +++ b/app/model/dbmodel/ps_pack.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsPack = "ps_pack" + +// PsPack mapped from table +type PsPack struct { + IDProductPack int32 `gorm:"column:id_product_pack;primaryKey" json:"id_product_pack"` + IDProductItem int32 `gorm:"column:id_product_item;primaryKey;index:product_item,priority:1" json:"id_product_item"` + IDProductAttributeItem int32 `gorm:"column:id_product_attribute_item;primaryKey;index:product_item,priority:2" json:"id_product_attribute_item"` + Quantity int32 `gorm:"column:quantity;not null;default:1" json:"quantity"` +} + +// TableName PsPack's table name +func (*PsPack) TableName() string { + return TableNamePsPack +} + +var PsPackCols = struct { + IDProductPack gormcol.Field + IDProductItem gormcol.Field + IDProductAttributeItem gormcol.Field + Quantity gormcol.Field +}{ + IDProductPack: gormcol.Field{}.Set((&PsPack{}).TableName(), "id_product_pack"), + IDProductItem: gormcol.Field{}.Set((&PsPack{}).TableName(), "id_product_item"), + IDProductAttributeItem: gormcol.Field{}.Set((&PsPack{}).TableName(), "id_product_attribute_item"), + Quantity: gormcol.Field{}.Set((&PsPack{}).TableName(), "quantity"), +} diff --git a/app/model/dbmodel/ps_page.go b/app/model/dbmodel/ps_page.go new file mode 100644 index 0000000..7cad3fb --- /dev/null +++ b/app/model/dbmodel/ps_page.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsPage = "ps_page" + +// PsPage mapped from table +type PsPage struct { + IDPage int32 `gorm:"column:id_page;primaryKey;autoIncrement:true" json:"id_page"` + IDPageType int32 `gorm:"column:id_page_type;not null;index:id_page_type,priority:1" json:"id_page_type"` + IDObject *int32 `gorm:"column:id_object;index:id_object,priority:1" json:"id_object"` +} + +// TableName PsPage's table name +func (*PsPage) TableName() string { + return TableNamePsPage +} + +var PsPageCols = struct { + IDPage gormcol.Field + IDPageType gormcol.Field + IDObject gormcol.Field +}{ + IDPage: gormcol.Field{}.Set((&PsPage{}).TableName(), "id_page"), + IDPageType: gormcol.Field{}.Set((&PsPage{}).TableName(), "id_page_type"), + IDObject: gormcol.Field{}.Set((&PsPage{}).TableName(), "id_object"), +} diff --git a/app/model/dbmodel/ps_page_type.go b/app/model/dbmodel/ps_page_type.go new file mode 100644 index 0000000..399b7e2 --- /dev/null +++ b/app/model/dbmodel/ps_page_type.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsPageType = "ps_page_type" + +// PsPageType mapped from table +type PsPageType struct { + IDPageType int32 `gorm:"column:id_page_type;primaryKey;autoIncrement:true" json:"id_page_type"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` +} + +// TableName PsPageType's table name +func (*PsPageType) TableName() string { + return TableNamePsPageType +} + +var PsPageTypeCols = struct { + IDPageType gormcol.Field + Name gormcol.Field +}{ + IDPageType: gormcol.Field{}.Set((&PsPageType{}).TableName(), "id_page_type"), + Name: gormcol.Field{}.Set((&PsPageType{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_page_viewed.go b/app/model/dbmodel/ps_page_viewed.go new file mode 100644 index 0000000..2c21322 --- /dev/null +++ b/app/model/dbmodel/ps_page_viewed.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsPageViewed = "ps_page_viewed" + +// PsPageViewed mapped from table +type PsPageViewed struct { + IDPage int32 `gorm:"column:id_page;primaryKey" json:"id_page"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + IDDateRange int32 `gorm:"column:id_date_range;primaryKey" json:"id_date_range"` + Counter int32 `gorm:"column:counter;not null" json:"counter"` +} + +// TableName PsPageViewed's table name +func (*PsPageViewed) TableName() string { + return TableNamePsPageViewed +} + +var PsPageViewedCols = struct { + IDPage gormcol.Field + IDShopGroup gormcol.Field + IDShop gormcol.Field + IDDateRange gormcol.Field + Counter gormcol.Field +}{ + IDPage: gormcol.Field{}.Set((&PsPageViewed{}).TableName(), "id_page"), + IDShopGroup: gormcol.Field{}.Set((&PsPageViewed{}).TableName(), "id_shop_group"), + IDShop: gormcol.Field{}.Set((&PsPageViewed{}).TableName(), "id_shop"), + IDDateRange: gormcol.Field{}.Set((&PsPageViewed{}).TableName(), "id_date_range"), + Counter: gormcol.Field{}.Set((&PsPageViewed{}).TableName(), "counter"), +} diff --git a/app/model/dbmodel/ps_pagenotfound.go b/app/model/dbmodel/ps_pagenotfound.go new file mode 100644 index 0000000..a72d0ac --- /dev/null +++ b/app/model/dbmodel/ps_pagenotfound.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsPagenotfound = "ps_pagenotfound" + +// PsPagenotfound mapped from table +type PsPagenotfound struct { + IDPagenotfound int32 `gorm:"column:id_pagenotfound;primaryKey;autoIncrement:true" json:"id_pagenotfound"` + IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"` + RequestURI string `gorm:"column:request_uri;not null" json:"request_uri"` + HTTPReferer string `gorm:"column:http_referer;not null" json:"http_referer"` + DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"` +} + +// TableName PsPagenotfound's table name +func (*PsPagenotfound) TableName() string { + return TableNamePsPagenotfound +} + +var PsPagenotfoundCols = struct { + IDPagenotfound gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + RequestURI gormcol.Field + HTTPReferer gormcol.Field + DateAdd gormcol.Field +}{ + IDPagenotfound: gormcol.Field{}.Set((&PsPagenotfound{}).TableName(), "id_pagenotfound"), + IDShop: gormcol.Field{}.Set((&PsPagenotfound{}).TableName(), "id_shop"), + IDShopGroup: gormcol.Field{}.Set((&PsPagenotfound{}).TableName(), "id_shop_group"), + RequestURI: gormcol.Field{}.Set((&PsPagenotfound{}).TableName(), "request_uri"), + HTTPReferer: gormcol.Field{}.Set((&PsPagenotfound{}).TableName(), "http_referer"), + DateAdd: gormcol.Field{}.Set((&PsPagenotfound{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_pocztapolskaen_order.go b/app/model/dbmodel/ps_pocztapolskaen_order.go new file mode 100644 index 0000000..f826500 --- /dev/null +++ b/app/model/dbmodel/ps_pocztapolskaen_order.go @@ -0,0 +1,70 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsPocztapolskaenOrder = "ps_pocztapolskaen_order" + +// PsPocztapolskaenOrder mapped from table +type PsPocztapolskaenOrder struct { + IDPpOrder int32 `gorm:"column:id_pp_order;primaryKey;autoIncrement:true" json:"id_pp_order"` + IDOrder *int32 `gorm:"column:id_order" json:"id_order"` + IDCart *int32 `gorm:"column:id_cart" json:"id_cart"` + IDShipment *string `gorm:"column:id_shipment" json:"id_shipment"` + ShipmentNumber *string `gorm:"column:shipment_number" json:"shipment_number"` + ShipmentType *string `gorm:"column:shipment_type" json:"shipment_type"` + Point *string `gorm:"column:point" json:"point"` + Pni *int32 `gorm:"column:pni" json:"pni"` + Cod bool `gorm:"column:cod;not null" json:"cod"` + IDBuffor *int32 `gorm:"column:id_buffor" json:"id_buffor"` + PostDate *time.Time `gorm:"column:post_date" json:"post_date"` + SendDate *time.Time `gorm:"column:send_date" json:"send_date"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` + IDCarrier *int32 `gorm:"column:id_carrier" json:"id_carrier"` +} + +// TableName PsPocztapolskaenOrder's table name +func (*PsPocztapolskaenOrder) TableName() string { + return TableNamePsPocztapolskaenOrder +} + +var PsPocztapolskaenOrderCols = struct { + IDPpOrder gormcol.Field + IDOrder gormcol.Field + IDCart gormcol.Field + IDShipment gormcol.Field + ShipmentNumber gormcol.Field + ShipmentType gormcol.Field + Point gormcol.Field + Pni gormcol.Field + Cod gormcol.Field + IDBuffor gormcol.Field + PostDate gormcol.Field + SendDate gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + IDCarrier gormcol.Field +}{ + IDPpOrder: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "id_pp_order"), + IDOrder: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "id_order"), + IDCart: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "id_cart"), + IDShipment: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "id_shipment"), + ShipmentNumber: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "shipment_number"), + ShipmentType: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "shipment_type"), + Point: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "point"), + Pni: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "pni"), + Cod: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "cod"), + IDBuffor: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "id_buffor"), + PostDate: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "post_date"), + SendDate: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "send_date"), + DateAdd: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "date_upd"), + IDCarrier: gormcol.Field{}.Set((&PsPocztapolskaenOrder{}).TableName(), "id_carrier"), +} diff --git a/app/model/dbmodel/ps_pocztapolskaen_order_set.go b/app/model/dbmodel/ps_pocztapolskaen_order_set.go new file mode 100644 index 0000000..ce9b32e --- /dev/null +++ b/app/model/dbmodel/ps_pocztapolskaen_order_set.go @@ -0,0 +1,55 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsPocztapolskaenOrderSet = "ps_pocztapolskaen_order_set" + +// PsPocztapolskaenOrderSet mapped from table +type PsPocztapolskaenOrderSet struct { + IDOrderSet int32 `gorm:"column:id_order_set;primaryKey;autoIncrement:true" json:"id_order_set"` + Name *string `gorm:"column:name" json:"name"` + Active *bool `gorm:"column:active" json:"active"` + IDPostOffice *int32 `gorm:"column:id_post_office" json:"id_post_office"` + PostDate *time.Time `gorm:"column:post_date" json:"post_date"` + IDEn int32 `gorm:"column:id_en;not null" json:"id_en"` + IDEnvelope *int32 `gorm:"column:id_envelope" json:"id_envelope"` + EnvelopeStatus *string `gorm:"column:envelope_status" json:"envelope_status"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsPocztapolskaenOrderSet's table name +func (*PsPocztapolskaenOrderSet) TableName() string { + return TableNamePsPocztapolskaenOrderSet +} + +var PsPocztapolskaenOrderSetCols = struct { + IDOrderSet gormcol.Field + Name gormcol.Field + Active gormcol.Field + IDPostOffice gormcol.Field + PostDate gormcol.Field + IDEn gormcol.Field + IDEnvelope gormcol.Field + EnvelopeStatus gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDOrderSet: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "id_order_set"), + Name: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "name"), + Active: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "active"), + IDPostOffice: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "id_post_office"), + PostDate: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "post_date"), + IDEn: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "id_en"), + IDEnvelope: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "id_envelope"), + EnvelopeStatus: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "envelope_status"), + DateAdd: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsPocztapolskaenOrderSet{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_pocztapolskaen_post_office.go b/app/model/dbmodel/ps_pocztapolskaen_post_office.go new file mode 100644 index 0000000..6b149e4 --- /dev/null +++ b/app/model/dbmodel/ps_pocztapolskaen_post_office.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsPocztapolskaenPostOffice = "ps_pocztapolskaen_post_office" + +// PsPocztapolskaenPostOffice mapped from table +type PsPocztapolskaenPostOffice struct { + IDPostOffice int32 `gorm:"column:id_post_office;primaryKey;autoIncrement:true" json:"id_post_office"` + IDEn *int32 `gorm:"column:id_en" json:"id_en"` + Name *string `gorm:"column:name" json:"name"` + Description *string `gorm:"column:description" json:"description"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsPocztapolskaenPostOffice's table name +func (*PsPocztapolskaenPostOffice) TableName() string { + return TableNamePsPocztapolskaenPostOffice +} + +var PsPocztapolskaenPostOfficeCols = struct { + IDPostOffice gormcol.Field + IDEn gormcol.Field + Name gormcol.Field + Description gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDPostOffice: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "id_post_office"), + IDEn: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "id_en"), + Name: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "name"), + Description: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "description"), + DateAdd: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_pocztapolskaen_profile_address.go b/app/model/dbmodel/ps_pocztapolskaen_profile_address.go new file mode 100644 index 0000000..aad10a6 --- /dev/null +++ b/app/model/dbmodel/ps_pocztapolskaen_profile_address.go @@ -0,0 +1,58 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsPocztapolskaenProfileAddress = "ps_pocztapolskaen_profile_address" + +// PsPocztapolskaenProfileAddress mapped from table +type PsPocztapolskaenProfileAddress struct { + IDProfileAddress int32 `gorm:"column:id_profile_address;primaryKey;autoIncrement:true" json:"id_profile_address"` + IDEn *int32 `gorm:"column:id_en" json:"id_en"` + Name *string `gorm:"column:name" json:"name"` + FriendlyName *string `gorm:"column:friendly_name" json:"friendly_name"` + Street *string `gorm:"column:street" json:"street"` + HouseNumber *string `gorm:"column:house_number" json:"house_number"` + PremisesNumber *string `gorm:"column:premises_number" json:"premises_number"` + City *string `gorm:"column:city" json:"city"` + PostalCode *string `gorm:"column:postal_code" json:"postal_code"` + DateAdd *time.Time `gorm:"column:date_add" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsPocztapolskaenProfileAddress's table name +func (*PsPocztapolskaenProfileAddress) TableName() string { + return TableNamePsPocztapolskaenProfileAddress +} + +var PsPocztapolskaenProfileAddressCols = struct { + IDProfileAddress gormcol.Field + IDEn gormcol.Field + Name gormcol.Field + FriendlyName gormcol.Field + Street gormcol.Field + HouseNumber gormcol.Field + PremisesNumber gormcol.Field + City gormcol.Field + PostalCode gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDProfileAddress: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "id_profile_address"), + IDEn: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "id_en"), + Name: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "name"), + FriendlyName: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "friendly_name"), + Street: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "street"), + HouseNumber: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "house_number"), + PremisesNumber: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "premises_number"), + City: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "city"), + PostalCode: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "postal_code"), + DateAdd: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsPocztapolskaenProfileAddress{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_product.go b/app/model/dbmodel/ps_product.go new file mode 100644 index 0000000..540bc0e --- /dev/null +++ b/app/model/dbmodel/ps_product.go @@ -0,0 +1,190 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsProduct = "ps_product" + +// PsProduct mapped from table +type PsProduct struct { + IDProduct int32 `gorm:"column:id_product;primaryKey;autoIncrement:true;index:product_manufacturer,priority:2" json:"id_product"` + IDSupplier *int32 `gorm:"column:id_supplier;index:product_supplier,priority:1" json:"id_supplier"` + IDManufacturer *int32 `gorm:"column:id_manufacturer;index:idx_product_manufacturer,priority:1;index:product_manufacturer,priority:1" json:"id_manufacturer"` + IDCategoryDefault *int32 `gorm:"column:id_category_default;index:id_category_default,priority:1" json:"id_category_default"` + IDShopDefault int32 `gorm:"column:id_shop_default;not null;default:1" json:"id_shop_default"` + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;not null" json:"id_tax_rules_group"` + OnSale bool `gorm:"column:on_sale;not null" json:"on_sale"` + OnlineOnly bool `gorm:"column:online_only;not null" json:"online_only"` + Ean13 *string `gorm:"column:ean13" json:"ean13"` + Isbn *string `gorm:"column:isbn" json:"isbn"` + Upc *string `gorm:"column:upc" json:"upc"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + Quantity int32 `gorm:"column:quantity;not null" json:"quantity"` + MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"` + LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"` + LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"` + Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"` + WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"` + Unity *string `gorm:"column:unity" json:"unity"` + UnitPriceRatio float64 `gorm:"column:unit_price_ratio;not null;default:0.000000" json:"unit_price_ratio"` + IDUnit int32 `gorm:"column:id_unit;not null" json:"id_unit"` + AdditionalShippingCost float64 `gorm:"column:additional_shipping_cost;not null;default:0.00" json:"additional_shipping_cost"` + Reference *string `gorm:"column:reference" json:"reference"` + SupplierReference *string `gorm:"column:supplier_reference" json:"supplier_reference"` + Location *string `gorm:"column:location" json:"location"` + Width float64 `gorm:"column:width;not null;default:0.000000" json:"width"` + Height float64 `gorm:"column:height;not null;default:0.000000" json:"height"` + Depth float64 `gorm:"column:depth;not null;default:0.000000" json:"depth"` + Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"` + OutOfStock int32 `gorm:"column:out_of_stock;not null;default:2" json:"out_of_stock"` + AdditionalDeliveryTimes int32 `gorm:"column:additional_delivery_times;not null;default:1" json:"additional_delivery_times"` + QuantityDiscount *bool `gorm:"column:quantity_discount" json:"quantity_discount"` + Customizable int32 `gorm:"column:customizable;not null" json:"customizable"` + UploadableFiles int32 `gorm:"column:uploadable_files;not null" json:"uploadable_files"` + TextFields int32 `gorm:"column:text_fields;not null" json:"text_fields"` + Active bool `gorm:"column:active;not null" json:"active"` + RedirectType string `gorm:"column:redirect_type;not null" json:"redirect_type"` + IDTypeRedirected int32 `gorm:"column:id_type_redirected;not null" json:"id_type_redirected"` + AvailableForOrder bool `gorm:"column:available_for_order;not null;default:1" json:"available_for_order"` + AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"` + ShowCondition bool `gorm:"column:show_condition;not null" json:"show_condition"` + Condition string `gorm:"column:condition;not null;default:new" json:"condition"` + ShowPrice bool `gorm:"column:show_price;not null;default:1" json:"show_price"` + Indexed bool `gorm:"column:indexed;not null;index:indexed,priority:1" json:"indexed"` + Visibility string `gorm:"column:visibility;not null;index:idx_product_visibility,priority:1;index:idx_ps_product_visibility,priority:1;index:idx_visibility,priority:1;default:both" json:"visibility"` + CacheIsPack bool `gorm:"column:cache_is_pack;not null" json:"cache_is_pack"` + CacheHasAttachments bool `gorm:"column:cache_has_attachments;not null" json:"cache_has_attachments"` + IsVirtual bool `gorm:"column:is_virtual;not null" json:"is_virtual"` + CacheDefaultAttribute *int32 `gorm:"column:cache_default_attribute" json:"cache_default_attribute"` + DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null;index:state,priority:2" json:"date_upd"` + AdvancedStockManagement bool `gorm:"column:advanced_stock_management;not null" json:"advanced_stock_management"` + PackStockType int32 `gorm:"column:pack_stock_type;not null;default:3" json:"pack_stock_type"` + State int32 `gorm:"column:state;not null;index:state,priority:1;default:1" json:"state"` + DeliveryDays *int32 `gorm:"column:delivery_days" json:"delivery_days"` +} + +// TableName PsProduct's table name +func (*PsProduct) TableName() string { + return TableNamePsProduct +} + +var PsProductCols = struct { + IDProduct gormcol.Field + IDSupplier gormcol.Field + IDManufacturer gormcol.Field + IDCategoryDefault gormcol.Field + IDShopDefault gormcol.Field + IDTaxRulesGroup gormcol.Field + OnSale gormcol.Field + OnlineOnly gormcol.Field + Ean13 gormcol.Field + Isbn gormcol.Field + Upc gormcol.Field + Ecotax gormcol.Field + Quantity gormcol.Field + MinimalQuantity gormcol.Field + LowStockThreshold gormcol.Field + LowStockAlert gormcol.Field + Price gormcol.Field + WholesalePrice gormcol.Field + Unity gormcol.Field + UnitPriceRatio gormcol.Field + IDUnit gormcol.Field + AdditionalShippingCost gormcol.Field + Reference gormcol.Field + SupplierReference gormcol.Field + Location gormcol.Field + Width gormcol.Field + Height gormcol.Field + Depth gormcol.Field + Weight gormcol.Field + OutOfStock gormcol.Field + AdditionalDeliveryTimes gormcol.Field + QuantityDiscount gormcol.Field + Customizable gormcol.Field + UploadableFiles gormcol.Field + TextFields gormcol.Field + Active gormcol.Field + RedirectType gormcol.Field + IDTypeRedirected gormcol.Field + AvailableForOrder gormcol.Field + AvailableDate gormcol.Field + ShowCondition gormcol.Field + Condition gormcol.Field + ShowPrice gormcol.Field + Indexed gormcol.Field + Visibility gormcol.Field + CacheIsPack gormcol.Field + CacheHasAttachments gormcol.Field + IsVirtual gormcol.Field + CacheDefaultAttribute gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + AdvancedStockManagement gormcol.Field + PackStockType gormcol.Field + State gormcol.Field + DeliveryDays gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProduct{}).TableName(), "id_product"), + IDSupplier: gormcol.Field{}.Set((&PsProduct{}).TableName(), "id_supplier"), + IDManufacturer: gormcol.Field{}.Set((&PsProduct{}).TableName(), "id_manufacturer"), + IDCategoryDefault: gormcol.Field{}.Set((&PsProduct{}).TableName(), "id_category_default"), + IDShopDefault: gormcol.Field{}.Set((&PsProduct{}).TableName(), "id_shop_default"), + IDTaxRulesGroup: gormcol.Field{}.Set((&PsProduct{}).TableName(), "id_tax_rules_group"), + OnSale: gormcol.Field{}.Set((&PsProduct{}).TableName(), "on_sale"), + OnlineOnly: gormcol.Field{}.Set((&PsProduct{}).TableName(), "online_only"), + Ean13: gormcol.Field{}.Set((&PsProduct{}).TableName(), "ean13"), + Isbn: gormcol.Field{}.Set((&PsProduct{}).TableName(), "isbn"), + Upc: gormcol.Field{}.Set((&PsProduct{}).TableName(), "upc"), + Ecotax: gormcol.Field{}.Set((&PsProduct{}).TableName(), "ecotax"), + Quantity: gormcol.Field{}.Set((&PsProduct{}).TableName(), "quantity"), + MinimalQuantity: gormcol.Field{}.Set((&PsProduct{}).TableName(), "minimal_quantity"), + LowStockThreshold: gormcol.Field{}.Set((&PsProduct{}).TableName(), "low_stock_threshold"), + LowStockAlert: gormcol.Field{}.Set((&PsProduct{}).TableName(), "low_stock_alert"), + Price: gormcol.Field{}.Set((&PsProduct{}).TableName(), "price"), + WholesalePrice: gormcol.Field{}.Set((&PsProduct{}).TableName(), "wholesale_price"), + Unity: gormcol.Field{}.Set((&PsProduct{}).TableName(), "unity"), + UnitPriceRatio: gormcol.Field{}.Set((&PsProduct{}).TableName(), "unit_price_ratio"), + IDUnit: gormcol.Field{}.Set((&PsProduct{}).TableName(), "id_unit"), + AdditionalShippingCost: gormcol.Field{}.Set((&PsProduct{}).TableName(), "additional_shipping_cost"), + Reference: gormcol.Field{}.Set((&PsProduct{}).TableName(), "reference"), + SupplierReference: gormcol.Field{}.Set((&PsProduct{}).TableName(), "supplier_reference"), + Location: gormcol.Field{}.Set((&PsProduct{}).TableName(), "location"), + Width: gormcol.Field{}.Set((&PsProduct{}).TableName(), "width"), + Height: gormcol.Field{}.Set((&PsProduct{}).TableName(), "height"), + Depth: gormcol.Field{}.Set((&PsProduct{}).TableName(), "depth"), + Weight: gormcol.Field{}.Set((&PsProduct{}).TableName(), "weight"), + OutOfStock: gormcol.Field{}.Set((&PsProduct{}).TableName(), "out_of_stock"), + AdditionalDeliveryTimes: gormcol.Field{}.Set((&PsProduct{}).TableName(), "additional_delivery_times"), + QuantityDiscount: gormcol.Field{}.Set((&PsProduct{}).TableName(), "quantity_discount"), + Customizable: gormcol.Field{}.Set((&PsProduct{}).TableName(), "customizable"), + UploadableFiles: gormcol.Field{}.Set((&PsProduct{}).TableName(), "uploadable_files"), + TextFields: gormcol.Field{}.Set((&PsProduct{}).TableName(), "text_fields"), + Active: gormcol.Field{}.Set((&PsProduct{}).TableName(), "active"), + RedirectType: gormcol.Field{}.Set((&PsProduct{}).TableName(), "redirect_type"), + IDTypeRedirected: gormcol.Field{}.Set((&PsProduct{}).TableName(), "id_type_redirected"), + AvailableForOrder: gormcol.Field{}.Set((&PsProduct{}).TableName(), "available_for_order"), + AvailableDate: gormcol.Field{}.Set((&PsProduct{}).TableName(), "available_date"), + ShowCondition: gormcol.Field{}.Set((&PsProduct{}).TableName(), "show_condition"), + Condition: gormcol.Field{}.Set((&PsProduct{}).TableName(), "condition"), + ShowPrice: gormcol.Field{}.Set((&PsProduct{}).TableName(), "show_price"), + Indexed: gormcol.Field{}.Set((&PsProduct{}).TableName(), "indexed"), + Visibility: gormcol.Field{}.Set((&PsProduct{}).TableName(), "visibility"), + CacheIsPack: gormcol.Field{}.Set((&PsProduct{}).TableName(), "cache_is_pack"), + CacheHasAttachments: gormcol.Field{}.Set((&PsProduct{}).TableName(), "cache_has_attachments"), + IsVirtual: gormcol.Field{}.Set((&PsProduct{}).TableName(), "is_virtual"), + CacheDefaultAttribute: gormcol.Field{}.Set((&PsProduct{}).TableName(), "cache_default_attribute"), + DateAdd: gormcol.Field{}.Set((&PsProduct{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsProduct{}).TableName(), "date_upd"), + AdvancedStockManagement: gormcol.Field{}.Set((&PsProduct{}).TableName(), "advanced_stock_management"), + PackStockType: gormcol.Field{}.Set((&PsProduct{}).TableName(), "pack_stock_type"), + State: gormcol.Field{}.Set((&PsProduct{}).TableName(), "state"), + DeliveryDays: gormcol.Field{}.Set((&PsProduct{}).TableName(), "delivery_days"), +} diff --git a/app/model/dbmodel/ps_product_attachment.go b/app/model/dbmodel/ps_product_attachment.go new file mode 100644 index 0000000..816d174 --- /dev/null +++ b/app/model/dbmodel/ps_product_attachment.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProductAttachment = "ps_product_attachment" + +// PsProductAttachment mapped from table +type PsProductAttachment struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDAttachment int32 `gorm:"column:id_attachment;primaryKey" json:"id_attachment"` +} + +// TableName PsProductAttachment's table name +func (*PsProductAttachment) TableName() string { + return TableNamePsProductAttachment +} + +var PsProductAttachmentCols = struct { + IDProduct gormcol.Field + IDAttachment gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProductAttachment{}).TableName(), "id_product"), + IDAttachment: gormcol.Field{}.Set((&PsProductAttachment{}).TableName(), "id_attachment"), +} diff --git a/app/model/dbmodel/ps_product_attribute.go b/app/model/dbmodel/ps_product_attribute.go new file mode 100644 index 0000000..5095f17 --- /dev/null +++ b/app/model/dbmodel/ps_product_attribute.go @@ -0,0 +1,82 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsProductAttribute = "ps_product_attribute" + +// PsProductAttribute mapped from table +type PsProductAttribute struct { + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey;autoIncrement:true;index:idx_product_attribute,priority:2;index:id_product_id_product_attribute,priority:1" json:"id_product_attribute"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:product_default,priority:1;index:idx_id_product,priority:1;index:idx_product_attribute,priority:1;index:idx_ps_product_attribute,priority:1;index:id_product_id_product_attribute,priority:2;index:product_attribute_product,priority:1" json:"id_product"` + Reference *string `gorm:"column:reference;index:reference,priority:1" json:"reference"` + SupplierReference *string `gorm:"column:supplier_reference;index:supplier_reference,priority:1" json:"supplier_reference"` + Location *string `gorm:"column:location" json:"location"` + Ean13 *string `gorm:"column:ean13" json:"ean13"` + Isbn *string `gorm:"column:isbn" json:"isbn"` + Upc *string `gorm:"column:upc" json:"upc"` + WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"` + Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + Quantity int32 `gorm:"column:quantity;not null" json:"quantity"` + Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"` + UnitPriceImpact float64 `gorm:"column:unit_price_impact;not null;default:0.000000" json:"unit_price_impact"` + DefaultOn *bool `gorm:"column:default_on;uniqueIndex:product_default,priority:2" json:"default_on"` + MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"` + LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"` + LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"` + AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"` +} + +// TableName PsProductAttribute's table name +func (*PsProductAttribute) TableName() string { + return TableNamePsProductAttribute +} + +var PsProductAttributeCols = struct { + IDProductAttribute gormcol.Field + IDProduct gormcol.Field + Reference gormcol.Field + SupplierReference gormcol.Field + Location gormcol.Field + Ean13 gormcol.Field + Isbn gormcol.Field + Upc gormcol.Field + WholesalePrice gormcol.Field + Price gormcol.Field + Ecotax gormcol.Field + Quantity gormcol.Field + Weight gormcol.Field + UnitPriceImpact gormcol.Field + DefaultOn gormcol.Field + MinimalQuantity gormcol.Field + LowStockThreshold gormcol.Field + LowStockAlert gormcol.Field + AvailableDate gormcol.Field +}{ + IDProductAttribute: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "id_product_attribute"), + IDProduct: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "id_product"), + Reference: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "reference"), + SupplierReference: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "supplier_reference"), + Location: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "location"), + Ean13: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "ean13"), + Isbn: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "isbn"), + Upc: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "upc"), + WholesalePrice: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "wholesale_price"), + Price: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "price"), + Ecotax: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "ecotax"), + Quantity: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "quantity"), + Weight: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "weight"), + UnitPriceImpact: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "unit_price_impact"), + DefaultOn: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "default_on"), + MinimalQuantity: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "minimal_quantity"), + LowStockThreshold: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "low_stock_threshold"), + LowStockAlert: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "low_stock_alert"), + AvailableDate: gormcol.Field{}.Set((&PsProductAttribute{}).TableName(), "available_date"), +} diff --git a/app/model/dbmodel/ps_product_attribute_combination.go b/app/model/dbmodel/ps_product_attribute_combination.go new file mode 100644 index 0000000..3eef0f5 --- /dev/null +++ b/app/model/dbmodel/ps_product_attribute_combination.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProductAttributeCombination = "ps_product_attribute_combination" + +// PsProductAttributeCombination mapped from table +type PsProductAttributeCombination struct { + IDAttribute int32 `gorm:"column:id_attribute;primaryKey;index:idx_product_combination,priority:2;index:idx_ps_product_attribute_combination,priority:2" json:"id_attribute"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey;index:idx_product_combination,priority:1;index:idx_ps_product_attribute_combination,priority:1" json:"id_product_attribute"` +} + +// TableName PsProductAttributeCombination's table name +func (*PsProductAttributeCombination) TableName() string { + return TableNamePsProductAttributeCombination +} + +var PsProductAttributeCombinationCols = struct { + IDAttribute gormcol.Field + IDProductAttribute gormcol.Field +}{ + IDAttribute: gormcol.Field{}.Set((&PsProductAttributeCombination{}).TableName(), "id_attribute"), + IDProductAttribute: gormcol.Field{}.Set((&PsProductAttributeCombination{}).TableName(), "id_product_attribute"), +} diff --git a/app/model/dbmodel/ps_product_attribute_image.go b/app/model/dbmodel/ps_product_attribute_image.go new file mode 100644 index 0000000..6529c55 --- /dev/null +++ b/app/model/dbmodel/ps_product_attribute_image.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProductAttributeImage = "ps_product_attribute_image" + +// PsProductAttributeImage mapped from table +type PsProductAttributeImage struct { + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey" json:"id_product_attribute"` + IDImage int32 `gorm:"column:id_image;primaryKey;index:id_image,priority:1" json:"id_image"` +} + +// TableName PsProductAttributeImage's table name +func (*PsProductAttributeImage) TableName() string { + return TableNamePsProductAttributeImage +} + +var PsProductAttributeImageCols = struct { + IDProductAttribute gormcol.Field + IDImage gormcol.Field +}{ + IDProductAttribute: gormcol.Field{}.Set((&PsProductAttributeImage{}).TableName(), "id_product_attribute"), + IDImage: gormcol.Field{}.Set((&PsProductAttributeImage{}).TableName(), "id_image"), +} diff --git a/app/model/dbmodel/ps_product_attribute_shop.go b/app/model/dbmodel/ps_product_attribute_shop.go new file mode 100644 index 0000000..f2ec57d --- /dev/null +++ b/app/model/dbmodel/ps_product_attribute_shop.go @@ -0,0 +1,64 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsProductAttributeShop = "ps_product_attribute_shop" + +// PsProductAttributeShop mapped from table +type PsProductAttributeShop struct { + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey" json:"id_product_attribute"` + IDShop int32 `gorm:"column:id_shop;primaryKey;uniqueIndex:id_product,priority:2" json:"id_shop"` + WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"` + Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"` + UnitPriceImpact float64 `gorm:"column:unit_price_impact;not null;default:0.000000" json:"unit_price_impact"` + DefaultOn *bool `gorm:"column:default_on;uniqueIndex:id_product,priority:3" json:"default_on"` + MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"` + LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"` + LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"` + AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"` +} + +// TableName PsProductAttributeShop's table name +func (*PsProductAttributeShop) TableName() string { + return TableNamePsProductAttributeShop +} + +var PsProductAttributeShopCols = struct { + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDShop gormcol.Field + WholesalePrice gormcol.Field + Price gormcol.Field + Ecotax gormcol.Field + Weight gormcol.Field + UnitPriceImpact gormcol.Field + DefaultOn gormcol.Field + MinimalQuantity gormcol.Field + LowStockThreshold gormcol.Field + LowStockAlert gormcol.Field + AvailableDate gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "id_product"), + IDProductAttribute: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "id_product_attribute"), + IDShop: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "id_shop"), + WholesalePrice: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "wholesale_price"), + Price: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "price"), + Ecotax: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "ecotax"), + Weight: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "weight"), + UnitPriceImpact: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "unit_price_impact"), + DefaultOn: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "default_on"), + MinimalQuantity: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "minimal_quantity"), + LowStockThreshold: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "low_stock_threshold"), + LowStockAlert: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "low_stock_alert"), + AvailableDate: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "available_date"), +} diff --git a/app/model/dbmodel/ps_product_carrier.go b/app/model/dbmodel/ps_product_carrier.go new file mode 100644 index 0000000..8ff75e8 --- /dev/null +++ b/app/model/dbmodel/ps_product_carrier.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProductCarrier = "ps_product_carrier" + +// PsProductCarrier mapped from table +type PsProductCarrier struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDCarrierReference int32 `gorm:"column:id_carrier_reference;primaryKey" json:"id_carrier_reference"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsProductCarrier's table name +func (*PsProductCarrier) TableName() string { + return TableNamePsProductCarrier +} + +var PsProductCarrierCols = struct { + IDProduct gormcol.Field + IDCarrierReference gormcol.Field + IDShop gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProductCarrier{}).TableName(), "id_product"), + IDCarrierReference: gormcol.Field{}.Set((&PsProductCarrier{}).TableName(), "id_carrier_reference"), + IDShop: gormcol.Field{}.Set((&PsProductCarrier{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_product_country_tax.go b/app/model/dbmodel/ps_product_country_tax.go new file mode 100644 index 0000000..5250942 --- /dev/null +++ b/app/model/dbmodel/ps_product_country_tax.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProductCountryTax = "ps_product_country_tax" + +// PsProductCountryTax mapped from table +type PsProductCountryTax struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDCountry int32 `gorm:"column:id_country;primaryKey" json:"id_country"` + IDTax int32 `gorm:"column:id_tax;not null" json:"id_tax"` +} + +// TableName PsProductCountryTax's table name +func (*PsProductCountryTax) TableName() string { + return TableNamePsProductCountryTax +} + +var PsProductCountryTaxCols = struct { + IDProduct gormcol.Field + IDCountry gormcol.Field + IDTax gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProductCountryTax{}).TableName(), "id_product"), + IDCountry: gormcol.Field{}.Set((&PsProductCountryTax{}).TableName(), "id_country"), + IDTax: gormcol.Field{}.Set((&PsProductCountryTax{}).TableName(), "id_tax"), +} diff --git a/app/model/dbmodel/ps_product_download.go b/app/model/dbmodel/ps_product_download.go new file mode 100644 index 0000000..bb9465e --- /dev/null +++ b/app/model/dbmodel/ps_product_download.go @@ -0,0 +1,55 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsProductDownload = "ps_product_download" + +// PsProductDownload mapped from table +type PsProductDownload struct { + IDProductDownload int32 `gorm:"column:id_product_download;primaryKey;autoIncrement:true" json:"id_product_download"` + IDProduct int32 `gorm:"column:id_product;not null" json:"id_product"` + DisplayFilename *string `gorm:"column:display_filename" json:"display_filename"` + Filename *string `gorm:"column:filename" json:"filename"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateExpiration *time.Time `gorm:"column:date_expiration" json:"date_expiration"` + NbDaysAccessible *int32 `gorm:"column:nb_days_accessible" json:"nb_days_accessible"` + NbDownloadable *int32 `gorm:"column:nb_downloadable;default:1" json:"nb_downloadable"` + Active bool `gorm:"column:active;not null;default:1" json:"active"` + IsShareable bool `gorm:"column:is_shareable;not null" json:"is_shareable"` +} + +// TableName PsProductDownload's table name +func (*PsProductDownload) TableName() string { + return TableNamePsProductDownload +} + +var PsProductDownloadCols = struct { + IDProductDownload gormcol.Field + IDProduct gormcol.Field + DisplayFilename gormcol.Field + Filename gormcol.Field + DateAdd gormcol.Field + DateExpiration gormcol.Field + NbDaysAccessible gormcol.Field + NbDownloadable gormcol.Field + Active gormcol.Field + IsShareable gormcol.Field +}{ + IDProductDownload: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "id_product_download"), + IDProduct: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "id_product"), + DisplayFilename: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "display_filename"), + Filename: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "filename"), + DateAdd: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "date_add"), + DateExpiration: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "date_expiration"), + NbDaysAccessible: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "nb_days_accessible"), + NbDownloadable: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "nb_downloadable"), + Active: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "active"), + IsShareable: gormcol.Field{}.Set((&PsProductDownload{}).TableName(), "is_shareable"), +} diff --git a/app/model/dbmodel/ps_product_group_reduction_cache.go b/app/model/dbmodel/ps_product_group_reduction_cache.go new file mode 100644 index 0000000..973acfd --- /dev/null +++ b/app/model/dbmodel/ps_product_group_reduction_cache.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProductGroupReductionCache = "ps_product_group_reduction_cache" + +// PsProductGroupReductionCache mapped from table +type PsProductGroupReductionCache struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDGroup int32 `gorm:"column:id_group;primaryKey" json:"id_group"` + Reduction float64 `gorm:"column:reduction;not null" json:"reduction"` +} + +// TableName PsProductGroupReductionCache's table name +func (*PsProductGroupReductionCache) TableName() string { + return TableNamePsProductGroupReductionCache +} + +var PsProductGroupReductionCacheCols = struct { + IDProduct gormcol.Field + IDGroup gormcol.Field + Reduction gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProductGroupReductionCache{}).TableName(), "id_product"), + IDGroup: gormcol.Field{}.Set((&PsProductGroupReductionCache{}).TableName(), "id_group"), + Reduction: gormcol.Field{}.Set((&PsProductGroupReductionCache{}).TableName(), "reduction"), +} diff --git a/app/model/dbmodel/ps_product_lang.go b/app/model/dbmodel/ps_product_lang.go new file mode 100644 index 0000000..cf56246 --- /dev/null +++ b/app/model/dbmodel/ps_product_lang.go @@ -0,0 +1,67 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProductLang = "ps_product_lang" + +// PsProductLang mapped from table +type PsProductLang struct { + IDProduct int32 `gorm:"column:id_product;primaryKey;index:idx_ps_product_lang,priority:1" json:"id_product"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:idx_ps_product_lang,priority:2;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:idx_ps_product_lang,priority:3;index:id_lang,priority:1" json:"id_lang"` + Description *string `gorm:"column:description" json:"description"` + DescriptionShort *string `gorm:"column:description_short" json:"description_short"` + LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` + MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` + AvailableNow *string `gorm:"column:available_now" json:"available_now"` + AvailableLater *string `gorm:"column:available_later" json:"available_later"` + DeliveryInStock *string `gorm:"column:delivery_in_stock" json:"delivery_in_stock"` + DeliveryOutStock *string `gorm:"column:delivery_out_stock" json:"delivery_out_stock"` + Usage *string `gorm:"column:usage" json:"usage"` +} + +// TableName PsProductLang's table name +func (*PsProductLang) TableName() string { + return TableNamePsProductLang +} + +var PsProductLangCols = struct { + IDProduct gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Description gormcol.Field + DescriptionShort gormcol.Field + LinkRewrite gormcol.Field + MetaDescription gormcol.Field + MetaKeywords gormcol.Field + MetaTitle gormcol.Field + Name gormcol.Field + AvailableNow gormcol.Field + AvailableLater gormcol.Field + DeliveryInStock gormcol.Field + DeliveryOutStock gormcol.Field + Usage gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "id_product"), + IDShop: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "id_shop"), + IDLang: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "id_lang"), + Description: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "description"), + DescriptionShort: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "description_short"), + LinkRewrite: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "link_rewrite"), + MetaDescription: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "meta_description"), + MetaKeywords: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "meta_keywords"), + MetaTitle: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "meta_title"), + Name: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "name"), + AvailableNow: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "available_now"), + AvailableLater: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "available_later"), + DeliveryInStock: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "delivery_in_stock"), + DeliveryOutStock: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "delivery_out_stock"), + Usage: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "usage"), +} diff --git a/app/model/dbmodel/ps_product_sale.go b/app/model/dbmodel/ps_product_sale.go new file mode 100644 index 0000000..bc29287 --- /dev/null +++ b/app/model/dbmodel/ps_product_sale.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsProductSale = "ps_product_sale" + +// PsProductSale mapped from table +type PsProductSale struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + Quantity int32 `gorm:"column:quantity;not null;index:quantity,priority:1" json:"quantity"` + SaleNbr int32 `gorm:"column:sale_nbr;not null" json:"sale_nbr"` + DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"` +} + +// TableName PsProductSale's table name +func (*PsProductSale) TableName() string { + return TableNamePsProductSale +} + +var PsProductSaleCols = struct { + IDProduct gormcol.Field + Quantity gormcol.Field + SaleNbr gormcol.Field + DateUpd gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProductSale{}).TableName(), "id_product"), + Quantity: gormcol.Field{}.Set((&PsProductSale{}).TableName(), "quantity"), + SaleNbr: gormcol.Field{}.Set((&PsProductSale{}).TableName(), "sale_nbr"), + DateUpd: gormcol.Field{}.Set((&PsProductSale{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_product_shop.go b/app/model/dbmodel/ps_product_shop.go new file mode 100644 index 0000000..8240b45 --- /dev/null +++ b/app/model/dbmodel/ps_product_shop.go @@ -0,0 +1,124 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsProductShop = "ps_product_shop" + +// PsProductShop mapped from table +type PsProductShop struct { + IDProduct int32 `gorm:"column:id_product;primaryKey;index:idx_product_shop_active,priority:1;index:idx_ps_product_shop,priority:1;index:indexed,priority:3" json:"id_product"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:idx_product_shop_active,priority:2;index:idx_ps_product_shop,priority:2" json:"id_shop"` + IDCategoryDefault *int32 `gorm:"column:id_category_default;index:id_category_default,priority:1" json:"id_category_default"` + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;not null" json:"id_tax_rules_group"` + OnSale bool `gorm:"column:on_sale;not null" json:"on_sale"` + OnlineOnly bool `gorm:"column:online_only;not null" json:"online_only"` + Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"` + MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"` + LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"` + LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"` + Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"` + WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"` + Unity *string `gorm:"column:unity" json:"unity"` + UnitPriceRatio float64 `gorm:"column:unit_price_ratio;not null;default:0.000000" json:"unit_price_ratio"` + AdditionalShippingCost float64 `gorm:"column:additional_shipping_cost;not null;default:0.00" json:"additional_shipping_cost"` + Customizable int32 `gorm:"column:customizable;not null" json:"customizable"` + UploadableFiles int32 `gorm:"column:uploadable_files;not null" json:"uploadable_files"` + TextFields int32 `gorm:"column:text_fields;not null" json:"text_fields"` + Active bool `gorm:"column:active;not null;index:date_add,priority:2;index:idx_product_shop_active,priority:3;index:idx_ps_product_shop,priority:3;index:indexed,priority:2" json:"active"` + RedirectType string `gorm:"column:redirect_type;not null" json:"redirect_type"` + IDTypeRedirected int32 `gorm:"column:id_type_redirected;not null" json:"id_type_redirected"` + AvailableForOrder bool `gorm:"column:available_for_order;not null;default:1" json:"available_for_order"` + AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"` + ShowCondition bool `gorm:"column:show_condition;not null;default:1" json:"show_condition"` + Condition string `gorm:"column:condition;not null;default:new" json:"condition"` + ShowPrice bool `gorm:"column:show_price;not null;default:1" json:"show_price"` + Indexed bool `gorm:"column:indexed;not null;index:indexed,priority:1" json:"indexed"` + Visibility string `gorm:"column:visibility;not null;index:date_add,priority:3;default:both" json:"visibility"` + CacheDefaultAttribute *int32 `gorm:"column:cache_default_attribute" json:"cache_default_attribute"` + AdvancedStockManagement bool `gorm:"column:advanced_stock_management;not null" json:"advanced_stock_management"` + DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + PackStockType int32 `gorm:"column:pack_stock_type;not null;default:3" json:"pack_stock_type"` +} + +// TableName PsProductShop's table name +func (*PsProductShop) TableName() string { + return TableNamePsProductShop +} + +var PsProductShopCols = struct { + IDProduct gormcol.Field + IDShop gormcol.Field + IDCategoryDefault gormcol.Field + IDTaxRulesGroup gormcol.Field + OnSale gormcol.Field + OnlineOnly gormcol.Field + Ecotax gormcol.Field + MinimalQuantity gormcol.Field + LowStockThreshold gormcol.Field + LowStockAlert gormcol.Field + Price gormcol.Field + WholesalePrice gormcol.Field + Unity gormcol.Field + UnitPriceRatio gormcol.Field + AdditionalShippingCost gormcol.Field + Customizable gormcol.Field + UploadableFiles gormcol.Field + TextFields gormcol.Field + Active gormcol.Field + RedirectType gormcol.Field + IDTypeRedirected gormcol.Field + AvailableForOrder gormcol.Field + AvailableDate gormcol.Field + ShowCondition gormcol.Field + Condition gormcol.Field + ShowPrice gormcol.Field + Indexed gormcol.Field + Visibility gormcol.Field + CacheDefaultAttribute gormcol.Field + AdvancedStockManagement gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + PackStockType gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_product"), + IDShop: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_shop"), + IDCategoryDefault: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_category_default"), + IDTaxRulesGroup: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_tax_rules_group"), + OnSale: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "on_sale"), + OnlineOnly: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "online_only"), + Ecotax: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "ecotax"), + MinimalQuantity: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "minimal_quantity"), + LowStockThreshold: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "low_stock_threshold"), + LowStockAlert: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "low_stock_alert"), + Price: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "price"), + WholesalePrice: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "wholesale_price"), + Unity: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "unity"), + UnitPriceRatio: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "unit_price_ratio"), + AdditionalShippingCost: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "additional_shipping_cost"), + Customizable: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "customizable"), + UploadableFiles: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "uploadable_files"), + TextFields: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "text_fields"), + Active: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "active"), + RedirectType: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "redirect_type"), + IDTypeRedirected: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_type_redirected"), + AvailableForOrder: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "available_for_order"), + AvailableDate: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "available_date"), + ShowCondition: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "show_condition"), + Condition: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "condition"), + ShowPrice: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "show_price"), + Indexed: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "indexed"), + Visibility: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "visibility"), + CacheDefaultAttribute: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "cache_default_attribute"), + AdvancedStockManagement: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "advanced_stock_management"), + DateAdd: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "date_upd"), + PackStockType: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "pack_stock_type"), +} diff --git a/app/model/dbmodel/ps_product_supplier.go b/app/model/dbmodel/ps_product_supplier.go new file mode 100644 index 0000000..7be4a56 --- /dev/null +++ b/app/model/dbmodel/ps_product_supplier.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProductSupplier = "ps_product_supplier" + +// PsProductSupplier mapped from table +type PsProductSupplier struct { + IDProductSupplier int32 `gorm:"column:id_product_supplier;primaryKey;autoIncrement:true" json:"id_product_supplier"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1;index:id_supplier,priority:2" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;uniqueIndex:id_product,priority:2" json:"id_product_attribute"` + IDSupplier int32 `gorm:"column:id_supplier;not null;uniqueIndex:id_product,priority:3;index:id_supplier,priority:1" json:"id_supplier"` + ProductSupplierReference *string `gorm:"column:product_supplier_reference" json:"product_supplier_reference"` + ProductSupplierPriceTe float64 `gorm:"column:product_supplier_price_te;not null;default:0.000000" json:"product_supplier_price_te"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` +} + +// TableName PsProductSupplier's table name +func (*PsProductSupplier) TableName() string { + return TableNamePsProductSupplier +} + +var PsProductSupplierCols = struct { + IDProductSupplier gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDSupplier gormcol.Field + ProductSupplierReference gormcol.Field + ProductSupplierPriceTe gormcol.Field + IDCurrency gormcol.Field +}{ + IDProductSupplier: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_product_supplier"), + IDProduct: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_product"), + IDProductAttribute: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_product_attribute"), + IDSupplier: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_supplier"), + ProductSupplierReference: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "product_supplier_reference"), + ProductSupplierPriceTe: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "product_supplier_price_te"), + IDCurrency: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_currency"), +} diff --git a/app/model/dbmodel/ps_product_tag.go b/app/model/dbmodel/ps_product_tag.go new file mode 100644 index 0000000..a97bb7a --- /dev/null +++ b/app/model/dbmodel/ps_product_tag.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProductTag = "ps_product_tag" + +// PsProductTag mapped from table +type PsProductTag struct { + IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"` + IDTag int32 `gorm:"column:id_tag;primaryKey;index:id_lang,priority:2;index:id_tag,priority:1" json:"id_tag"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"` +} + +// TableName PsProductTag's table name +func (*PsProductTag) TableName() string { + return TableNamePsProductTag +} + +var PsProductTagCols = struct { + IDProduct gormcol.Field + IDTag gormcol.Field + IDLang gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsProductTag{}).TableName(), "id_product"), + IDTag: gormcol.Field{}.Set((&PsProductTag{}).TableName(), "id_tag"), + IDLang: gormcol.Field{}.Set((&PsProductTag{}).TableName(), "id_lang"), +} diff --git a/app/model/dbmodel/ps_profile.go b/app/model/dbmodel/ps_profile.go new file mode 100644 index 0000000..ba3384d --- /dev/null +++ b/app/model/dbmodel/ps_profile.go @@ -0,0 +1,25 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProfile = "ps_profile" + +// PsProfile mapped from table +type PsProfile struct { + IDProfile int32 `gorm:"column:id_profile;primaryKey;autoIncrement:true" json:"id_profile"` +} + +// TableName PsProfile's table name +func (*PsProfile) TableName() string { + return TableNamePsProfile +} + +var PsProfileCols = struct { + IDProfile gormcol.Field +}{ + IDProfile: gormcol.Field{}.Set((&PsProfile{}).TableName(), "id_profile"), +} diff --git a/app/model/dbmodel/ps_profile_lang.go b/app/model/dbmodel/ps_profile_lang.go new file mode 100644 index 0000000..3246bbf --- /dev/null +++ b/app/model/dbmodel/ps_profile_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsProfileLang = "ps_profile_lang" + +// PsProfileLang mapped from table +type PsProfileLang struct { + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + IDProfile int32 `gorm:"column:id_profile;primaryKey" json:"id_profile"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsProfileLang's table name +func (*PsProfileLang) TableName() string { + return TableNamePsProfileLang +} + +var PsProfileLangCols = struct { + IDLang gormcol.Field + IDProfile gormcol.Field + Name gormcol.Field +}{ + IDLang: gormcol.Field{}.Set((&PsProfileLang{}).TableName(), "id_lang"), + IDProfile: gormcol.Field{}.Set((&PsProfileLang{}).TableName(), "id_profile"), + Name: gormcol.Field{}.Set((&PsProfileLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_psgdpr_consent.go b/app/model/dbmodel/ps_psgdpr_consent.go new file mode 100644 index 0000000..80853e7 --- /dev/null +++ b/app/model/dbmodel/ps_psgdpr_consent.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsPsgdprConsent = "ps_psgdpr_consent" + +// PsPsgdprConsent mapped from table +type PsPsgdprConsent struct { + IDGdprConsent int32 `gorm:"column:id_gdpr_consent;primaryKey;autoIncrement:true" json:"id_gdpr_consent"` + IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"` + Active int32 `gorm:"column:active;not null" json:"active"` + Error *int32 `gorm:"column:error" json:"error"` + ErrorMessage *string `gorm:"column:error_message" json:"error_message"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsPsgdprConsent's table name +func (*PsPsgdprConsent) TableName() string { + return TableNamePsPsgdprConsent +} + +var PsPsgdprConsentCols = struct { + IDGdprConsent gormcol.Field + IDModule gormcol.Field + Active gormcol.Field + Error gormcol.Field + ErrorMessage gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDGdprConsent: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "id_gdpr_consent"), + IDModule: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "id_module"), + Active: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "active"), + Error: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "error"), + ErrorMessage: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "error_message"), + DateAdd: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_psgdpr_consent_lang.go b/app/model/dbmodel/ps_psgdpr_consent_lang.go new file mode 100644 index 0000000..72e4f0f --- /dev/null +++ b/app/model/dbmodel/ps_psgdpr_consent_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsPsgdprConsentLang = "ps_psgdpr_consent_lang" + +// PsPsgdprConsentLang mapped from table +type PsPsgdprConsentLang struct { + IDGdprConsent int32 `gorm:"column:id_gdpr_consent;primaryKey;autoIncrement:true" json:"id_gdpr_consent"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Message *string `gorm:"column:message" json:"message"` + IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"` +} + +// TableName PsPsgdprConsentLang's table name +func (*PsPsgdprConsentLang) TableName() string { + return TableNamePsPsgdprConsentLang +} + +var PsPsgdprConsentLangCols = struct { + IDGdprConsent gormcol.Field + IDLang gormcol.Field + Message gormcol.Field + IDShop gormcol.Field +}{ + IDGdprConsent: gormcol.Field{}.Set((&PsPsgdprConsentLang{}).TableName(), "id_gdpr_consent"), + IDLang: gormcol.Field{}.Set((&PsPsgdprConsentLang{}).TableName(), "id_lang"), + Message: gormcol.Field{}.Set((&PsPsgdprConsentLang{}).TableName(), "message"), + IDShop: gormcol.Field{}.Set((&PsPsgdprConsentLang{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_psgdpr_log.go b/app/model/dbmodel/ps_psgdpr_log.go new file mode 100644 index 0000000..d2b68a9 --- /dev/null +++ b/app/model/dbmodel/ps_psgdpr_log.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsPsgdprLog = "ps_psgdpr_log" + +// PsPsgdprLog mapped from table +type PsPsgdprLog struct { + IDGdprLog int32 `gorm:"column:id_gdpr_log;primaryKey;autoIncrement:true" json:"id_gdpr_log"` + IDCustomer *int32 `gorm:"column:id_customer" json:"id_customer"` + IDGuest *int32 `gorm:"column:id_guest" json:"id_guest"` + ClientName *string `gorm:"column:client_name" json:"client_name"` + IDModule int32 `gorm:"column:id_module;not null" json:"id_module"` + RequestType int32 `gorm:"column:request_type;not null" json:"request_type"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsPsgdprLog's table name +func (*PsPsgdprLog) TableName() string { + return TableNamePsPsgdprLog +} + +var PsPsgdprLogCols = struct { + IDGdprLog gormcol.Field + IDCustomer gormcol.Field + IDGuest gormcol.Field + ClientName gormcol.Field + IDModule gormcol.Field + RequestType gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDGdprLog: gormcol.Field{}.Set((&PsPsgdprLog{}).TableName(), "id_gdpr_log"), + IDCustomer: gormcol.Field{}.Set((&PsPsgdprLog{}).TableName(), "id_customer"), + IDGuest: gormcol.Field{}.Set((&PsPsgdprLog{}).TableName(), "id_guest"), + ClientName: gormcol.Field{}.Set((&PsPsgdprLog{}).TableName(), "client_name"), + IDModule: gormcol.Field{}.Set((&PsPsgdprLog{}).TableName(), "id_module"), + RequestType: gormcol.Field{}.Set((&PsPsgdprLog{}).TableName(), "request_type"), + DateAdd: gormcol.Field{}.Set((&PsPsgdprLog{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsPsgdprLog{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_pshow_pshowproducttabs_hook.go b/app/model/dbmodel/ps_pshow_pshowproducttabs_hook.go new file mode 100644 index 0000000..5bddb8b --- /dev/null +++ b/app/model/dbmodel/ps_pshow_pshowproducttabs_hook.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsPshowPshowproducttabsHook = "ps_pshow_pshowproducttabs_hook" + +// PsPshowPshowproducttabsHook mapped from table +type PsPshowPshowproducttabsHook struct { + IDHook int32 `gorm:"column:id_hook;primaryKey;autoIncrement:true" json:"id_hook"` + HookName string `gorm:"column:hook_name;not null" json:"hook_name"` + PrestaIDHook int32 `gorm:"column:presta_id_hook;not null" json:"presta_id_hook"` +} + +// TableName PsPshowPshowproducttabsHook's table name +func (*PsPshowPshowproducttabsHook) TableName() string { + return TableNamePsPshowPshowproducttabsHook +} + +var PsPshowPshowproducttabsHookCols = struct { + IDHook gormcol.Field + HookName gormcol.Field + PrestaIDHook gormcol.Field +}{ + IDHook: gormcol.Field{}.Set((&PsPshowPshowproducttabsHook{}).TableName(), "id_hook"), + HookName: gormcol.Field{}.Set((&PsPshowPshowproducttabsHook{}).TableName(), "hook_name"), + PrestaIDHook: gormcol.Field{}.Set((&PsPshowPshowproducttabsHook{}).TableName(), "presta_id_hook"), +} diff --git a/app/model/dbmodel/ps_quick_access.go b/app/model/dbmodel/ps_quick_access.go new file mode 100644 index 0000000..4e80ea9 --- /dev/null +++ b/app/model/dbmodel/ps_quick_access.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsQuickAccess = "ps_quick_access" + +// PsQuickAccess mapped from table +type PsQuickAccess struct { + IDQuickAccess int32 `gorm:"column:id_quick_access;primaryKey;autoIncrement:true" json:"id_quick_access"` + NewWindow bool `gorm:"column:new_window;not null" json:"new_window"` + Link string `gorm:"column:link;not null" json:"link"` +} + +// TableName PsQuickAccess's table name +func (*PsQuickAccess) TableName() string { + return TableNamePsQuickAccess +} + +var PsQuickAccessCols = struct { + IDQuickAccess gormcol.Field + NewWindow gormcol.Field + Link gormcol.Field +}{ + IDQuickAccess: gormcol.Field{}.Set((&PsQuickAccess{}).TableName(), "id_quick_access"), + NewWindow: gormcol.Field{}.Set((&PsQuickAccess{}).TableName(), "new_window"), + Link: gormcol.Field{}.Set((&PsQuickAccess{}).TableName(), "link"), +} diff --git a/app/model/dbmodel/ps_quick_access_lang.go b/app/model/dbmodel/ps_quick_access_lang.go new file mode 100644 index 0000000..8c97bd1 --- /dev/null +++ b/app/model/dbmodel/ps_quick_access_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsQuickAccessLang = "ps_quick_access_lang" + +// PsQuickAccessLang mapped from table +type PsQuickAccessLang struct { + IDQuickAccess int32 `gorm:"column:id_quick_access;primaryKey" json:"id_quick_access"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsQuickAccessLang's table name +func (*PsQuickAccessLang) TableName() string { + return TableNamePsQuickAccessLang +} + +var PsQuickAccessLangCols = struct { + IDQuickAccess gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDQuickAccess: gormcol.Field{}.Set((&PsQuickAccessLang{}).TableName(), "id_quick_access"), + IDLang: gormcol.Field{}.Set((&PsQuickAccessLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsQuickAccessLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_range_price.go b/app/model/dbmodel/ps_range_price.go new file mode 100644 index 0000000..09f1d47 --- /dev/null +++ b/app/model/dbmodel/ps_range_price.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsRangePrice = "ps_range_price" + +// PsRangePrice mapped from table +type PsRangePrice struct { + IDRangePrice int32 `gorm:"column:id_range_price;primaryKey;autoIncrement:true" json:"id_range_price"` + IDCarrier int32 `gorm:"column:id_carrier;not null;uniqueIndex:id_carrier,priority:1" json:"id_carrier"` + Delimiter1 float64 `gorm:"column:delimiter1;not null;uniqueIndex:id_carrier,priority:2" json:"delimiter1"` + Delimiter2 float64 `gorm:"column:delimiter2;not null;uniqueIndex:id_carrier,priority:3" json:"delimiter2"` +} + +// TableName PsRangePrice's table name +func (*PsRangePrice) TableName() string { + return TableNamePsRangePrice +} + +var PsRangePriceCols = struct { + IDRangePrice gormcol.Field + IDCarrier gormcol.Field + Delimiter1 gormcol.Field + Delimiter2 gormcol.Field +}{ + IDRangePrice: gormcol.Field{}.Set((&PsRangePrice{}).TableName(), "id_range_price"), + IDCarrier: gormcol.Field{}.Set((&PsRangePrice{}).TableName(), "id_carrier"), + Delimiter1: gormcol.Field{}.Set((&PsRangePrice{}).TableName(), "delimiter1"), + Delimiter2: gormcol.Field{}.Set((&PsRangePrice{}).TableName(), "delimiter2"), +} diff --git a/app/model/dbmodel/ps_range_weight.go b/app/model/dbmodel/ps_range_weight.go new file mode 100644 index 0000000..6eb9e98 --- /dev/null +++ b/app/model/dbmodel/ps_range_weight.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsRangeWeight = "ps_range_weight" + +// PsRangeWeight mapped from table +type PsRangeWeight struct { + IDRangeWeight int32 `gorm:"column:id_range_weight;primaryKey;autoIncrement:true" json:"id_range_weight"` + IDCarrier int32 `gorm:"column:id_carrier;not null;uniqueIndex:id_carrier,priority:1" json:"id_carrier"` + Delimiter1 float64 `gorm:"column:delimiter1;not null;uniqueIndex:id_carrier,priority:2" json:"delimiter1"` + Delimiter2 float64 `gorm:"column:delimiter2;not null;uniqueIndex:id_carrier,priority:3" json:"delimiter2"` +} + +// TableName PsRangeWeight's table name +func (*PsRangeWeight) TableName() string { + return TableNamePsRangeWeight +} + +var PsRangeWeightCols = struct { + IDRangeWeight gormcol.Field + IDCarrier gormcol.Field + Delimiter1 gormcol.Field + Delimiter2 gormcol.Field +}{ + IDRangeWeight: gormcol.Field{}.Set((&PsRangeWeight{}).TableName(), "id_range_weight"), + IDCarrier: gormcol.Field{}.Set((&PsRangeWeight{}).TableName(), "id_carrier"), + Delimiter1: gormcol.Field{}.Set((&PsRangeWeight{}).TableName(), "delimiter1"), + Delimiter2: gormcol.Field{}.Set((&PsRangeWeight{}).TableName(), "delimiter2"), +} diff --git a/app/model/dbmodel/ps_reassurance_lang.go b/app/model/dbmodel/ps_reassurance_lang.go new file mode 100644 index 0000000..4372b3c --- /dev/null +++ b/app/model/dbmodel/ps_reassurance_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsReassuranceLang = "ps_reassurance_lang" + +// PsReassuranceLang mapped from table +type PsReassuranceLang struct { + IDReassurance int32 `gorm:"column:id_reassurance;primaryKey;autoIncrement:true" json:"id_reassurance"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Text string `gorm:"column:text;not null" json:"text"` +} + +// TableName PsReassuranceLang's table name +func (*PsReassuranceLang) TableName() string { + return TableNamePsReassuranceLang +} + +var PsReassuranceLangCols = struct { + IDReassurance gormcol.Field + IDLang gormcol.Field + Text gormcol.Field +}{ + IDReassurance: gormcol.Field{}.Set((&PsReassuranceLang{}).TableName(), "id_reassurance"), + IDLang: gormcol.Field{}.Set((&PsReassuranceLang{}).TableName(), "id_lang"), + Text: gormcol.Field{}.Set((&PsReassuranceLang{}).TableName(), "text"), +} diff --git a/app/model/dbmodel/ps_referrer.go b/app/model/dbmodel/ps_referrer.go new file mode 100644 index 0000000..847b989 --- /dev/null +++ b/app/model/dbmodel/ps_referrer.go @@ -0,0 +1,70 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsReferrer = "ps_referrer" + +// PsReferrer mapped from table +type PsReferrer struct { + IDReferrer int32 `gorm:"column:id_referrer;primaryKey;autoIncrement:true" json:"id_referrer"` + Name string `gorm:"column:name;not null" json:"name"` + Passwd *string `gorm:"column:passwd" json:"passwd"` + HTTPRefererRegexp *string `gorm:"column:http_referer_regexp" json:"http_referer_regexp"` + HTTPRefererLike *string `gorm:"column:http_referer_like" json:"http_referer_like"` + RequestURIRegexp *string `gorm:"column:request_uri_regexp" json:"request_uri_regexp"` + RequestURILike *string `gorm:"column:request_uri_like" json:"request_uri_like"` + HTTPRefererRegexpNot *string `gorm:"column:http_referer_regexp_not" json:"http_referer_regexp_not"` + HTTPRefererLikeNot *string `gorm:"column:http_referer_like_not" json:"http_referer_like_not"` + RequestURIRegexpNot *string `gorm:"column:request_uri_regexp_not" json:"request_uri_regexp_not"` + RequestURILikeNot *string `gorm:"column:request_uri_like_not" json:"request_uri_like_not"` + BaseFee float64 `gorm:"column:base_fee;not null;default:0.00" json:"base_fee"` + PercentFee float64 `gorm:"column:percent_fee;not null;default:0.00" json:"percent_fee"` + ClickFee float64 `gorm:"column:click_fee;not null;default:0.00" json:"click_fee"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsReferrer's table name +func (*PsReferrer) TableName() string { + return TableNamePsReferrer +} + +var PsReferrerCols = struct { + IDReferrer gormcol.Field + Name gormcol.Field + Passwd gormcol.Field + HTTPRefererRegexp gormcol.Field + HTTPRefererLike gormcol.Field + RequestURIRegexp gormcol.Field + RequestURILike gormcol.Field + HTTPRefererRegexpNot gormcol.Field + HTTPRefererLikeNot gormcol.Field + RequestURIRegexpNot gormcol.Field + RequestURILikeNot gormcol.Field + BaseFee gormcol.Field + PercentFee gormcol.Field + ClickFee gormcol.Field + DateAdd gormcol.Field +}{ + IDReferrer: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "id_referrer"), + Name: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "name"), + Passwd: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "passwd"), + HTTPRefererRegexp: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "http_referer_regexp"), + HTTPRefererLike: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "http_referer_like"), + RequestURIRegexp: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "request_uri_regexp"), + RequestURILike: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "request_uri_like"), + HTTPRefererRegexpNot: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "http_referer_regexp_not"), + HTTPRefererLikeNot: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "http_referer_like_not"), + RequestURIRegexpNot: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "request_uri_regexp_not"), + RequestURILikeNot: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "request_uri_like_not"), + BaseFee: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "base_fee"), + PercentFee: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "percent_fee"), + ClickFee: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "click_fee"), + DateAdd: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_referrer_cache.go b/app/model/dbmodel/ps_referrer_cache.go new file mode 100644 index 0000000..b8fcf7f --- /dev/null +++ b/app/model/dbmodel/ps_referrer_cache.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsReferrerCache = "ps_referrer_cache" + +// PsReferrerCache mapped from table +type PsReferrerCache struct { + IDConnectionsSource int32 `gorm:"column:id_connections_source;primaryKey" json:"id_connections_source"` + IDReferrer int32 `gorm:"column:id_referrer;primaryKey" json:"id_referrer"` +} + +// TableName PsReferrerCache's table name +func (*PsReferrerCache) TableName() string { + return TableNamePsReferrerCache +} + +var PsReferrerCacheCols = struct { + IDConnectionsSource gormcol.Field + IDReferrer gormcol.Field +}{ + IDConnectionsSource: gormcol.Field{}.Set((&PsReferrerCache{}).TableName(), "id_connections_source"), + IDReferrer: gormcol.Field{}.Set((&PsReferrerCache{}).TableName(), "id_referrer"), +} diff --git a/app/model/dbmodel/ps_referrer_shop.go b/app/model/dbmodel/ps_referrer_shop.go new file mode 100644 index 0000000..ce37f79 --- /dev/null +++ b/app/model/dbmodel/ps_referrer_shop.go @@ -0,0 +1,52 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsReferrerShop = "ps_referrer_shop" + +// PsReferrerShop mapped from table +type PsReferrerShop struct { + IDReferrer int32 `gorm:"column:id_referrer;primaryKey;autoIncrement:true" json:"id_referrer"` + IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"` + CacheVisitors *int32 `gorm:"column:cache_visitors" json:"cache_visitors"` + CacheVisits *int32 `gorm:"column:cache_visits" json:"cache_visits"` + CachePages *int32 `gorm:"column:cache_pages" json:"cache_pages"` + CacheRegistrations *int32 `gorm:"column:cache_registrations" json:"cache_registrations"` + CacheOrders *int32 `gorm:"column:cache_orders" json:"cache_orders"` + CacheSales *float64 `gorm:"column:cache_sales" json:"cache_sales"` + CacheRegRate *float64 `gorm:"column:cache_reg_rate" json:"cache_reg_rate"` + CacheOrderRate *float64 `gorm:"column:cache_order_rate" json:"cache_order_rate"` +} + +// TableName PsReferrerShop's table name +func (*PsReferrerShop) TableName() string { + return TableNamePsReferrerShop +} + +var PsReferrerShopCols = struct { + IDReferrer gormcol.Field + IDShop gormcol.Field + CacheVisitors gormcol.Field + CacheVisits gormcol.Field + CachePages gormcol.Field + CacheRegistrations gormcol.Field + CacheOrders gormcol.Field + CacheSales gormcol.Field + CacheRegRate gormcol.Field + CacheOrderRate gormcol.Field +}{ + IDReferrer: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "id_referrer"), + IDShop: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "id_shop"), + CacheVisitors: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_visitors"), + CacheVisits: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_visits"), + CachePages: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_pages"), + CacheRegistrations: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_registrations"), + CacheOrders: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_orders"), + CacheSales: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_sales"), + CacheRegRate: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_reg_rate"), + CacheOrderRate: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_order_rate"), +} diff --git a/app/model/dbmodel/ps_request_sql.go b/app/model/dbmodel/ps_request_sql.go new file mode 100644 index 0000000..9613712 --- /dev/null +++ b/app/model/dbmodel/ps_request_sql.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsRequestSql = "ps_request_sql" + +// PsRequestSql mapped from table +type PsRequestSql struct { + IDRequestSql int32 `gorm:"column:id_request_sql;primaryKey;autoIncrement:true" json:"id_request_sql"` + Name string `gorm:"column:name;not null" json:"name"` + Sql string `gorm:"column:sql;not null" json:"sql"` +} + +// TableName PsRequestSql's table name +func (*PsRequestSql) TableName() string { + return TableNamePsRequestSql +} + +var PsRequestSqlCols = struct { + IDRequestSql gormcol.Field + Name gormcol.Field + Sql gormcol.Field +}{ + IDRequestSql: gormcol.Field{}.Set((&PsRequestSql{}).TableName(), "id_request_sql"), + Name: gormcol.Field{}.Set((&PsRequestSql{}).TableName(), "name"), + Sql: gormcol.Field{}.Set((&PsRequestSql{}).TableName(), "sql"), +} diff --git a/app/model/dbmodel/ps_required_field.go b/app/model/dbmodel/ps_required_field.go new file mode 100644 index 0000000..d6bc069 --- /dev/null +++ b/app/model/dbmodel/ps_required_field.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsRequiredField = "ps_required_field" + +// PsRequiredField mapped from table +type PsRequiredField struct { + IDRequiredField int32 `gorm:"column:id_required_field;primaryKey;autoIncrement:true" json:"id_required_field"` + ObjectName string `gorm:"column:object_name;not null;index:object_name,priority:1" json:"object_name"` + FieldName string `gorm:"column:field_name;not null" json:"field_name"` +} + +// TableName PsRequiredField's table name +func (*PsRequiredField) TableName() string { + return TableNamePsRequiredField +} + +var PsRequiredFieldCols = struct { + IDRequiredField gormcol.Field + ObjectName gormcol.Field + FieldName gormcol.Field +}{ + IDRequiredField: gormcol.Field{}.Set((&PsRequiredField{}).TableName(), "id_required_field"), + ObjectName: gormcol.Field{}.Set((&PsRequiredField{}).TableName(), "object_name"), + FieldName: gormcol.Field{}.Set((&PsRequiredField{}).TableName(), "field_name"), +} diff --git a/app/model/dbmodel/ps_risk.go b/app/model/dbmodel/ps_risk.go new file mode 100644 index 0000000..dd8b579 --- /dev/null +++ b/app/model/dbmodel/ps_risk.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsRisk = "ps_risk" + +// PsRisk mapped from table +type PsRisk struct { + IDRisk int32 `gorm:"column:id_risk;primaryKey;autoIncrement:true" json:"id_risk"` + Percent int32 `gorm:"column:percent;not null" json:"percent"` + Color *string `gorm:"column:color" json:"color"` +} + +// TableName PsRisk's table name +func (*PsRisk) TableName() string { + return TableNamePsRisk +} + +var PsRiskCols = struct { + IDRisk gormcol.Field + Percent gormcol.Field + Color gormcol.Field +}{ + IDRisk: gormcol.Field{}.Set((&PsRisk{}).TableName(), "id_risk"), + Percent: gormcol.Field{}.Set((&PsRisk{}).TableName(), "percent"), + Color: gormcol.Field{}.Set((&PsRisk{}).TableName(), "color"), +} diff --git a/app/model/dbmodel/ps_risk_lang.go b/app/model/dbmodel/ps_risk_lang.go new file mode 100644 index 0000000..d319336 --- /dev/null +++ b/app/model/dbmodel/ps_risk_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsRiskLang = "ps_risk_lang" + +// PsRiskLang mapped from table +type PsRiskLang struct { + IDRisk int32 `gorm:"column:id_risk;primaryKey;index:id_risk,priority:1" json:"id_risk"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsRiskLang's table name +func (*PsRiskLang) TableName() string { + return TableNamePsRiskLang +} + +var PsRiskLangCols = struct { + IDRisk gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDRisk: gormcol.Field{}.Set((&PsRiskLang{}).TableName(), "id_risk"), + IDLang: gormcol.Field{}.Set((&PsRiskLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsRiskLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_search_engine.go b/app/model/dbmodel/ps_search_engine.go new file mode 100644 index 0000000..7b9491f --- /dev/null +++ b/app/model/dbmodel/ps_search_engine.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSearchEngine = "ps_search_engine" + +// PsSearchEngine mapped from table +type PsSearchEngine struct { + IDSearchEngine int32 `gorm:"column:id_search_engine;primaryKey;autoIncrement:true" json:"id_search_engine"` + Server string `gorm:"column:server;not null" json:"server"` + Getvar string `gorm:"column:getvar;not null" json:"getvar"` +} + +// TableName PsSearchEngine's table name +func (*PsSearchEngine) TableName() string { + return TableNamePsSearchEngine +} + +var PsSearchEngineCols = struct { + IDSearchEngine gormcol.Field + Server gormcol.Field + Getvar gormcol.Field +}{ + IDSearchEngine: gormcol.Field{}.Set((&PsSearchEngine{}).TableName(), "id_search_engine"), + Server: gormcol.Field{}.Set((&PsSearchEngine{}).TableName(), "server"), + Getvar: gormcol.Field{}.Set((&PsSearchEngine{}).TableName(), "getvar"), +} diff --git a/app/model/dbmodel/ps_search_index.go b/app/model/dbmodel/ps_search_index.go new file mode 100644 index 0000000..a9b1e98 --- /dev/null +++ b/app/model/dbmodel/ps_search_index.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSearchIndex = "ps_search_index" + +// PsSearchIndex mapped from table +type PsSearchIndex struct { + IDProduct int32 `gorm:"column:id_product;primaryKey;index:id_product,priority:1" json:"id_product"` + IDWord int32 `gorm:"column:id_word;primaryKey" json:"id_word"` + Weight int32 `gorm:"column:weight;not null;index:id_product,priority:2;default:1" json:"weight"` +} + +// TableName PsSearchIndex's table name +func (*PsSearchIndex) TableName() string { + return TableNamePsSearchIndex +} + +var PsSearchIndexCols = struct { + IDProduct gormcol.Field + IDWord gormcol.Field + Weight gormcol.Field +}{ + IDProduct: gormcol.Field{}.Set((&PsSearchIndex{}).TableName(), "id_product"), + IDWord: gormcol.Field{}.Set((&PsSearchIndex{}).TableName(), "id_word"), + Weight: gormcol.Field{}.Set((&PsSearchIndex{}).TableName(), "weight"), +} diff --git a/app/model/dbmodel/ps_search_word.go b/app/model/dbmodel/ps_search_word.go new file mode 100644 index 0000000..761177f --- /dev/null +++ b/app/model/dbmodel/ps_search_word.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSearchWord = "ps_search_word" + +// PsSearchWord mapped from table +type PsSearchWord struct { + IDWord int32 `gorm:"column:id_word;primaryKey;autoIncrement:true" json:"id_word"` + IDShop int32 `gorm:"column:id_shop;not null;uniqueIndex:id_lang,priority:2;default:1" json:"id_shop"` + IDLang int32 `gorm:"column:id_lang;not null;uniqueIndex:id_lang,priority:1" json:"id_lang"` + Word string `gorm:"column:word;not null;uniqueIndex:id_lang,priority:3" json:"word"` +} + +// TableName PsSearchWord's table name +func (*PsSearchWord) TableName() string { + return TableNamePsSearchWord +} + +var PsSearchWordCols = struct { + IDWord gormcol.Field + IDShop gormcol.Field + IDLang gormcol.Field + Word gormcol.Field +}{ + IDWord: gormcol.Field{}.Set((&PsSearchWord{}).TableName(), "id_word"), + IDShop: gormcol.Field{}.Set((&PsSearchWord{}).TableName(), "id_shop"), + IDLang: gormcol.Field{}.Set((&PsSearchWord{}).TableName(), "id_lang"), + Word: gormcol.Field{}.Set((&PsSearchWord{}).TableName(), "word"), +} diff --git a/app/model/dbmodel/ps_sekeyword.go b/app/model/dbmodel/ps_sekeyword.go new file mode 100644 index 0000000..ee870f8 --- /dev/null +++ b/app/model/dbmodel/ps_sekeyword.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSekeyword = "ps_sekeyword" + +// PsSekeyword mapped from table +type PsSekeyword struct { + IDSekeyword int32 `gorm:"column:id_sekeyword;primaryKey;autoIncrement:true" json:"id_sekeyword"` + IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"` + Keyword string `gorm:"column:keyword;not null" json:"keyword"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsSekeyword's table name +func (*PsSekeyword) TableName() string { + return TableNamePsSekeyword +} + +var PsSekeywordCols = struct { + IDSekeyword gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + Keyword gormcol.Field + DateAdd gormcol.Field +}{ + IDSekeyword: gormcol.Field{}.Set((&PsSekeyword{}).TableName(), "id_sekeyword"), + IDShop: gormcol.Field{}.Set((&PsSekeyword{}).TableName(), "id_shop"), + IDShopGroup: gormcol.Field{}.Set((&PsSekeyword{}).TableName(), "id_shop_group"), + Keyword: gormcol.Field{}.Set((&PsSekeyword{}).TableName(), "keyword"), + DateAdd: gormcol.Field{}.Set((&PsSekeyword{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_shop.go b/app/model/dbmodel/ps_shop.go new file mode 100644 index 0000000..f666b7d --- /dev/null +++ b/app/model/dbmodel/ps_shop.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsShop = "ps_shop" + +// PsShop mapped from table +type PsShop struct { + IDShop int32 `gorm:"column:id_shop;primaryKey;autoIncrement:true" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;index:IDX_CBDFBB9EF5C9E40,priority:1" json:"id_shop_group"` + Name string `gorm:"column:name;not null" json:"name"` + IDCategory int32 `gorm:"column:id_category;not null" json:"id_category"` + ThemeName string `gorm:"column:theme_name;not null" json:"theme_name"` + Active bool `gorm:"column:active;not null" json:"active"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsShop's table name +func (*PsShop) TableName() string { + return TableNamePsShop +} + +var PsShopCols = struct { + IDShop gormcol.Field + IDShopGroup gormcol.Field + Name gormcol.Field + IDCategory gormcol.Field + ThemeName gormcol.Field + Active gormcol.Field + Deleted gormcol.Field +}{ + IDShop: gormcol.Field{}.Set((&PsShop{}).TableName(), "id_shop"), + IDShopGroup: gormcol.Field{}.Set((&PsShop{}).TableName(), "id_shop_group"), + Name: gormcol.Field{}.Set((&PsShop{}).TableName(), "name"), + IDCategory: gormcol.Field{}.Set((&PsShop{}).TableName(), "id_category"), + ThemeName: gormcol.Field{}.Set((&PsShop{}).TableName(), "theme_name"), + Active: gormcol.Field{}.Set((&PsShop{}).TableName(), "active"), + Deleted: gormcol.Field{}.Set((&PsShop{}).TableName(), "deleted"), +} diff --git a/app/model/dbmodel/ps_shop_company.go b/app/model/dbmodel/ps_shop_company.go new file mode 100644 index 0000000..2843143 --- /dev/null +++ b/app/model/dbmodel/ps_shop_company.go @@ -0,0 +1,70 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsShopCompany = "ps_shop_company" + +// PsShopCompany mapped from table +type PsShopCompany struct { + IDShopCompany int32 `gorm:"column:id_shop_company;primaryKey;autoIncrement:true" json:"id_shop_company"` + Name *string `gorm:"column:name" json:"name"` + Address *string `gorm:"column:address" json:"address"` + Postcode *string `gorm:"column:postcode" json:"postcode"` + City *string `gorm:"column:city" json:"city"` + Phone *string `gorm:"column:phone" json:"phone"` + IDCountry int32 `gorm:"column:id_country;not null" json:"id_country"` + VatNumber *string `gorm:"column:vat_number;uniqueIndex:UQ_ps_shop_company_vat_number,priority:1" json:"vat_number"` + Email *string `gorm:"column:email" json:"email"` + BankAccount *string `gorm:"column:bank_account" json:"bank_account"` + LastNumber *int32 `gorm:"column:last_number" json:"last_number"` + IsDefault int32 `gorm:"column:is_default;not null" json:"is_default"` + Color *string `gorm:"column:color" json:"color"` + DateAdd *time.Time `gorm:"column:date_add;default:current_timestamp()" json:"date_add"` + DateUpd *time.Time `gorm:"column:date_upd;default:current_timestamp()" json:"date_upd"` +} + +// TableName PsShopCompany's table name +func (*PsShopCompany) TableName() string { + return TableNamePsShopCompany +} + +var PsShopCompanyCols = struct { + IDShopCompany gormcol.Field + Name gormcol.Field + Address gormcol.Field + Postcode gormcol.Field + City gormcol.Field + Phone gormcol.Field + IDCountry gormcol.Field + VatNumber gormcol.Field + Email gormcol.Field + BankAccount gormcol.Field + LastNumber gormcol.Field + IsDefault gormcol.Field + Color gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDShopCompany: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "id_shop_company"), + Name: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "name"), + Address: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "address"), + Postcode: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "postcode"), + City: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "city"), + Phone: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "phone"), + IDCountry: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "id_country"), + VatNumber: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "vat_number"), + Email: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "email"), + BankAccount: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "bank_account"), + LastNumber: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "last_number"), + IsDefault: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "is_default"), + Color: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "color"), + DateAdd: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_shop_group.go b/app/model/dbmodel/ps_shop_group.go new file mode 100644 index 0000000..46c0fc6 --- /dev/null +++ b/app/model/dbmodel/ps_shop_group.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsShopGroup = "ps_shop_group" + +// PsShopGroup mapped from table +type PsShopGroup struct { + IDShopGroup int32 `gorm:"column:id_shop_group;primaryKey;autoIncrement:true" json:"id_shop_group"` + Name string `gorm:"column:name;not null" json:"name"` + ShareCustomer bool `gorm:"column:share_customer;not null" json:"share_customer"` + ShareOrder bool `gorm:"column:share_order;not null" json:"share_order"` + ShareStock bool `gorm:"column:share_stock;not null" json:"share_stock"` + Active bool `gorm:"column:active;not null" json:"active"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsShopGroup's table name +func (*PsShopGroup) TableName() string { + return TableNamePsShopGroup +} + +var PsShopGroupCols = struct { + IDShopGroup gormcol.Field + Name gormcol.Field + ShareCustomer gormcol.Field + ShareOrder gormcol.Field + ShareStock gormcol.Field + Active gormcol.Field + Deleted gormcol.Field +}{ + IDShopGroup: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "id_shop_group"), + Name: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "name"), + ShareCustomer: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "share_customer"), + ShareOrder: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "share_order"), + ShareStock: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "share_stock"), + Active: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "active"), + Deleted: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "deleted"), +} diff --git a/app/model/dbmodel/ps_shop_url.go b/app/model/dbmodel/ps_shop_url.go new file mode 100644 index 0000000..d4a1ca7 --- /dev/null +++ b/app/model/dbmodel/ps_shop_url.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsShopURL = "ps_shop_url" + +// PsShopURL mapped from table +type PsShopURL struct { + IDShopURL int32 `gorm:"column:id_shop_url;primaryKey;autoIncrement:true" json:"id_shop_url"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1" json:"id_shop"` + Domain string `gorm:"column:domain;not null;uniqueIndex:full_shop_url,priority:1" json:"domain"` + DomainSsl string `gorm:"column:domain_ssl;not null;uniqueIndex:full_shop_url_ssl,priority:1" json:"domain_ssl"` + PhysicalURI string `gorm:"column:physical_uri;not null;uniqueIndex:full_shop_url,priority:2;uniqueIndex:full_shop_url_ssl,priority:2" json:"physical_uri"` + VirtualURI string `gorm:"column:virtual_uri;not null;uniqueIndex:full_shop_url,priority:3;uniqueIndex:full_shop_url_ssl,priority:3" json:"virtual_uri"` + Main bool `gorm:"column:main;not null;index:id_shop,priority:2" json:"main"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsShopURL's table name +func (*PsShopURL) TableName() string { + return TableNamePsShopURL +} + +var PsShopURLCols = struct { + IDShopURL gormcol.Field + IDShop gormcol.Field + Domain gormcol.Field + DomainSsl gormcol.Field + PhysicalURI gormcol.Field + VirtualURI gormcol.Field + Main gormcol.Field + Active gormcol.Field +}{ + IDShopURL: gormcol.Field{}.Set((&PsShopURL{}).TableName(), "id_shop_url"), + IDShop: gormcol.Field{}.Set((&PsShopURL{}).TableName(), "id_shop"), + Domain: gormcol.Field{}.Set((&PsShopURL{}).TableName(), "domain"), + DomainSsl: gormcol.Field{}.Set((&PsShopURL{}).TableName(), "domain_ssl"), + PhysicalURI: gormcol.Field{}.Set((&PsShopURL{}).TableName(), "physical_uri"), + VirtualURI: gormcol.Field{}.Set((&PsShopURL{}).TableName(), "virtual_uri"), + Main: gormcol.Field{}.Set((&PsShopURL{}).TableName(), "main"), + Active: gormcol.Field{}.Set((&PsShopURL{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_smarty_cache.go b/app/model/dbmodel/ps_smarty_cache.go new file mode 100644 index 0000000..8519209 --- /dev/null +++ b/app/model/dbmodel/ps_smarty_cache.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSmartyCache = "ps_smarty_cache" + +// PsSmartyCache mapped from table +type PsSmartyCache struct { + IDSmartyCache string `gorm:"column:id_smarty_cache;primaryKey" json:"id_smarty_cache"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` + CacheID *string `gorm:"column:cache_id;index:cache_id,priority:1" json:"cache_id"` + Modified time.Time `gorm:"column:modified;not null;index:modified,priority:1;default:current_timestamp()" json:"modified"` + Content string `gorm:"column:content;not null" json:"content"` +} + +// TableName PsSmartyCache's table name +func (*PsSmartyCache) TableName() string { + return TableNamePsSmartyCache +} + +var PsSmartyCacheCols = struct { + IDSmartyCache gormcol.Field + Name gormcol.Field + CacheID gormcol.Field + Modified gormcol.Field + Content gormcol.Field +}{ + IDSmartyCache: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "id_smarty_cache"), + Name: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "name"), + CacheID: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "cache_id"), + Modified: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "modified"), + Content: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "content"), +} diff --git a/app/model/dbmodel/ps_smarty_last_flush.go b/app/model/dbmodel/ps_smarty_last_flush.go new file mode 100644 index 0000000..b6a9e61 --- /dev/null +++ b/app/model/dbmodel/ps_smarty_last_flush.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSmartyLastFlush = "ps_smarty_last_flush" + +// PsSmartyLastFlush mapped from table +type PsSmartyLastFlush struct { + Type string `gorm:"column:type;primaryKey" json:"type"` + LastFlush time.Time `gorm:"column:last_flush;not null;default:0000-00-00 00:00:00" json:"last_flush"` +} + +// TableName PsSmartyLastFlush's table name +func (*PsSmartyLastFlush) TableName() string { + return TableNamePsSmartyLastFlush +} + +var PsSmartyLastFlushCols = struct { + Type gormcol.Field + LastFlush gormcol.Field +}{ + Type: gormcol.Field{}.Set((&PsSmartyLastFlush{}).TableName(), "type"), + LastFlush: gormcol.Field{}.Set((&PsSmartyLastFlush{}).TableName(), "last_flush"), +} diff --git a/app/model/dbmodel/ps_smarty_lazy_cache.go b/app/model/dbmodel/ps_smarty_lazy_cache.go new file mode 100644 index 0000000..8af4288 --- /dev/null +++ b/app/model/dbmodel/ps_smarty_lazy_cache.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSmartyLazyCache = "ps_smarty_lazy_cache" + +// PsSmartyLazyCache mapped from table +type PsSmartyLazyCache struct { + TemplateHash string `gorm:"column:template_hash;primaryKey" json:"template_hash"` + CacheID string `gorm:"column:cache_id;primaryKey" json:"cache_id"` + CompileID string `gorm:"column:compile_id;primaryKey" json:"compile_id"` + Filepath string `gorm:"column:filepath;not null" json:"filepath"` + LastUpdate time.Time `gorm:"column:last_update;not null;default:0000-00-00 00:00:00" json:"last_update"` +} + +// TableName PsSmartyLazyCache's table name +func (*PsSmartyLazyCache) TableName() string { + return TableNamePsSmartyLazyCache +} + +var PsSmartyLazyCacheCols = struct { + TemplateHash gormcol.Field + CacheID gormcol.Field + CompileID gormcol.Field + Filepath gormcol.Field + LastUpdate gormcol.Field +}{ + TemplateHash: gormcol.Field{}.Set((&PsSmartyLazyCache{}).TableName(), "template_hash"), + CacheID: gormcol.Field{}.Set((&PsSmartyLazyCache{}).TableName(), "cache_id"), + CompileID: gormcol.Field{}.Set((&PsSmartyLazyCache{}).TableName(), "compile_id"), + Filepath: gormcol.Field{}.Set((&PsSmartyLazyCache{}).TableName(), "filepath"), + LastUpdate: gormcol.Field{}.Set((&PsSmartyLazyCache{}).TableName(), "last_update"), +} diff --git a/app/model/dbmodel/ps_specific_price.go b/app/model/dbmodel/ps_specific_price.go new file mode 100644 index 0000000..942b624 --- /dev/null +++ b/app/model/dbmodel/ps_specific_price.go @@ -0,0 +1,79 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSpecificPrice = "ps_specific_price" + +// PsSpecificPrice mapped from table +type PsSpecificPrice struct { + IDSpecificPrice int32 `gorm:"column:id_specific_price;primaryKey;autoIncrement:true" json:"id_specific_price"` + IDSpecificPriceRule int32 `gorm:"column:id_specific_price_rule;not null;uniqueIndex:id_product_2,priority:13;index:id_specific_price_rule,priority:1" json:"id_specific_price_rule"` + IDCart int32 `gorm:"column:id_cart;not null;uniqueIndex:id_product_2,priority:4;index:id_cart,priority:1" json:"id_cart"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product_2,priority:1;index:id_product,priority:1" json:"id_product"` + IDShop int32 `gorm:"column:id_shop;not null;uniqueIndex:id_product_2,priority:7;index:id_product,priority:2;index:id_shop,priority:1;default:1" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;uniqueIndex:id_product_2,priority:8" json:"id_shop_group"` + IDCurrency int32 `gorm:"column:id_currency;not null;uniqueIndex:id_product_2,priority:9;index:id_product,priority:3" json:"id_currency"` + IDCountry int32 `gorm:"column:id_country;not null;uniqueIndex:id_product_2,priority:10;index:id_product,priority:4" json:"id_country"` + IDGroup int32 `gorm:"column:id_group;not null;uniqueIndex:id_product_2,priority:11;index:id_product,priority:5" json:"id_group"` + IDCustomer int32 `gorm:"column:id_customer;not null;uniqueIndex:id_product_2,priority:3;index:id_customer,priority:1;index:id_product,priority:6" json:"id_customer"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;uniqueIndex:id_product_2,priority:2;index:id_product_attribute,priority:1" json:"id_product_attribute"` + Price float64 `gorm:"column:price;not null" json:"price"` + FromQuantity int32 `gorm:"column:from_quantity;not null;uniqueIndex:id_product_2,priority:12;index:from_quantity,priority:1;index:id_product,priority:7" json:"from_quantity"` + Reduction float64 `gorm:"column:reduction;not null" json:"reduction"` + ReductionTax bool `gorm:"column:reduction_tax;not null;default:1" json:"reduction_tax"` + ReductionType string `gorm:"column:reduction_type;not null" json:"reduction_type"` + From time.Time `gorm:"column:from;not null;uniqueIndex:id_product_2,priority:5;index:from,priority:1;index:id_product,priority:8" json:"from"` + To time.Time `gorm:"column:to;not null;uniqueIndex:id_product_2,priority:6;index:id_product,priority:9;index:to,priority:1" json:"to"` +} + +// TableName PsSpecificPrice's table name +func (*PsSpecificPrice) TableName() string { + return TableNamePsSpecificPrice +} + +var PsSpecificPriceCols = struct { + IDSpecificPrice gormcol.Field + IDSpecificPriceRule gormcol.Field + IDCart gormcol.Field + IDProduct gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + IDCurrency gormcol.Field + IDCountry gormcol.Field + IDGroup gormcol.Field + IDCustomer gormcol.Field + IDProductAttribute gormcol.Field + Price gormcol.Field + FromQuantity gormcol.Field + Reduction gormcol.Field + ReductionTax gormcol.Field + ReductionType gormcol.Field + From gormcol.Field + To gormcol.Field +}{ + IDSpecificPrice: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_specific_price"), + IDSpecificPriceRule: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_specific_price_rule"), + IDCart: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_cart"), + IDProduct: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_product"), + IDShop: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_shop"), + IDShopGroup: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_shop_group"), + IDCurrency: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_currency"), + IDCountry: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_country"), + IDGroup: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_group"), + IDCustomer: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_customer"), + IDProductAttribute: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "id_product_attribute"), + Price: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "price"), + FromQuantity: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "from_quantity"), + Reduction: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "reduction"), + ReductionTax: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "reduction_tax"), + ReductionType: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "reduction_type"), + From: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "from"), + To: gormcol.Field{}.Set((&PsSpecificPrice{}).TableName(), "to"), +} diff --git a/app/model/dbmodel/ps_specific_price_priority.go b/app/model/dbmodel/ps_specific_price_priority.go new file mode 100644 index 0000000..a21731b --- /dev/null +++ b/app/model/dbmodel/ps_specific_price_priority.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSpecificPricePriority = "ps_specific_price_priority" + +// PsSpecificPricePriority mapped from table +type PsSpecificPricePriority struct { + IDSpecificPricePriority int32 `gorm:"column:id_specific_price_priority;primaryKey;autoIncrement:true" json:"id_specific_price_priority"` + IDProduct int32 `gorm:"column:id_product;primaryKey;uniqueIndex:id_product,priority:1" json:"id_product"` + Priority string `gorm:"column:priority;not null" json:"priority"` +} + +// TableName PsSpecificPricePriority's table name +func (*PsSpecificPricePriority) TableName() string { + return TableNamePsSpecificPricePriority +} + +var PsSpecificPricePriorityCols = struct { + IDSpecificPricePriority gormcol.Field + IDProduct gormcol.Field + Priority gormcol.Field +}{ + IDSpecificPricePriority: gormcol.Field{}.Set((&PsSpecificPricePriority{}).TableName(), "id_specific_price_priority"), + IDProduct: gormcol.Field{}.Set((&PsSpecificPricePriority{}).TableName(), "id_product"), + Priority: gormcol.Field{}.Set((&PsSpecificPricePriority{}).TableName(), "priority"), +} diff --git a/app/model/dbmodel/ps_specific_price_rule.go b/app/model/dbmodel/ps_specific_price_rule.go new file mode 100644 index 0000000..764a2e3 --- /dev/null +++ b/app/model/dbmodel/ps_specific_price_rule.go @@ -0,0 +1,64 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSpecificPriceRule = "ps_specific_price_rule" + +// PsSpecificPriceRule mapped from table +type PsSpecificPriceRule struct { + IDSpecificPriceRule int32 `gorm:"column:id_specific_price_rule;primaryKey;autoIncrement:true" json:"id_specific_price_rule"` + Name string `gorm:"column:name;not null" json:"name"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_product,priority:1;default:1" json:"id_shop"` + IDCurrency int32 `gorm:"column:id_currency;not null;index:id_product,priority:2" json:"id_currency"` + IDCountry int32 `gorm:"column:id_country;not null;index:id_product,priority:3" json:"id_country"` + IDGroup int32 `gorm:"column:id_group;not null;index:id_product,priority:4" json:"id_group"` + FromQuantity int32 `gorm:"column:from_quantity;not null;index:id_product,priority:5" json:"from_quantity"` + Price *float64 `gorm:"column:price" json:"price"` + Reduction float64 `gorm:"column:reduction;not null" json:"reduction"` + ReductionTax bool `gorm:"column:reduction_tax;not null;default:1" json:"reduction_tax"` + ReductionType string `gorm:"column:reduction_type;not null" json:"reduction_type"` + From time.Time `gorm:"column:from;not null;index:id_product,priority:6" json:"from"` + To time.Time `gorm:"column:to;not null;index:id_product,priority:7" json:"to"` +} + +// TableName PsSpecificPriceRule's table name +func (*PsSpecificPriceRule) TableName() string { + return TableNamePsSpecificPriceRule +} + +var PsSpecificPriceRuleCols = struct { + IDSpecificPriceRule gormcol.Field + Name gormcol.Field + IDShop gormcol.Field + IDCurrency gormcol.Field + IDCountry gormcol.Field + IDGroup gormcol.Field + FromQuantity gormcol.Field + Price gormcol.Field + Reduction gormcol.Field + ReductionTax gormcol.Field + ReductionType gormcol.Field + From gormcol.Field + To gormcol.Field +}{ + IDSpecificPriceRule: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "id_specific_price_rule"), + Name: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "name"), + IDShop: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "id_shop"), + IDCurrency: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "id_currency"), + IDCountry: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "id_country"), + IDGroup: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "id_group"), + FromQuantity: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "from_quantity"), + Price: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "price"), + Reduction: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "reduction"), + ReductionTax: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "reduction_tax"), + ReductionType: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "reduction_type"), + From: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "from"), + To: gormcol.Field{}.Set((&PsSpecificPriceRule{}).TableName(), "to"), +} diff --git a/app/model/dbmodel/ps_specific_price_rule_condition.go b/app/model/dbmodel/ps_specific_price_rule_condition.go new file mode 100644 index 0000000..765b362 --- /dev/null +++ b/app/model/dbmodel/ps_specific_price_rule_condition.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSpecificPriceRuleCondition = "ps_specific_price_rule_condition" + +// PsSpecificPriceRuleCondition mapped from table +type PsSpecificPriceRuleCondition struct { + IDSpecificPriceRuleCondition int32 `gorm:"column:id_specific_price_rule_condition;primaryKey;autoIncrement:true" json:"id_specific_price_rule_condition"` + IDSpecificPriceRuleConditionGroup int32 `gorm:"column:id_specific_price_rule_condition_group;not null;index:id_specific_price_rule_condition_group,priority:1" json:"id_specific_price_rule_condition_group"` + Type string `gorm:"column:type;not null" json:"type"` + Value string `gorm:"column:value;not null" json:"value"` +} + +// TableName PsSpecificPriceRuleCondition's table name +func (*PsSpecificPriceRuleCondition) TableName() string { + return TableNamePsSpecificPriceRuleCondition +} + +var PsSpecificPriceRuleConditionCols = struct { + IDSpecificPriceRuleCondition gormcol.Field + IDSpecificPriceRuleConditionGroup gormcol.Field + Type gormcol.Field + Value gormcol.Field +}{ + IDSpecificPriceRuleCondition: gormcol.Field{}.Set((&PsSpecificPriceRuleCondition{}).TableName(), "id_specific_price_rule_condition"), + IDSpecificPriceRuleConditionGroup: gormcol.Field{}.Set((&PsSpecificPriceRuleCondition{}).TableName(), "id_specific_price_rule_condition_group"), + Type: gormcol.Field{}.Set((&PsSpecificPriceRuleCondition{}).TableName(), "type"), + Value: gormcol.Field{}.Set((&PsSpecificPriceRuleCondition{}).TableName(), "value"), +} diff --git a/app/model/dbmodel/ps_specific_price_rule_condition_group.go b/app/model/dbmodel/ps_specific_price_rule_condition_group.go new file mode 100644 index 0000000..f116812 --- /dev/null +++ b/app/model/dbmodel/ps_specific_price_rule_condition_group.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSpecificPriceRuleConditionGroup = "ps_specific_price_rule_condition_group" + +// PsSpecificPriceRuleConditionGroup mapped from table +type PsSpecificPriceRuleConditionGroup struct { + IDSpecificPriceRuleConditionGroup int32 `gorm:"column:id_specific_price_rule_condition_group;primaryKey;autoIncrement:true" json:"id_specific_price_rule_condition_group"` + IDSpecificPriceRule int32 `gorm:"column:id_specific_price_rule;primaryKey" json:"id_specific_price_rule"` +} + +// TableName PsSpecificPriceRuleConditionGroup's table name +func (*PsSpecificPriceRuleConditionGroup) TableName() string { + return TableNamePsSpecificPriceRuleConditionGroup +} + +var PsSpecificPriceRuleConditionGroupCols = struct { + IDSpecificPriceRuleConditionGroup gormcol.Field + IDSpecificPriceRule gormcol.Field +}{ + IDSpecificPriceRuleConditionGroup: gormcol.Field{}.Set((&PsSpecificPriceRuleConditionGroup{}).TableName(), "id_specific_price_rule_condition_group"), + IDSpecificPriceRule: gormcol.Field{}.Set((&PsSpecificPriceRuleConditionGroup{}).TableName(), "id_specific_price_rule"), +} diff --git a/app/model/dbmodel/ps_state.go b/app/model/dbmodel/ps_state.go new file mode 100644 index 0000000..b50ac8d --- /dev/null +++ b/app/model/dbmodel/ps_state.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsState = "ps_state" + +// PsState mapped from table +type PsState struct { + IDState int32 `gorm:"column:id_state;primaryKey;autoIncrement:true" json:"id_state"` + IDCountry int32 `gorm:"column:id_country;not null;index:id_country,priority:1" json:"id_country"` + IDZone int32 `gorm:"column:id_zone;not null;index:id_zone,priority:1" json:"id_zone"` + Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"` + IsoCode string `gorm:"column:iso_code;not null" json:"iso_code"` + TaxBehavior int32 `gorm:"column:tax_behavior;not null" json:"tax_behavior"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsState's table name +func (*PsState) TableName() string { + return TableNamePsState +} + +var PsStateCols = struct { + IDState gormcol.Field + IDCountry gormcol.Field + IDZone gormcol.Field + Name gormcol.Field + IsoCode gormcol.Field + TaxBehavior gormcol.Field + Active gormcol.Field +}{ + IDState: gormcol.Field{}.Set((&PsState{}).TableName(), "id_state"), + IDCountry: gormcol.Field{}.Set((&PsState{}).TableName(), "id_country"), + IDZone: gormcol.Field{}.Set((&PsState{}).TableName(), "id_zone"), + Name: gormcol.Field{}.Set((&PsState{}).TableName(), "name"), + IsoCode: gormcol.Field{}.Set((&PsState{}).TableName(), "iso_code"), + TaxBehavior: gormcol.Field{}.Set((&PsState{}).TableName(), "tax_behavior"), + Active: gormcol.Field{}.Set((&PsState{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_statssearch.go b/app/model/dbmodel/ps_statssearch.go new file mode 100644 index 0000000..a01cf7c --- /dev/null +++ b/app/model/dbmodel/ps_statssearch.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsStatssearch = "ps_statssearch" + +// PsStatssearch mapped from table +type PsStatssearch struct { + IDStatssearch int32 `gorm:"column:id_statssearch;primaryKey;autoIncrement:true" json:"id_statssearch"` + IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"` + Keywords string `gorm:"column:keywords;not null" json:"keywords"` + Results int32 `gorm:"column:results;not null" json:"results"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsStatssearch's table name +func (*PsStatssearch) TableName() string { + return TableNamePsStatssearch +} + +var PsStatssearchCols = struct { + IDStatssearch gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + Keywords gormcol.Field + Results gormcol.Field + DateAdd gormcol.Field +}{ + IDStatssearch: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "id_statssearch"), + IDShop: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "id_shop"), + IDShopGroup: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "id_shop_group"), + Keywords: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "keywords"), + Results: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "results"), + DateAdd: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_stock.go b/app/model/dbmodel/ps_stock.go new file mode 100644 index 0000000..f0fc94f --- /dev/null +++ b/app/model/dbmodel/ps_stock.go @@ -0,0 +1,55 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsStock = "ps_stock" + +// PsStock mapped from table +type PsStock struct { + IDStock int32 `gorm:"column:id_stock;primaryKey;autoIncrement:true" json:"id_stock"` + IDWarehouse int32 `gorm:"column:id_warehouse;not null;index:id_warehouse,priority:1" json:"id_warehouse"` + IDProduct int32 `gorm:"column:id_product;not null;index:id_product,priority:1" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;index:id_product_attribute,priority:1" json:"id_product_attribute"` + Reference string `gorm:"column:reference;not null" json:"reference"` + Ean13 *string `gorm:"column:ean13" json:"ean13"` + Isbn *string `gorm:"column:isbn" json:"isbn"` + Upc *string `gorm:"column:upc" json:"upc"` + PhysicalQuantity int32 `gorm:"column:physical_quantity;not null" json:"physical_quantity"` + UsableQuantity int32 `gorm:"column:usable_quantity;not null" json:"usable_quantity"` + PriceTe *float64 `gorm:"column:price_te;default:0.000000" json:"price_te"` +} + +// TableName PsStock's table name +func (*PsStock) TableName() string { + return TableNamePsStock +} + +var PsStockCols = struct { + IDStock gormcol.Field + IDWarehouse gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + Reference gormcol.Field + Ean13 gormcol.Field + Isbn gormcol.Field + Upc gormcol.Field + PhysicalQuantity gormcol.Field + UsableQuantity gormcol.Field + PriceTe gormcol.Field +}{ + IDStock: gormcol.Field{}.Set((&PsStock{}).TableName(), "id_stock"), + IDWarehouse: gormcol.Field{}.Set((&PsStock{}).TableName(), "id_warehouse"), + IDProduct: gormcol.Field{}.Set((&PsStock{}).TableName(), "id_product"), + IDProductAttribute: gormcol.Field{}.Set((&PsStock{}).TableName(), "id_product_attribute"), + Reference: gormcol.Field{}.Set((&PsStock{}).TableName(), "reference"), + Ean13: gormcol.Field{}.Set((&PsStock{}).TableName(), "ean13"), + Isbn: gormcol.Field{}.Set((&PsStock{}).TableName(), "isbn"), + Upc: gormcol.Field{}.Set((&PsStock{}).TableName(), "upc"), + PhysicalQuantity: gormcol.Field{}.Set((&PsStock{}).TableName(), "physical_quantity"), + UsableQuantity: gormcol.Field{}.Set((&PsStock{}).TableName(), "usable_quantity"), + PriceTe: gormcol.Field{}.Set((&PsStock{}).TableName(), "price_te"), +} diff --git a/app/model/dbmodel/ps_stock_available.go b/app/model/dbmodel/ps_stock_available.go new file mode 100644 index 0000000..dab3dfd --- /dev/null +++ b/app/model/dbmodel/ps_stock_available.go @@ -0,0 +1,55 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsStockAvailable = "ps_stock_available" + +// PsStockAvailable mapped from table +type PsStockAvailable struct { + IDStockAvailable int32 `gorm:"column:id_stock_available;primaryKey;autoIncrement:true" json:"id_stock_available"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:product_sqlstock,priority:1;index:idx_id_product_attribute,priority:1;index:idx_product_stock,priority:1;index:idx_ps_stock_available,priority:1;index:idx_stock_available,priority:1;index:id_product,priority:1" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;uniqueIndex:product_sqlstock,priority:2;index:idx_id_product_attribute,priority:2;index:idx_product_stock,priority:2;index:idx_stock_available,priority:2;index:id_product_attribute,priority:1" json:"id_product_attribute"` + IDShop int32 `gorm:"column:id_shop;not null;uniqueIndex:product_sqlstock,priority:3;index:idx_ps_stock_available,priority:2;index:idx_stock_available,priority:3;index:id_shop,priority:1" json:"id_shop"` + IDShopGroup int32 `gorm:"column:id_shop_group;not null;uniqueIndex:product_sqlstock,priority:4;index:idx_ps_stock_available,priority:3;index:idx_stock_available,priority:4;index:id_shop_group,priority:1" json:"id_shop_group"` + Quantity int32 `gorm:"column:quantity;not null;index:idx_stock_available,priority:5" json:"quantity"` + PhysicalQuantity int32 `gorm:"column:physical_quantity;not null" json:"physical_quantity"` + ReservedQuantity int32 `gorm:"column:reserved_quantity;not null" json:"reserved_quantity"` + DependsOnStock bool `gorm:"column:depends_on_stock;not null" json:"depends_on_stock"` + OutOfStock bool `gorm:"column:out_of_stock;not null;index:idx_stock_available,priority:6" json:"out_of_stock"` + Location string `gorm:"column:location;not null" json:"location"` +} + +// TableName PsStockAvailable's table name +func (*PsStockAvailable) TableName() string { + return TableNamePsStockAvailable +} + +var PsStockAvailableCols = struct { + IDStockAvailable gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDShop gormcol.Field + IDShopGroup gormcol.Field + Quantity gormcol.Field + PhysicalQuantity gormcol.Field + ReservedQuantity gormcol.Field + DependsOnStock gormcol.Field + OutOfStock gormcol.Field + Location gormcol.Field +}{ + IDStockAvailable: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_stock_available"), + IDProduct: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_product"), + IDProductAttribute: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_product_attribute"), + IDShop: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_shop"), + IDShopGroup: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_shop_group"), + Quantity: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "quantity"), + PhysicalQuantity: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "physical_quantity"), + ReservedQuantity: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "reserved_quantity"), + DependsOnStock: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "depends_on_stock"), + OutOfStock: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "out_of_stock"), + Location: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "location"), +} diff --git a/app/model/dbmodel/ps_stock_mvt.go b/app/model/dbmodel/ps_stock_mvt.go new file mode 100644 index 0000000..803bfc6 --- /dev/null +++ b/app/model/dbmodel/ps_stock_mvt.go @@ -0,0 +1,70 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsStockMvt = "ps_stock_mvt" + +// PsStockMvt mapped from table +type PsStockMvt struct { + IDStockMvt int64 `gorm:"column:id_stock_mvt;primaryKey;autoIncrement:true" json:"id_stock_mvt"` + IDStock int32 `gorm:"column:id_stock;not null;index:id_stock,priority:1" json:"id_stock"` + IDOrder *int32 `gorm:"column:id_order" json:"id_order"` + IDSupplyOrder *int32 `gorm:"column:id_supply_order" json:"id_supply_order"` + IDStockMvtReason int32 `gorm:"column:id_stock_mvt_reason;not null;index:id_stock_mvt_reason,priority:1" json:"id_stock_mvt_reason"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + EmployeeLastname *string `gorm:"column:employee_lastname" json:"employee_lastname"` + EmployeeFirstname *string `gorm:"column:employee_firstname" json:"employee_firstname"` + PhysicalQuantity int32 `gorm:"column:physical_quantity;not null" json:"physical_quantity"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + Sign int32 `gorm:"column:sign;not null;default:1" json:"sign"` + PriceTe *float64 `gorm:"column:price_te;default:0.000000" json:"price_te"` + LastWa *float64 `gorm:"column:last_wa;default:0.000000" json:"last_wa"` + CurrentWa *float64 `gorm:"column:current_wa;default:0.000000" json:"current_wa"` + Referer *int64 `gorm:"column:referer" json:"referer"` +} + +// TableName PsStockMvt's table name +func (*PsStockMvt) TableName() string { + return TableNamePsStockMvt +} + +var PsStockMvtCols = struct { + IDStockMvt gormcol.Field + IDStock gormcol.Field + IDOrder gormcol.Field + IDSupplyOrder gormcol.Field + IDStockMvtReason gormcol.Field + IDEmployee gormcol.Field + EmployeeLastname gormcol.Field + EmployeeFirstname gormcol.Field + PhysicalQuantity gormcol.Field + DateAdd gormcol.Field + Sign gormcol.Field + PriceTe gormcol.Field + LastWa gormcol.Field + CurrentWa gormcol.Field + Referer gormcol.Field +}{ + IDStockMvt: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_stock_mvt"), + IDStock: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_stock"), + IDOrder: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_order"), + IDSupplyOrder: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_supply_order"), + IDStockMvtReason: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_stock_mvt_reason"), + IDEmployee: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_employee"), + EmployeeLastname: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "employee_lastname"), + EmployeeFirstname: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "employee_firstname"), + PhysicalQuantity: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "physical_quantity"), + DateAdd: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "date_add"), + Sign: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "sign"), + PriceTe: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "price_te"), + LastWa: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "last_wa"), + CurrentWa: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "current_wa"), + Referer: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "referer"), +} diff --git a/app/model/dbmodel/ps_stock_mvt_reason.go b/app/model/dbmodel/ps_stock_mvt_reason.go new file mode 100644 index 0000000..aa6ea4c --- /dev/null +++ b/app/model/dbmodel/ps_stock_mvt_reason.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsStockMvtReason = "ps_stock_mvt_reason" + +// PsStockMvtReason mapped from table +type PsStockMvtReason struct { + IDStockMvtReason int32 `gorm:"column:id_stock_mvt_reason;primaryKey;autoIncrement:true" json:"id_stock_mvt_reason"` + Sign bool `gorm:"column:sign;not null;default:1" json:"sign"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsStockMvtReason's table name +func (*PsStockMvtReason) TableName() string { + return TableNamePsStockMvtReason +} + +var PsStockMvtReasonCols = struct { + IDStockMvtReason gormcol.Field + Sign gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Deleted gormcol.Field +}{ + IDStockMvtReason: gormcol.Field{}.Set((&PsStockMvtReason{}).TableName(), "id_stock_mvt_reason"), + Sign: gormcol.Field{}.Set((&PsStockMvtReason{}).TableName(), "sign"), + DateAdd: gormcol.Field{}.Set((&PsStockMvtReason{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsStockMvtReason{}).TableName(), "date_upd"), + Deleted: gormcol.Field{}.Set((&PsStockMvtReason{}).TableName(), "deleted"), +} diff --git a/app/model/dbmodel/ps_stock_mvt_reason_lang.go b/app/model/dbmodel/ps_stock_mvt_reason_lang.go new file mode 100644 index 0000000..786717c --- /dev/null +++ b/app/model/dbmodel/ps_stock_mvt_reason_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsStockMvtReasonLang = "ps_stock_mvt_reason_lang" + +// PsStockMvtReasonLang mapped from table +type PsStockMvtReasonLang struct { + IDStockMvtReason int32 `gorm:"column:id_stock_mvt_reason;primaryKey" json:"id_stock_mvt_reason"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsStockMvtReasonLang's table name +func (*PsStockMvtReasonLang) TableName() string { + return TableNamePsStockMvtReasonLang +} + +var PsStockMvtReasonLangCols = struct { + IDStockMvtReason gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDStockMvtReason: gormcol.Field{}.Set((&PsStockMvtReasonLang{}).TableName(), "id_stock_mvt_reason"), + IDLang: gormcol.Field{}.Set((&PsStockMvtReasonLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsStockMvtReasonLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_store.go b/app/model/dbmodel/ps_store.go new file mode 100644 index 0000000..d6f81ad --- /dev/null +++ b/app/model/dbmodel/ps_store.go @@ -0,0 +1,64 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsStore = "ps_store" + +// PsStore mapped from table +type PsStore struct { + IDStore int32 `gorm:"column:id_store;primaryKey;autoIncrement:true" json:"id_store"` + IDCountry int32 `gorm:"column:id_country;not null" json:"id_country"` + IDState *int32 `gorm:"column:id_state" json:"id_state"` + City string `gorm:"column:city;not null" json:"city"` + Postcode string `gorm:"column:postcode;not null" json:"postcode"` + Latitude *float64 `gorm:"column:latitude" json:"latitude"` + Longitude *float64 `gorm:"column:longitude" json:"longitude"` + Phone *string `gorm:"column:phone" json:"phone"` + Fax *string `gorm:"column:fax" json:"fax"` + Email *string `gorm:"column:email" json:"email"` + Active bool `gorm:"column:active;not null" json:"active"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsStore's table name +func (*PsStore) TableName() string { + return TableNamePsStore +} + +var PsStoreCols = struct { + IDStore gormcol.Field + IDCountry gormcol.Field + IDState gormcol.Field + City gormcol.Field + Postcode gormcol.Field + Latitude gormcol.Field + Longitude gormcol.Field + Phone gormcol.Field + Fax gormcol.Field + Email gormcol.Field + Active gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDStore: gormcol.Field{}.Set((&PsStore{}).TableName(), "id_store"), + IDCountry: gormcol.Field{}.Set((&PsStore{}).TableName(), "id_country"), + IDState: gormcol.Field{}.Set((&PsStore{}).TableName(), "id_state"), + City: gormcol.Field{}.Set((&PsStore{}).TableName(), "city"), + Postcode: gormcol.Field{}.Set((&PsStore{}).TableName(), "postcode"), + Latitude: gormcol.Field{}.Set((&PsStore{}).TableName(), "latitude"), + Longitude: gormcol.Field{}.Set((&PsStore{}).TableName(), "longitude"), + Phone: gormcol.Field{}.Set((&PsStore{}).TableName(), "phone"), + Fax: gormcol.Field{}.Set((&PsStore{}).TableName(), "fax"), + Email: gormcol.Field{}.Set((&PsStore{}).TableName(), "email"), + Active: gormcol.Field{}.Set((&PsStore{}).TableName(), "active"), + DateAdd: gormcol.Field{}.Set((&PsStore{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsStore{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_store_lang.go b/app/model/dbmodel/ps_store_lang.go new file mode 100644 index 0000000..ca70e54 --- /dev/null +++ b/app/model/dbmodel/ps_store_lang.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsStoreLang = "ps_store_lang" + +// PsStoreLang mapped from table +type PsStoreLang struct { + IDStore int32 `gorm:"column:id_store;primaryKey" json:"id_store"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Address1 string `gorm:"column:address1;not null" json:"address1"` + Address2 *string `gorm:"column:address2" json:"address2"` + Hours *string `gorm:"column:hours" json:"hours"` + Note *string `gorm:"column:note" json:"note"` +} + +// TableName PsStoreLang's table name +func (*PsStoreLang) TableName() string { + return TableNamePsStoreLang +} + +var PsStoreLangCols = struct { + IDStore gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Address1 gormcol.Field + Address2 gormcol.Field + Hours gormcol.Field + Note gormcol.Field +}{ + IDStore: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "id_store"), + IDLang: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "name"), + Address1: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "address1"), + Address2: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "address2"), + Hours: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "hours"), + Note: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "note"), +} diff --git a/app/model/dbmodel/ps_store_shop.go b/app/model/dbmodel/ps_store_shop.go new file mode 100644 index 0000000..b9dc386 --- /dev/null +++ b/app/model/dbmodel/ps_store_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsStoreShop = "ps_store_shop" + +// PsStoreShop mapped from table +type PsStoreShop struct { + IDStore int32 `gorm:"column:id_store;primaryKey" json:"id_store"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsStoreShop's table name +func (*PsStoreShop) TableName() string { + return TableNamePsStoreShop +} + +var PsStoreShopCols = struct { + IDStore gormcol.Field + IDShop gormcol.Field +}{ + IDStore: gormcol.Field{}.Set((&PsStoreShop{}).TableName(), "id_store"), + IDShop: gormcol.Field{}.Set((&PsStoreShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_supplier.go b/app/model/dbmodel/ps_supplier.go new file mode 100644 index 0000000..e024ced --- /dev/null +++ b/app/model/dbmodel/ps_supplier.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSupplier = "ps_supplier" + +// PsSupplier mapped from table +type PsSupplier struct { + IDSupplier int32 `gorm:"column:id_supplier;primaryKey;autoIncrement:true" json:"id_supplier"` + Name string `gorm:"column:name;not null" json:"name"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsSupplier's table name +func (*PsSupplier) TableName() string { + return TableNamePsSupplier +} + +var PsSupplierCols = struct { + IDSupplier gormcol.Field + Name gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + Active gormcol.Field +}{ + IDSupplier: gormcol.Field{}.Set((&PsSupplier{}).TableName(), "id_supplier"), + Name: gormcol.Field{}.Set((&PsSupplier{}).TableName(), "name"), + DateAdd: gormcol.Field{}.Set((&PsSupplier{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsSupplier{}).TableName(), "date_upd"), + Active: gormcol.Field{}.Set((&PsSupplier{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_supplier_lang.go b/app/model/dbmodel/ps_supplier_lang.go new file mode 100644 index 0000000..0c912fc --- /dev/null +++ b/app/model/dbmodel/ps_supplier_lang.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSupplierLang = "ps_supplier_lang" + +// PsSupplierLang mapped from table +type PsSupplierLang struct { + IDSupplier int32 `gorm:"column:id_supplier;primaryKey" json:"id_supplier"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Description *string `gorm:"column:description" json:"description"` + MetaTitle *string `gorm:"column:meta_title" json:"meta_title"` + MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"` + MetaDescription *string `gorm:"column:meta_description" json:"meta_description"` +} + +// TableName PsSupplierLang's table name +func (*PsSupplierLang) TableName() string { + return TableNamePsSupplierLang +} + +var PsSupplierLangCols = struct { + IDSupplier gormcol.Field + IDLang gormcol.Field + Description gormcol.Field + MetaTitle gormcol.Field + MetaKeywords gormcol.Field + MetaDescription gormcol.Field +}{ + IDSupplier: gormcol.Field{}.Set((&PsSupplierLang{}).TableName(), "id_supplier"), + IDLang: gormcol.Field{}.Set((&PsSupplierLang{}).TableName(), "id_lang"), + Description: gormcol.Field{}.Set((&PsSupplierLang{}).TableName(), "description"), + MetaTitle: gormcol.Field{}.Set((&PsSupplierLang{}).TableName(), "meta_title"), + MetaKeywords: gormcol.Field{}.Set((&PsSupplierLang{}).TableName(), "meta_keywords"), + MetaDescription: gormcol.Field{}.Set((&PsSupplierLang{}).TableName(), "meta_description"), +} diff --git a/app/model/dbmodel/ps_supplier_shop.go b/app/model/dbmodel/ps_supplier_shop.go new file mode 100644 index 0000000..ab5b927 --- /dev/null +++ b/app/model/dbmodel/ps_supplier_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSupplierShop = "ps_supplier_shop" + +// PsSupplierShop mapped from table +type PsSupplierShop struct { + IDSupplier int32 `gorm:"column:id_supplier;primaryKey" json:"id_supplier"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsSupplierShop's table name +func (*PsSupplierShop) TableName() string { + return TableNamePsSupplierShop +} + +var PsSupplierShopCols = struct { + IDSupplier gormcol.Field + IDShop gormcol.Field +}{ + IDSupplier: gormcol.Field{}.Set((&PsSupplierShop{}).TableName(), "id_supplier"), + IDShop: gormcol.Field{}.Set((&PsSupplierShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_supply_order.go b/app/model/dbmodel/ps_supply_order.go new file mode 100644 index 0000000..2b99b08 --- /dev/null +++ b/app/model/dbmodel/ps_supply_order.go @@ -0,0 +1,82 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSupplyOrder = "ps_supply_order" + +// PsSupplyOrder mapped from table +type PsSupplyOrder struct { + IDSupplyOrder int32 `gorm:"column:id_supply_order;primaryKey;autoIncrement:true" json:"id_supply_order"` + IDSupplier int32 `gorm:"column:id_supplier;not null;index:id_supplier,priority:1" json:"id_supplier"` + SupplierName string `gorm:"column:supplier_name;not null" json:"supplier_name"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` + IDWarehouse int32 `gorm:"column:id_warehouse;not null;index:id_warehouse,priority:1" json:"id_warehouse"` + IDSupplyOrderState int32 `gorm:"column:id_supply_order_state;not null" json:"id_supply_order_state"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` + IDRefCurrency int32 `gorm:"column:id_ref_currency;not null" json:"id_ref_currency"` + Reference string `gorm:"column:reference;not null;index:reference,priority:1" json:"reference"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` + DateDeliveryExpected *time.Time `gorm:"column:date_delivery_expected" json:"date_delivery_expected"` + TotalTe *float64 `gorm:"column:total_te;default:0.000000" json:"total_te"` + TotalWithDiscountTe *float64 `gorm:"column:total_with_discount_te;default:0.000000" json:"total_with_discount_te"` + TotalTax *float64 `gorm:"column:total_tax;default:0.000000" json:"total_tax"` + TotalTi *float64 `gorm:"column:total_ti;default:0.000000" json:"total_ti"` + DiscountRate *float64 `gorm:"column:discount_rate;default:0.000000" json:"discount_rate"` + DiscountValueTe *float64 `gorm:"column:discount_value_te;default:0.000000" json:"discount_value_te"` + IsTemplate *bool `gorm:"column:is_template" json:"is_template"` +} + +// TableName PsSupplyOrder's table name +func (*PsSupplyOrder) TableName() string { + return TableNamePsSupplyOrder +} + +var PsSupplyOrderCols = struct { + IDSupplyOrder gormcol.Field + IDSupplier gormcol.Field + SupplierName gormcol.Field + IDLang gormcol.Field + IDWarehouse gormcol.Field + IDSupplyOrderState gormcol.Field + IDCurrency gormcol.Field + IDRefCurrency gormcol.Field + Reference gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field + DateDeliveryExpected gormcol.Field + TotalTe gormcol.Field + TotalWithDiscountTe gormcol.Field + TotalTax gormcol.Field + TotalTi gormcol.Field + DiscountRate gormcol.Field + DiscountValueTe gormcol.Field + IsTemplate gormcol.Field +}{ + IDSupplyOrder: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "id_supply_order"), + IDSupplier: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "id_supplier"), + SupplierName: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "supplier_name"), + IDLang: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "id_lang"), + IDWarehouse: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "id_warehouse"), + IDSupplyOrderState: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "id_supply_order_state"), + IDCurrency: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "id_currency"), + IDRefCurrency: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "id_ref_currency"), + Reference: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "reference"), + DateAdd: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "date_upd"), + DateDeliveryExpected: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "date_delivery_expected"), + TotalTe: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "total_te"), + TotalWithDiscountTe: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "total_with_discount_te"), + TotalTax: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "total_tax"), + TotalTi: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "total_ti"), + DiscountRate: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "discount_rate"), + DiscountValueTe: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "discount_value_te"), + IsTemplate: gormcol.Field{}.Set((&PsSupplyOrder{}).TableName(), "is_template"), +} diff --git a/app/model/dbmodel/ps_supply_order_detail.go b/app/model/dbmodel/ps_supply_order_detail.go new file mode 100644 index 0000000..18f6658 --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_detail.go @@ -0,0 +1,94 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSupplyOrderDetail = "ps_supply_order_detail" + +// PsSupplyOrderDetail mapped from table +type PsSupplyOrderDetail struct { + IDSupplyOrderDetail int32 `gorm:"column:id_supply_order_detail;primaryKey;autoIncrement:true" json:"id_supply_order_detail"` + IDSupplyOrder int32 `gorm:"column:id_supply_order;not null;index:id_supply_order,priority:1" json:"id_supply_order"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` + IDProduct int32 `gorm:"column:id_product;not null;index:id_product_product_attribute,priority:1;index:id_supply_order,priority:2" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;index:id_product_attribute,priority:1;index:id_product_product_attribute,priority:2" json:"id_product_attribute"` + Reference string `gorm:"column:reference;not null" json:"reference"` + SupplierReference string `gorm:"column:supplier_reference;not null" json:"supplier_reference"` + Name string `gorm:"column:name;not null" json:"name"` + Ean13 *string `gorm:"column:ean13" json:"ean13"` + Isbn *string `gorm:"column:isbn" json:"isbn"` + Upc *string `gorm:"column:upc" json:"upc"` + ExchangeRate *float64 `gorm:"column:exchange_rate;default:0.000000" json:"exchange_rate"` + UnitPriceTe *float64 `gorm:"column:unit_price_te;default:0.000000" json:"unit_price_te"` + QuantityExpected int32 `gorm:"column:quantity_expected;not null" json:"quantity_expected"` + QuantityReceived int32 `gorm:"column:quantity_received;not null" json:"quantity_received"` + PriceTe *float64 `gorm:"column:price_te;default:0.000000" json:"price_te"` + DiscountRate *float64 `gorm:"column:discount_rate;default:0.000000" json:"discount_rate"` + DiscountValueTe *float64 `gorm:"column:discount_value_te;default:0.000000" json:"discount_value_te"` + PriceWithDiscountTe *float64 `gorm:"column:price_with_discount_te;default:0.000000" json:"price_with_discount_te"` + TaxRate *float64 `gorm:"column:tax_rate;default:0.000000" json:"tax_rate"` + TaxValue *float64 `gorm:"column:tax_value;default:0.000000" json:"tax_value"` + PriceTi *float64 `gorm:"column:price_ti;default:0.000000" json:"price_ti"` + TaxValueWithOrderDiscount *float64 `gorm:"column:tax_value_with_order_discount;default:0.000000" json:"tax_value_with_order_discount"` + PriceWithOrderDiscountTe *float64 `gorm:"column:price_with_order_discount_te;default:0.000000" json:"price_with_order_discount_te"` +} + +// TableName PsSupplyOrderDetail's table name +func (*PsSupplyOrderDetail) TableName() string { + return TableNamePsSupplyOrderDetail +} + +var PsSupplyOrderDetailCols = struct { + IDSupplyOrderDetail gormcol.Field + IDSupplyOrder gormcol.Field + IDCurrency gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + Reference gormcol.Field + SupplierReference gormcol.Field + Name gormcol.Field + Ean13 gormcol.Field + Isbn gormcol.Field + Upc gormcol.Field + ExchangeRate gormcol.Field + UnitPriceTe gormcol.Field + QuantityExpected gormcol.Field + QuantityReceived gormcol.Field + PriceTe gormcol.Field + DiscountRate gormcol.Field + DiscountValueTe gormcol.Field + PriceWithDiscountTe gormcol.Field + TaxRate gormcol.Field + TaxValue gormcol.Field + PriceTi gormcol.Field + TaxValueWithOrderDiscount gormcol.Field + PriceWithOrderDiscountTe gormcol.Field +}{ + IDSupplyOrderDetail: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_supply_order_detail"), + IDSupplyOrder: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_supply_order"), + IDCurrency: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_currency"), + IDProduct: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_product"), + IDProductAttribute: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_product_attribute"), + Reference: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "reference"), + SupplierReference: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "supplier_reference"), + Name: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "name"), + Ean13: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "ean13"), + Isbn: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "isbn"), + Upc: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "upc"), + ExchangeRate: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "exchange_rate"), + UnitPriceTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "unit_price_te"), + QuantityExpected: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "quantity_expected"), + QuantityReceived: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "quantity_received"), + PriceTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "price_te"), + DiscountRate: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "discount_rate"), + DiscountValueTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "discount_value_te"), + PriceWithDiscountTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "price_with_discount_te"), + TaxRate: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "tax_rate"), + TaxValue: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "tax_value"), + PriceTi: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "price_ti"), + TaxValueWithOrderDiscount: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "tax_value_with_order_discount"), + PriceWithOrderDiscountTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "price_with_order_discount_te"), +} diff --git a/app/model/dbmodel/ps_supply_order_history.go b/app/model/dbmodel/ps_supply_order_history.go new file mode 100644 index 0000000..e59a856 --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_history.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSupplyOrderHistory = "ps_supply_order_history" + +// PsSupplyOrderHistory mapped from table +type PsSupplyOrderHistory struct { + IDSupplyOrderHistory int32 `gorm:"column:id_supply_order_history;primaryKey;autoIncrement:true" json:"id_supply_order_history"` + IDSupplyOrder int32 `gorm:"column:id_supply_order;not null;index:id_supply_order,priority:1" json:"id_supply_order"` + IDEmployee int32 `gorm:"column:id_employee;not null;index:id_employee,priority:1" json:"id_employee"` + EmployeeLastname *string `gorm:"column:employee_lastname" json:"employee_lastname"` + EmployeeFirstname *string `gorm:"column:employee_firstname" json:"employee_firstname"` + IDState int32 `gorm:"column:id_state;not null;index:id_state,priority:1" json:"id_state"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsSupplyOrderHistory's table name +func (*PsSupplyOrderHistory) TableName() string { + return TableNamePsSupplyOrderHistory +} + +var PsSupplyOrderHistoryCols = struct { + IDSupplyOrderHistory gormcol.Field + IDSupplyOrder gormcol.Field + IDEmployee gormcol.Field + EmployeeLastname gormcol.Field + EmployeeFirstname gormcol.Field + IDState gormcol.Field + DateAdd gormcol.Field +}{ + IDSupplyOrderHistory: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "id_supply_order_history"), + IDSupplyOrder: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "id_supply_order"), + IDEmployee: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "id_employee"), + EmployeeLastname: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "employee_lastname"), + EmployeeFirstname: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "employee_firstname"), + IDState: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "id_state"), + DateAdd: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_supply_order_receipt_history.go b/app/model/dbmodel/ps_supply_order_receipt_history.go new file mode 100644 index 0000000..5b2e25c --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_receipt_history.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsSupplyOrderReceiptHistory = "ps_supply_order_receipt_history" + +// PsSupplyOrderReceiptHistory mapped from table +type PsSupplyOrderReceiptHistory struct { + IDSupplyOrderReceiptHistory int32 `gorm:"column:id_supply_order_receipt_history;primaryKey;autoIncrement:true" json:"id_supply_order_receipt_history"` + IDSupplyOrderDetail int32 `gorm:"column:id_supply_order_detail;not null;index:id_supply_order_detail,priority:1" json:"id_supply_order_detail"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + EmployeeLastname *string `gorm:"column:employee_lastname" json:"employee_lastname"` + EmployeeFirstname *string `gorm:"column:employee_firstname" json:"employee_firstname"` + IDSupplyOrderState int32 `gorm:"column:id_supply_order_state;not null;index:id_supply_order_state,priority:1" json:"id_supply_order_state"` + Quantity int32 `gorm:"column:quantity;not null" json:"quantity"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` +} + +// TableName PsSupplyOrderReceiptHistory's table name +func (*PsSupplyOrderReceiptHistory) TableName() string { + return TableNamePsSupplyOrderReceiptHistory +} + +var PsSupplyOrderReceiptHistoryCols = struct { + IDSupplyOrderReceiptHistory gormcol.Field + IDSupplyOrderDetail gormcol.Field + IDEmployee gormcol.Field + EmployeeLastname gormcol.Field + EmployeeFirstname gormcol.Field + IDSupplyOrderState gormcol.Field + Quantity gormcol.Field + DateAdd gormcol.Field +}{ + IDSupplyOrderReceiptHistory: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "id_supply_order_receipt_history"), + IDSupplyOrderDetail: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "id_supply_order_detail"), + IDEmployee: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "id_employee"), + EmployeeLastname: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "employee_lastname"), + EmployeeFirstname: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "employee_firstname"), + IDSupplyOrderState: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "id_supply_order_state"), + Quantity: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "quantity"), + DateAdd: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "date_add"), +} diff --git a/app/model/dbmodel/ps_supply_order_state.go b/app/model/dbmodel/ps_supply_order_state.go new file mode 100644 index 0000000..0d6f93c --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_state.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSupplyOrderState = "ps_supply_order_state" + +// PsSupplyOrderState mapped from table +type PsSupplyOrderState struct { + IDSupplyOrderState int32 `gorm:"column:id_supply_order_state;primaryKey;autoIncrement:true" json:"id_supply_order_state"` + DeliveryNote bool `gorm:"column:delivery_note;not null" json:"delivery_note"` + Editable bool `gorm:"column:editable;not null" json:"editable"` + ReceiptState bool `gorm:"column:receipt_state;not null" json:"receipt_state"` + PendingReceipt bool `gorm:"column:pending_receipt;not null" json:"pending_receipt"` + Enclosed bool `gorm:"column:enclosed;not null" json:"enclosed"` + Color *string `gorm:"column:color" json:"color"` +} + +// TableName PsSupplyOrderState's table name +func (*PsSupplyOrderState) TableName() string { + return TableNamePsSupplyOrderState +} + +var PsSupplyOrderStateCols = struct { + IDSupplyOrderState gormcol.Field + DeliveryNote gormcol.Field + Editable gormcol.Field + ReceiptState gormcol.Field + PendingReceipt gormcol.Field + Enclosed gormcol.Field + Color gormcol.Field +}{ + IDSupplyOrderState: gormcol.Field{}.Set((&PsSupplyOrderState{}).TableName(), "id_supply_order_state"), + DeliveryNote: gormcol.Field{}.Set((&PsSupplyOrderState{}).TableName(), "delivery_note"), + Editable: gormcol.Field{}.Set((&PsSupplyOrderState{}).TableName(), "editable"), + ReceiptState: gormcol.Field{}.Set((&PsSupplyOrderState{}).TableName(), "receipt_state"), + PendingReceipt: gormcol.Field{}.Set((&PsSupplyOrderState{}).TableName(), "pending_receipt"), + Enclosed: gormcol.Field{}.Set((&PsSupplyOrderState{}).TableName(), "enclosed"), + Color: gormcol.Field{}.Set((&PsSupplyOrderState{}).TableName(), "color"), +} diff --git a/app/model/dbmodel/ps_supply_order_state_lang.go b/app/model/dbmodel/ps_supply_order_state_lang.go new file mode 100644 index 0000000..bcde75d --- /dev/null +++ b/app/model/dbmodel/ps_supply_order_state_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsSupplyOrderStateLang = "ps_supply_order_state_lang" + +// PsSupplyOrderStateLang mapped from table +type PsSupplyOrderStateLang struct { + IDSupplyOrderState int32 `gorm:"column:id_supply_order_state;primaryKey" json:"id_supply_order_state"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name *string `gorm:"column:name" json:"name"` +} + +// TableName PsSupplyOrderStateLang's table name +func (*PsSupplyOrderStateLang) TableName() string { + return TableNamePsSupplyOrderStateLang +} + +var PsSupplyOrderStateLangCols = struct { + IDSupplyOrderState gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDSupplyOrderState: gormcol.Field{}.Set((&PsSupplyOrderStateLang{}).TableName(), "id_supply_order_state"), + IDLang: gormcol.Field{}.Set((&PsSupplyOrderStateLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsSupplyOrderStateLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_tab.go b/app/model/dbmodel/ps_tab.go new file mode 100644 index 0000000..4c69595 --- /dev/null +++ b/app/model/dbmodel/ps_tab.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTab = "ps_tab" + +// PsTab mapped from table +type PsTab struct { + IDTab int32 `gorm:"column:id_tab;primaryKey;autoIncrement:true" json:"id_tab"` + IDParent int32 `gorm:"column:id_parent;not null" json:"id_parent"` + Position int32 `gorm:"column:position;not null" json:"position"` + Module *string `gorm:"column:module" json:"module"` + ClassName *string `gorm:"column:class_name" json:"class_name"` + Active bool `gorm:"column:active;not null" json:"active"` + HideHostMode bool `gorm:"column:hide_host_mode;not null" json:"hide_host_mode"` + Icon *string `gorm:"column:icon" json:"icon"` +} + +// TableName PsTab's table name +func (*PsTab) TableName() string { + return TableNamePsTab +} + +var PsTabCols = struct { + IDTab gormcol.Field + IDParent gormcol.Field + Position gormcol.Field + Module gormcol.Field + ClassName gormcol.Field + Active gormcol.Field + HideHostMode gormcol.Field + Icon gormcol.Field +}{ + IDTab: gormcol.Field{}.Set((&PsTab{}).TableName(), "id_tab"), + IDParent: gormcol.Field{}.Set((&PsTab{}).TableName(), "id_parent"), + Position: gormcol.Field{}.Set((&PsTab{}).TableName(), "position"), + Module: gormcol.Field{}.Set((&PsTab{}).TableName(), "module"), + ClassName: gormcol.Field{}.Set((&PsTab{}).TableName(), "class_name"), + Active: gormcol.Field{}.Set((&PsTab{}).TableName(), "active"), + HideHostMode: gormcol.Field{}.Set((&PsTab{}).TableName(), "hide_host_mode"), + Icon: gormcol.Field{}.Set((&PsTab{}).TableName(), "icon"), +} diff --git a/app/model/dbmodel/ps_tab_advice.go b/app/model/dbmodel/ps_tab_advice.go new file mode 100644 index 0000000..b0b600e --- /dev/null +++ b/app/model/dbmodel/ps_tab_advice.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTabAdvice = "ps_tab_advice" + +// PsTabAdvice mapped from table +type PsTabAdvice struct { + IDTab int32 `gorm:"column:id_tab;primaryKey" json:"id_tab"` + IDAdvice int32 `gorm:"column:id_advice;primaryKey" json:"id_advice"` +} + +// TableName PsTabAdvice's table name +func (*PsTabAdvice) TableName() string { + return TableNamePsTabAdvice +} + +var PsTabAdviceCols = struct { + IDTab gormcol.Field + IDAdvice gormcol.Field +}{ + IDTab: gormcol.Field{}.Set((&PsTabAdvice{}).TableName(), "id_tab"), + IDAdvice: gormcol.Field{}.Set((&PsTabAdvice{}).TableName(), "id_advice"), +} diff --git a/app/model/dbmodel/ps_tab_lang.go b/app/model/dbmodel/ps_tab_lang.go new file mode 100644 index 0000000..efc0cae --- /dev/null +++ b/app/model/dbmodel/ps_tab_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTabLang = "ps_tab_lang" + +// PsTabLang mapped from table +type PsTabLang struct { + IDTab int32 `gorm:"column:id_tab;primaryKey;index:IDX_CFD9262DED47AB56,priority:1" json:"id_tab"` + IDLang int32 `gorm:"column:id_lang;primaryKey;index:IDX_CFD9262DBA299860,priority:1" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsTabLang's table name +func (*PsTabLang) TableName() string { + return TableNamePsTabLang +} + +var PsTabLangCols = struct { + IDTab gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDTab: gormcol.Field{}.Set((&PsTabLang{}).TableName(), "id_tab"), + IDLang: gormcol.Field{}.Set((&PsTabLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsTabLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_tab_module_preference.go b/app/model/dbmodel/ps_tab_module_preference.go new file mode 100644 index 0000000..b27f9aa --- /dev/null +++ b/app/model/dbmodel/ps_tab_module_preference.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTabModulePreference = "ps_tab_module_preference" + +// PsTabModulePreference mapped from table +type PsTabModulePreference struct { + IDTabModulePreference int32 `gorm:"column:id_tab_module_preference;primaryKey;autoIncrement:true" json:"id_tab_module_preference"` + IDEmployee int32 `gorm:"column:id_employee;not null;uniqueIndex:employee_module,priority:1" json:"id_employee"` + IDTab int32 `gorm:"column:id_tab;not null;uniqueIndex:employee_module,priority:2" json:"id_tab"` + Module string `gorm:"column:module;not null;uniqueIndex:employee_module,priority:3" json:"module"` +} + +// TableName PsTabModulePreference's table name +func (*PsTabModulePreference) TableName() string { + return TableNamePsTabModulePreference +} + +var PsTabModulePreferenceCols = struct { + IDTabModulePreference gormcol.Field + IDEmployee gormcol.Field + IDTab gormcol.Field + Module gormcol.Field +}{ + IDTabModulePreference: gormcol.Field{}.Set((&PsTabModulePreference{}).TableName(), "id_tab_module_preference"), + IDEmployee: gormcol.Field{}.Set((&PsTabModulePreference{}).TableName(), "id_employee"), + IDTab: gormcol.Field{}.Set((&PsTabModulePreference{}).TableName(), "id_tab"), + Module: gormcol.Field{}.Set((&PsTabModulePreference{}).TableName(), "module"), +} diff --git a/app/model/dbmodel/ps_tag.go b/app/model/dbmodel/ps_tag.go new file mode 100644 index 0000000..97e86ed --- /dev/null +++ b/app/model/dbmodel/ps_tag.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTag = "ps_tag" + +// PsTag mapped from table +type PsTag struct { + IDTag int32 `gorm:"column:id_tag;primaryKey;autoIncrement:true" json:"id_tag"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"` + Name string `gorm:"column:name;not null;index:tag_name,priority:1" json:"name"` +} + +// TableName PsTag's table name +func (*PsTag) TableName() string { + return TableNamePsTag +} + +var PsTagCols = struct { + IDTag gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDTag: gormcol.Field{}.Set((&PsTag{}).TableName(), "id_tag"), + IDLang: gormcol.Field{}.Set((&PsTag{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsTag{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_tag_count.go b/app/model/dbmodel/ps_tag_count.go new file mode 100644 index 0000000..a559be9 --- /dev/null +++ b/app/model/dbmodel/ps_tag_count.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTagCount = "ps_tag_count" + +// PsTagCount mapped from table +type PsTagCount struct { + IDGroup int32 `gorm:"column:id_group;primaryKey;index:id_group,priority:1" json:"id_group"` + IDTag int32 `gorm:"column:id_tag;primaryKey" json:"id_tag"` + IDLang int32 `gorm:"column:id_lang;not null;index:id_group,priority:2" json:"id_lang"` + IDShop int32 `gorm:"column:id_shop;not null;index:id_group,priority:3" json:"id_shop"` + Counter int32 `gorm:"column:counter;not null;index:id_group,priority:4" json:"counter"` +} + +// TableName PsTagCount's table name +func (*PsTagCount) TableName() string { + return TableNamePsTagCount +} + +var PsTagCountCols = struct { + IDGroup gormcol.Field + IDTag gormcol.Field + IDLang gormcol.Field + IDShop gormcol.Field + Counter gormcol.Field +}{ + IDGroup: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "id_group"), + IDTag: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "id_tag"), + IDLang: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "id_lang"), + IDShop: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "id_shop"), + Counter: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "counter"), +} diff --git a/app/model/dbmodel/ps_tax.go b/app/model/dbmodel/ps_tax.go new file mode 100644 index 0000000..400f82f --- /dev/null +++ b/app/model/dbmodel/ps_tax.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTax = "ps_tax" + +// PsTax mapped from table +type PsTax struct { + IDTax int32 `gorm:"column:id_tax;primaryKey;autoIncrement:true" json:"id_tax"` + Rate float64 `gorm:"column:rate;not null" json:"rate"` + Active bool `gorm:"column:active;not null;default:1" json:"active"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsTax's table name +func (*PsTax) TableName() string { + return TableNamePsTax +} + +var PsTaxCols = struct { + IDTax gormcol.Field + Rate gormcol.Field + Active gormcol.Field + Deleted gormcol.Field +}{ + IDTax: gormcol.Field{}.Set((&PsTax{}).TableName(), "id_tax"), + Rate: gormcol.Field{}.Set((&PsTax{}).TableName(), "rate"), + Active: gormcol.Field{}.Set((&PsTax{}).TableName(), "active"), + Deleted: gormcol.Field{}.Set((&PsTax{}).TableName(), "deleted"), +} diff --git a/app/model/dbmodel/ps_tax_lang.go b/app/model/dbmodel/ps_tax_lang.go new file mode 100644 index 0000000..eef8938 --- /dev/null +++ b/app/model/dbmodel/ps_tax_lang.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTaxLang = "ps_tax_lang" + +// PsTaxLang mapped from table +type PsTaxLang struct { + IDTax int32 `gorm:"column:id_tax;primaryKey" json:"id_tax"` + IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsTaxLang's table name +func (*PsTaxLang) TableName() string { + return TableNamePsTaxLang +} + +var PsTaxLangCols = struct { + IDTax gormcol.Field + IDLang gormcol.Field + Name gormcol.Field +}{ + IDTax: gormcol.Field{}.Set((&PsTaxLang{}).TableName(), "id_tax"), + IDLang: gormcol.Field{}.Set((&PsTaxLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsTaxLang{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_tax_rule.go b/app/model/dbmodel/ps_tax_rule.go new file mode 100644 index 0000000..2b4dae1 --- /dev/null +++ b/app/model/dbmodel/ps_tax_rule.go @@ -0,0 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTaxRule = "ps_tax_rule" + +// PsTaxRule mapped from table +type PsTaxRule struct { + IDTaxRule int32 `gorm:"column:id_tax_rule;primaryKey;autoIncrement:true" json:"id_tax_rule"` + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;not null;index:category_getproducts,priority:1;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"` + IDCountry int32 `gorm:"column:id_country;not null;index:category_getproducts,priority:2" json:"id_country"` + IDState int32 `gorm:"column:id_state;not null;index:category_getproducts,priority:3" json:"id_state"` + ZipcodeFrom string `gorm:"column:zipcode_from;not null;index:category_getproducts,priority:4" json:"zipcode_from"` + ZipcodeTo string `gorm:"column:zipcode_to;not null" json:"zipcode_to"` + IDTax int32 `gorm:"column:id_tax;not null;index:id_tax,priority:1" json:"id_tax"` + Behavior int32 `gorm:"column:behavior;not null" json:"behavior"` + Description string `gorm:"column:description;not null" json:"description"` +} + +// TableName PsTaxRule's table name +func (*PsTaxRule) TableName() string { + return TableNamePsTaxRule +} + +var PsTaxRuleCols = struct { + IDTaxRule gormcol.Field + IDTaxRulesGroup gormcol.Field + IDCountry gormcol.Field + IDState gormcol.Field + ZipcodeFrom gormcol.Field + ZipcodeTo gormcol.Field + IDTax gormcol.Field + Behavior gormcol.Field + Description gormcol.Field +}{ + IDTaxRule: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "id_tax_rule"), + IDTaxRulesGroup: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "id_tax_rules_group"), + IDCountry: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "id_country"), + IDState: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "id_state"), + ZipcodeFrom: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "zipcode_from"), + ZipcodeTo: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "zipcode_to"), + IDTax: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "id_tax"), + Behavior: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "behavior"), + Description: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "description"), +} diff --git a/app/model/dbmodel/ps_tax_rules_group.go b/app/model/dbmodel/ps_tax_rules_group.go new file mode 100644 index 0000000..35de7d1 --- /dev/null +++ b/app/model/dbmodel/ps_tax_rules_group.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import ( + "git.ma-al.com/goc_marek/gormcol" + "time" +) + +const TableNamePsTaxRulesGroup = "ps_tax_rules_group" + +// PsTaxRulesGroup mapped from table +type PsTaxRulesGroup struct { + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;primaryKey;autoIncrement:true" json:"id_tax_rules_group"` + Name string `gorm:"column:name;not null" json:"name"` + Active int32 `gorm:"column:active;not null" json:"active"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` + DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` + DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` +} + +// TableName PsTaxRulesGroup's table name +func (*PsTaxRulesGroup) TableName() string { + return TableNamePsTaxRulesGroup +} + +var PsTaxRulesGroupCols = struct { + IDTaxRulesGroup gormcol.Field + Name gormcol.Field + Active gormcol.Field + Deleted gormcol.Field + DateAdd gormcol.Field + DateUpd gormcol.Field +}{ + IDTaxRulesGroup: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "id_tax_rules_group"), + Name: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "name"), + Active: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "active"), + Deleted: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "deleted"), + DateAdd: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "date_add"), + DateUpd: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "date_upd"), +} diff --git a/app/model/dbmodel/ps_tax_rules_group_shop.go b/app/model/dbmodel/ps_tax_rules_group_shop.go new file mode 100644 index 0000000..fcd1791 --- /dev/null +++ b/app/model/dbmodel/ps_tax_rules_group_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTaxRulesGroupShop = "ps_tax_rules_group_shop" + +// PsTaxRulesGroupShop mapped from table +type PsTaxRulesGroupShop struct { + IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;primaryKey" json:"id_tax_rules_group"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsTaxRulesGroupShop's table name +func (*PsTaxRulesGroupShop) TableName() string { + return TableNamePsTaxRulesGroupShop +} + +var PsTaxRulesGroupShopCols = struct { + IDTaxRulesGroup gormcol.Field + IDShop gormcol.Field +}{ + IDTaxRulesGroup: gormcol.Field{}.Set((&PsTaxRulesGroupShop{}).TableName(), "id_tax_rules_group"), + IDShop: gormcol.Field{}.Set((&PsTaxRulesGroupShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_timezone.go b/app/model/dbmodel/ps_timezone.go new file mode 100644 index 0000000..b2799fe --- /dev/null +++ b/app/model/dbmodel/ps_timezone.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTimezone = "ps_timezone" + +// PsTimezone mapped from table +type PsTimezone struct { + IDTimezone int32 `gorm:"column:id_timezone;primaryKey;autoIncrement:true" json:"id_timezone"` + Name string `gorm:"column:name;not null" json:"name"` +} + +// TableName PsTimezone's table name +func (*PsTimezone) TableName() string { + return TableNamePsTimezone +} + +var PsTimezoneCols = struct { + IDTimezone gormcol.Field + Name gormcol.Field +}{ + IDTimezone: gormcol.Field{}.Set((&PsTimezone{}).TableName(), "id_timezone"), + Name: gormcol.Field{}.Set((&PsTimezone{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_translation.go b/app/model/dbmodel/ps_translation.go new file mode 100644 index 0000000..2588398 --- /dev/null +++ b/app/model/dbmodel/ps_translation.go @@ -0,0 +1,40 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsTranslation = "ps_translation" + +// PsTranslation mapped from table +type PsTranslation struct { + IDTranslation int32 `gorm:"column:id_translation;primaryKey;autoIncrement:true" json:"id_translation"` + IDLang int32 `gorm:"column:id_lang;not null;index:IDX_ADEBEB36BA299860,priority:1" json:"id_lang"` + Key string `gorm:"column:key;not null" json:"key"` + Translation string `gorm:"column:translation;not null" json:"translation"` + Domain string `gorm:"column:domain;not null;index:key,priority:1" json:"domain"` + Theme *string `gorm:"column:theme" json:"theme"` +} + +// TableName PsTranslation's table name +func (*PsTranslation) TableName() string { + return TableNamePsTranslation +} + +var PsTranslationCols = struct { + IDTranslation gormcol.Field + IDLang gormcol.Field + Key gormcol.Field + Translation gormcol.Field + Domain gormcol.Field + Theme gormcol.Field +}{ + IDTranslation: gormcol.Field{}.Set((&PsTranslation{}).TableName(), "id_translation"), + IDLang: gormcol.Field{}.Set((&PsTranslation{}).TableName(), "id_lang"), + Key: gormcol.Field{}.Set((&PsTranslation{}).TableName(), "key"), + Translation: gormcol.Field{}.Set((&PsTranslation{}).TableName(), "translation"), + Domain: gormcol.Field{}.Set((&PsTranslation{}).TableName(), "domain"), + Theme: gormcol.Field{}.Set((&PsTranslation{}).TableName(), "theme"), +} diff --git a/app/model/dbmodel/ps_unit.go b/app/model/dbmodel/ps_unit.go new file mode 100644 index 0000000..a661fdf --- /dev/null +++ b/app/model/dbmodel/ps_unit.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsUnit = "ps_unit" + +// PsUnit mapped from table +type PsUnit struct { + IDUnit int32 `gorm:"column:id_unit;primaryKey;autoIncrement:true" json:"id_unit"` + Precision int32 `gorm:"column:precision;not null" json:"precision"` +} + +// TableName PsUnit's table name +func (*PsUnit) TableName() string { + return TableNamePsUnit +} + +var PsUnitCols = struct { + IDUnit gormcol.Field + Precision gormcol.Field +}{ + IDUnit: gormcol.Field{}.Set((&PsUnit{}).TableName(), "id_unit"), + Precision: gormcol.Field{}.Set((&PsUnit{}).TableName(), "precision"), +} diff --git a/app/model/dbmodel/ps_unit_lang.go b/app/model/dbmodel/ps_unit_lang.go new file mode 100644 index 0000000..274b5f7 --- /dev/null +++ b/app/model/dbmodel/ps_unit_lang.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsUnitLang = "ps_unit_lang" + +// PsUnitLang mapped from table +type PsUnitLang struct { + IDUnit int32 `gorm:"column:id_unit;not null" json:"id_unit"` + IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` + Name string `gorm:"column:name;not null" json:"name"` + Symbol string `gorm:"column:symbol;not null" json:"symbol"` +} + +// TableName PsUnitLang's table name +func (*PsUnitLang) TableName() string { + return TableNamePsUnitLang +} + +var PsUnitLangCols = struct { + IDUnit gormcol.Field + IDLang gormcol.Field + Name gormcol.Field + Symbol gormcol.Field +}{ + IDUnit: gormcol.Field{}.Set((&PsUnitLang{}).TableName(), "id_unit"), + IDLang: gormcol.Field{}.Set((&PsUnitLang{}).TableName(), "id_lang"), + Name: gormcol.Field{}.Set((&PsUnitLang{}).TableName(), "name"), + Symbol: gormcol.Field{}.Set((&PsUnitLang{}).TableName(), "symbol"), +} diff --git a/app/model/dbmodel/ps_warehouse.go b/app/model/dbmodel/ps_warehouse.go new file mode 100644 index 0000000..1910bef --- /dev/null +++ b/app/model/dbmodel/ps_warehouse.go @@ -0,0 +1,46 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsWarehouse = "ps_warehouse" + +// PsWarehouse mapped from table +type PsWarehouse struct { + IDWarehouse int32 `gorm:"column:id_warehouse;primaryKey;autoIncrement:true" json:"id_warehouse"` + IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"` + IDAddress int32 `gorm:"column:id_address;not null" json:"id_address"` + IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"` + Reference *string `gorm:"column:reference" json:"reference"` + Name string `gorm:"column:name;not null" json:"name"` + ManagementType string `gorm:"column:management_type;not null;default:WA" json:"management_type"` + Deleted bool `gorm:"column:deleted;not null" json:"deleted"` +} + +// TableName PsWarehouse's table name +func (*PsWarehouse) TableName() string { + return TableNamePsWarehouse +} + +var PsWarehouseCols = struct { + IDWarehouse gormcol.Field + IDCurrency gormcol.Field + IDAddress gormcol.Field + IDEmployee gormcol.Field + Reference gormcol.Field + Name gormcol.Field + ManagementType gormcol.Field + Deleted gormcol.Field +}{ + IDWarehouse: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "id_warehouse"), + IDCurrency: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "id_currency"), + IDAddress: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "id_address"), + IDEmployee: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "id_employee"), + Reference: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "reference"), + Name: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "name"), + ManagementType: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "management_type"), + Deleted: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "deleted"), +} diff --git a/app/model/dbmodel/ps_warehouse_carrier.go b/app/model/dbmodel/ps_warehouse_carrier.go new file mode 100644 index 0000000..bfe595d --- /dev/null +++ b/app/model/dbmodel/ps_warehouse_carrier.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsWarehouseCarrier = "ps_warehouse_carrier" + +// PsWarehouseCarrier mapped from table +type PsWarehouseCarrier struct { + IDCarrier int32 `gorm:"column:id_carrier;primaryKey;index:id_carrier,priority:1" json:"id_carrier"` + IDWarehouse int32 `gorm:"column:id_warehouse;primaryKey;index:id_warehouse,priority:1" json:"id_warehouse"` +} + +// TableName PsWarehouseCarrier's table name +func (*PsWarehouseCarrier) TableName() string { + return TableNamePsWarehouseCarrier +} + +var PsWarehouseCarrierCols = struct { + IDCarrier gormcol.Field + IDWarehouse gormcol.Field +}{ + IDCarrier: gormcol.Field{}.Set((&PsWarehouseCarrier{}).TableName(), "id_carrier"), + IDWarehouse: gormcol.Field{}.Set((&PsWarehouseCarrier{}).TableName(), "id_warehouse"), +} diff --git a/app/model/dbmodel/ps_warehouse_product_location.go b/app/model/dbmodel/ps_warehouse_product_location.go new file mode 100644 index 0000000..7d1e12e --- /dev/null +++ b/app/model/dbmodel/ps_warehouse_product_location.go @@ -0,0 +1,37 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsWarehouseProductLocation = "ps_warehouse_product_location" + +// PsWarehouseProductLocation mapped from table +type PsWarehouseProductLocation struct { + IDWarehouseProductLocation int32 `gorm:"column:id_warehouse_product_location;primaryKey;autoIncrement:true" json:"id_warehouse_product_location"` + IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"` + IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;uniqueIndex:id_product,priority:2" json:"id_product_attribute"` + IDWarehouse int32 `gorm:"column:id_warehouse;not null;uniqueIndex:id_product,priority:3" json:"id_warehouse"` + Location *string `gorm:"column:location" json:"location"` +} + +// TableName PsWarehouseProductLocation's table name +func (*PsWarehouseProductLocation) TableName() string { + return TableNamePsWarehouseProductLocation +} + +var PsWarehouseProductLocationCols = struct { + IDWarehouseProductLocation gormcol.Field + IDProduct gormcol.Field + IDProductAttribute gormcol.Field + IDWarehouse gormcol.Field + Location gormcol.Field +}{ + IDWarehouseProductLocation: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "id_warehouse_product_location"), + IDProduct: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "id_product"), + IDProductAttribute: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "id_product_attribute"), + IDWarehouse: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "id_warehouse"), + Location: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "location"), +} diff --git a/app/model/dbmodel/ps_warehouse_shop.go b/app/model/dbmodel/ps_warehouse_shop.go new file mode 100644 index 0000000..8726f9a --- /dev/null +++ b/app/model/dbmodel/ps_warehouse_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsWarehouseShop = "ps_warehouse_shop" + +// PsWarehouseShop mapped from table +type PsWarehouseShop struct { + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` + IDWarehouse int32 `gorm:"column:id_warehouse;primaryKey;index:id_warehouse,priority:1" json:"id_warehouse"` +} + +// TableName PsWarehouseShop's table name +func (*PsWarehouseShop) TableName() string { + return TableNamePsWarehouseShop +} + +var PsWarehouseShopCols = struct { + IDShop gormcol.Field + IDWarehouse gormcol.Field +}{ + IDShop: gormcol.Field{}.Set((&PsWarehouseShop{}).TableName(), "id_shop"), + IDWarehouse: gormcol.Field{}.Set((&PsWarehouseShop{}).TableName(), "id_warehouse"), +} diff --git a/app/model/dbmodel/ps_web_browser.go b/app/model/dbmodel/ps_web_browser.go new file mode 100644 index 0000000..a604923 --- /dev/null +++ b/app/model/dbmodel/ps_web_browser.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsWebBrowser = "ps_web_browser" + +// PsWebBrowser mapped from table +type PsWebBrowser struct { + IDWebBrowser int32 `gorm:"column:id_web_browser;primaryKey;autoIncrement:true" json:"id_web_browser"` + Name *string `gorm:"column:name" json:"name"` +} + +// TableName PsWebBrowser's table name +func (*PsWebBrowser) TableName() string { + return TableNamePsWebBrowser +} + +var PsWebBrowserCols = struct { + IDWebBrowser gormcol.Field + Name gormcol.Field +}{ + IDWebBrowser: gormcol.Field{}.Set((&PsWebBrowser{}).TableName(), "id_web_browser"), + Name: gormcol.Field{}.Set((&PsWebBrowser{}).TableName(), "name"), +} diff --git a/app/model/dbmodel/ps_webservice_account.go b/app/model/dbmodel/ps_webservice_account.go new file mode 100644 index 0000000..d426880 --- /dev/null +++ b/app/model/dbmodel/ps_webservice_account.go @@ -0,0 +1,43 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsWebserviceAccount = "ps_webservice_account" + +// PsWebserviceAccount mapped from table +type PsWebserviceAccount struct { + IDWebserviceAccount int32 `gorm:"column:id_webservice_account;primaryKey;autoIncrement:true" json:"id_webservice_account"` + Key string `gorm:"column:key;not null;index:key,priority:1" json:"key"` + Description *string `gorm:"column:description" json:"description"` + ClassName string `gorm:"column:class_name;not null;default:WebserviceRequest" json:"class_name"` + IsModule int32 `gorm:"column:is_module;not null" json:"is_module"` + ModuleName *string `gorm:"column:module_name" json:"module_name"` + Active int32 `gorm:"column:active;not null" json:"active"` +} + +// TableName PsWebserviceAccount's table name +func (*PsWebserviceAccount) TableName() string { + return TableNamePsWebserviceAccount +} + +var PsWebserviceAccountCols = struct { + IDWebserviceAccount gormcol.Field + Key gormcol.Field + Description gormcol.Field + ClassName gormcol.Field + IsModule gormcol.Field + ModuleName gormcol.Field + Active gormcol.Field +}{ + IDWebserviceAccount: gormcol.Field{}.Set((&PsWebserviceAccount{}).TableName(), "id_webservice_account"), + Key: gormcol.Field{}.Set((&PsWebserviceAccount{}).TableName(), "key"), + Description: gormcol.Field{}.Set((&PsWebserviceAccount{}).TableName(), "description"), + ClassName: gormcol.Field{}.Set((&PsWebserviceAccount{}).TableName(), "class_name"), + IsModule: gormcol.Field{}.Set((&PsWebserviceAccount{}).TableName(), "is_module"), + ModuleName: gormcol.Field{}.Set((&PsWebserviceAccount{}).TableName(), "module_name"), + Active: gormcol.Field{}.Set((&PsWebserviceAccount{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_webservice_account_shop.go b/app/model/dbmodel/ps_webservice_account_shop.go new file mode 100644 index 0000000..9610a97 --- /dev/null +++ b/app/model/dbmodel/ps_webservice_account_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsWebserviceAccountShop = "ps_webservice_account_shop" + +// PsWebserviceAccountShop mapped from table +type PsWebserviceAccountShop struct { + IDWebserviceAccount int32 `gorm:"column:id_webservice_account;primaryKey" json:"id_webservice_account"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsWebserviceAccountShop's table name +func (*PsWebserviceAccountShop) TableName() string { + return TableNamePsWebserviceAccountShop +} + +var PsWebserviceAccountShopCols = struct { + IDWebserviceAccount gormcol.Field + IDShop gormcol.Field +}{ + IDWebserviceAccount: gormcol.Field{}.Set((&PsWebserviceAccountShop{}).TableName(), "id_webservice_account"), + IDShop: gormcol.Field{}.Set((&PsWebserviceAccountShop{}).TableName(), "id_shop"), +} diff --git a/app/model/dbmodel/ps_webservice_permission.go b/app/model/dbmodel/ps_webservice_permission.go new file mode 100644 index 0000000..0508852 --- /dev/null +++ b/app/model/dbmodel/ps_webservice_permission.go @@ -0,0 +1,34 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsWebservicePermission = "ps_webservice_permission" + +// PsWebservicePermission mapped from table +type PsWebservicePermission struct { + IDWebservicePermission int32 `gorm:"column:id_webservice_permission;primaryKey;autoIncrement:true" json:"id_webservice_permission"` + Resource string `gorm:"column:resource;not null;uniqueIndex:resource_2,priority:1;index:resource,priority:1" json:"resource"` + Method string `gorm:"column:method;not null;uniqueIndex:resource_2,priority:2;index:method,priority:1" json:"method"` + IDWebserviceAccount int32 `gorm:"column:id_webservice_account;not null;uniqueIndex:resource_2,priority:3;index:id_webservice_account,priority:1" json:"id_webservice_account"` +} + +// TableName PsWebservicePermission's table name +func (*PsWebservicePermission) TableName() string { + return TableNamePsWebservicePermission +} + +var PsWebservicePermissionCols = struct { + IDWebservicePermission gormcol.Field + Resource gormcol.Field + Method gormcol.Field + IDWebserviceAccount gormcol.Field +}{ + IDWebservicePermission: gormcol.Field{}.Set((&PsWebservicePermission{}).TableName(), "id_webservice_permission"), + Resource: gormcol.Field{}.Set((&PsWebservicePermission{}).TableName(), "resource"), + Method: gormcol.Field{}.Set((&PsWebservicePermission{}).TableName(), "method"), + IDWebserviceAccount: gormcol.Field{}.Set((&PsWebservicePermission{}).TableName(), "id_webservice_account"), +} diff --git a/app/model/dbmodel/ps_zone.go b/app/model/dbmodel/ps_zone.go new file mode 100644 index 0000000..7df7189 --- /dev/null +++ b/app/model/dbmodel/ps_zone.go @@ -0,0 +1,31 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsZone = "ps_zone" + +// PsZone mapped from table +type PsZone struct { + IDZone int32 `gorm:"column:id_zone;primaryKey;autoIncrement:true" json:"id_zone"` + Name string `gorm:"column:name;not null" json:"name"` + Active bool `gorm:"column:active;not null" json:"active"` +} + +// TableName PsZone's table name +func (*PsZone) TableName() string { + return TableNamePsZone +} + +var PsZoneCols = struct { + IDZone gormcol.Field + Name gormcol.Field + Active gormcol.Field +}{ + IDZone: gormcol.Field{}.Set((&PsZone{}).TableName(), "id_zone"), + Name: gormcol.Field{}.Set((&PsZone{}).TableName(), "name"), + Active: gormcol.Field{}.Set((&PsZone{}).TableName(), "active"), +} diff --git a/app/model/dbmodel/ps_zone_shop.go b/app/model/dbmodel/ps_zone_shop.go new file mode 100644 index 0000000..7a88fb7 --- /dev/null +++ b/app/model/dbmodel/ps_zone_shop.go @@ -0,0 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package dbmodel + +import "git.ma-al.com/goc_marek/gormcol" + +const TableNamePsZoneShop = "ps_zone_shop" + +// PsZoneShop mapped from table +type PsZoneShop struct { + IDZone int32 `gorm:"column:id_zone;primaryKey" json:"id_zone"` + IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"` +} + +// TableName PsZoneShop's table name +func (*PsZoneShop) TableName() string { + return TableNamePsZoneShop +} + +var PsZoneShopCols = struct { + IDZone gormcol.Field + IDShop gormcol.Field +}{ + IDZone: gormcol.Field{}.Set((&PsZoneShop{}).TableName(), "id_zone"), + IDShop: gormcol.Field{}.Set((&PsZoneShop{}).TableName(), "id_shop"), +} diff --git a/gen.go b/gen.go index ef5bf08..3be9783 100644 --- a/gen.go +++ b/gen.go @@ -336,6 +336,11 @@ func (m *GormGen) cleanModelContent(content []byte) []byte { for _, line := range lines { trimmed := strings.TrimSpace(line) + // Skip gorm.io/gen header comments. + if strings.Contains(trimmed, "Code generated by gorm.io/gen") { + continue + } + if trimmed == "import (" { importStarted = true newLines = append(newLines, line) @@ -368,5 +373,11 @@ func (m *GormGen) cleanModelContent(content []byte) []byte { result = strings.Join(newLines, "\n") result = strings.ReplaceAll(result, "psCategoryDo", "") + // Remove leading empty lines. + result = strings.TrimLeft(result, "\n") + + // Add gormcol header comment at the top. + result = "// Code generated by gormcol. DO NOT EDIT.\n\n" + result + return []byte(result) } diff --git a/gormcol b/gormcol index 532251b..6725cad 100755 Binary files a/gormcol and b/gormcol differ