@reachu/database 1.0.93 → 1.0.95
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/dist/entity/Variant.d.ts +1 -0
- package/dist/entity/Variant.js +4 -0
- package/dist/entity/Variant.js.map +1 -1
- package/dist/entity/index.d.ts +5 -1
- package/dist/entity/index.js +9 -1
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/modules/discount/Discount.d.ts +18 -0
- package/dist/entity/modules/discount/Discount.js +80 -0
- package/dist/entity/modules/discount/Discount.js.map +1 -0
- package/dist/entity/modules/discount/DiscountCart.d.ts +9 -0
- package/dist/entity/modules/discount/DiscountCart.js +47 -0
- package/dist/entity/modules/discount/DiscountCart.js.map +1 -0
- package/dist/entity/modules/discount/DiscountProduct.d.ts +9 -0
- package/dist/entity/modules/discount/DiscountProduct.js +47 -0
- package/dist/entity/modules/discount/DiscountProduct.js.map +1 -0
- package/dist/entity/modules/discount/DiscountType.d.ts +8 -0
- package/dist/entity/modules/discount/DiscountType.js +41 -0
- package/dist/entity/modules/discount/DiscountType.js.map +1 -0
- package/dist/migrations/1689005718747-add-active-colum-in-variant.d.ts +6 -0
- package/dist/migrations/1689005718747-add-active-colum-in-variant.js +47 -0
- package/dist/migrations/1689005718747-add-active-colum-in-variant.js.map +1 -0
- package/dist/migrations/1689020331011-add-discount.d.ts +6 -0
- package/dist/migrations/1689020331011-add-discount.js +45 -0
- package/dist/migrations/1689020331011-add-discount.js.map +1 -0
- package/dist/migrations/1689279346515-add-discount-user.d.ts +6 -0
- package/dist/migrations/1689279346515-add-discount-user.js +31 -0
- package/dist/migrations/1689279346515-add-discount-user.js.map +1 -0
- package/dist/repositories/discount/index.d.ts +13 -0
- package/dist/repositories/discount/index.js +42 -0
- package/dist/repositories/discount/index.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -0
- package/dist/repositories/index.js +6 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +142 -6
- package/package.json +3 -3
- package/src/entity/Variant.ts +3 -0
- package/src/entity/index.ts +10 -0
- package/src/entity/modules/discount/Discount.ts +59 -0
- package/src/entity/modules/discount/DiscountCart.ts +25 -0
- package/src/entity/modules/discount/DiscountProduct.ts +25 -0
- package/src/entity/modules/discount/DiscountType.ts +26 -0
- package/src/migrations/1689005718747-add-active-colum-in-variant.ts +32 -0
- package/src/migrations/1689020331011-add-discount.ts +30 -0
- package/src/migrations/1689279346515-add-discount-user.ts +16 -0
- package/src/repositories/discount/index.ts +18 -0
- package/src/repositories/index.ts +14 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DiscountTypeRepository = exports.DiscountProductRepository = exports.DiscountCartRepository = exports.DiscountRepository = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const Discount_1 = __importDefault(require("../../entity/modules/discount/Discount"));
|
|
15
|
+
const DiscountCart_1 = __importDefault(require("../../entity/modules/discount/DiscountCart"));
|
|
16
|
+
const DiscountProduct_1 = __importDefault(require("../../entity/modules/discount/DiscountProduct"));
|
|
17
|
+
const DiscountType_1 = __importDefault(require("../../entity/modules/discount/DiscountType"));
|
|
18
|
+
let DiscountRepository = class DiscountRepository extends typeorm_1.Repository {
|
|
19
|
+
};
|
|
20
|
+
DiscountRepository = __decorate([
|
|
21
|
+
typeorm_1.EntityRepository(Discount_1.default)
|
|
22
|
+
], DiscountRepository);
|
|
23
|
+
exports.DiscountRepository = DiscountRepository;
|
|
24
|
+
let DiscountCartRepository = class DiscountCartRepository extends typeorm_1.Repository {
|
|
25
|
+
};
|
|
26
|
+
DiscountCartRepository = __decorate([
|
|
27
|
+
typeorm_1.EntityRepository(DiscountCart_1.default)
|
|
28
|
+
], DiscountCartRepository);
|
|
29
|
+
exports.DiscountCartRepository = DiscountCartRepository;
|
|
30
|
+
let DiscountProductRepository = class DiscountProductRepository extends typeorm_1.Repository {
|
|
31
|
+
};
|
|
32
|
+
DiscountProductRepository = __decorate([
|
|
33
|
+
typeorm_1.EntityRepository(DiscountProduct_1.default)
|
|
34
|
+
], DiscountProductRepository);
|
|
35
|
+
exports.DiscountProductRepository = DiscountProductRepository;
|
|
36
|
+
let DiscountTypeRepository = class DiscountTypeRepository extends typeorm_1.Repository {
|
|
37
|
+
};
|
|
38
|
+
DiscountTypeRepository = __decorate([
|
|
39
|
+
typeorm_1.EntityRepository(DiscountType_1.default)
|
|
40
|
+
], DiscountTypeRepository);
|
|
41
|
+
exports.DiscountTypeRepository = DiscountTypeRepository;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/discount/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuD;AAEvD,sFAA8D;AAC9D,8FAAsE;AACtE,oGAA4E;AAC5E,8FAAsE;AAGtE,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,oBAAoB;CAAG,CAAA;AAAlD,kBAAkB;IAD9B,0BAAgB,CAAC,kBAAQ,CAAC;GACd,kBAAkB,CAAgC;AAAlD,gDAAkB;AAG/B,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,oBAAwB;CAAG,CAAA;AAA1D,sBAAsB;IADlC,0BAAgB,CAAC,sBAAY,CAAC;GAClB,sBAAsB,CAAoC;AAA1D,wDAAsB;AAGnC,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,oBAA2B;CAAG,CAAA;AAAhE,yBAAyB;IADrC,0BAAgB,CAAC,yBAAe,CAAC;GACrB,yBAAyB,CAAuC;AAAhE,8DAAyB;AAGtC,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,oBAAwB;CAAG,CAAA;AAA1D,sBAAsB;IADlC,0BAAgB,CAAC,sBAAY,CAAC;GAClB,sBAAsB,CAAoC;AAA1D,wDAAsB"}
|
|
@@ -59,6 +59,7 @@ import Connection from '../entity/Connection';
|
|
|
59
59
|
import { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository } from './shopcart';
|
|
60
60
|
import { ProductShippingRepository, ShippingCountryRepository, ShippingRepository } from './shipping';
|
|
61
61
|
import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository } from './templates';
|
|
62
|
+
import { DiscountRepository, DiscountCartRepository, DiscountProductRepository, DiscountTypeRepository } from './discount';
|
|
62
63
|
import { PlanRepository, SubscriptionRepository, UserCountPlanRepository } from './subscriptions';
|
|
63
64
|
import { Repository } from 'typeorm';
|
|
64
65
|
export declare class CategoryImagesRepository extends Repository<CategoryImages> {
|
|
@@ -179,5 +180,6 @@ export declare class ConnectionRepository extends Repository<Connection> {
|
|
|
179
180
|
}
|
|
180
181
|
export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
|
|
181
182
|
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
|
|
183
|
+
export { DiscountRepository, DiscountCartRepository, DiscountProductRepository, DiscountTypeRepository, };
|
|
182
184
|
export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
|
|
183
185
|
export { PlanRepository, SubscriptionRepository, UserCountPlanRepository };
|
|
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ChannelGroupRepository = exports.CollectionSharedRepository = exports.CollectionItemRepository = exports.CollectionRepository = exports.PaymentMethodRepository = exports.UserSettingsRepository = exports.UserTokenWoltRepository = exports.WooConnectionRepository = exports.WalletRepository = exports.VariantRepository = exports.UserRoleRepository = exports.UserRepository = exports.SubcategoryRepository = exports.ShopifyConnectionRepository = exports.ShippingPackageRepository = exports.RolePermissionRepository = exports.RoleRepository = exports.ExternalRequestRepository = exports.RequestRepository = exports.ProductRepository = exports.PermissionRepository = exports.PaymentShopifyRepository = exports.PaymentRepository = exports.OrderTrackingRepository = exports.OrderShippingRepository = exports.OrderItemRepository = exports.OrderRepository = exports.OptionRepository = exports.NotificationRepository = exports.MetricActiveUserRepository = exports.MagentoConnectionRepository = exports.ImportedProductRepository = exports.ImageRepository = exports.FlatRateCountryRepository = exports.FlatRateRepository = exports.CourierRepository = exports.CountryRepository = exports.CheckoutMetadataRepository = exports.ChannelRepository = exports.CategoryRepository = exports.CardRegistrationRepository = exports.BusinessRepository = exports.BankAccountRepository = exports.ApiCredentialRepository = exports.CustomProductImageRepository = exports.CustomProductRepository = exports.CustomVariantRepository = exports.AttributeRepository = exports.ProductAttributeRepository = exports.CategoryImagesRepository = void 0;
|
|
13
|
-
exports.UserCountPlanRepository = exports.SubscriptionRepository = exports.PlanRepository = exports.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.UserTemplateEcommerceRepository = exports.TemplateEcommerceSchemeConfigVariantRepository = exports.TemplateEcommerceSchemeConfigVariantMappedRepository = exports.TemplateEcommerceSchemeConfigProductRepository = exports.TemplateEcommerceSchemeConfigProductMappedRepository = exports.TemplateEcommerceSchemeConfigOrderRepository = exports.TemplateEcommerceSchemeConfigOrderMappedRepository = exports.TemplateEcommerceRepository = exports.ReachuSchemeConfigVariantRepository = exports.ReachuSchemeConfigProductRepository = exports.ReachuSchemeConfigOrderRepository = exports.WebhookTemplateEcommerceRepository = exports.EndpointTemplateEcommerceRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = exports.PriceDataRepository = exports.CheckoutShippingAddressRepository = exports.CheckoutRepository = exports.CheckoutBillingAddressRepository = exports.CartRepository = exports.CartItemRepository = exports.ConnectionRepository = exports.TranslateRepository = exports.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = exports.ChannelUserRepository = void 0;
|
|
13
|
+
exports.UserCountPlanRepository = exports.SubscriptionRepository = exports.PlanRepository = exports.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.DiscountTypeRepository = exports.DiscountProductRepository = exports.DiscountCartRepository = exports.DiscountRepository = exports.UserTemplateEcommerceRepository = exports.TemplateEcommerceSchemeConfigVariantRepository = exports.TemplateEcommerceSchemeConfigVariantMappedRepository = exports.TemplateEcommerceSchemeConfigProductRepository = exports.TemplateEcommerceSchemeConfigProductMappedRepository = exports.TemplateEcommerceSchemeConfigOrderRepository = exports.TemplateEcommerceSchemeConfigOrderMappedRepository = exports.TemplateEcommerceRepository = exports.ReachuSchemeConfigVariantRepository = exports.ReachuSchemeConfigProductRepository = exports.ReachuSchemeConfigOrderRepository = exports.WebhookTemplateEcommerceRepository = exports.EndpointTemplateEcommerceRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = exports.PriceDataRepository = exports.CheckoutShippingAddressRepository = exports.CheckoutRepository = exports.CheckoutBillingAddressRepository = exports.CartRepository = exports.CartItemRepository = exports.ConnectionRepository = exports.TranslateRepository = exports.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = exports.ChannelUserRepository = void 0;
|
|
14
14
|
const ApiCredential_1 = __importDefault(require("../entity/ApiCredential"));
|
|
15
15
|
const BankAccount_1 = __importDefault(require("../entity/BankAccount"));
|
|
16
16
|
const Business_1 = __importDefault(require("../entity/Business"));
|
|
@@ -96,6 +96,11 @@ Object.defineProperty(exports, "TemplateEcommerceSchemeConfigProductRepository",
|
|
|
96
96
|
Object.defineProperty(exports, "TemplateEcommerceSchemeConfigVariantMappedRepository", { enumerable: true, get: function () { return templates_1.TemplateEcommerceSchemeConfigVariantMappedRepository; } });
|
|
97
97
|
Object.defineProperty(exports, "TemplateEcommerceSchemeConfigVariantRepository", { enumerable: true, get: function () { return templates_1.TemplateEcommerceSchemeConfigVariantRepository; } });
|
|
98
98
|
Object.defineProperty(exports, "UserTemplateEcommerceRepository", { enumerable: true, get: function () { return templates_1.UserTemplateEcommerceRepository; } });
|
|
99
|
+
const discount_1 = require("./discount");
|
|
100
|
+
Object.defineProperty(exports, "DiscountRepository", { enumerable: true, get: function () { return discount_1.DiscountRepository; } });
|
|
101
|
+
Object.defineProperty(exports, "DiscountCartRepository", { enumerable: true, get: function () { return discount_1.DiscountCartRepository; } });
|
|
102
|
+
Object.defineProperty(exports, "DiscountProductRepository", { enumerable: true, get: function () { return discount_1.DiscountProductRepository; } });
|
|
103
|
+
Object.defineProperty(exports, "DiscountTypeRepository", { enumerable: true, get: function () { return discount_1.DiscountTypeRepository; } });
|
|
99
104
|
const subscriptions_1 = require("./subscriptions");
|
|
100
105
|
Object.defineProperty(exports, "PlanRepository", { enumerable: true, get: function () { return subscriptions_1.PlanRepository; } });
|
|
101
106
|
Object.defineProperty(exports, "SubscriptionRepository", { enumerable: true, get: function () { return subscriptions_1.SubscriptionRepository; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4EAAoD;AACpD,wEAAgD;AAChD,kEAA0C;AAC1C,kFAA0D;AAC1D,kEAA0C;AAC1C,gEAAwC;AACxC,kFAA0D;AAC1D,gEAAwC;AACxC,gEAAwC;AACxC,kEAA0C;AAC1C,gFAAwD;AACxD,4DAAoC;AACpC,gFAAwD;AACxD,iFAAuE;AACvE,kFAA0D;AAC1D,0EAAkD;AAClD,8DAAsC;AACtC,4DAAoC;AACpC,oEAA4C;AAC5C,4EAAoD;AACpD,4EAAoD;AACpD,gEAAwC;AACxC,8EAAsD;AACtD,sEAA8C;AAC9C,6DAAmD;AACnD,gEAAwC;AACxC,gFAAwD;AACxD,0DAAkC;AAClC,8EAAsD;AACtD,gFAAwD;AACxD,oFAA4D;AAC5D,wEAAgD;AAChD,0DAAkC;AAClC,kEAA0C;AAC1C,gEAAwC;AACxC,8DAAsC;AACtC,4EAAoD;AACpD,4EAAoD;AACpD,0EAAkD;AAClD,4EAAoD;AACpD,sEAA8C;AAC9C,8EAAsD;AACtD,kFAA0D;AAC1D,0EAAkD;AAClD,wEAAgD;AAChD,8FAAsE;AACtE,oFAA4D;AAC5D,kEAA0C;AAC1C,0EAAkD;AAElD,4EAAoD;AACpD,2DAAwD;AACxD,sFAA8D;AAE9D,oEAA4C;AAC5C,kFAA0D;AAC1D,8EAAsD;AAEtD,kGAA0E;AAE1E,oEAA4C;AAC5C,sEAA8C;AAE9C,yCAOoB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4EAAoD;AACpD,wEAAgD;AAChD,kEAA0C;AAC1C,kFAA0D;AAC1D,kEAA0C;AAC1C,gEAAwC;AACxC,kFAA0D;AAC1D,gEAAwC;AACxC,gEAAwC;AACxC,kEAA0C;AAC1C,gFAAwD;AACxD,4DAAoC;AACpC,gFAAwD;AACxD,iFAAuE;AACvE,kFAA0D;AAC1D,0EAAkD;AAClD,8DAAsC;AACtC,4DAAoC;AACpC,oEAA4C;AAC5C,4EAAoD;AACpD,4EAAoD;AACpD,gEAAwC;AACxC,8EAAsD;AACtD,sEAA8C;AAC9C,6DAAmD;AACnD,gEAAwC;AACxC,gFAAwD;AACxD,0DAAkC;AAClC,8EAAsD;AACtD,gFAAwD;AACxD,oFAA4D;AAC5D,wEAAgD;AAChD,0DAAkC;AAClC,kEAA0C;AAC1C,gEAAwC;AACxC,8DAAsC;AACtC,4EAAoD;AACpD,4EAAoD;AACpD,0EAAkD;AAClD,4EAAoD;AACpD,sEAA8C;AAC9C,8EAAsD;AACtD,kFAA0D;AAC1D,0EAAkD;AAClD,wEAAgD;AAChD,8FAAsE;AACtE,oFAA4D;AAC5D,kEAA0C;AAC1C,0EAAkD;AAElD,4EAAoD;AACpD,2DAAwD;AACxD,sFAA8D;AAE9D,oEAA4C;AAC5C,kFAA0D;AAC1D,8EAAsD;AAEtD,kGAA0E;AAE1E,oEAA4C;AAC5C,sEAA8C;AAE9C,yCAOoB;AAoNlB,mGA1NA,6BAAkB,OA0NA;AAClB,+FA1NA,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S,CAAC;GACf,mBAAmB,CAAiC;AAApD,kDAAmB;AAGhC,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,oBAAsB;CAAG,CAAA;AAAtD,oBAAoB;IADhC,0BAAgB,CAAC,oBAAU,CAAC;GAChB,oBAAoB,CAAkC;AAAtD,oDAAoB"}
|
|
@@ -2452,8 +2452,8 @@
|
|
|
2452
2452
|
"affectsGlobalScope": false
|
|
2453
2453
|
},
|
|
2454
2454
|
"../src/entity/variant.ts": {
|
|
2455
|
-
"version": "
|
|
2456
|
-
"signature": "
|
|
2455
|
+
"version": "c42fd60fbcf005363d9f04c6c034b9619e47195cb8c88bcdfb9ed821b685b6fb",
|
|
2456
|
+
"signature": "0c322f9fe0c98d48348ae511ed2b23b4ccd2123e1a099d207f8980ea001ec370",
|
|
2457
2457
|
"affectsGlobalScope": false
|
|
2458
2458
|
},
|
|
2459
2459
|
"../src/entity/channelgroup.ts": {
|
|
@@ -2731,9 +2731,29 @@
|
|
|
2731
2731
|
"signature": "66aeb66b02976ce0c024960b13c257d9847b7d976bf45ea557aecdb03c3ebc2c",
|
|
2732
2732
|
"affectsGlobalScope": false
|
|
2733
2733
|
},
|
|
2734
|
+
"../src/entity/modules/discount/discounttype.ts": {
|
|
2735
|
+
"version": "eba029b15b1111dd6a28f554593dc7fba9d2ed6154f50e552cfd503674520dfd",
|
|
2736
|
+
"signature": "8067585a9d8d0298261a84721e16a5432ac3660e8eb5353fda7bd077ab8bc8b9",
|
|
2737
|
+
"affectsGlobalScope": false
|
|
2738
|
+
},
|
|
2739
|
+
"../src/entity/modules/discount/discountproduct.ts": {
|
|
2740
|
+
"version": "0148bea318f75b3a035a2ce336d44ad2607e4832b6b4ab562f31fcf111148de3",
|
|
2741
|
+
"signature": "0a6a4fef1ce8047d20e63895db6a5f77cad489f02bdc7489e4ec1b1dd80c14e4",
|
|
2742
|
+
"affectsGlobalScope": false
|
|
2743
|
+
},
|
|
2744
|
+
"../src/entity/modules/discount/discountcart.ts": {
|
|
2745
|
+
"version": "b565f1ba4a4e2f00921be1b06209a907f098a2e457f9f14c12f161086be09352",
|
|
2746
|
+
"signature": "ad35aff1901823dc326d1ed22e226617275acb8da536f7b29c7c6c9680f9aa04",
|
|
2747
|
+
"affectsGlobalScope": false
|
|
2748
|
+
},
|
|
2749
|
+
"../src/entity/modules/discount/discount.ts": {
|
|
2750
|
+
"version": "c72f1ed99db34e175a705af70c72025b7b8db5a4cbe01d2d2d274ccaacdce90c",
|
|
2751
|
+
"signature": "eef75decc3ee396bd73446abd46110c8c99c9f7e844cb59159e70f9635c5a07d",
|
|
2752
|
+
"affectsGlobalScope": false
|
|
2753
|
+
},
|
|
2734
2754
|
"../src/entity/index.ts": {
|
|
2735
|
-
"version": "
|
|
2736
|
-
"signature": "
|
|
2755
|
+
"version": "4f2bd0c5b1393a2ec741fe82f8d6204ac271bf31a2e80401c76d94f69fd55d98",
|
|
2756
|
+
"signature": "6da5e718319e99d0f6f94665d222cecc4ca51e396325db71db33c0a820a82563",
|
|
2737
2757
|
"affectsGlobalScope": false
|
|
2738
2758
|
},
|
|
2739
2759
|
"../src/staticdata/productorigin.ts": {
|
|
@@ -2806,14 +2826,19 @@
|
|
|
2806
2826
|
"signature": "6ac131ac4c0f68f7633bd98018a4da95244aeebd16304d7b2f3a90b5a1758b51",
|
|
2807
2827
|
"affectsGlobalScope": false
|
|
2808
2828
|
},
|
|
2829
|
+
"../src/repositories/discount/index.ts": {
|
|
2830
|
+
"version": "f75621b1a52dec42e8446b3bba46ac1fa45cf7fbcc362da4fc8a56bc15248fbd",
|
|
2831
|
+
"signature": "18af6a9f618d786b8eeae57120930db4c555b9c03b11fc83d2dc4bf517cda514",
|
|
2832
|
+
"affectsGlobalScope": false
|
|
2833
|
+
},
|
|
2809
2834
|
"../src/repositories/subscriptions/index.ts": {
|
|
2810
2835
|
"version": "fb2ce5c6b06b7b03e85f2a7db2ae88ff95b4e059cfc31d802923b58167e0e639",
|
|
2811
2836
|
"signature": "e0c202c6c131a21df335201bfa7a25de1add8ab54c53ee665be989600c5f2222",
|
|
2812
2837
|
"affectsGlobalScope": false
|
|
2813
2838
|
},
|
|
2814
2839
|
"../src/repositories/index.ts": {
|
|
2815
|
-
"version": "
|
|
2816
|
-
"signature": "
|
|
2840
|
+
"version": "d6ab4a52095627fbc01f61cc237ef7b8a8e4ff85039f0dea3dee2467ec973694",
|
|
2841
|
+
"signature": "36a4526a8bfebe3c25780b6b014f8c666aed8008ff37d815aeb9552bcb69a8c6",
|
|
2817
2842
|
"affectsGlobalScope": false
|
|
2818
2843
|
},
|
|
2819
2844
|
"../src/subscribers/productsubscriber.ts": {
|
|
@@ -3371,6 +3396,21 @@
|
|
|
3371
3396
|
"signature": "83be3e186c96540835f05f393d7534975aba88bda33144528025fe6a2e7c282b",
|
|
3372
3397
|
"affectsGlobalScope": false
|
|
3373
3398
|
},
|
|
3399
|
+
"../src/migrations/1689005718747-add-active-colum-in-variant.ts": {
|
|
3400
|
+
"version": "f8b2e2847ad2e60dc90d721e03cd2c1a8a7011ad6311370f2dcc94e90e39de47",
|
|
3401
|
+
"signature": "3a158d546f7668eefbd2f1960bd93fd121e0ed1379fd3c4be21c97bed3094449",
|
|
3402
|
+
"affectsGlobalScope": false
|
|
3403
|
+
},
|
|
3404
|
+
"../src/migrations/1689020331011-add-discount.ts": {
|
|
3405
|
+
"version": "5abe038aa68ec99d6fb8d912ed82d5746242a9e7ceaa6539362d12748be25a77",
|
|
3406
|
+
"signature": "38c13c1e434dcdc8aba76aaa2cde1a55df7ec5708840523025ebb0b48d7b7c8e",
|
|
3407
|
+
"affectsGlobalScope": false
|
|
3408
|
+
},
|
|
3409
|
+
"../src/migrations/1689279346515-add-discount-user.ts": {
|
|
3410
|
+
"version": "9ef84319dfd62955927c3df71ac282697913b997d477f56ab94a421529577fa9",
|
|
3411
|
+
"signature": "feaee38c1bd8210d9a44b2ae43fcd87f931007e469a62d53629dc10369ae4663",
|
|
3412
|
+
"affectsGlobalScope": false
|
|
3413
|
+
},
|
|
3374
3414
|
"../src/migrations/execute/index.ts": {
|
|
3375
3415
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3376
3416
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5528,6 +5568,10 @@
|
|
|
5528
5568
|
"../src/entity/importedproduct.ts",
|
|
5529
5569
|
"../src/entity/magentoconnection.entity.ts",
|
|
5530
5570
|
"../src/entity/metricactiveuser.ts",
|
|
5571
|
+
"../src/entity/modules/discount/discount.ts",
|
|
5572
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
5573
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
5574
|
+
"../src/entity/modules/discount/discounttype.ts",
|
|
5531
5575
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
5532
5576
|
"../src/entity/modules/shipping/shipping.ts",
|
|
5533
5577
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -5594,6 +5638,31 @@
|
|
|
5594
5638
|
"../src/entity/metricactiveuser.ts": [
|
|
5595
5639
|
"../node_modules/typeorm/index.d.ts"
|
|
5596
5640
|
],
|
|
5641
|
+
"../src/entity/modules/discount/discount.ts": [
|
|
5642
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5643
|
+
"../src/entity/auditedmodel.ts",
|
|
5644
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
5645
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
5646
|
+
"../src/entity/modules/discount/discounttype.ts",
|
|
5647
|
+
"../src/entity/user.ts"
|
|
5648
|
+
],
|
|
5649
|
+
"../src/entity/modules/discount/discountcart.ts": [
|
|
5650
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5651
|
+
"../src/entity/auditedmodel.ts",
|
|
5652
|
+
"../src/entity/modules/discount/discount.ts",
|
|
5653
|
+
"../src/entity/modules/shopcart/cart.ts"
|
|
5654
|
+
],
|
|
5655
|
+
"../src/entity/modules/discount/discountproduct.ts": [
|
|
5656
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5657
|
+
"../src/entity/auditedmodel.ts",
|
|
5658
|
+
"../src/entity/modules/discount/discount.ts",
|
|
5659
|
+
"../src/entity/product.entity.ts"
|
|
5660
|
+
],
|
|
5661
|
+
"../src/entity/modules/discount/discounttype.ts": [
|
|
5662
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5663
|
+
"../src/entity/auditedmodel.ts",
|
|
5664
|
+
"../src/entity/modules/discount/discount.ts"
|
|
5665
|
+
],
|
|
5597
5666
|
"../src/entity/modules/shipping/productshipping.ts": [
|
|
5598
5667
|
"../node_modules/typeorm/index.d.ts",
|
|
5599
5668
|
"../src/entity/auditedmodel.ts",
|
|
@@ -6267,6 +6336,15 @@
|
|
|
6267
6336
|
"../src/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.ts": [
|
|
6268
6337
|
"../node_modules/typeorm/index.d.ts"
|
|
6269
6338
|
],
|
|
6339
|
+
"../src/migrations/1689005718747-add-active-colum-in-variant.ts": [
|
|
6340
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6341
|
+
],
|
|
6342
|
+
"../src/migrations/1689020331011-add-discount.ts": [
|
|
6343
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6344
|
+
],
|
|
6345
|
+
"../src/migrations/1689279346515-add-discount-user.ts": [
|
|
6346
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6347
|
+
],
|
|
6270
6348
|
"../src/migrations/execute/index.ts": [
|
|
6271
6349
|
"../src/config/connect.ts"
|
|
6272
6350
|
],
|
|
@@ -6282,6 +6360,13 @@
|
|
|
6282
6360
|
"../src/migrations/1648526519546-addedusersettings.ts",
|
|
6283
6361
|
"../src/migrations/1651206194365-wolt.ts"
|
|
6284
6362
|
],
|
|
6363
|
+
"../src/repositories/discount/index.ts": [
|
|
6364
|
+
"../node_modules/typeorm/index.d.ts",
|
|
6365
|
+
"../src/entity/modules/discount/discount.ts",
|
|
6366
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
6367
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
6368
|
+
"../src/entity/modules/discount/discounttype.ts"
|
|
6369
|
+
],
|
|
6285
6370
|
"../src/repositories/index.ts": [
|
|
6286
6371
|
"../node_modules/typeorm/index.d.ts",
|
|
6287
6372
|
"../src/entity/apicredential.ts",
|
|
@@ -6342,6 +6427,7 @@
|
|
|
6342
6427
|
"../src/entity/variant.ts",
|
|
6343
6428
|
"../src/entity/wallet.ts",
|
|
6344
6429
|
"../src/entity/wooconnection.ts",
|
|
6430
|
+
"../src/repositories/discount/index.ts",
|
|
6345
6431
|
"../src/repositories/shipping/index.ts",
|
|
6346
6432
|
"../src/repositories/shopcart/index.ts",
|
|
6347
6433
|
"../src/repositories/subscriptions/index.ts",
|
|
@@ -8372,6 +8458,10 @@
|
|
|
8372
8458
|
"../src/entity/importedproduct.ts",
|
|
8373
8459
|
"../src/entity/magentoconnection.entity.ts",
|
|
8374
8460
|
"../src/entity/metricactiveuser.ts",
|
|
8461
|
+
"../src/entity/modules/discount/discount.ts",
|
|
8462
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
8463
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
8464
|
+
"../src/entity/modules/discount/discounttype.ts",
|
|
8375
8465
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
8376
8466
|
"../src/entity/modules/shipping/shipping.ts",
|
|
8377
8467
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -8434,6 +8524,27 @@
|
|
|
8434
8524
|
"../src/entity/magentoconnection.entity.ts": [
|
|
8435
8525
|
"../src/entity/user.ts"
|
|
8436
8526
|
],
|
|
8527
|
+
"../src/entity/modules/discount/discount.ts": [
|
|
8528
|
+
"../src/entity/auditedmodel.ts",
|
|
8529
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
8530
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
8531
|
+
"../src/entity/modules/discount/discounttype.ts",
|
|
8532
|
+
"../src/entity/user.ts"
|
|
8533
|
+
],
|
|
8534
|
+
"../src/entity/modules/discount/discountcart.ts": [
|
|
8535
|
+
"../src/entity/auditedmodel.ts",
|
|
8536
|
+
"../src/entity/modules/discount/discount.ts",
|
|
8537
|
+
"../src/entity/modules/shopcart/cart.ts"
|
|
8538
|
+
],
|
|
8539
|
+
"../src/entity/modules/discount/discountproduct.ts": [
|
|
8540
|
+
"../src/entity/auditedmodel.ts",
|
|
8541
|
+
"../src/entity/modules/discount/discount.ts",
|
|
8542
|
+
"../src/entity/product.entity.ts"
|
|
8543
|
+
],
|
|
8544
|
+
"../src/entity/modules/discount/discounttype.ts": [
|
|
8545
|
+
"../src/entity/auditedmodel.ts",
|
|
8546
|
+
"../src/entity/modules/discount/discount.ts"
|
|
8547
|
+
],
|
|
8437
8548
|
"../src/entity/modules/shipping/productshipping.ts": [
|
|
8438
8549
|
"../src/entity/auditedmodel.ts",
|
|
8439
8550
|
"../src/entity/modules/shipping/shipping.ts",
|
|
@@ -9018,6 +9129,15 @@
|
|
|
9018
9129
|
"../src/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.ts": [
|
|
9019
9130
|
"../node_modules/typeorm/index.d.ts"
|
|
9020
9131
|
],
|
|
9132
|
+
"../src/migrations/1689005718747-add-active-colum-in-variant.ts": [
|
|
9133
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9134
|
+
],
|
|
9135
|
+
"../src/migrations/1689020331011-add-discount.ts": [
|
|
9136
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9137
|
+
],
|
|
9138
|
+
"../src/migrations/1689279346515-add-discount-user.ts": [
|
|
9139
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9140
|
+
],
|
|
9021
9141
|
"../src/migrations/index.ts": [
|
|
9022
9142
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9023
9143
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9030,6 +9150,13 @@
|
|
|
9030
9150
|
"../src/migrations/1648526519546-addedusersettings.ts",
|
|
9031
9151
|
"../src/migrations/1651206194365-wolt.ts"
|
|
9032
9152
|
],
|
|
9153
|
+
"../src/repositories/discount/index.ts": [
|
|
9154
|
+
"../node_modules/typeorm/index.d.ts",
|
|
9155
|
+
"../src/entity/modules/discount/discount.ts",
|
|
9156
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
9157
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
9158
|
+
"../src/entity/modules/discount/discounttype.ts"
|
|
9159
|
+
],
|
|
9033
9160
|
"../src/repositories/index.ts": [
|
|
9034
9161
|
"../node_modules/typeorm/index.d.ts",
|
|
9035
9162
|
"../src/entity/apicredential.ts",
|
|
@@ -9090,6 +9217,7 @@
|
|
|
9090
9217
|
"../src/entity/variant.ts",
|
|
9091
9218
|
"../src/entity/wallet.ts",
|
|
9092
9219
|
"../src/entity/wooconnection.ts",
|
|
9220
|
+
"../src/repositories/discount/index.ts",
|
|
9093
9221
|
"../src/repositories/shipping/index.ts",
|
|
9094
9222
|
"../src/repositories/shopcart/index.ts",
|
|
9095
9223
|
"../src/repositories/subscriptions/index.ts",
|
|
@@ -9683,6 +9811,10 @@
|
|
|
9683
9811
|
"../src/entity/index.ts",
|
|
9684
9812
|
"../src/entity/magentoconnection.entity.ts",
|
|
9685
9813
|
"../src/entity/metricactiveuser.ts",
|
|
9814
|
+
"../src/entity/modules/discount/discount.ts",
|
|
9815
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
9816
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
9817
|
+
"../src/entity/modules/discount/discounttype.ts",
|
|
9686
9818
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
9687
9819
|
"../src/entity/modules/shipping/shipping.ts",
|
|
9688
9820
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -9841,8 +9973,12 @@
|
|
|
9841
9973
|
"../src/migrations/1688489173526-add-webhook-template.ts",
|
|
9842
9974
|
"../src/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.ts",
|
|
9843
9975
|
"../src/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.ts",
|
|
9976
|
+
"../src/migrations/1689005718747-add-active-colum-in-variant.ts",
|
|
9977
|
+
"../src/migrations/1689020331011-add-discount.ts",
|
|
9978
|
+
"../src/migrations/1689279346515-add-discount-user.ts",
|
|
9844
9979
|
"../src/migrations/execute/index.ts",
|
|
9845
9980
|
"../src/migrations/index.ts",
|
|
9981
|
+
"../src/repositories/discount/index.ts",
|
|
9846
9982
|
"../src/repositories/index.ts",
|
|
9847
9983
|
"../src/repositories/shipping/index.ts",
|
|
9848
9984
|
"../src/repositories/shopcart/index.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.95",
|
|
4
4
|
"description": "reachu-database",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "reachu",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@reachu/logger": "1.0.
|
|
25
|
-
"@reachu/utils": "1.0.
|
|
24
|
+
"@reachu/logger": "1.0.95",
|
|
25
|
+
"@reachu/utils": "1.0.95",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
package/src/entity/Variant.ts
CHANGED
|
@@ -37,6 +37,9 @@ export default class Variant {
|
|
|
37
37
|
@Column(() => Price, { prefix: 'price_' })
|
|
38
38
|
originalPrice: Price;
|
|
39
39
|
|
|
40
|
+
@Column('boolean', { default: true })
|
|
41
|
+
active: boolean;
|
|
42
|
+
|
|
40
43
|
@ManyToOne(() => Product, (product) => product.variants, { onDelete: 'CASCADE' })
|
|
41
44
|
@JoinColumn()
|
|
42
45
|
product: Product;
|
package/src/entity/index.ts
CHANGED
|
@@ -108,6 +108,12 @@ import UserCountPlan from './modules/subscriptions/UserCountPlan';
|
|
|
108
108
|
import Translate from './Translate';
|
|
109
109
|
import Connection from './Connection';
|
|
110
110
|
|
|
111
|
+
//Discount
|
|
112
|
+
import Discount from './modules/discount/Discount';
|
|
113
|
+
import DiscountCart from './modules/discount/DiscountCart';
|
|
114
|
+
import DiscountProduct from './modules/discount/DiscountProduct';
|
|
115
|
+
import DiscountType from './modules/discount/DiscountType';
|
|
116
|
+
|
|
111
117
|
export {
|
|
112
118
|
CustomVariant,
|
|
113
119
|
CustomProduct,
|
|
@@ -204,4 +210,8 @@ export {
|
|
|
204
210
|
EnvironmentConfiguration,
|
|
205
211
|
Translate,
|
|
206
212
|
Connection,
|
|
213
|
+
Discount,
|
|
214
|
+
DiscountCart,
|
|
215
|
+
DiscountProduct,
|
|
216
|
+
DiscountType,
|
|
207
217
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Entity,
|
|
3
|
+
PrimaryGeneratedColumn,
|
|
4
|
+
DeleteDateColumn,
|
|
5
|
+
Column,
|
|
6
|
+
OneToMany,
|
|
7
|
+
JoinColumn,
|
|
8
|
+
ManyToOne,
|
|
9
|
+
} from 'typeorm';
|
|
10
|
+
import AuditedModel from '../../AuditedModel';
|
|
11
|
+
import DiscountType from './DiscountType';
|
|
12
|
+
import DiscountProduct from './DiscountProduct';
|
|
13
|
+
import DiscountCart from './DiscountCart';
|
|
14
|
+
import User from '../../User';
|
|
15
|
+
|
|
16
|
+
@Entity()
|
|
17
|
+
export default class Discount extends AuditedModel {
|
|
18
|
+
@PrimaryGeneratedColumn()
|
|
19
|
+
id: number;
|
|
20
|
+
|
|
21
|
+
@DeleteDateColumn()
|
|
22
|
+
deletedAt: Date;
|
|
23
|
+
|
|
24
|
+
@Column('integer', { nullable: true })
|
|
25
|
+
discountCount?: number;
|
|
26
|
+
|
|
27
|
+
@Column('varchar', { nullable: false })
|
|
28
|
+
code: string;
|
|
29
|
+
|
|
30
|
+
@Column('integer', { nullable: false })
|
|
31
|
+
percentage: number;
|
|
32
|
+
|
|
33
|
+
@Column('datetime', { nullable: false })
|
|
34
|
+
startDate: Date;
|
|
35
|
+
|
|
36
|
+
@Column('datetime', { nullable: false })
|
|
37
|
+
endDate: Date;
|
|
38
|
+
|
|
39
|
+
@ManyToOne(() => DiscountType, (discountType: DiscountType) => discountType.discount, {
|
|
40
|
+
onDelete: 'CASCADE',
|
|
41
|
+
nullable: false,
|
|
42
|
+
})
|
|
43
|
+
@JoinColumn()
|
|
44
|
+
discountType: DiscountType;
|
|
45
|
+
|
|
46
|
+
@OneToMany(() => DiscountProduct, (discountProduct: DiscountProduct) => discountProduct.discount)
|
|
47
|
+
@JoinColumn()
|
|
48
|
+
discountProduct: DiscountProduct[];
|
|
49
|
+
|
|
50
|
+
@OneToMany(() => DiscountCart, (discountCart: DiscountCart) => discountCart.discount)
|
|
51
|
+
@JoinColumn()
|
|
52
|
+
discountCart: DiscountCart[];
|
|
53
|
+
|
|
54
|
+
@ManyToOne(() => User, (user: User) => user.id, {
|
|
55
|
+
nullable: true,
|
|
56
|
+
})
|
|
57
|
+
@JoinColumn()
|
|
58
|
+
user: User;
|
|
59
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, DeleteDateColumn, JoinColumn, ManyToOne } from 'typeorm';
|
|
2
|
+
import AuditedModel from '../../AuditedModel';
|
|
3
|
+
import Discount from './Discount';
|
|
4
|
+
import Cart from '../../modules/shopcart/Cart';
|
|
5
|
+
|
|
6
|
+
@Entity()
|
|
7
|
+
export default class DiscountCart extends AuditedModel {
|
|
8
|
+
@PrimaryGeneratedColumn()
|
|
9
|
+
id: number;
|
|
10
|
+
|
|
11
|
+
@DeleteDateColumn()
|
|
12
|
+
deletedAt: Date;
|
|
13
|
+
|
|
14
|
+
@ManyToOne(() => Discount, (discount: Discount) => discount.id, {
|
|
15
|
+
nullable: false,
|
|
16
|
+
})
|
|
17
|
+
@JoinColumn()
|
|
18
|
+
discount: Discount;
|
|
19
|
+
|
|
20
|
+
@ManyToOne(() => Cart, (cart: Cart) => cart.id, {
|
|
21
|
+
nullable: false,
|
|
22
|
+
})
|
|
23
|
+
@JoinColumn()
|
|
24
|
+
cart: Cart;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, DeleteDateColumn, JoinColumn, ManyToOne } from 'typeorm';
|
|
2
|
+
import AuditedModel from '../../AuditedModel';
|
|
3
|
+
import Discount from './Discount';
|
|
4
|
+
import { Product } from '../../Product.entity';
|
|
5
|
+
|
|
6
|
+
@Entity()
|
|
7
|
+
export default class DiscountProduct extends AuditedModel {
|
|
8
|
+
@PrimaryGeneratedColumn()
|
|
9
|
+
id: number;
|
|
10
|
+
|
|
11
|
+
@DeleteDateColumn()
|
|
12
|
+
deletedAt: Date;
|
|
13
|
+
|
|
14
|
+
@ManyToOne(() => Product, (product: Product) => product.id, {
|
|
15
|
+
nullable: false,
|
|
16
|
+
})
|
|
17
|
+
@JoinColumn()
|
|
18
|
+
product: Product;
|
|
19
|
+
|
|
20
|
+
@ManyToOne(() => Discount, (discount: Discount) => discount.id, {
|
|
21
|
+
nullable: false,
|
|
22
|
+
})
|
|
23
|
+
@JoinColumn()
|
|
24
|
+
discount: Discount;
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Entity,
|
|
3
|
+
PrimaryGeneratedColumn,
|
|
4
|
+
DeleteDateColumn,
|
|
5
|
+
Column,
|
|
6
|
+
OneToMany,
|
|
7
|
+
JoinColumn,
|
|
8
|
+
} from 'typeorm';
|
|
9
|
+
import AuditedModel from '../../AuditedModel';
|
|
10
|
+
import Discount from './Discount';
|
|
11
|
+
|
|
12
|
+
@Entity()
|
|
13
|
+
export default class DiscountType extends AuditedModel {
|
|
14
|
+
@PrimaryGeneratedColumn()
|
|
15
|
+
id: number;
|
|
16
|
+
|
|
17
|
+
@DeleteDateColumn()
|
|
18
|
+
deletedAt: Date;
|
|
19
|
+
|
|
20
|
+
@Column('varchar', { nullable: false })
|
|
21
|
+
type: string;
|
|
22
|
+
|
|
23
|
+
@OneToMany(() => Discount, (discount: Discount) => discount.discountType)
|
|
24
|
+
@JoinColumn()
|
|
25
|
+
discount: Discount[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class addActiveColumInVariant1689005718747 implements MigrationInterface {
|
|
4
|
+
name = 'addActiveColumInVariant1689005718747'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`user_channel_api_key\` DROP FOREIGN KEY \`FK_adc2206f21efb67f9f6425a4ce8\``);
|
|
8
|
+
await queryRunner.query(`DROP INDEX \`IDX_db41f18c3701a209c734457fa3\` ON \`shopify_connection\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`user_channel_api_key\` DROP COLUMN \`channel_user_id\``);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`variant\` ADD \`active\` tinyint NOT NULL DEFAULT 1`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`shopify_connection_id\` int NULL`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`user_channel_api_key_id\` int NULL`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`channel_user_id\` int NULL`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` ADD CONSTRAINT \`FK_687a267ae83f576c002baf0198a\` FOREIGN KEY (\`shopify_connection_id\`) REFERENCES \`shopify_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` ADD CONSTRAINT \`FK_83f345b5912388def4fa4253040\` FOREIGN KEY (\`user_channel_api_key_id\`) REFERENCES \`user_channel_api_key\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD CONSTRAINT \`FK_f8bdfc8b3e1fdf9e96a351d73e2\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
20
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP FOREIGN KEY \`FK_f8bdfc8b3e1fdf9e96a351d73e2\``);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` DROP FOREIGN KEY \`FK_83f345b5912388def4fa4253040\``);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` DROP FOREIGN KEY \`FK_687a267ae83f576c002baf0198a\``);
|
|
23
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`channel_user_id\``);
|
|
24
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`user_channel_api_key_id\``);
|
|
25
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`shopify_connection_id\``);
|
|
26
|
+
await queryRunner.query(`ALTER TABLE \`variant\` DROP COLUMN \`active\``);
|
|
27
|
+
await queryRunner.query(`ALTER TABLE \`user_channel_api_key\` ADD \`channel_user_id\` int NULL`);
|
|
28
|
+
await queryRunner.query(`CREATE UNIQUE INDEX \`IDX_db41f18c3701a209c734457fa3\` ON \`shopify_connection\` (\`reseller_id\`, \`deleted_at\`)`);
|
|
29
|
+
await queryRunner.query(`ALTER TABLE \`user_channel_api_key\` ADD CONSTRAINT \`FK_adc2206f21efb67f9f6425a4ce8\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|