@reachu/database 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +28 -0
- package/.env.test +50 -0
- package/.eslintrc.json +23 -0
- package/.nvmrc +1 -0
- package/.prettierrc +6 -0
- package/.vscode/launch.json +13 -0
- package/.vscode/settings.json +3 -0
- package/README.md +17 -0
- package/dist/config/connect.d.ts +2 -0
- package/dist/config/connect.js +34 -0
- package/dist/config/connect.js.map +1 -0
- package/dist/entity/Address.d.ts +9 -0
- package/dist/entity/Address.js +44 -0
- package/dist/entity/Address.js.map +1 -0
- package/dist/entity/ApiCredential.d.ts +8 -0
- package/dist/entity/ApiCredential.js +41 -0
- package/dist/entity/ApiCredential.js.map +1 -0
- package/dist/entity/AuditedModel.d.ts +4 -0
- package/dist/entity/AuditedModel.js +24 -0
- package/dist/entity/AuditedModel.js.map +1 -0
- package/dist/entity/BankAccount.d.ts +11 -0
- package/dist/entity/BankAccount.js +55 -0
- package/dist/entity/BankAccount.js.map +1 -0
- package/dist/entity/Business.d.ts +21 -0
- package/dist/entity/Business.js +83 -0
- package/dist/entity/Business.js.map +1 -0
- package/dist/entity/BusinessProducts.d.ts +6 -0
- package/dist/entity/BusinessProducts.js +32 -0
- package/dist/entity/BusinessProducts.js.map +1 -0
- package/dist/entity/CardRegistration.d.ts +10 -0
- package/dist/entity/CardRegistration.js +51 -0
- package/dist/entity/CardRegistration.js.map +1 -0
- package/dist/entity/Category.d.ts +7 -0
- package/dist/entity/Category.js +36 -0
- package/dist/entity/Category.js.map +1 -0
- package/dist/entity/Channel.d.ts +12 -0
- package/dist/entity/Channel.js +56 -0
- package/dist/entity/Channel.js.map +1 -0
- package/dist/entity/ChannelGroup.d.ts +15 -0
- package/dist/entity/ChannelGroup.js +77 -0
- package/dist/entity/ChannelGroup.js.map +1 -0
- package/dist/entity/ChannelUser.d.ts +13 -0
- package/dist/entity/ChannelUser.js +59 -0
- package/dist/entity/ChannelUser.js.map +1 -0
- package/dist/entity/ChannelUserProductSync.d.ts +12 -0
- package/dist/entity/ChannelUserProductSync.js +63 -0
- package/dist/entity/ChannelUserProductSync.js.map +1 -0
- package/dist/entity/Check.d.ts +5 -0
- package/dist/entity/Check.js +28 -0
- package/dist/entity/Check.js.map +1 -0
- package/dist/entity/CheckoutMetadata.d.ts +6 -0
- package/dist/entity/CheckoutMetadata.js +35 -0
- package/dist/entity/CheckoutMetadata.js.map +1 -0
- package/dist/entity/Collection.d.ts +16 -0
- package/dist/entity/Collection.js +73 -0
- package/dist/entity/Collection.js.map +1 -0
- package/dist/entity/CollectionItem.d.ts +10 -0
- package/dist/entity/CollectionItem.js +47 -0
- package/dist/entity/CollectionItem.js.map +1 -0
- package/dist/entity/CollectionShared.d.ts +11 -0
- package/dist/entity/CollectionShared.js +51 -0
- package/dist/entity/CollectionShared.js.map +1 -0
- package/dist/entity/Contact.d.ts +9 -0
- package/dist/entity/Contact.js +44 -0
- package/dist/entity/Contact.js.map +1 -0
- package/dist/entity/Country.d.ts +7 -0
- package/dist/entity/Country.js +36 -0
- package/dist/entity/Country.js.map +1 -0
- package/dist/entity/Courier.d.ts +7 -0
- package/dist/entity/Courier.js +39 -0
- package/dist/entity/Courier.js.map +1 -0
- package/dist/entity/Currency.d.ts +7 -0
- package/dist/entity/Currency.js +39 -0
- package/dist/entity/Currency.js.map +1 -0
- package/dist/entity/CustomProduct.d.ts +22 -0
- package/dist/entity/CustomProduct.js +95 -0
- package/dist/entity/CustomProduct.js.map +1 -0
- package/dist/entity/CustomProductImage.d.ts +10 -0
- package/dist/entity/CustomProductImage.js +51 -0
- package/dist/entity/CustomProductImage.js.map +1 -0
- package/dist/entity/CustomVariant.d.ts +13 -0
- package/dist/entity/CustomVariant.js +59 -0
- package/dist/entity/CustomVariant.js.map +1 -0
- package/dist/entity/ExchangeRate.d.ts +8 -0
- package/dist/entity/ExchangeRate.js +43 -0
- package/dist/entity/ExchangeRate.js.map +1 -0
- package/dist/entity/FlatRate.d.ts +9 -0
- package/dist/entity/FlatRate.js +45 -0
- package/dist/entity/FlatRate.js.map +1 -0
- package/dist/entity/FlatRateCountry.d.ts +7 -0
- package/dist/entity/FlatRateCountry.js +39 -0
- package/dist/entity/FlatRateCountry.js.map +1 -0
- package/dist/entity/Fulfillment.d.ts +5 -0
- package/dist/entity/Fulfillment.js +28 -0
- package/dist/entity/Fulfillment.js.map +1 -0
- package/dist/entity/Image.d.ts +10 -0
- package/dist/entity/Image.js +49 -0
- package/dist/entity/Image.js.map +1 -0
- package/dist/entity/ImportedProduct.d.ts +14 -0
- package/dist/entity/ImportedProduct.js +66 -0
- package/dist/entity/ImportedProduct.js.map +1 -0
- package/dist/entity/MagentoConnection.entity.d.ts +13 -0
- package/dist/entity/MagentoConnection.entity.js +65 -0
- package/dist/entity/MagentoConnection.entity.js.map +1 -0
- package/dist/entity/MetricActiveUser.d.ts +8 -0
- package/dist/entity/MetricActiveUser.js +43 -0
- package/dist/entity/MetricActiveUser.js.map +1 -0
- package/dist/entity/Notification.d.ts +20 -0
- package/dist/entity/Notification.js +58 -0
- package/dist/entity/Notification.js.map +1 -0
- package/dist/entity/Option.d.ts +9 -0
- package/dist/entity/Option.js +45 -0
- package/dist/entity/Option.js.map +1 -0
- package/dist/entity/Order.d.ts +29 -0
- package/dist/entity/Order.js +106 -0
- package/dist/entity/Order.js.map +1 -0
- package/dist/entity/OrderCustomer.d.ts +17 -0
- package/dist/entity/OrderCustomer.js +76 -0
- package/dist/entity/OrderCustomer.js.map +1 -0
- package/dist/entity/OrderItem.d.ts +36 -0
- package/dist/entity/OrderItem.js +159 -0
- package/dist/entity/OrderItem.js.map +1 -0
- package/dist/entity/OrderShipping.d.ts +12 -0
- package/dist/entity/OrderShipping.js +69 -0
- package/dist/entity/OrderShipping.js.map +1 -0
- package/dist/entity/OrderTracking.d.ts +16 -0
- package/dist/entity/OrderTracking.js +73 -0
- package/dist/entity/OrderTracking.js.map +1 -0
- package/dist/entity/Payment.d.ts +19 -0
- package/dist/entity/Payment.js +85 -0
- package/dist/entity/Payment.js.map +1 -0
- package/dist/entity/PaymentMethod.d.ts +9 -0
- package/dist/entity/PaymentMethod.js +48 -0
- package/dist/entity/PaymentMethod.js.map +1 -0
- package/dist/entity/PaymentShopify.d.ts +7 -0
- package/dist/entity/PaymentShopify.js +39 -0
- package/dist/entity/PaymentShopify.js.map +1 -0
- package/dist/entity/Permission.d.ts +5 -0
- package/dist/entity/Permission.js +31 -0
- package/dist/entity/Permission.js.map +1 -0
- package/dist/entity/Price.entity.d.ts +5 -0
- package/dist/entity/Price.entity.js +29 -0
- package/dist/entity/Price.entity.js.map +1 -0
- package/dist/entity/Product.entity.d.ts +63 -0
- package/dist/entity/Product.entity.js +256 -0
- package/dist/entity/Product.entity.js.map +1 -0
- package/dist/entity/Request.d.ts +8 -0
- package/dist/entity/Request.js +42 -0
- package/dist/entity/Request.js.map +1 -0
- package/dist/entity/Return.d.ts +8 -0
- package/dist/entity/Return.js +40 -0
- package/dist/entity/Return.js.map +1 -0
- package/dist/entity/ReturnAddress.d.ts +10 -0
- package/dist/entity/ReturnAddress.js +48 -0
- package/dist/entity/ReturnAddress.js.map +1 -0
- package/dist/entity/Role.d.ts +7 -0
- package/dist/entity/Role.js +42 -0
- package/dist/entity/Role.js.map +1 -0
- package/dist/entity/RolePermission.d.ts +8 -0
- package/dist/entity/RolePermission.js +40 -0
- package/dist/entity/RolePermission.js.map +1 -0
- package/dist/entity/ShippingPackage.d.ts +7 -0
- package/dist/entity/ShippingPackage.js +39 -0
- package/dist/entity/ShippingPackage.js.map +1 -0
- package/dist/entity/ShopifyConnection.d.ts +13 -0
- package/dist/entity/ShopifyConnection.js +65 -0
- package/dist/entity/ShopifyConnection.js.map +1 -0
- package/dist/entity/Subcategory.d.ts +7 -0
- package/dist/entity/Subcategory.js +36 -0
- package/dist/entity/Subcategory.js.map +1 -0
- package/dist/entity/User.d.ts +87 -0
- package/dist/entity/User.js +321 -0
- package/dist/entity/User.js.map +1 -0
- package/dist/entity/UserChannelApiKey.d.ts +10 -0
- package/dist/entity/UserChannelApiKey.js +47 -0
- package/dist/entity/UserChannelApiKey.js.map +1 -0
- package/dist/entity/UserRole.d.ts +8 -0
- package/dist/entity/UserRole.js +40 -0
- package/dist/entity/UserRole.js.map +1 -0
- package/dist/entity/UserSettings.d.ts +12 -0
- package/dist/entity/UserSettings.js +54 -0
- package/dist/entity/UserSettings.js.map +1 -0
- package/dist/entity/UserTokenWolt.d.ts +8 -0
- package/dist/entity/UserTokenWolt.js +41 -0
- package/dist/entity/UserTokenWolt.js.map +1 -0
- package/dist/entity/Variant.d.ts +17 -0
- package/dist/entity/Variant.js +75 -0
- package/dist/entity/Variant.js.map +1 -0
- package/dist/entity/Wallet.d.ts +6 -0
- package/dist/entity/Wallet.js +35 -0
- package/dist/entity/Wallet.js.map +1 -0
- package/dist/entity/WooConnection.d.ts +9 -0
- package/dist/entity/WooConnection.js +48 -0
- package/dist/entity/WooConnection.js.map +1 -0
- package/dist/entity/index.d.ts +71 -0
- package/dist/entity/index.js +148 -0
- package/dist/entity/index.js.map +1 -0
- package/dist/entity/modules/shipping/ProductShipping.d.ts +10 -0
- package/dist/entity/modules/shipping/ProductShipping.js +53 -0
- package/dist/entity/modules/shipping/ProductShipping.js.map +1 -0
- package/dist/entity/modules/shipping/Shipping.d.ts +15 -0
- package/dist/entity/modules/shipping/Shipping.js +70 -0
- package/dist/entity/modules/shipping/Shipping.js.map +1 -0
- package/dist/entity/modules/shipping/ShippingCountry.d.ts +10 -0
- package/dist/entity/modules/shipping/ShippingCountry.js +52 -0
- package/dist/entity/modules/shipping/ShippingCountry.js.map +1 -0
- package/dist/entity/modules/shopcart/Cart.d.ts +14 -0
- package/dist/entity/modules/shopcart/Cart.js +60 -0
- package/dist/entity/modules/shopcart/Cart.js.map +1 -0
- package/dist/entity/modules/shopcart/CartItem.d.ts +13 -0
- package/dist/entity/modules/shopcart/CartItem.js +57 -0
- package/dist/entity/modules/shopcart/CartItem.js.map +1 -0
- package/dist/entity/modules/shopcart/Checkout.d.ts +23 -0
- package/dist/entity/modules/shopcart/Checkout.js +99 -0
- package/dist/entity/modules/shopcart/Checkout.js.map +1 -0
- package/dist/entity/modules/shopcart/CheckoutBillingAddress.d.ts +18 -0
- package/dist/entity/modules/shopcart/CheckoutBillingAddress.js +84 -0
- package/dist/entity/modules/shopcart/CheckoutBillingAddress.js.map +1 -0
- package/dist/entity/modules/shopcart/CheckoutShippingAddress.d.ts +18 -0
- package/dist/entity/modules/shopcart/CheckoutShippingAddress.js +84 -0
- package/dist/entity/modules/shopcart/CheckoutShippingAddress.js.map +1 -0
- package/dist/entity/modules/shopcart/PriceData.d.ts +8 -0
- package/dist/entity/modules/shopcart/PriceData.js +44 -0
- package/dist/entity/modules/shopcart/PriceData.js.map +1 -0
- package/dist/examples/app01.d.ts +1 -0
- package/dist/examples/app01.js +23 -0
- package/dist/examples/app01.js.map +1 -0
- package/dist/helpers/index.d.ts +5 -0
- package/dist/helpers/index.js +31 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/order/index.d.ts +28 -0
- package/dist/helpers/order/index.js +47 -0
- package/dist/helpers/order/index.js.map +1 -0
- package/dist/helpers/products/index.d.ts +2 -0
- package/dist/helpers/products/index.js +25 -0
- package/dist/helpers/products/index.js.map +1 -0
- package/dist/helpers/products/storage/index.d.ts +2 -0
- package/dist/helpers/products/storage/index.js +25 -0
- package/dist/helpers/products/storage/index.js.map +1 -0
- package/dist/helpers/products/storage/search.d.ts +52 -0
- package/dist/helpers/products/storage/search.js +181 -0
- package/dist/helpers/products/storage/search.js.map +1 -0
- package/dist/helpers/returns/index.d.ts +2 -0
- package/dist/helpers/returns/index.js +25 -0
- package/dist/helpers/returns/index.js.map +1 -0
- package/dist/helpers/returns/storage.d.ts +3 -0
- package/dist/helpers/returns/storage.js +23 -0
- package/dist/helpers/returns/storage.js.map +1 -0
- package/dist/helpers/statistics/connections.d.ts +6 -0
- package/dist/helpers/statistics/connections.js +78 -0
- package/dist/helpers/statistics/connections.js.map +1 -0
- package/dist/helpers/statistics/index.d.ts +2 -0
- package/dist/helpers/statistics/index.js +25 -0
- package/dist/helpers/statistics/index.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/connectionConfig.d.ts +16 -0
- package/dist/interface/connectionConfig.js +3 -0
- package/dist/interface/connectionConfig.js.map +1 -0
- package/dist/migrations/1628474597284-InitialSchema.d.ts +6 -0
- package/dist/migrations/1628474597284-InitialSchema.js +203 -0
- package/dist/migrations/1628474597284-InitialSchema.js.map +1 -0
- package/dist/migrations/1630077596132-RemoveMangopay.d.ts +6 -0
- package/dist/migrations/1630077596132-RemoveMangopay.js +53 -0
- package/dist/migrations/1630077596132-RemoveMangopay.js.map +1 -0
- package/dist/migrations/1633444449026-MagentoIntegration.d.ts +6 -0
- package/dist/migrations/1633444449026-MagentoIntegration.js +42 -0
- package/dist/migrations/1633444449026-MagentoIntegration.js.map +1 -0
- package/dist/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.d.ts +6 -0
- package/dist/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.js +31 -0
- package/dist/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.js.map +1 -0
- package/dist/migrations/1635811861541-SSCCOrderGenerator.d.ts +6 -0
- package/dist/migrations/1635811861541-SSCCOrderGenerator.js +29 -0
- package/dist/migrations/1635811861541-SSCCOrderGenerator.js.map +1 -0
- package/dist/migrations/1638447028594-RolesFeature.d.ts +6 -0
- package/dist/migrations/1638447028594-RolesFeature.js +47 -0
- package/dist/migrations/1638447028594-RolesFeature.js.map +1 -0
- package/dist/migrations/1638493697631-ProductCurrencyPrice.d.ts +6 -0
- package/dist/migrations/1638493697631-ProductCurrencyPrice.js +35 -0
- package/dist/migrations/1638493697631-ProductCurrencyPrice.js.map +1 -0
- package/dist/migrations/1646797095632-UpdateWooTrackingNumber.d.ts +6 -0
- package/dist/migrations/1646797095632-UpdateWooTrackingNumber.js +33 -0
- package/dist/migrations/1646797095632-UpdateWooTrackingNumber.js.map +1 -0
- package/dist/migrations/1648526519546-AddedUserSettings.d.ts +6 -0
- package/dist/migrations/1648526519546-AddedUserSettings.js +37 -0
- package/dist/migrations/1648526519546-AddedUserSettings.js.map +1 -0
- package/dist/migrations/1651206194365-Wolt.d.ts +6 -0
- package/dist/migrations/1651206194365-Wolt.js +52 -0
- package/dist/migrations/1651206194365-Wolt.js.map +1 -0
- package/dist/migrations/1663227133335-shop-cart.d.ts +6 -0
- package/dist/migrations/1663227133335-shop-cart.js +62 -0
- package/dist/migrations/1663227133335-shop-cart.js.map +1 -0
- package/dist/migrations/1664160721396-collection.d.ts +6 -0
- package/dist/migrations/1664160721396-collection.js +43 -0
- package/dist/migrations/1664160721396-collection.js.map +1 -0
- package/dist/migrations/1664222251306-update-collection.d.ts +6 -0
- package/dist/migrations/1664222251306-update-collection.js +37 -0
- package/dist/migrations/1664222251306-update-collection.js.map +1 -0
- package/dist/migrations/1665757388450-channel.d.ts +6 -0
- package/dist/migrations/1665757388450-channel.js +59 -0
- package/dist/migrations/1665757388450-channel.js.map +1 -0
- package/dist/migrations/1666098098114-prod-22-10-18.d.ts +6 -0
- package/dist/migrations/1666098098114-prod-22-10-18.js +110 -0
- package/dist/migrations/1666098098114-prod-22-10-18.js.map +1 -0
- package/dist/migrations/1666631086586-user-channel-api-key-and-currency.d.ts +6 -0
- package/dist/migrations/1666631086586-user-channel-api-key-and-currency.js +39 -0
- package/dist/migrations/1666631086586-user-channel-api-key-and-currency.js.map +1 -0
- package/dist/migrations/1666632054252-user-channel-api-key-and-currency-update.d.ts +6 -0
- package/dist/migrations/1666632054252-user-channel-api-key-and-currency-update.js +35 -0
- package/dist/migrations/1666632054252-user-channel-api-key-and-currency-update.js.map +1 -0
- package/dist/migrations/1666752877685-checkout-and-usser-settings.d.ts +6 -0
- package/dist/migrations/1666752877685-checkout-and-usser-settings.js +39 -0
- package/dist/migrations/1666752877685-checkout-and-usser-settings.js.map +1 -0
- package/dist/migrations/1666846907205-update-user-settings.d.ts +6 -0
- package/dist/migrations/1666846907205-update-user-settings.js +31 -0
- package/dist/migrations/1666846907205-update-user-settings.js.map +1 -0
- package/dist/migrations/1667259333252-prod-22-10-31.d.ts +6 -0
- package/dist/migrations/1667259333252-prod-22-10-31.js +43 -0
- package/dist/migrations/1667259333252-prod-22-10-31.js.map +1 -0
- package/dist/migrations/1667518502388-product-update.d.ts +6 -0
- package/dist/migrations/1667518502388-product-update.js +31 -0
- package/dist/migrations/1667518502388-product-update.js.map +1 -0
- package/dist/migrations/1668571948507-ExchangeRate.d.ts +6 -0
- package/dist/migrations/1668571948507-ExchangeRate.js +29 -0
- package/dist/migrations/1668571948507-ExchangeRate.js.map +1 -0
- package/dist/migrations/1668580085818-update-ExchangeRate.d.ts +6 -0
- package/dist/migrations/1668580085818-update-ExchangeRate.js +31 -0
- package/dist/migrations/1668580085818-update-ExchangeRate.js.map +1 -0
- package/dist/migrations/1669318273596-update-oder-notification.d.ts +6 -0
- package/dist/migrations/1669318273596-update-oder-notification.js +33 -0
- package/dist/migrations/1669318273596-update-oder-notification.js.map +1 -0
- package/dist/migrations/1669737769669-option.d.ts +6 -0
- package/dist/migrations/1669737769669-option.js +29 -0
- package/dist/migrations/1669737769669-option.js.map +1 -0
- package/dist/migrations/1669912111945-shipping.d.ts +6 -0
- package/dist/migrations/1669912111945-shipping.js +39 -0
- package/dist/migrations/1669912111945-shipping.js.map +1 -0
- package/dist/migrations/1670258127812-price.d.ts +6 -0
- package/dist/migrations/1670258127812-price.js +31 -0
- package/dist/migrations/1670258127812-price.js.map +1 -0
- package/dist/migrations/1670952109146-variant.d.ts +6 -0
- package/dist/migrations/1670952109146-variant.js +29 -0
- package/dist/migrations/1670952109146-variant.js.map +1 -0
- package/dist/migrations/1671409580304-order.d.ts +6 -0
- package/dist/migrations/1671409580304-order.js +33 -0
- package/dist/migrations/1671409580304-order.js.map +1 -0
- package/dist/migrations/1672239194236-user-shipping.d.ts +6 -0
- package/dist/migrations/1672239194236-user-shipping.js +31 -0
- package/dist/migrations/1672239194236-user-shipping.js.map +1 -0
- package/dist/migrations/1673628218703-promote_to_production_2023_13_01.d.ts +6 -0
- package/dist/migrations/1673628218703-promote_to_production_2023_13_01.js +67 -0
- package/dist/migrations/1673628218703-promote_to_production_2023_13_01.js.map +1 -0
- package/dist/migrations/1674016904315-exchangeRate_2023_13_01.d.ts +6 -0
- package/dist/migrations/1674016904315-exchangeRate_2023_13_01.js +29 -0
- package/dist/migrations/1674016904315-exchangeRate_2023_13_01.js.map +1 -0
- package/dist/migrations/1674743576475-promote_to_production_2023_26_01.d.ts +6 -0
- package/dist/migrations/1674743576475-promote_to_production_2023_26_01.js +29 -0
- package/dist/migrations/1674743576475-promote_to_production_2023_26_01.js.map +1 -0
- package/dist/migrations/1675452256156-task-1062.d.ts +6 -0
- package/dist/migrations/1675452256156-task-1062.js +39 -0
- package/dist/migrations/1675452256156-task-1062.js.map +1 -0
- package/dist/migrations/1676057445311-task-1062V2.d.ts +6 -0
- package/dist/migrations/1676057445311-task-1062V2.js +29 -0
- package/dist/migrations/1676057445311-task-1062V2.js.map +1 -0
- package/dist/migrations/1676060390524-task-1062V3.d.ts +6 -0
- package/dist/migrations/1676060390524-task-1062V3.js +31 -0
- package/dist/migrations/1676060390524-task-1062V3.js.map +1 -0
- package/dist/migrations/1676389900564-task-1062V4.d.ts +6 -0
- package/dist/migrations/1676389900564-task-1062V4.js +29 -0
- package/dist/migrations/1676389900564-task-1062V4.js.map +1 -0
- package/dist/migrations/1676558804200-task-1074V1.d.ts +6 -0
- package/dist/migrations/1676558804200-task-1074V1.js +29 -0
- package/dist/migrations/1676558804200-task-1074V1.js.map +1 -0
- package/dist/migrations/1676656657956-task-1084V1.d.ts +6 -0
- package/dist/migrations/1676656657956-task-1084V1.js +29 -0
- package/dist/migrations/1676656657956-task-1084V1.js.map +1 -0
- package/dist/migrations/execute/index.d.ts +1 -0
- package/dist/migrations/execute/index.js +9 -0
- package/dist/migrations/execute/index.js.map +1 -0
- package/dist/migrations/index.d.ts +11 -0
- package/dist/migrations/index.js +24 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/repositories/index.d.ts +158 -0
- package/dist/repositories/index.js +383 -0
- package/dist/repositories/index.js.map +1 -0
- package/dist/repositories/shipping/index.d.ts +10 -0
- package/dist/repositories/shipping/index.js +35 -0
- package/dist/repositories/shipping/index.js.map +1 -0
- package/dist/repositories/shopcart/index.d.ts +19 -0
- package/dist/repositories/shopcart/index.js +56 -0
- package/dist/repositories/shopcart/index.js.map +1 -0
- package/dist/staticData/ChannelName.d.ts +9 -0
- package/dist/staticData/ChannelName.js +11 -0
- package/dist/staticData/ChannelName.js.map +1 -0
- package/dist/staticData/ConnectionType.d.ts +5 -0
- package/dist/staticData/ConnectionType.js +7 -0
- package/dist/staticData/ConnectionType.js.map +1 -0
- package/dist/staticData/Currency.d.ts +9 -0
- package/dist/staticData/Currency.js +14 -0
- package/dist/staticData/Currency.js.map +1 -0
- package/dist/staticData/OrderStatus.d.ts +18 -0
- package/dist/staticData/OrderStatus.js +44 -0
- package/dist/staticData/OrderStatus.js.map +1 -0
- package/dist/staticData/PaymentProcessor.d.ts +8 -0
- package/dist/staticData/PaymentProcessor.js +12 -0
- package/dist/staticData/PaymentProcessor.js.map +1 -0
- package/dist/staticData/ProductOrigin.d.ts +10 -0
- package/dist/staticData/ProductOrigin.js +18 -0
- package/dist/staticData/ProductOrigin.js.map +1 -0
- package/dist/staticData/TrackingProcessor.d.ts +7 -0
- package/dist/staticData/TrackingProcessor.js +11 -0
- package/dist/staticData/TrackingProcessor.js.map +1 -0
- package/dist/staticData/VippsPaymentStatus.d.ts +15 -0
- package/dist/staticData/VippsPaymentStatus.js +41 -0
- package/dist/staticData/VippsPaymentStatus.js.map +1 -0
- package/dist/staticData/index.d.ts +9 -0
- package/dist/staticData/index.js +23 -0
- package/dist/staticData/index.js.map +1 -0
- package/dist/subscribers/ProductSubscriber.d.ts +8 -0
- package/dist/subscribers/ProductSubscriber.js +46 -0
- package/dist/subscribers/ProductSubscriber.js.map +1 -0
- package/dist/subscribers/UserSubscriber.d.ts +8 -0
- package/dist/subscribers/UserSubscriber.js +46 -0
- package/dist/subscribers/UserSubscriber.js.map +1 -0
- package/dist/subscribers/index.d.ts +3 -0
- package/dist/subscribers/index.js +8 -0
- package/dist/subscribers/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +8681 -0
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/index.js +109 -0
- package/dist/utils/index.js.map +1 -0
- package/docs/notas.txt +1 -0
- package/jsconfig.json +5 -0
- package/nodemon.json +5 -0
- package/package.json +76 -0
- package/src/config/connect.ts +28 -0
- package/src/entity/Address.ts +24 -0
- package/src/entity/ApiCredential.ts +19 -0
- package/src/entity/AuditedModel.ts +9 -0
- package/src/entity/BankAccount.ts +29 -0
- package/src/entity/Business.ts +51 -0
- package/src/entity/BusinessProducts.ts +15 -0
- package/src/entity/CardRegistration.ts +26 -0
- package/src/entity/Category.ts +16 -0
- package/src/entity/Channel.ts +44 -0
- package/src/entity/ChannelGroup.ts +52 -0
- package/src/entity/ChannelUser.ts +46 -0
- package/src/entity/ChannelUserProductSync.ts +46 -0
- package/src/entity/Check.ts +12 -0
- package/src/entity/CheckoutMetadata.ts +16 -0
- package/src/entity/Collection.ts +55 -0
- package/src/entity/CollectionItem.ts +31 -0
- package/src/entity/CollectionShared.ts +35 -0
- package/src/entity/Contact.ts +24 -0
- package/src/entity/Country.ts +18 -0
- package/src/entity/Courier.ts +17 -0
- package/src/entity/Currency.ts +17 -0
- package/src/entity/CustomProduct.ts +85 -0
- package/src/entity/CustomProductImage.ts +36 -0
- package/src/entity/CustomVariant.ts +40 -0
- package/src/entity/ExchangeRate.ts +20 -0
- package/src/entity/FlatRate.ts +29 -0
- package/src/entity/FlatRateCountry.ts +17 -0
- package/src/entity/Fulfillment.ts +12 -0
- package/src/entity/Image.ts +34 -0
- package/src/entity/ImportedProduct.ts +45 -0
- package/src/entity/MagentoConnection.entity.ts +36 -0
- package/src/entity/MetricActiveUser.ts +25 -0
- package/src/entity/Notification.ts +46 -0
- package/src/entity/Option.ts +31 -0
- package/src/entity/Order.ts +80 -0
- package/src/entity/OrderCustomer.ts +48 -0
- package/src/entity/OrderItem.ts +118 -0
- package/src/entity/OrderShipping.ts +47 -0
- package/src/entity/OrderTracking.ts +50 -0
- package/src/entity/Payment.ts +52 -0
- package/src/entity/PaymentMethod.ts +32 -0
- package/src/entity/PaymentShopify.ts +17 -0
- package/src/entity/Permission.ts +13 -0
- package/src/entity/Price.entity.ts +12 -0
- package/src/entity/Product.entity.ts +200 -0
- package/src/entity/Request.ts +23 -0
- package/src/entity/Return.ts +19 -0
- package/src/entity/ReturnAddress.ts +27 -0
- package/src/entity/Role.ts +20 -0
- package/src/entity/RolePermission.ts +19 -0
- package/src/entity/ShippingPackage.ts +19 -0
- package/src/entity/ShopifyConnection.ts +37 -0
- package/src/entity/Subcategory.ts +16 -0
- package/src/entity/User.ts +261 -0
- package/src/entity/UserChannelApiKey.ts +32 -0
- package/src/entity/UserRole.ts +19 -0
- package/src/entity/UserSettings.ts +37 -0
- package/src/entity/UserTokenWolt.ts +19 -0
- package/src/entity/Variant.ts +53 -0
- package/src/entity/Wallet.ts +14 -0
- package/src/entity/WooConnection.ts +24 -0
- package/src/entity/index.ts +148 -0
- package/src/entity/modules/shipping/ProductShipping.ts +37 -0
- package/src/entity/modules/shipping/Shipping.ts +54 -0
- package/src/entity/modules/shipping/ShippingCountry.ts +35 -0
- package/src/entity/modules/shopcart/Cart.ts +43 -0
- package/src/entity/modules/shopcart/CartItem.ts +40 -0
- package/src/entity/modules/shopcart/Checkout.ts +74 -0
- package/src/entity/modules/shopcart/CheckoutBillingAddress.ts +50 -0
- package/src/entity/modules/shopcart/CheckoutShippingAddress.ts +50 -0
- package/src/entity/modules/shopcart/PriceData.ts +20 -0
- package/src/examples/app01.ts +9 -0
- package/src/helpers/index.ts +6 -0
- package/src/helpers/order/index.ts +47 -0
- package/src/helpers/products/index.ts +2 -0
- package/src/helpers/products/storage/index.ts +2 -0
- package/src/helpers/products/storage/search.ts +249 -0
- package/src/helpers/returns/index.ts +2 -0
- package/src/helpers/returns/storage.ts +9 -0
- package/src/helpers/statistics/connections.ts +70 -0
- package/src/helpers/statistics/index.ts +2 -0
- package/src/index.ts +8 -0
- package/src/interface/connectionConfig.ts +17 -0
- package/src/migrations/1628474597284-InitialSchema.ts +471 -0
- package/src/migrations/1630077596132-RemoveMangopay.ts +79 -0
- package/src/migrations/1633444449026-MagentoIntegration.ts +50 -0
- package/src/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.ts +23 -0
- package/src/migrations/1635811861541-SSCCOrderGenerator.ts +13 -0
- package/src/migrations/1638447028594-RolesFeature.ts +59 -0
- package/src/migrations/1638493697631-ProductCurrencyPrice.ts +31 -0
- package/src/migrations/1646797095632-UpdateWooTrackingNumber.ts +27 -0
- package/src/migrations/1648526519546-AddedUserSettings.ts +35 -0
- package/src/migrations/1651206194365-Wolt.ts +37 -0
- package/src/migrations/1663227133335-shop-cart.ts +47 -0
- package/src/migrations/1664160721396-collection.ts +28 -0
- package/src/migrations/1664222251306-update-collection.ts +22 -0
- package/src/migrations/1665757388450-channel.ts +44 -0
- package/src/migrations/1666098098114-prod-22-10-18.ts +95 -0
- package/src/migrations/1666631086586-user-channel-api-key-and-currency.ts +24 -0
- package/src/migrations/1666632054252-user-channel-api-key-and-currency-update.ts +20 -0
- package/src/migrations/1666752877685-checkout-and-usser-settings.ts +24 -0
- package/src/migrations/1666846907205-update-user-settings.ts +16 -0
- package/src/migrations/1667259333252-prod-22-10-31.ts +28 -0
- package/src/migrations/1667518502388-product-update.ts +16 -0
- package/src/migrations/1668571948507-ExchangeRate.ts +14 -0
- package/src/migrations/1668580085818-update-ExchangeRate.ts +16 -0
- package/src/migrations/1669318273596-update-oder-notification.ts +18 -0
- package/src/migrations/1669737769669-option.ts +14 -0
- package/src/migrations/1669912111945-shipping.ts +24 -0
- package/src/migrations/1670258127812-price.ts +16 -0
- package/src/migrations/1670952109146-variant.ts +14 -0
- package/src/migrations/1671409580304-order.ts +18 -0
- package/src/migrations/1672239194236-user-shipping.ts +16 -0
- package/src/migrations/1673628218703-promote_to_production_2023_13_01.ts +52 -0
- package/src/migrations/1674016904315-exchangeRate_2023_13_01.ts +14 -0
- package/src/migrations/1674743576475-promote_to_production_2023_26_01.ts +14 -0
- package/src/migrations/1675452256156-task-1062.ts +24 -0
- package/src/migrations/1676057445311-task-1062V2.ts +14 -0
- package/src/migrations/1676060390524-task-1062V3.ts +16 -0
- package/src/migrations/1676389900564-task-1062V4.ts +14 -0
- package/src/migrations/1676558804200-task-1074V1.ts +14 -0
- package/src/migrations/1676656657956-task-1084V1.ts +14 -0
- package/src/migrations/execute/index.ts +3 -0
- package/src/migrations/index.ts +23 -0
- package/src/repositories/index.ts +233 -0
- package/src/repositories/shipping/index.ts +15 -0
- package/src/repositories/shopcart/index.ts +25 -0
- package/src/staticData/ChannelName.ts +8 -0
- package/src/staticData/ConnectionType.ts +4 -0
- package/src/staticData/Currency.ts +11 -0
- package/src/staticData/OrderStatus.ts +41 -0
- package/src/staticData/PaymentProcessor.ts +9 -0
- package/src/staticData/ProductOrigin.ts +19 -0
- package/src/staticData/TrackingProcessor.ts +8 -0
- package/src/staticData/VippsPaymentStatus.ts +41 -0
- package/src/staticData/index.ts +20 -0
- package/src/subscribers/ProductSubscriber.ts +25 -0
- package/src/subscribers/UserSubscriber.ts +23 -0
- package/src/subscribers/index.ts +4 -0
- package/src/utils/index.ts +88 -0
- package/test/setup.ts +4 -0
- package/test/staticData/OrderStatus.test.ts +0 -0
- package/test/staticData/VippsPaymentStatus.test.ts +0 -0
- package/test/utils.test.ts +22 -0
- package/tsconfig.build.json +9 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.Connections = void 0;
|
|
23
|
+
const Connections = __importStar(require("./connections"));
|
|
24
|
+
exports.Connections = Connections;
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/statistics/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA6C;AACpC,kCAAW"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as Migration from './migrations';
|
|
2
|
+
import * as Entity from './entity';
|
|
3
|
+
import * as StaticData from './staticData';
|
|
4
|
+
import * as Utils from './utils';
|
|
5
|
+
import * as Repository from './repositories';
|
|
6
|
+
import * as Helper from './helpers';
|
|
7
|
+
export { Migration, Entity, StaticData, Utils, Repository, Helper };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.Helper = exports.Repository = exports.Utils = exports.StaticData = exports.Entity = exports.Migration = void 0;
|
|
23
|
+
const Migration = __importStar(require("./migrations"));
|
|
24
|
+
exports.Migration = Migration;
|
|
25
|
+
const Entity = __importStar(require("./entity"));
|
|
26
|
+
exports.Entity = Entity;
|
|
27
|
+
const StaticData = __importStar(require("./staticData"));
|
|
28
|
+
exports.StaticData = StaticData;
|
|
29
|
+
const Utils = __importStar(require("./utils"));
|
|
30
|
+
exports.Utils = Utils;
|
|
31
|
+
const Repository = __importStar(require("./repositories"));
|
|
32
|
+
exports.Repository = Repository;
|
|
33
|
+
const Helper = __importStar(require("./helpers"));
|
|
34
|
+
exports.Helper = Helper;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA0C;AAOjC,8BAAS;AANlB,iDAAmC;AAMf,wBAAM;AAL1B,yDAA2C;AAKf,gCAAU;AAJtC,+CAAiC;AAIO,sBAAK;AAH7C,2DAA6C;AAGE,gCAAU;AAFzD,kDAAoC;AAEuB,wBAAM"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EntitySchema, EntitySubscriberInterface, MigrationInterface } from 'typeorm';
|
|
2
|
+
import { SnakeNamingStrategy } from 'typeorm-naming-strategies';
|
|
3
|
+
export interface ConnectionConfig {
|
|
4
|
+
type: string;
|
|
5
|
+
host: string;
|
|
6
|
+
port: number;
|
|
7
|
+
username: string;
|
|
8
|
+
password: string;
|
|
9
|
+
database: string;
|
|
10
|
+
namingStrategy: SnakeNamingStrategy;
|
|
11
|
+
entities: EntitySchema<any>[];
|
|
12
|
+
synchronize: boolean;
|
|
13
|
+
timezone: string;
|
|
14
|
+
migrations: MigrationInterface[];
|
|
15
|
+
subscribers: EntitySubscriberInterface<any>[];
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectionConfig.js","sourceRoot":"","sources":["../../src/interface/connectionConfig.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.InitialSchema1628474597284 = void 0;
|
|
13
|
+
class InitialSchema1628474597284 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'InitialSchema1628474597284';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`subcategory\` (\`id\` int NOT NULL AUTO_INCREMENT, \`name\` varchar(255) NOT NULL, \`category_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`category\` (\`id\` int NOT NULL AUTO_INCREMENT, \`name\` varchar(255) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
21
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`card_registration\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`card_registration_id\` varchar(255) NOT NULL, \`card_id\` varchar(255) NOT NULL, \`alias\` varchar(255) NOT NULL, \`card_provider\` varchar(255) NOT NULL, \`validity\` varchar(255) NOT NULL, \`expiration_date\` varchar(255) NOT NULL, \`user_id\` int NULL, UNIQUE INDEX \`REL_fc69ffcad90889cf50bac7a1e4\` (\`user_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
22
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`bank_account\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`owner\` varchar(255) NULL, \`name\` varchar(255) NULL, \`bank_account_id\` varchar(255) NOT NULL, \`iban\` varchar(255) NOT NULL, \`active\` tinyint NOT NULL, \`bic\` varchar(255) NOT NULL, \`type\` varchar(255) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
23
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`wallet\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`wallet_id\` varchar(255) NOT NULL, \`currency\` varchar(255) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
24
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`courier\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`postmen_id\` varchar(255) NOT NULL, \`description\` varchar(255) NOT NULL, \`slug\` varchar(255) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
25
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`flat_rate_country\` (\`id\` int NOT NULL AUTO_INCREMENT, \`amount\` decimal(10,2) NULL, \`country\` varchar(255) NOT NULL, \`flat_rate_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
26
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`flat_rate\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`amount\` decimal(10,2) NULL, \`custom_prices_enabled\` tinyint NOT NULL DEFAULT 0, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
27
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`shipping_package\` (\`id\` int NOT NULL AUTO_INCREMENT, \`height\` decimal(10,2) NOT NULL, \`depth\` decimal(10,2) NOT NULL, \`weight\` decimal(10,2) NOT NULL, \`width\` decimal(10,2) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
28
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`woo_connection\` (\`id\` int NOT NULL AUTO_INCREMENT, \`shop\` varchar(255) NOT NULL, \`consumer_key\` varchar(255) NOT NULL, \`consumer_secret\` varchar(255) NOT NULL, \`currency\` varchar(255) NULL, \`user_id\` int NULL, UNIQUE INDEX \`REL_c61b68995acf5a1a32f2c60175\` (\`user_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
29
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`business\` (\`id\` int NOT NULL AUTO_INCREMENT, \`same_as_account\` tinyint NOT NULL DEFAULT 0, \`business_name\` varchar(255) NULL, \`country\` varchar(255) NULL, \`address\` varchar(255) NULL, \`address2\` varchar(255) NULL, \`post_code\` varchar(255) NULL, \`city\` varchar(255) NULL, \`ecommerce_system\` varchar(255) NULL, \`productscategory\` varchar(255) NULL, \`productssubcategory\` varchar(255) NULL, \`productscommission\` varchar(255) NULL, \`productschannels\` varchar(255) NULL, \`contact_title\` varchar(255) NULL, \`contact_name\` varchar(255) NULL, \`contact_surname\` varchar(255) NULL, \`contact_email\` varchar(255) NULL, \`contact_role\` varchar(255) NULL, \`contact_phone_code\` varchar(255) NULL, \`contact_phone\` varchar(255) NULL, \`return_right\` varchar(255) NULL, \`return_label\` varchar(255) NULL, \`return_cost\` varchar(255) NULL, \`return_policy\` text NULL, \`return__address_same_as_business\` tinyint NOT NULL DEFAULT 0, \`return__address_same_as_warehouse\` tinyint NOT NULL DEFAULT 0, \`return__address_country\` varchar(255) NULL, \`return__address_timezone\` varchar(255) NULL, \`return__address_address\` varchar(255) NULL, \`return__address_address2\` varchar(255) NULL, \`return__address_post_code\` varchar(255) NULL, \`return__address_return_city\` varchar(255) NULL, \`fulfillment_shipping_rates\` varchar(255) NULL, \`fulfillment_processing_time\` varchar(255) NULL, \`fulfillment_shipping_to\` varchar(255) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
30
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`shopify_connection\` (\`id\` int NOT NULL AUTO_INCREMENT, \`imported_products\` tinyint NOT NULL DEFAULT 0, \`access_token\` varchar(255) NULL, \`url\` varchar(255) NULL, \`currency\` varchar(255) NULL, \`carrier_id\` varchar(255) NULL, \`fulfillment_id\` varchar(255) NULL, \`location_id\` varchar(255) NULL, \`reseller_id\` int NULL, \`supplier_id\` int NULL, UNIQUE INDEX \`REL_9499974cf522429803e172a627\` (\`reseller_id\`), UNIQUE INDEX \`REL_98158a497be5c13a12fad50554\` (\`supplier_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
31
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`country\` (\`id\` int NOT NULL AUTO_INCREMENT, \`name\` varchar(255) NOT NULL, \`code\` varchar(255) NOT NULL, \`postal_code\` varchar(255) NOT NULL, UNIQUE INDEX \`IDX_8ff4c23dc9a3f3856555bd8618\` (\`code\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
32
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`channel\` (\`id\` int NOT NULL AUTO_INCREMENT, \`name\` varchar(255) NOT NULL, \`enabled\` tinyint NOT NULL DEFAULT 0, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
33
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`option\` (\`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NOT NULL, \`order\` int NOT NULL, \`values\` varchar(255) NOT NULL, \`product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
34
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`image\` (\`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NOT NULL, \`width\` int NULL, \`height\` int NULL, \`order\` int NOT NULL, \`product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
35
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`variant\` (\`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`title\` varchar(255) NOT NULL, \`sku\` varchar(255) NOT NULL, \`barcode\` varchar(255) NULL, \`quantity\` int NOT NULL, \`price\` decimal(10,2) NOT NULL, \`origin_id\` varchar(255) NULL, \`product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
36
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`request\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`state\` int NULL DEFAULT '0', \`sender_id\` int NULL, \`receiver_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
37
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`imported_product\` (\`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`shopify_id\` bigint NULL, \`woo_id\` bigint NULL, \`squarespace_id\` varchar(255) NULL, \`profile_id\` varchar(255) NULL, \`profile_woo_id\` varchar(255) NULL, \`user_id\` int NULL, \`product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
38
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`payment_shopify\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`shopify_id\` varchar(255) NOT NULL, \`confirmation_url\` varchar(255) NOT NULL, \`status\` varchar(255) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
39
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`order_item\` (\`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`quantity\` int NOT NULL, \`sku\` varchar(255) NULL, \`variant_title\` varchar(255) NOT NULL, \`price\` decimal(10,2) NOT NULL, \`price_channel\` decimal(10,2) NOT NULL, \`currency_channel\` varchar(255) NOT NULL, \`tax\` decimal(10,2) NULL, \`tax_rate\` decimal(10,2) NULL, \`tax_title\` varchar(255) NULL, \`profit\` decimal(10,2) NOT NULL, \`revenue\` decimal(10,2) NOT NULL, \`fee\` decimal(10,2) NOT NULL, \`status\` varchar(255) NOT NULL, \`status_detail\` varchar(255) NULL, \`status_reason\` varchar(255) NULL, \`is_sales_channel\` tinyint NOT NULL DEFAULT 0, \`supplier_woo_order_id\` varchar(255) NULL, \`supplier_shopify_order_id\` varchar(255) NULL, \`channel_id\` varchar(255) NULL, \`product_id\` int NULL, \`order_tracking_id\` int NULL, \`supplier_id\` int NULL, \`order_id\` int NULL, \`payment_shopify_id\` int NULL, UNIQUE INDEX \`REL_1e106723258bd677ee40719d81\` (\`payment_shopify_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
40
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`order_shipping\` (\`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`code\` varchar(255) NOT NULL, \`title\` varchar(255) NOT NULL, \`price\` decimal(10,2) NOT NULL, \`price_channel\` decimal(10,2) NOT NULL, \`captured\` tinyint NOT NULL DEFAULT 0, \`order_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
41
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`order\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`channel\` varchar(255) NOT NULL, \`channel_id\` varchar(255) NOT NULL, \`channel_order_name\` varchar(255) NOT NULL, \`channel_created_date\` datetime NOT NULL, \`currency\` varchar(255) NOT NULL, \`payment_processor\` varchar(255) NULL, \`shipping_price\` decimal(10,2) NULL, \`shipping_title\` varchar(255) NULL, \`shipping_code\` varchar(255) NULL, \`reseller_id\` int NULL, \`customer_full_name\` varchar(255) NOT NULL, \`customer_email\` varchar(255) NULL, \`customer_phone\` varchar(255) NULL, \`customer_shipping_zip\` varchar(255) NOT NULL, \`customer_shipping_address\` varchar(255) NOT NULL, \`customer_shipping_city\` varchar(255) NOT NULL, \`customer_shipping_state\` varchar(255) NULL, \`customer_shipping_country\` varchar(255) NOT NULL, \`customer_shipping_contact_name\` varchar(255) NOT NULL, \`customer_billing_name\` varchar(255) NOT NULL, \`customer_billing_zip\` varchar(255) NOT NULL, \`customer_billing_city\` varchar(255) NOT NULL, \`customer_billing_state\` varchar(255) NULL, \`customer_billing_address\` varchar(255) NOT NULL, \`customer_billing_country\` varchar(255) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
42
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`order_tracking\` (\`id\` int NOT NULL AUTO_INCREMENT, \`tracking_number\` varchar(255) NULL, \`url\` varchar(255) NULL, \`processor\` varchar(255) NULL, \`processor_id\` varchar(255) NULL, \`status\` varchar(255) NULL, \`status_date\` datetime NULL, \`reseller_fulfillment_id\` varchar(255) NULL, \`supplier_fulfillment_ids\` varchar(255) NULL, \`order_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
43
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`checkout_metadata\` (\`uuid\` varchar(255) NOT NULL, \`deleted_at\` datetime(6) NULL, \`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`data\` text NOT NULL, PRIMARY KEY (\`uuid\`)) ENGINE=InnoDB`);
|
|
44
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`metric_active_user\` (\`id\` int NOT NULL AUTO_INCREMENT, \`seller\` bigint NOT NULL, \`supplier\` bigint NOT NULL, \`seller_today\` bigint NOT NULL, \`supplier_today\` bigint NOT NULL, \`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
45
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`product\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`title\` varchar(255) NULL, \`status\` int NOT NULL DEFAULT '0', \`description\` text NULL, \`public_price\` decimal(10,2) NULL, \`referral_fee\` int NOT NULL DEFAULT '0', \`tags\` varchar(255) NULL DEFAULT '', \`sku\` varchar(255) NULL, \`barcode\` varchar(255) NULL, \`quantity\` int NULL, \`allow_purchase_out_of_stock\` tinyint NOT NULL DEFAULT 0, \`weight\` decimal(10,2) NULL, \`ship_to\` text NULL, \`width\` decimal(10,2) NULL, \`height\` decimal(10,2) NULL, \`depth\` decimal(10,2) NULL, \`options_enabled\` tinyint NOT NULL DEFAULT 0, \`origin\` varchar(255) NULL, \`origin_id\` varchar(255) NULL, \`origin_variant_id\` varchar(255) NULL, \`total_orders\` varchar(255) NULL, \`total_imports\` varchar(255) NULL, \`imported\` int NULL, \`shopify_id\` varchar(255) NULL, \`woo_id\` varchar(255) NULL, \`user_is_sender\` varchar(255) NULL, \`user_is_receiver\` varchar(255) NULL, \`rate\` int NOT NULL DEFAULT '0', \`migrated\` tinyint NOT NULL DEFAULT 0, \`user_id\` int NULL, \`flat_rate_id\` int NULL, UNIQUE INDEX \`REL_be9d7736b967abed111e114f05\` (\`flat_rate_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
46
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`notification\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`entity_type\` varchar(255) NOT NULL, \`entity_id\` bigint NOT NULL, \`type\` varchar(255) NULL, \`viewed\` tinyint NOT NULL DEFAULT 0, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
47
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`payment\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`mangopay_id\` varchar(255) NOT NULL, \`card_id\` varchar(255) NOT NULL, \`related_entity_id\` bigint NOT NULL, \`related_entity_type\` varchar(255) NOT NULL, \`refund_id\` varchar(255) NULL, \`status\` varchar(255) NOT NULL, \`wallet_id\` varchar(255) NOT NULL, \`amount\` int NOT NULL, \`currency\` varchar(255) NULL, \`fee\` int NOT NULL, \`secure_mode\` tinyint NOT NULL, \`secure_redirect_url\` varchar(255) NULL, \`secure_return_url\` varchar(255) NULL, \`author_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
48
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`user\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`is_business\` tinyint NOT NULL DEFAULT 0, \`uid\` varchar(255) NULL, \`code\` varchar(255) NULL, \`active\` tinyint NOT NULL DEFAULT 1, \`is_admin\` tinyint NOT NULL DEFAULT 0, \`is_supplier\` tinyint NOT NULL DEFAULT 0, \`username\` varchar(255) NOT NULL DEFAULT '', \`name\` varchar(255) NOT NULL, \`surname\` varchar(255) NOT NULL, \`date_birth\` date NOT NULL DEFAULT '1990-01-01', \`phone\` varchar(255) NOT NULL DEFAULT '', \`phone_code\` varchar(255) NOT NULL DEFAULT '', \`address\` varchar(255) NULL, \`address2\` varchar(255) NULL, \`post_code\` varchar(255) NULL, \`state\` varchar(255) NOT NULL DEFAULT '', \`country\` varchar(255) NOT NULL DEFAULT '', \`city\` varchar(255) NOT NULL DEFAULT '', \`avatar\` varchar(255) NOT NULL DEFAULT '', \`website\` varchar(255) NOT NULL DEFAULT '', \`description\` text NOT NULL, \`facebook_access_token\` varchar(255) NULL, \`facebook_page_id\` varchar(255) NULL, \`instagram_account_id\` varchar(255) NULL, \`mangopay_id\` varchar(255) NULL, \`squarespace_api_token\` text NULL, \`first_squarespace_import\` tinyint NOT NULL DEFAULT 0, \`interests\` varchar(255) NOT NULL DEFAULT '', \`gender\` varchar(255) NULL, \`contact_name\` varchar(255) NULL, \`brand_name\` varchar(255) NULL, \`organization_number\` varchar(255) NULL, \`vat_number\` varchar(255) NULL, \`warehouse_same_address\` tinyint NOT NULL DEFAULT 0, \`oda_id\` varchar(255) NULL, \`terms_and_conditions\` tinyint NOT NULL DEFAULT 0, \`privacy_policy\` tinyint NOT NULL DEFAULT 0, \`cover_image\` varchar(255) NULL, \`listings_quantity\` varchar(255) NULL, \`imported_quantity\` varchar(255) NULL, \`orders_quantity\` varchar(255) NULL, \`connections_quantity\` varchar(255) NULL, \`is_sender\` varchar(255) NULL, \`is_receiver\` varchar(255) NULL, \`request_id\` varchar(255) NULL, \`request_state\` varchar(255) NULL, \`listings_draft\` varchar(255) NULL, \`listings_published\` varchar(255) NULL, \`saved_products\` varchar(255) NULL, \`exported_products\` varchar(255) NULL, \`rate\` int NOT NULL DEFAULT '0', \`business_id\` int NULL, \`card_registration_id\` int NULL, \`bank_account_id\` int NULL, \`wallet_id\` int NULL, \`courier_id\` int NULL, \`flat_rate_id\` int NULL, \`woo_id\` int NULL, \`shopify_reseller_id\` int NULL, \`shopify_supplier_id\` int NULL, \`shipping_package_id\` int NULL, \`warehouse_address\` varchar(255) NULL, \`warehouse_address2\` varchar(255) NULL, \`warehouse_post_code\` varchar(255) NULL, \`warehouse_state\` varchar(255) NULL, \`warehouse_country\` varchar(255) NULL, \`warehouse_timezone\` varchar(255) NULL, \`warehouse_city\` varchar(255) NULL, \`check_first_sync_shopify\` tinyint NOT NULL DEFAULT 0, \`check_first_sync_woo\` tinyint NOT NULL DEFAULT 0, \`check_activate_guide\` tinyint NOT NULL DEFAULT 0, UNIQUE INDEX \`IDX_df955cae05f17b2bcf5045cc02\` (\`uid\`), UNIQUE INDEX \`REL_5a4bd96d9a519d4d20a21231b9\` (\`business_id\`), UNIQUE INDEX \`REL_371bf8739470035e4b540b798a\` (\`card_registration_id\`), UNIQUE INDEX \`REL_080d426b06188408bc1cc508c8\` (\`bank_account_id\`), UNIQUE INDEX \`REL_b453ec3d9d579f6b9699be98be\` (\`wallet_id\`), UNIQUE INDEX \`REL_306ce5e598064be83a4f9711ac\` (\`courier_id\`), UNIQUE INDEX \`REL_a222a4249313cf0c934a55e038\` (\`flat_rate_id\`), UNIQUE INDEX \`REL_c9bd34a984ea3ad2570defd876\` (\`woo_id\`), UNIQUE INDEX \`REL_30e7578021099b78aa332a49ce\` (\`shopify_reseller_id\`), UNIQUE INDEX \`REL_bb09b5baeed0eff98b89cb1ff5\` (\`shopify_supplier_id\`), UNIQUE INDEX \`REL_286146c9e2b7b7e053305bebb3\` (\`shipping_package_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
49
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`api_credential\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`api_key\` varchar(255) NOT NULL, \`api_token\` varchar(255) NOT NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
50
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`product_subcategories_subcategory\` (\`product_id\` int NOT NULL, \`subcategory_id\` int NOT NULL, INDEX \`IDX_b45925f896a21830a6a186aff2\` (\`product_id\`), INDEX \`IDX_040b74263cc7e908b421a5205b\` (\`subcategory_id\`), PRIMARY KEY (\`product_id\`, \`subcategory_id\`)) ENGINE=InnoDB`);
|
|
51
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`product_channels_channel\` (\`product_id\` int NOT NULL, \`channel_id\` int NOT NULL, INDEX \`IDX_07e15b0eb640ff6072219afa73\` (\`product_id\`), INDEX \`IDX_396113fa3b66d9aa5abbaa402d\` (\`channel_id\`), PRIMARY KEY (\`product_id\`, \`channel_id\`)) ENGINE=InnoDB`);
|
|
52
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`user_categories_category\` (\`user_id\` int NOT NULL, \`category_id\` int NOT NULL, INDEX \`IDX_4e845aafeb0bda6eb2016d17cf\` (\`user_id\`), INDEX \`IDX_93e4b82612dd44e4288ff0b662\` (\`category_id\`), PRIMARY KEY (\`user_id\`, \`category_id\`)) ENGINE=InnoDB`);
|
|
53
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`subcategory\` ADD CONSTRAINT \`FK_23584d8b8d26287e4fca0e1aaab\` FOREIGN KEY (\`category_id\`) REFERENCES \`outshifter\`.\`category\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
54
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`card_registration\` ADD CONSTRAINT \`FK_fc69ffcad90889cf50bac7a1e4f\` FOREIGN KEY (\`user_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
55
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`flat_rate_country\` ADD CONSTRAINT \`FK_2d5acae96bbd94943242b0ade78\` FOREIGN KEY (\`flat_rate_id\`) REFERENCES \`outshifter\`.\`flat_rate\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
56
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`woo_connection\` ADD CONSTRAINT \`FK_c61b68995acf5a1a32f2c601759\` FOREIGN KEY (\`user_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
57
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`shopify_connection\` ADD CONSTRAINT \`FK_9499974cf522429803e172a6276\` FOREIGN KEY (\`reseller_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
58
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`shopify_connection\` ADD CONSTRAINT \`FK_98158a497be5c13a12fad50554a\` FOREIGN KEY (\`supplier_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
59
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`option\` ADD CONSTRAINT \`FK_590a423d166a34b781205bb0a0d\` FOREIGN KEY (\`product_id\`) REFERENCES \`outshifter\`.\`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
60
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`image\` ADD CONSTRAINT \`FK_e6a9e829e17fc47fc17d695af8e\` FOREIGN KEY (\`product_id\`) REFERENCES \`outshifter\`.\`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
61
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`variant\` ADD CONSTRAINT \`FK_738bfa62f918ad1436cb5c8ee5b\` FOREIGN KEY (\`product_id\`) REFERENCES \`outshifter\`.\`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
62
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`request\` ADD CONSTRAINT \`FK_5ae23b096b55625fdc81d591950\` FOREIGN KEY (\`sender_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
63
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`request\` ADD CONSTRAINT \`FK_eaf97ef4b8eac5e7caf9194446e\` FOREIGN KEY (\`receiver_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
64
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`imported_product\` ADD CONSTRAINT \`FK_eee5363eb038cf4269ac62d200c\` FOREIGN KEY (\`user_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
65
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`imported_product\` ADD CONSTRAINT \`FK_c5357bb33e051013aa1365f7220\` FOREIGN KEY (\`product_id\`) REFERENCES \`outshifter\`.\`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
66
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` ADD CONSTRAINT \`FK_5e17c017aa3f5164cb2da5b1c6b\` FOREIGN KEY (\`product_id\`) REFERENCES \`outshifter\`.\`product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
67
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` ADD CONSTRAINT \`FK_0b750a32c016e66eea041057138\` FOREIGN KEY (\`order_tracking_id\`) REFERENCES \`outshifter\`.\`order_tracking\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
68
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` ADD CONSTRAINT \`FK_7342435b0fa4957e39f809a2cb6\` FOREIGN KEY (\`supplier_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
69
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` ADD CONSTRAINT \`FK_e9674a6053adbaa1057848cddfa\` FOREIGN KEY (\`order_id\`) REFERENCES \`outshifter\`.\`order\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
70
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` ADD CONSTRAINT \`FK_1e106723258bd677ee40719d812\` FOREIGN KEY (\`payment_shopify_id\`) REFERENCES \`outshifter\`.\`payment_shopify\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
71
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_shipping\` ADD CONSTRAINT \`FK_b4a21d5bd902c38f79c019fbe99\` FOREIGN KEY (\`order_id\`) REFERENCES \`outshifter\`.\`order\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
72
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order\` ADD CONSTRAINT \`FK_8a8045e1e17ebc98c4c7918bf99\` FOREIGN KEY (\`reseller_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
73
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_tracking\` ADD CONSTRAINT \`FK_c1e2051fba9bdbb70641cd90ea4\` FOREIGN KEY (\`order_id\`) REFERENCES \`outshifter\`.\`order\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
74
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product\` ADD CONSTRAINT \`FK_3e59a34134d840e83c2010fac9a\` FOREIGN KEY (\`user_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
75
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product\` ADD CONSTRAINT \`FK_be9d7736b967abed111e114f058\` FOREIGN KEY (\`flat_rate_id\`) REFERENCES \`outshifter\`.\`flat_rate\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
76
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`notification\` ADD CONSTRAINT \`FK_928b7aa1754e08e1ed7052cb9d8\` FOREIGN KEY (\`user_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
77
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`payment\` ADD CONSTRAINT \`FK_3949a14868d836aa1776f5cadcf\` FOREIGN KEY (\`author_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
78
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_5a4bd96d9a519d4d20a21231b9f\` FOREIGN KEY (\`business_id\`) REFERENCES \`outshifter\`.\`business\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
79
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_371bf8739470035e4b540b798a4\` FOREIGN KEY (\`card_registration_id\`) REFERENCES \`outshifter\`.\`card_registration\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
80
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_080d426b06188408bc1cc508c84\` FOREIGN KEY (\`bank_account_id\`) REFERENCES \`outshifter\`.\`bank_account\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
81
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_b453ec3d9d579f6b9699be98beb\` FOREIGN KEY (\`wallet_id\`) REFERENCES \`outshifter\`.\`wallet\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
82
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_306ce5e598064be83a4f9711acf\` FOREIGN KEY (\`courier_id\`) REFERENCES \`outshifter\`.\`courier\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
83
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_a222a4249313cf0c934a55e038f\` FOREIGN KEY (\`flat_rate_id\`) REFERENCES \`outshifter\`.\`flat_rate\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
84
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_c9bd34a984ea3ad2570defd876a\` FOREIGN KEY (\`woo_id\`) REFERENCES \`outshifter\`.\`woo_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
85
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_30e7578021099b78aa332a49ceb\` FOREIGN KEY (\`shopify_reseller_id\`) REFERENCES \`outshifter\`.\`shopify_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
86
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_bb09b5baeed0eff98b89cb1ff57\` FOREIGN KEY (\`shopify_supplier_id\`) REFERENCES \`outshifter\`.\`shopify_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
87
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_286146c9e2b7b7e053305bebb33\` FOREIGN KEY (\`shipping_package_id\`) REFERENCES \`outshifter\`.\`shipping_package\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
88
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`api_credential\` ADD CONSTRAINT \`FK_5b1bb2beee236dffec39bfd0aab\` FOREIGN KEY (\`user_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
89
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product_subcategories_subcategory\` ADD CONSTRAINT \`FK_b45925f896a21830a6a186aff27\` FOREIGN KEY (\`product_id\`) REFERENCES \`outshifter\`.\`product\`(\`id\`) ON DELETE CASCADE ON UPDATE CASCADE`);
|
|
90
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product_subcategories_subcategory\` ADD CONSTRAINT \`FK_040b74263cc7e908b421a5205bb\` FOREIGN KEY (\`subcategory_id\`) REFERENCES \`outshifter\`.\`subcategory\`(\`id\`) ON DELETE CASCADE ON UPDATE CASCADE`);
|
|
91
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product_channels_channel\` ADD CONSTRAINT \`FK_07e15b0eb640ff6072219afa73c\` FOREIGN KEY (\`product_id\`) REFERENCES \`outshifter\`.\`product\`(\`id\`) ON DELETE CASCADE ON UPDATE CASCADE`);
|
|
92
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product_channels_channel\` ADD CONSTRAINT \`FK_396113fa3b66d9aa5abbaa402d6\` FOREIGN KEY (\`channel_id\`) REFERENCES \`outshifter\`.\`channel\`(\`id\`) ON DELETE CASCADE ON UPDATE CASCADE`);
|
|
93
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user_categories_category\` ADD CONSTRAINT \`FK_4e845aafeb0bda6eb2016d17cfd\` FOREIGN KEY (\`user_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE CASCADE`);
|
|
94
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user_categories_category\` ADD CONSTRAINT \`FK_93e4b82612dd44e4288ff0b662c\` FOREIGN KEY (\`category_id\`) REFERENCES \`outshifter\`.\`category\`(\`id\`) ON DELETE CASCADE ON UPDATE CASCADE`);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
down(queryRunner) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user_categories_category\` DROP FOREIGN KEY \`FK_93e4b82612dd44e4288ff0b662c\``);
|
|
100
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user_categories_category\` DROP FOREIGN KEY \`FK_4e845aafeb0bda6eb2016d17cfd\``);
|
|
101
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product_channels_channel\` DROP FOREIGN KEY \`FK_396113fa3b66d9aa5abbaa402d6\``);
|
|
102
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product_channels_channel\` DROP FOREIGN KEY \`FK_07e15b0eb640ff6072219afa73c\``);
|
|
103
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product_subcategories_subcategory\` DROP FOREIGN KEY \`FK_040b74263cc7e908b421a5205bb\``);
|
|
104
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product_subcategories_subcategory\` DROP FOREIGN KEY \`FK_b45925f896a21830a6a186aff27\``);
|
|
105
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`api_credential\` DROP FOREIGN KEY \`FK_5b1bb2beee236dffec39bfd0aab\``);
|
|
106
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_286146c9e2b7b7e053305bebb33\``);
|
|
107
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_bb09b5baeed0eff98b89cb1ff57\``);
|
|
108
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_30e7578021099b78aa332a49ceb\``);
|
|
109
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_c9bd34a984ea3ad2570defd876a\``);
|
|
110
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_a222a4249313cf0c934a55e038f\``);
|
|
111
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_306ce5e598064be83a4f9711acf\``);
|
|
112
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_b453ec3d9d579f6b9699be98beb\``);
|
|
113
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_080d426b06188408bc1cc508c84\``);
|
|
114
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_371bf8739470035e4b540b798a4\``);
|
|
115
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_5a4bd96d9a519d4d20a21231b9f\``);
|
|
116
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`payment\` DROP FOREIGN KEY \`FK_3949a14868d836aa1776f5cadcf\``);
|
|
117
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`notification\` DROP FOREIGN KEY \`FK_928b7aa1754e08e1ed7052cb9d8\``);
|
|
118
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product\` DROP FOREIGN KEY \`FK_be9d7736b967abed111e114f058\``);
|
|
119
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`product\` DROP FOREIGN KEY \`FK_3e59a34134d840e83c2010fac9a\``);
|
|
120
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_tracking\` DROP FOREIGN KEY \`FK_c1e2051fba9bdbb70641cd90ea4\``);
|
|
121
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order\` DROP FOREIGN KEY \`FK_8a8045e1e17ebc98c4c7918bf99\``);
|
|
122
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_shipping\` DROP FOREIGN KEY \`FK_b4a21d5bd902c38f79c019fbe99\``);
|
|
123
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` DROP FOREIGN KEY \`FK_1e106723258bd677ee40719d812\``);
|
|
124
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` DROP FOREIGN KEY \`FK_e9674a6053adbaa1057848cddfa\``);
|
|
125
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` DROP FOREIGN KEY \`FK_7342435b0fa4957e39f809a2cb6\``);
|
|
126
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` DROP FOREIGN KEY \`FK_0b750a32c016e66eea041057138\``);
|
|
127
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` DROP FOREIGN KEY \`FK_5e17c017aa3f5164cb2da5b1c6b\``);
|
|
128
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`imported_product\` DROP FOREIGN KEY \`FK_c5357bb33e051013aa1365f7220\``);
|
|
129
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`imported_product\` DROP FOREIGN KEY \`FK_eee5363eb038cf4269ac62d200c\``);
|
|
130
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`request\` DROP FOREIGN KEY \`FK_eaf97ef4b8eac5e7caf9194446e\``);
|
|
131
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`request\` DROP FOREIGN KEY \`FK_5ae23b096b55625fdc81d591950\``);
|
|
132
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`variant\` DROP FOREIGN KEY \`FK_738bfa62f918ad1436cb5c8ee5b\``);
|
|
133
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`image\` DROP FOREIGN KEY \`FK_e6a9e829e17fc47fc17d695af8e\``);
|
|
134
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`option\` DROP FOREIGN KEY \`FK_590a423d166a34b781205bb0a0d\``);
|
|
135
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`shopify_connection\` DROP FOREIGN KEY \`FK_98158a497be5c13a12fad50554a\``);
|
|
136
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`shopify_connection\` DROP FOREIGN KEY \`FK_9499974cf522429803e172a6276\``);
|
|
137
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`woo_connection\` DROP FOREIGN KEY \`FK_c61b68995acf5a1a32f2c601759\``);
|
|
138
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`flat_rate_country\` DROP FOREIGN KEY \`FK_2d5acae96bbd94943242b0ade78\``);
|
|
139
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`card_registration\` DROP FOREIGN KEY \`FK_fc69ffcad90889cf50bac7a1e4f\``);
|
|
140
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`subcategory\` DROP FOREIGN KEY \`FK_23584d8b8d26287e4fca0e1aaab\``);
|
|
141
|
+
yield queryRunner.query(`DROP INDEX \`IDX_93e4b82612dd44e4288ff0b662\` ON \`outshifter\`.\`user_categories_category\``);
|
|
142
|
+
yield queryRunner.query(`DROP INDEX \`IDX_4e845aafeb0bda6eb2016d17cf\` ON \`outshifter\`.\`user_categories_category\``);
|
|
143
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`user_categories_category\``);
|
|
144
|
+
yield queryRunner.query(`DROP INDEX \`IDX_396113fa3b66d9aa5abbaa402d\` ON \`outshifter\`.\`product_channels_channel\``);
|
|
145
|
+
yield queryRunner.query(`DROP INDEX \`IDX_07e15b0eb640ff6072219afa73\` ON \`outshifter\`.\`product_channels_channel\``);
|
|
146
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`product_channels_channel\``);
|
|
147
|
+
yield queryRunner.query(`DROP INDEX \`IDX_040b74263cc7e908b421a5205b\` ON \`outshifter\`.\`product_subcategories_subcategory\``);
|
|
148
|
+
yield queryRunner.query(`DROP INDEX \`IDX_b45925f896a21830a6a186aff2\` ON \`outshifter\`.\`product_subcategories_subcategory\``);
|
|
149
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`product_subcategories_subcategory\``);
|
|
150
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`api_credential\``);
|
|
151
|
+
yield queryRunner.query(`DROP INDEX \`REL_286146c9e2b7b7e053305bebb3\` ON \`outshifter\`.\`user\``);
|
|
152
|
+
yield queryRunner.query(`DROP INDEX \`REL_bb09b5baeed0eff98b89cb1ff5\` ON \`outshifter\`.\`user\``);
|
|
153
|
+
yield queryRunner.query(`DROP INDEX \`REL_30e7578021099b78aa332a49ce\` ON \`outshifter\`.\`user\``);
|
|
154
|
+
yield queryRunner.query(`DROP INDEX \`REL_c9bd34a984ea3ad2570defd876\` ON \`outshifter\`.\`user\``);
|
|
155
|
+
yield queryRunner.query(`DROP INDEX \`REL_a222a4249313cf0c934a55e038\` ON \`outshifter\`.\`user\``);
|
|
156
|
+
yield queryRunner.query(`DROP INDEX \`REL_306ce5e598064be83a4f9711ac\` ON \`outshifter\`.\`user\``);
|
|
157
|
+
yield queryRunner.query(`DROP INDEX \`REL_b453ec3d9d579f6b9699be98be\` ON \`outshifter\`.\`user\``);
|
|
158
|
+
yield queryRunner.query(`DROP INDEX \`REL_080d426b06188408bc1cc508c8\` ON \`outshifter\`.\`user\``);
|
|
159
|
+
yield queryRunner.query(`DROP INDEX \`REL_371bf8739470035e4b540b798a\` ON \`outshifter\`.\`user\``);
|
|
160
|
+
yield queryRunner.query(`DROP INDEX \`REL_5a4bd96d9a519d4d20a21231b9\` ON \`outshifter\`.\`user\``);
|
|
161
|
+
yield queryRunner.query(`DROP INDEX \`IDX_df955cae05f17b2bcf5045cc02\` ON \`outshifter\`.\`user\``);
|
|
162
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`user\``);
|
|
163
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`payment\``);
|
|
164
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`notification\``);
|
|
165
|
+
yield queryRunner.query(`DROP INDEX \`REL_be9d7736b967abed111e114f05\` ON \`outshifter\`.\`product\``);
|
|
166
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`product\``);
|
|
167
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`metric_active_user\``);
|
|
168
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`checkout_metadata\``);
|
|
169
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`order_tracking\``);
|
|
170
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`order\``);
|
|
171
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`order_shipping\``);
|
|
172
|
+
yield queryRunner.query(`DROP INDEX \`REL_1e106723258bd677ee40719d81\` ON \`outshifter\`.\`order_item\``);
|
|
173
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`order_item\``);
|
|
174
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`payment_shopify\``);
|
|
175
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`imported_product\``);
|
|
176
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`request\``);
|
|
177
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`variant\``);
|
|
178
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`image\``);
|
|
179
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`option\``);
|
|
180
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`channel\``);
|
|
181
|
+
yield queryRunner.query(`DROP INDEX \`IDX_8ff4c23dc9a3f3856555bd8618\` ON \`outshifter\`.\`country\``);
|
|
182
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`country\``);
|
|
183
|
+
yield queryRunner.query(`DROP INDEX \`REL_98158a497be5c13a12fad50554\` ON \`outshifter\`.\`shopify_connection\``);
|
|
184
|
+
yield queryRunner.query(`DROP INDEX \`REL_9499974cf522429803e172a627\` ON \`outshifter\`.\`shopify_connection\``);
|
|
185
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`shopify_connection\``);
|
|
186
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`business\``);
|
|
187
|
+
yield queryRunner.query(`DROP INDEX \`REL_c61b68995acf5a1a32f2c60175\` ON \`outshifter\`.\`woo_connection\``);
|
|
188
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`woo_connection\``);
|
|
189
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`shipping_package\``);
|
|
190
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`flat_rate\``);
|
|
191
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`flat_rate_country\``);
|
|
192
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`courier\``);
|
|
193
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`wallet\``);
|
|
194
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`bank_account\``);
|
|
195
|
+
yield queryRunner.query(`DROP INDEX \`REL_fc69ffcad90889cf50bac7a1e4\` ON \`outshifter\`.\`card_registration\``);
|
|
196
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`card_registration\``);
|
|
197
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`category\``);
|
|
198
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`subcategory\``);
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
exports.InitialSchema1628474597284 = InitialSchema1628474597284;
|
|
203
|
+
//# sourceMappingURL=1628474597284-InitialSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1628474597284-InitialSchema.js","sourceRoot":"","sources":["../../src/migrations/1628474597284-InitialSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,0BAA0B;IAAvC;QACE,SAAI,GAAG,4BAA4B,CAAC;IAmdtC,CAAC;IAjdc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,gLAAgL,CACjL,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,mJAAmJ,CACpJ,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,gmBAAgmB,CACjmB,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,0fAA0f,CAC3f,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,6VAA6V,CAC9V,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,kYAAkY,CACnY,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,yNAAyN,CAC1N,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,6YAA6Y,CAC9Y,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,qQAAqQ,CACtQ,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,iWAAiW,C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AC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;YAC5E,MAAM,WAAW,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;YAClE,MAAM,WAAW,CAAC,KAAK,CACrB,oFAAoF,CACrF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;YACxE,MAAM,WAAW,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;YAC1E,MAAM,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;YACnE,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;YAC3E,MAAM,WAAW,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;YACjE,MAAM,WAAW,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;YAChE,MAAM,WAAW,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC;YACtE,MAAM,WAAW,CAAC,KAAK,CACrB,uFAAuF,CACxF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;YAC3E,MAAM,WAAW,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;YAClE,MAAM,WAAW,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;QACvE,CAAC;KAAA;CACF;AApdD,gEAodC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RemoveMangopay1630077596132 = void 0;
|
|
13
|
+
class RemoveMangopay1630077596132 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'RemoveMangopay1630077596132';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_080d426b06188408bc1cc508c84\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_371bf8739470035e4b540b798a4\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_b453ec3d9d579f6b9699be98beb\``);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`card_registration\` DROP FOREIGN KEY \`FK_fc69ffcad90889cf50bac7a1e4f\``);
|
|
23
|
+
yield queryRunner.query(`DROP INDEX \`REL_371bf8739470035e4b540b798a\` ON \`outshifter\`.\`user\``);
|
|
24
|
+
yield queryRunner.query(`DROP INDEX \`REL_080d426b06188408bc1cc508c8\` ON \`outshifter\`.\`user\``);
|
|
25
|
+
yield queryRunner.query(`DROP INDEX \`REL_b453ec3d9d579f6b9699be98be\` ON \`outshifter\`.\`user\``);
|
|
26
|
+
yield queryRunner.query(`DROP INDEX \`REL_fc69ffcad90889cf50bac7a1e4\` ON \`outshifter\`.\`card_registration\``);
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP COLUMN \`mangopay_id\``);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP COLUMN \`card_registration_id\``);
|
|
29
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP COLUMN \`bank_account_id\``);
|
|
30
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP COLUMN \`wallet_id\``);
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`card_registration\` DROP COLUMN \`user_id\``);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
down(queryRunner) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`card_registration\` ADD \`user_id\` int NULL`);
|
|
37
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD \`wallet_id\` int NULL`);
|
|
38
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD \`bank_account_id\` int NULL`);
|
|
39
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD \`card_registration_id\` int NULL`);
|
|
40
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD \`mangopay_id\` varchar(255) NULL`);
|
|
41
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_fc69ffcad90889cf50bac7a1e4\` ON \`outshifter\`.\`card_registration\` (\`user_id\`)`);
|
|
42
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_b453ec3d9d579f6b9699be98be\` ON \`outshifter\`.\`user\` (\`wallet_id\`)`);
|
|
43
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_080d426b06188408bc1cc508c8\` ON \`outshifter\`.\`user\` (\`bank_account_id\`)`);
|
|
44
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_371bf8739470035e4b540b798a\` ON \`outshifter\`.\`user\` (\`card_registration_id\`)`);
|
|
45
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`card_registration\` ADD CONSTRAINT \`FK_fc69ffcad90889cf50bac7a1e4f\` FOREIGN KEY (\`user_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
46
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_b453ec3d9d579f6b9699be98beb\` FOREIGN KEY (\`wallet_id\`) REFERENCES \`outshifter\`.\`wallet\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
47
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_371bf8739470035e4b540b798a4\` FOREIGN KEY (\`card_registration_id\`) REFERENCES \`outshifter\`.\`card_registration\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
48
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_080d426b06188408bc1cc508c84\` FOREIGN KEY (\`bank_account_id\`) REFERENCES \`outshifter\`.\`bank_account\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.RemoveMangopay1630077596132 = RemoveMangopay1630077596132;
|
|
53
|
+
//# sourceMappingURL=1630077596132-RemoveMangopay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1630077596132-RemoveMangopay.js","sourceRoot":"","sources":["../../src/migrations/1630077596132-RemoveMangopay.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAC;IA2EvC,CAAC;IAzEc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,yFAAyF,CAC1F,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,yFAAyF,CAC1F,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,yFAAyF,CAC1F,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,sGAAsG,CACvG,CAAC;YACF,MAAM,WAAW,CAA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C,KAAK,CACrB,oNAAoN,CACrN,CAAC;QACJ,CAAC;KAAA;CACF;AA5ED,kEA4EC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MagentoIntegration1633444449026 = void 0;
|
|
13
|
+
class MagentoIntegration1633444449026 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'MagentoIntegration1633444449026';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`outshifter\`.\`magento_connection\` (\`id\` int NOT NULL AUTO_INCREMENT, \`imported_products\` tinyint NOT NULL DEFAULT 0, \`active\` tinyint NOT NULL DEFAULT 0, \`consumer_key\` varchar(255) NOT NULL, \`consumer_secret\` varchar(255) NOT NULL, \`url\` varchar(255) NOT NULL, \`access_token\` varchar(255) NULL, \`token_secret\` varchar(255) NULL, \`currency\` varchar(255) NULL, \`user_id\` int NULL, UNIQUE INDEX \`REL_28d5bb57bf4cfd4c6b07f1cb2a\` (\`user_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` ADD \`supplier_external_order_id\` varchar(255) NULL`);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD \`magento_id\` int NULL`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD UNIQUE INDEX \`IDX_6ffc42dde34a3e7f420ad2a3bd\` (\`magento_id\`)`);
|
|
23
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_6ffc42dde34a3e7f420ad2a3bd\` ON \`outshifter\`.\`user\` (\`magento_id\`)`);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`magento_connection\` ADD CONSTRAINT \`FK_28d5bb57bf4cfd4c6b07f1cb2a0\` FOREIGN KEY (\`user_id\`) REFERENCES \`outshifter\`.\`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` ADD CONSTRAINT \`FK_6ffc42dde34a3e7f420ad2a3bdf\` FOREIGN KEY (\`magento_id\`) REFERENCES \`outshifter\`.\`magento_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
down(queryRunner) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP FOREIGN KEY \`FK_6ffc42dde34a3e7f420ad2a3bdf\``);
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`magento_connection\` DROP FOREIGN KEY \`FK_28d5bb57bf4cfd4c6b07f1cb2a0\``);
|
|
32
|
+
yield queryRunner.query(`DROP INDEX \`REL_6ffc42dde34a3e7f420ad2a3bd\` ON \`outshifter\`.\`user\``);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP INDEX \`IDX_6ffc42dde34a3e7f420ad2a3bd\``);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`user\` DROP COLUMN \`magento_id\``);
|
|
35
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` DROP COLUMN \`supplier_external_order_id\``);
|
|
36
|
+
yield queryRunner.query(`DROP INDEX \`REL_28d5bb57bf4cfd4c6b07f1cb2a\` ON \`outshifter\`.\`magento_connection\``);
|
|
37
|
+
yield queryRunner.query(`DROP TABLE \`outshifter\`.\`magento_connection\``);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.MagentoIntegration1633444449026 = MagentoIntegration1633444449026;
|
|
42
|
+
//# sourceMappingURL=1633444449026-MagentoIntegration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1633444449026-MagentoIntegration.js","sourceRoot":"","sources":["../../src/migrations/1633444449026-MagentoIntegration.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,+BAA+B;IAA5C;QACE,SAAI,GAAG,iCAAiC,CAAC;IA8C3C,CAAC;IA5Cc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,qgBAAqgB,CACtgB,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,gGAAgG,CACjG,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CACrB,0GAA0G,CAC3G,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,oGAAoG,CACrG,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,gNAAgN,CACjN,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,qNAAqN,CACtN,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,yFAAyF,CAC1F,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,uGAAuG,CACxG,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,0EAA0E,CAC3E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,mFAAmF,CACpF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAC;YAC1F,MAAM,WAAW,CAAC,KAAK,CACrB,sFAAsF,CACvF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,wFAAwF,CACzF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;QAC9E,CAAC;KAAA;CACF;AA/CD,0EA+CC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class MagentoIntegrationExternalChannelOrder1634070448072 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MagentoIntegrationExternalChannelOrder1634070448072 = void 0;
|
|
13
|
+
class MagentoIntegrationExternalChannelOrder1634070448072 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'MagentoIntegrationExternalChannelOrder1634070448072';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`DROP INDEX \`IDX_6ffc42dde34a3e7f420ad2a3bd\` ON \`outshifter\`.\`user\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` ADD \`supplier_external_order_channel\` varchar(255) NULL`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order_item\` DROP COLUMN \`supplier_external_order_channel\``);
|
|
26
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`IDX_6ffc42dde34a3e7f420ad2a3bd\` ON \`outshifter\`.\`user\` (\`magento_id\`)`);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MagentoIntegrationExternalChannelOrder1634070448072 = MagentoIntegrationExternalChannelOrder1634070448072;
|
|
31
|
+
//# sourceMappingURL=1634070448072-MagentoIntegrationExternalChannelOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1634070448072-MagentoIntegrationExternalChannelOrder.js","sourceRoot":"","sources":["../../src/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,mDAAmD;IAAhE;QACE,SAAI,GAAG,qDAAqD,CAAC;IAmB/D,CAAC;IAjBc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,0EAA0E,CAC3E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,qGAAqG,CACtG,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,2FAA2F,CAC5F,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,oGAAoG,CACrG,CAAC;QACJ,CAAC;KAAA;CACF;AApBD,kHAoBC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SSCCOrderGenerator1635811861541 = void 0;
|
|
13
|
+
class SSCCOrderGenerator1635811861541 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'SSCCOrderGenerator1635811861541';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order\` ADD \`sscc\` varchar(255) NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`outshifter\`.\`order\` DROP COLUMN \`sscc\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.SSCCOrderGenerator1635811861541 = SSCCOrderGenerator1635811861541;
|
|
29
|
+
//# sourceMappingURL=1635811861541-SSCCOrderGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1635811861541-SSCCOrderGenerator.js","sourceRoot":"","sources":["../../src/migrations/1635811861541-SSCCOrderGenerator.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,+BAA+B;IAA5C;QACE,SAAI,GAAG,iCAAiC,CAAC;IAS3C,CAAC;IAPc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;QACjG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;QACvF,CAAC;KAAA;CACF;AAVD,0EAUC"}
|