test-entity-library-asm 3.9.5 → 3.9.7
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/CustomRepository.js +21 -109
- package/dist/entities/AuthenticationCredential.js +54 -57
- package/dist/entities/Bank.js +50 -53
- package/dist/entities/BusinessType.js +47 -50
- package/dist/entities/BusinessTypeProduct.js +68 -71
- package/dist/entities/Category.js +148 -151
- package/dist/entities/CategoryDate.js +39 -42
- package/dist/entities/CategorySchedule.js +41 -44
- package/dist/entities/City.js +70 -73
- package/dist/entities/CodeRedemptionHistoryCompany.js +44 -47
- package/dist/entities/CodeRedemptionHistoryUser.js +54 -57
- package/dist/entities/Company.js +169 -172
- package/dist/entities/Configuration.d.ts +1 -1
- package/dist/entities/Configuration.js +25 -26
- package/dist/entities/Country.js +91 -94
- package/dist/entities/Day.js +38 -41
- package/dist/entities/DecorationReserve.js +46 -49
- package/dist/entities/DiscountCodeCompany.js +124 -129
- package/dist/entities/DiscountCodeUser.js +139 -142
- package/dist/entities/Gallery.js +88 -91
- package/dist/entities/Local.js +239 -242
- package/dist/entities/LocalDecorationReserve.js +64 -67
- package/dist/entities/LocalPaymentMethod.js +41 -44
- package/dist/entities/LocalPlan.js +88 -91
- package/dist/entities/LocalQualification.js +51 -54
- package/dist/entities/LocalReserve.js +177 -180
- package/dist/entities/LocalReserveStatus.js +85 -88
- package/dist/entities/LocalTable.js +163 -166
- package/dist/entities/LocalTableReserve.js +22 -25
- package/dist/entities/LocalTableReservePayment.js +156 -159
- package/dist/entities/LocalTableZone.js +84 -87
- package/dist/entities/Master.js +182 -185
- package/dist/entities/MasterNotification.js +96 -99
- package/dist/entities/MasterPermission.js +65 -68
- package/dist/entities/MasterRole.js +83 -86
- package/dist/entities/Partner.js +306 -309
- package/dist/entities/PartnerNotification.js +97 -100
- package/dist/entities/PartnerPlatform.js +66 -69
- package/dist/entities/PartnerPlatformSection.js +74 -79
- package/dist/entities/PartnerPlatformSectionPermission.js +113 -118
- package/dist/entities/PartnerPlatformSectionPermissionAssociate.js +26 -29
- package/dist/entities/PartnerRole.js +93 -96
- package/dist/entities/PartnerSession.js +94 -97
- package/dist/entities/PaymentMethod.js +91 -94
- package/dist/entities/Plan.js +86 -89
- package/dist/entities/PosSystem.js +69 -74
- package/dist/entities/Product.js +219 -222
- package/dist/entities/ProductDate.js +39 -42
- package/dist/entities/ProductGroup.js +76 -79
- package/dist/entities/ProductImage.js +33 -36
- package/dist/entities/ProductIngredient.js +54 -57
- package/dist/entities/ProductSchedule.js +41 -44
- package/dist/entities/ProductTopping.js +47 -50
- package/dist/entities/ReceiptConfig.js +184 -187
- package/dist/entities/Region.js +46 -49
- package/dist/entities/Request.js +152 -155
- package/dist/entities/RequestInvoice.js +125 -128
- package/dist/entities/RequestInvoiceCategory.js +34 -37
- package/dist/entities/RequestLocal.js +164 -169
- package/dist/entities/RequestLocalHistory.js +61 -64
- package/dist/entities/RequestLocalPayment.js +154 -157
- package/dist/entities/RequestLocalTable.js +34 -37
- package/dist/entities/RequestPrint.js +60 -63
- package/dist/entities/RequestProduct.js +58 -61
- package/dist/entities/RequestProductGroupComplement.js +51 -56
- package/dist/entities/ServiceDiscountsPlan.js +30 -33
- package/dist/entities/ServicePlan.js +84 -87
- package/dist/entities/Square.js +130 -133
- package/dist/entities/ToppingImage.js +56 -59
- package/dist/entities/TypeMeasureIngredient.js +45 -48
- package/dist/entities/User.js +234 -237
- package/dist/entities/UserAddress.js +114 -117
- package/dist/entities/UserPaymentMethod.js +118 -121
- package/dist/entities/VerificationCode.js +60 -63
- package/dist/entities/VerifyLocal.js +142 -145
- package/dist/entities/productGroupComplement.js +117 -120
- package/dist/filters/DiscountsCodeCompanyInformation.js +153 -202
- package/dist/filters/DiscountsCodeUserInformation.js +173 -220
- package/dist/filters/LocalReservesInformation.js +35 -81
- package/dist/filters/LocalsCompanyInformation.js +169 -218
- package/dist/filters/LocalsCompanyInformationForTheTable.js +157 -203
- package/dist/filters/VerifyLocalsInformation.js +131 -179
- package/dist/index.js +55 -130
- package/dist/transformers/dateTransformer.js +10 -13
- package/dist/transformers/jsonEncryptionTransformer.d.ts +2 -0
- package/dist/transformers/jsonEncryptionTransformer.js +72 -0
- package/dist/transformers/jsonTransformer.js +2 -2
- package/dist/utils.js +3 -3
- package/dist/views/DiscountsCodeUser.js +120 -123
- package/dist/views/LocalReserves.js +280 -283
- package/dist/views/LocalTableZonesFilter.js +76 -79
- package/dist/views/LocalsCompany.js +172 -175
- package/dist/views/LocalsCompanyInformationForTheMap.js +276 -279
- package/dist/views/LocalsCompanyInformationForTheTable.js +384 -387
- package/dist/views/MasterNotifications.js +132 -135
- package/dist/views/PartnerNotifications.js +104 -107
- package/dist/views/Partners.js +140 -143
- package/dist/views/VerifyLocals.js +152 -155
- package/dist/views/ViewLocalsCompanies.js +100 -103
- package/package.json +3 -2
- package/src/entities/Configuration.ts +3 -1
- package/src/transformers/jsonEncryptionTransformer.ts +78 -0
- package/tsconfig.json +7 -3
|
@@ -10,40 +10,37 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ProductImage = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
20
|
-
type: "int",
|
|
21
|
-
comment: "Id único de cada registro.",
|
|
22
|
-
}),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], ProductImage.prototype, "id", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.ManyToOne)(function () { return __1.Product; }, function (product) { return product.products_image; }, {
|
|
27
|
-
onDelete: "CASCADE",
|
|
28
|
-
onUpdate: "NO ACTION",
|
|
29
|
-
}),
|
|
30
|
-
(0, typeorm_1.JoinColumn)({ name: "product" }),
|
|
31
|
-
__metadata("design:type", __1.Product)
|
|
32
|
-
], ProductImage.prototype, "product", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.ManyToOne)(function () { return __1.Gallery; }, function (gallery) { return gallery.product_images; }, {
|
|
35
|
-
onDelete: "CASCADE",
|
|
36
|
-
onUpdate: "NO ACTION",
|
|
37
|
-
}),
|
|
38
|
-
(0, typeorm_1.JoinColumn)({ name: "image" }),
|
|
39
|
-
__metadata("design:type", __1.Gallery)
|
|
40
|
-
], ProductImage.prototype, "image", void 0);
|
|
41
|
-
ProductImage = __decorate([
|
|
42
|
-
(0, typeorm_1.Entity)({
|
|
43
|
-
comment: "Asociación entre los productos y la galería de imágenes.",
|
|
44
|
-
name: "product_image",
|
|
45
|
-
})
|
|
46
|
-
], ProductImage);
|
|
47
|
-
return ProductImage;
|
|
48
|
-
}());
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const __1 = require("..");
|
|
15
|
+
let ProductImage = class ProductImage {
|
|
16
|
+
};
|
|
49
17
|
exports.ProductImage = ProductImage;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
20
|
+
type: "int",
|
|
21
|
+
comment: "Id único de cada registro.",
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ProductImage.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ManyToOne)(() => __1.Product, (product) => product.products_image, {
|
|
27
|
+
onDelete: "CASCADE",
|
|
28
|
+
onUpdate: "NO ACTION",
|
|
29
|
+
}),
|
|
30
|
+
(0, typeorm_1.JoinColumn)({ name: "product" }),
|
|
31
|
+
__metadata("design:type", __1.Product)
|
|
32
|
+
], ProductImage.prototype, "product", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ManyToOne)(() => __1.Gallery, (gallery) => gallery.product_images, {
|
|
35
|
+
onDelete: "CASCADE",
|
|
36
|
+
onUpdate: "NO ACTION",
|
|
37
|
+
}),
|
|
38
|
+
(0, typeorm_1.JoinColumn)({ name: "image" }),
|
|
39
|
+
__metadata("design:type", __1.Gallery)
|
|
40
|
+
], ProductImage.prototype, "image", void 0);
|
|
41
|
+
exports.ProductImage = ProductImage = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({
|
|
43
|
+
comment: "Asociación entre los productos y la galería de imágenes.",
|
|
44
|
+
name: "product_image",
|
|
45
|
+
})
|
|
46
|
+
], ProductImage);
|
|
@@ -10,61 +10,58 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ProductIngredient = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
-
type: "int",
|
|
22
|
-
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
|
-
}),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], ProductIngredient.prototype, "id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.ManyToOne)(function () { return Product_1.Product; }, function (product) { return product.product_ingredients; }, {
|
|
28
|
-
onDelete: "CASCADE",
|
|
29
|
-
onUpdate: "NO ACTION",
|
|
30
|
-
}),
|
|
31
|
-
(0, typeorm_1.JoinColumn)({ name: "product" }),
|
|
32
|
-
__metadata("design:type", Product_1.Product)
|
|
33
|
-
], ProductIngredient.prototype, "product", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ length: 30, type: "varchar", comment: "Nombre del ingrediente." }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], ProductIngredient.prototype, "name", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.ManyToOne)(function () { return TypeMeasureIngredient_1.TypeMeasureIngredient; }, function (typeMeasureIngredient) { return typeMeasureIngredient.type_measure_ingredients; }, {
|
|
40
|
-
onDelete: "CASCADE",
|
|
41
|
-
onUpdate: "NO ACTION",
|
|
42
|
-
}),
|
|
43
|
-
(0, typeorm_1.JoinColumn)({ name: "type_measure_ingredient" }),
|
|
44
|
-
__metadata("design:type", TypeMeasureIngredient_1.TypeMeasureIngredient)
|
|
45
|
-
], ProductIngredient.prototype, "type_measure_ingredient", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: "int", comment: "Cantidad del ingrediente." }),
|
|
48
|
-
__metadata("design:type", Number)
|
|
49
|
-
], ProductIngredient.prototype, "quantity", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: "datetime", comment: "Fecha de creación del registro." }),
|
|
52
|
-
__metadata("design:type", Date)
|
|
53
|
-
], ProductIngredient.prototype, "created", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({
|
|
56
|
-
default: 1,
|
|
57
|
-
type: "int",
|
|
58
|
-
width: 1,
|
|
59
|
-
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en los reportes de inventario.\r\n0. Inactivo: No será visible en los reportes de inventario.",
|
|
60
|
-
}),
|
|
61
|
-
__metadata("design:type", Number)
|
|
62
|
-
], ProductIngredient.prototype, "status", void 0);
|
|
63
|
-
ProductIngredient = __decorate([
|
|
64
|
-
(0, typeorm_1.Entity)("product_ingredient", {
|
|
65
|
-
comment: "Ingredientes que tendrá un producto específico. Esto se hace para guardar la información del inventario que se tiene y el que se gasta diario, esto genera un reporte donde el cliente puede ver qué cosas fueron usadas.",
|
|
66
|
-
})
|
|
67
|
-
], ProductIngredient);
|
|
68
|
-
return ProductIngredient;
|
|
69
|
-
}());
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const Product_1 = require("./Product");
|
|
15
|
+
const TypeMeasureIngredient_1 = require("./TypeMeasureIngredient");
|
|
16
|
+
let ProductIngredient = class ProductIngredient {
|
|
17
|
+
};
|
|
70
18
|
exports.ProductIngredient = ProductIngredient;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
+
type: "int",
|
|
22
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ProductIngredient.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => Product_1.Product, (product) => product.product_ingredients, {
|
|
28
|
+
onDelete: "CASCADE",
|
|
29
|
+
onUpdate: "NO ACTION",
|
|
30
|
+
}),
|
|
31
|
+
(0, typeorm_1.JoinColumn)({ name: "product" }),
|
|
32
|
+
__metadata("design:type", Product_1.Product)
|
|
33
|
+
], ProductIngredient.prototype, "product", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ length: 30, type: "varchar", comment: "Nombre del ingrediente." }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ProductIngredient.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.ManyToOne)(() => TypeMeasureIngredient_1.TypeMeasureIngredient, (typeMeasureIngredient) => typeMeasureIngredient.type_measure_ingredients, {
|
|
40
|
+
onDelete: "CASCADE",
|
|
41
|
+
onUpdate: "NO ACTION",
|
|
42
|
+
}),
|
|
43
|
+
(0, typeorm_1.JoinColumn)({ name: "type_measure_ingredient" }),
|
|
44
|
+
__metadata("design:type", TypeMeasureIngredient_1.TypeMeasureIngredient)
|
|
45
|
+
], ProductIngredient.prototype, "type_measure_ingredient", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "int", comment: "Cantidad del ingrediente." }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], ProductIngredient.prototype, "quantity", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "datetime", comment: "Fecha de creación del registro." }),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], ProductIngredient.prototype, "created", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({
|
|
56
|
+
default: 1,
|
|
57
|
+
type: "int",
|
|
58
|
+
width: 1,
|
|
59
|
+
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en los reportes de inventario.\r\n0. Inactivo: No será visible en los reportes de inventario.",
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], ProductIngredient.prototype, "status", void 0);
|
|
63
|
+
exports.ProductIngredient = ProductIngredient = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)("product_ingredient", {
|
|
65
|
+
comment: "Ingredientes que tendrá un producto específico. Esto se hace para guardar la información del inventario que se tiene y el que se gasta diario, esto genera un reporte donde el cliente puede ver qué cosas fueron usadas.",
|
|
66
|
+
})
|
|
67
|
+
], ProductIngredient);
|
|
@@ -10,48 +10,45 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ProductSchedule = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
-
type: "int",
|
|
22
|
-
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
|
-
}),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], ProductSchedule.prototype, "id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.ManyToOne)(function () { return __1.Product; }, function (product) { return product.product_schedules; }, {
|
|
28
|
-
onDelete: "CASCADE",
|
|
29
|
-
onUpdate: "NO ACTION",
|
|
30
|
-
}),
|
|
31
|
-
(0, typeorm_1.JoinColumn)({ name: "product" }),
|
|
32
|
-
__metadata("design:type", __1.Product)
|
|
33
|
-
], ProductSchedule.prototype, "product", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.ManyToOne)(function () { return Day_1.Day; }, function (day) { return day.product_schedules_day; }, {
|
|
36
|
-
onDelete: "RESTRICT",
|
|
37
|
-
onUpdate: "NO ACTION",
|
|
38
|
-
}),
|
|
39
|
-
(0, typeorm_1.JoinColumn)({ name: "day" }),
|
|
40
|
-
__metadata("design:type", Day_1.Day)
|
|
41
|
-
], ProductSchedule.prototype, "day", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de inicio." }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], ProductSchedule.prototype, "start_time", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de finalización." }),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], ProductSchedule.prototype, "end_time", void 0);
|
|
50
|
-
ProductSchedule = __decorate([
|
|
51
|
-
(0, typeorm_1.Entity)("product_schedule", {
|
|
52
|
-
comment: "Horarios en que se puede ver una producto.",
|
|
53
|
-
})
|
|
54
|
-
], ProductSchedule);
|
|
55
|
-
return ProductSchedule;
|
|
56
|
-
}());
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const __1 = require("..");
|
|
15
|
+
const Day_1 = require("./Day");
|
|
16
|
+
let ProductSchedule = class ProductSchedule {
|
|
17
|
+
};
|
|
57
18
|
exports.ProductSchedule = ProductSchedule;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
+
type: "int",
|
|
22
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ProductSchedule.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => __1.Product, (product) => product.product_schedules, {
|
|
28
|
+
onDelete: "CASCADE",
|
|
29
|
+
onUpdate: "NO ACTION",
|
|
30
|
+
}),
|
|
31
|
+
(0, typeorm_1.JoinColumn)({ name: "product" }),
|
|
32
|
+
__metadata("design:type", __1.Product)
|
|
33
|
+
], ProductSchedule.prototype, "product", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => Day_1.Day, (day) => day.product_schedules_day, {
|
|
36
|
+
onDelete: "RESTRICT",
|
|
37
|
+
onUpdate: "NO ACTION",
|
|
38
|
+
}),
|
|
39
|
+
(0, typeorm_1.JoinColumn)({ name: "day" }),
|
|
40
|
+
__metadata("design:type", Day_1.Day)
|
|
41
|
+
], ProductSchedule.prototype, "day", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de inicio." }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ProductSchedule.prototype, "start_time", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de finalización." }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], ProductSchedule.prototype, "end_time", void 0);
|
|
50
|
+
exports.ProductSchedule = ProductSchedule = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)("product_schedule", {
|
|
52
|
+
comment: "Horarios en que se puede ver una producto.",
|
|
53
|
+
})
|
|
54
|
+
], ProductSchedule);
|
|
@@ -10,54 +10,51 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ProductTopping = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
-
type: "int",
|
|
22
|
-
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
|
-
}),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], ProductTopping.prototype, "id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.ManyToOne)(function () { return Company_1.Company; }, function (company) { return company.product_toppings; }, {
|
|
28
|
-
nullable: true,
|
|
29
|
-
onDelete: "CASCADE",
|
|
30
|
-
onUpdate: "NO ACTION",
|
|
31
|
-
}),
|
|
32
|
-
(0, typeorm_1.JoinColumn)({ name: "company" }),
|
|
33
|
-
__metadata("design:type", Object)
|
|
34
|
-
], ProductTopping.prototype, "company", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({
|
|
37
|
-
length: 50,
|
|
38
|
-
type: "varchar",
|
|
39
|
-
comment: "El `name` se refiere al id de los archivos de lenguaje que está en `locales` del proyecto. \n\nEsto se hace para qué sirva el multilenguaje en el proyecto. \n\nCabe recalcar qué las empresas pueden crear sus propios toppings, entonces no pasa nada el lenguaje en el que ellos lo escriban.",
|
|
40
|
-
}),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], ProductTopping.prototype, "name", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({
|
|
45
|
-
default: 1,
|
|
46
|
-
type: "int",
|
|
47
|
-
width: 1,
|
|
48
|
-
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en los reportes de inventario.\r\n0. Inactivo: No será visible en los reportes de inventario.",
|
|
49
|
-
}),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], ProductTopping.prototype, "status", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.OneToMany)(function () { return ProductGroup_1.ProductGroup; }, function (productGroup) { return productGroup.topping; }),
|
|
54
|
-
__metadata("design:type", Array)
|
|
55
|
-
], ProductTopping.prototype, "product_groups", void 0);
|
|
56
|
-
ProductTopping = __decorate([
|
|
57
|
-
(0, typeorm_1.Entity)("product_topping", {
|
|
58
|
-
comment: "Tabla donde habrán varios toppings por defecto para que el usuario los pueda agregar a sus productos y editarlos a su gusto.\r\n\r\nUn administrador/usuario con permisos podrá crear los toppings para cada empresa si es necesario.",
|
|
59
|
-
})
|
|
60
|
-
], ProductTopping);
|
|
61
|
-
return ProductTopping;
|
|
62
|
-
}());
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const Company_1 = require("./Company");
|
|
15
|
+
const ProductGroup_1 = require("./ProductGroup");
|
|
16
|
+
let ProductTopping = class ProductTopping {
|
|
17
|
+
};
|
|
63
18
|
exports.ProductTopping = ProductTopping;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
+
type: "int",
|
|
22
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ProductTopping.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => Company_1.Company, (company) => company.product_toppings, {
|
|
28
|
+
nullable: true,
|
|
29
|
+
onDelete: "CASCADE",
|
|
30
|
+
onUpdate: "NO ACTION",
|
|
31
|
+
}),
|
|
32
|
+
(0, typeorm_1.JoinColumn)({ name: "company" }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], ProductTopping.prototype, "company", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({
|
|
37
|
+
length: 50,
|
|
38
|
+
type: "varchar",
|
|
39
|
+
comment: "El `name` se refiere al id de los archivos de lenguaje que está en `locales` del proyecto. \n\nEsto se hace para qué sirva el multilenguaje en el proyecto. \n\nCabe recalcar qué las empresas pueden crear sus propios toppings, entonces no pasa nada el lenguaje en el que ellos lo escriban.",
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ProductTopping.prototype, "name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({
|
|
45
|
+
default: 1,
|
|
46
|
+
type: "int",
|
|
47
|
+
width: 1,
|
|
48
|
+
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en los reportes de inventario.\r\n0. Inactivo: No será visible en los reportes de inventario.",
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ProductTopping.prototype, "status", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.OneToMany)(() => ProductGroup_1.ProductGroup, (productGroup) => productGroup.topping),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], ProductTopping.prototype, "product_groups", void 0);
|
|
56
|
+
exports.ProductTopping = ProductTopping = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)("product_topping", {
|
|
58
|
+
comment: "Tabla donde habrán varios toppings por defecto para que el usuario los pueda agregar a sus productos y editarlos a su gusto.\r\n\r\nUn administrador/usuario con permisos podrá crear los toppings para cada empresa si es necesario.",
|
|
59
|
+
})
|
|
60
|
+
], ProductTopping);
|