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,48 +10,45 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocalPaymentMethod = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
20
|
-
type: "int",
|
|
21
|
-
comment: "Número de identificación (ID) único de cada registro.",
|
|
22
|
-
}),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], LocalPaymentMethod.prototype, "id", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.ManyToOne)(function () { return __1.Local; }, function (local) { return local.locals_payment_method; }, {
|
|
27
|
-
onDelete: "CASCADE",
|
|
28
|
-
onUpdate: "NO ACTION",
|
|
29
|
-
}),
|
|
30
|
-
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
31
|
-
__metadata("design:type", __1.Local)
|
|
32
|
-
], LocalPaymentMethod.prototype, "local", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.ManyToOne)(function () { return __1.PaymentMethod; }, function (paymentMethod) { return paymentMethod.payments_method; }, {
|
|
35
|
-
onDelete: "CASCADE",
|
|
36
|
-
onUpdate: "NO ACTION",
|
|
37
|
-
}),
|
|
38
|
-
(0, typeorm_1.JoinColumn)({ name: "payment_method" }),
|
|
39
|
-
__metadata("design:type", __1.PaymentMethod)
|
|
40
|
-
], LocalPaymentMethod.prototype, "payment_method", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.OneToMany)(function () { return __1.RequestLocalPayment; }, function (requestLocalPayment) { return requestLocalPayment.payment_method; }),
|
|
43
|
-
__metadata("design:type", Array)
|
|
44
|
-
], LocalPaymentMethod.prototype, "request_payment_methods", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.OneToMany)(function () { return __1.LocalTableReservePayment; }, function (localTableReservePayment) { return localTableReservePayment.payment_method; }),
|
|
47
|
-
__metadata("design:type", Array)
|
|
48
|
-
], LocalPaymentMethod.prototype, "local_table_reserves_payment", void 0);
|
|
49
|
-
LocalPaymentMethod = __decorate([
|
|
50
|
-
(0, typeorm_1.Entity)({
|
|
51
|
-
comment: "Métodos de pago de los locales. \n\nHay qué tener en cuenta que cuando se crea un local, este debería agregar todos los métodos de pago y el usuario/administrador deberá, si es el caso, agregar los métodos de pagos específicos.",
|
|
52
|
-
name: "local_payment_method",
|
|
53
|
-
})
|
|
54
|
-
], LocalPaymentMethod);
|
|
55
|
-
return LocalPaymentMethod;
|
|
56
|
-
}());
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const __1 = require("..");
|
|
15
|
+
let LocalPaymentMethod = class LocalPaymentMethod {
|
|
16
|
+
};
|
|
57
17
|
exports.LocalPaymentMethod = LocalPaymentMethod;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
20
|
+
type: "int",
|
|
21
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], LocalPaymentMethod.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ManyToOne)(() => __1.Local, (local) => local.locals_payment_method, {
|
|
27
|
+
onDelete: "CASCADE",
|
|
28
|
+
onUpdate: "NO ACTION",
|
|
29
|
+
}),
|
|
30
|
+
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
31
|
+
__metadata("design:type", __1.Local)
|
|
32
|
+
], LocalPaymentMethod.prototype, "local", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ManyToOne)(() => __1.PaymentMethod, (paymentMethod) => paymentMethod.payments_method, {
|
|
35
|
+
onDelete: "CASCADE",
|
|
36
|
+
onUpdate: "NO ACTION",
|
|
37
|
+
}),
|
|
38
|
+
(0, typeorm_1.JoinColumn)({ name: "payment_method" }),
|
|
39
|
+
__metadata("design:type", __1.PaymentMethod)
|
|
40
|
+
], LocalPaymentMethod.prototype, "payment_method", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.OneToMany)(() => __1.RequestLocalPayment, (requestLocalPayment) => requestLocalPayment.payment_method),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], LocalPaymentMethod.prototype, "request_payment_methods", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.OneToMany)(() => __1.LocalTableReservePayment, (localTableReservePayment) => localTableReservePayment.payment_method),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], LocalPaymentMethod.prototype, "local_table_reserves_payment", void 0);
|
|
49
|
+
exports.LocalPaymentMethod = LocalPaymentMethod = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)({
|
|
51
|
+
comment: "Métodos de pago de los locales. \n\nHay qué tener en cuenta que cuando se crea un local, este debería agregar todos los métodos de pago y el usuario/administrador deberá, si es el caso, agregar los métodos de pagos específicos.",
|
|
52
|
+
name: "local_payment_method",
|
|
53
|
+
})
|
|
54
|
+
], LocalPaymentMethod);
|
|
@@ -10,95 +10,92 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocalPlan = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
22
|
-
type: "int",
|
|
23
|
-
comment: "Número de identificación (ID) único de cada registro.",
|
|
24
|
-
}),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], LocalPlan.prototype, "id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.ManyToOne)(function () { return __1.Plan; }, function (plan) { return plan.local_plans; }, {
|
|
29
|
-
onDelete: "CASCADE",
|
|
30
|
-
onUpdate: "NO ACTION",
|
|
31
|
-
}),
|
|
32
|
-
(0, typeorm_1.JoinColumn)({ name: "plan" }),
|
|
33
|
-
__metadata("design:type", __1.Plan)
|
|
34
|
-
], LocalPlan.prototype, "plan", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.ManyToOne)(function () { return __1.Local; }, function (local) { return local.locals_plan; }, {
|
|
37
|
-
onDelete: "CASCADE",
|
|
38
|
-
onUpdate: "NO ACTION",
|
|
39
|
-
}),
|
|
40
|
-
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
41
|
-
__metadata("design:type", __1.Local)
|
|
42
|
-
], LocalPlan.prototype, "local", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({
|
|
45
|
-
default: 0,
|
|
46
|
-
type: "int",
|
|
47
|
-
width: 1,
|
|
48
|
-
comment: "Valor de tipo numérico para saber sí el local tiene el plan mensual o anual:\n\n 1. Mensual. \n\n2. Anual.",
|
|
49
|
-
}),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], LocalPlan.prototype, "type", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({
|
|
54
|
-
type: "decimal",
|
|
55
|
-
precision: 10,
|
|
56
|
-
scale: 2,
|
|
57
|
-
comment: "Precio por el plan del local.",
|
|
58
|
-
}),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], LocalPlan.prototype, "price", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({
|
|
63
|
-
type: "mediumtext",
|
|
64
|
-
nullable: true,
|
|
65
|
-
default: null,
|
|
66
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
67
|
-
comment: "Por si necesitamos agregar más elementos a la tabla. \n\nEsto se comporta como un Objeto guardado en la columna.",
|
|
68
|
-
}),
|
|
69
|
-
__metadata("design:type", Object)
|
|
70
|
-
], LocalPlan.prototype, "settings", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({
|
|
73
|
-
type: "datetime",
|
|
74
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
75
|
-
comment: "Fecha de creación del registro.",
|
|
76
|
-
}),
|
|
77
|
-
__metadata("design:type", Date)
|
|
78
|
-
], LocalPlan.prototype, "start_date", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({
|
|
81
|
-
type: "datetime",
|
|
82
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
83
|
-
comment: "Fecha de creación del registro.",
|
|
84
|
-
}),
|
|
85
|
-
__metadata("design:type", Date)
|
|
86
|
-
], LocalPlan.prototype, "end_date", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, typeorm_1.Column)({
|
|
89
|
-
default: 1,
|
|
90
|
-
type: "int",
|
|
91
|
-
width: 1,
|
|
92
|
-
comment: "¿El master tiene acceso a la plataforma?:\r\n1. Activo: El master tiene acceso.\r\n0. Inactivo: El master no tiene acceso a la plataforma.",
|
|
93
|
-
}),
|
|
94
|
-
__metadata("design:type", Number)
|
|
95
|
-
], LocalPlan.prototype, "status", void 0);
|
|
96
|
-
LocalPlan = __decorate([
|
|
97
|
-
(0, typeorm_1.Entity)({
|
|
98
|
-
name: "local_plan",
|
|
99
|
-
comment: "Tabla para el manejo de los planes de los locales.",
|
|
100
|
-
})
|
|
101
|
-
], LocalPlan);
|
|
102
|
-
return LocalPlan;
|
|
103
|
-
}());
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const __1 = require("..");
|
|
15
|
+
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
|
+
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
17
|
+
let LocalPlan = class LocalPlan {
|
|
18
|
+
};
|
|
104
19
|
exports.LocalPlan = LocalPlan;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
22
|
+
type: "int",
|
|
23
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
24
|
+
}),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], LocalPlan.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => __1.Plan, (plan) => plan.local_plans, {
|
|
29
|
+
onDelete: "CASCADE",
|
|
30
|
+
onUpdate: "NO ACTION",
|
|
31
|
+
}),
|
|
32
|
+
(0, typeorm_1.JoinColumn)({ name: "plan" }),
|
|
33
|
+
__metadata("design:type", __1.Plan)
|
|
34
|
+
], LocalPlan.prototype, "plan", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => __1.Local, (local) => local.locals_plan, {
|
|
37
|
+
onDelete: "CASCADE",
|
|
38
|
+
onUpdate: "NO ACTION",
|
|
39
|
+
}),
|
|
40
|
+
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
41
|
+
__metadata("design:type", __1.Local)
|
|
42
|
+
], LocalPlan.prototype, "local", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({
|
|
45
|
+
default: 0,
|
|
46
|
+
type: "int",
|
|
47
|
+
width: 1,
|
|
48
|
+
comment: "Valor de tipo numérico para saber sí el local tiene el plan mensual o anual:\n\n 1. Mensual. \n\n2. Anual.",
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], LocalPlan.prototype, "type", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({
|
|
54
|
+
type: "decimal",
|
|
55
|
+
precision: 10,
|
|
56
|
+
scale: 2,
|
|
57
|
+
comment: "Precio por el plan del local.",
|
|
58
|
+
}),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], LocalPlan.prototype, "price", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({
|
|
63
|
+
type: "mediumtext",
|
|
64
|
+
nullable: true,
|
|
65
|
+
default: null,
|
|
66
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
67
|
+
comment: "Por si necesitamos agregar más elementos a la tabla. \n\nEsto se comporta como un Objeto guardado en la columna.",
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], LocalPlan.prototype, "settings", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({
|
|
73
|
+
type: "datetime",
|
|
74
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
75
|
+
comment: "Fecha de creación del registro.",
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], LocalPlan.prototype, "start_date", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({
|
|
81
|
+
type: "datetime",
|
|
82
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
83
|
+
comment: "Fecha de creación del registro.",
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", Date)
|
|
86
|
+
], LocalPlan.prototype, "end_date", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({
|
|
89
|
+
default: 1,
|
|
90
|
+
type: "int",
|
|
91
|
+
width: 1,
|
|
92
|
+
comment: "¿El master tiene acceso a la plataforma?:\r\n1. Activo: El master tiene acceso.\r\n0. Inactivo: El master no tiene acceso a la plataforma.",
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], LocalPlan.prototype, "status", void 0);
|
|
96
|
+
exports.LocalPlan = LocalPlan = __decorate([
|
|
97
|
+
(0, typeorm_1.Entity)({
|
|
98
|
+
name: "local_plan",
|
|
99
|
+
comment: "Tabla para el manejo de los planes de los locales.",
|
|
100
|
+
})
|
|
101
|
+
], LocalPlan);
|
|
@@ -10,58 +10,55 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocalQualification = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typeorm_1.PrimaryColumn)({
|
|
22
|
-
type: "int",
|
|
23
|
-
comment: "Número de identificación (ID) único de cada registro.",
|
|
24
|
-
}),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], LocalQualification.prototype, "id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({
|
|
29
|
-
type: "int",
|
|
30
|
-
width: 5,
|
|
31
|
-
comment: "Calificación que tiene el local.\r\n1. Mínimo: Mal servicio.\r\n5. Máximo: Excelente servicio\r\n\r\nLa calificación se evalúa haciéndole 3 o 4 preguntas al usuario:\r\n1. Qué tal fue el servicio a la hora de realizar el pedido.\r\n......",
|
|
32
|
-
}),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], LocalQualification.prototype, "qualification", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.ManyToOne)(function () { return Local_1.Local; }, function (local) { return local.qualifications; }, {
|
|
37
|
-
onDelete: "CASCADE",
|
|
38
|
-
onUpdate: "NO ACTION",
|
|
39
|
-
}),
|
|
40
|
-
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
41
|
-
__metadata("design:type", Local_1.Local)
|
|
42
|
-
], LocalQualification.prototype, "local", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.ManyToOne)(function () { return User_1.User; }, function (user) { return user.qualifications; }, {
|
|
45
|
-
nullable: true,
|
|
46
|
-
onDelete: "SET NULL",
|
|
47
|
-
onUpdate: "NO ACTION",
|
|
48
|
-
}),
|
|
49
|
-
(0, typeorm_1.JoinColumn)({ name: "user" }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], LocalQualification.prototype, "user", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({
|
|
54
|
-
type: "datetime",
|
|
55
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
56
|
-
comment: "Fecha de creación del registro.",
|
|
57
|
-
}),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], LocalQualification.prototype, "created", void 0);
|
|
60
|
-
LocalQualification = __decorate([
|
|
61
|
-
(0, typeorm_1.Entity)("local_qualification", {
|
|
62
|
-
comment: "Valoración que los usuarios le dan a los locales cada vez qué realicen una orden, no es obligatorio.\r\n\r\nTodos los locales cuando se crean y no tienen reseñas quedarán con puntaje de 5.",
|
|
63
|
-
})
|
|
64
|
-
], LocalQualification);
|
|
65
|
-
return LocalQualification;
|
|
66
|
-
}());
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
15
|
+
const Local_1 = require("./Local");
|
|
16
|
+
const User_1 = require("./User");
|
|
17
|
+
let LocalQualification = class LocalQualification {
|
|
18
|
+
};
|
|
67
19
|
exports.LocalQualification = LocalQualification;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryColumn)({
|
|
22
|
+
type: "int",
|
|
23
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
24
|
+
}),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], LocalQualification.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({
|
|
29
|
+
type: "int",
|
|
30
|
+
width: 5,
|
|
31
|
+
comment: "Calificación que tiene el local.\r\n1. Mínimo: Mal servicio.\r\n5. Máximo: Excelente servicio\r\n\r\nLa calificación se evalúa haciéndole 3 o 4 preguntas al usuario:\r\n1. Qué tal fue el servicio a la hora de realizar el pedido.\r\n......",
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], LocalQualification.prototype, "qualification", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => Local_1.Local, (local) => local.qualifications, {
|
|
37
|
+
onDelete: "CASCADE",
|
|
38
|
+
onUpdate: "NO ACTION",
|
|
39
|
+
}),
|
|
40
|
+
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
41
|
+
__metadata("design:type", Local_1.Local)
|
|
42
|
+
], LocalQualification.prototype, "local", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.ManyToOne)(() => User_1.User, (user) => user.qualifications, {
|
|
45
|
+
nullable: true,
|
|
46
|
+
onDelete: "SET NULL",
|
|
47
|
+
onUpdate: "NO ACTION",
|
|
48
|
+
}),
|
|
49
|
+
(0, typeorm_1.JoinColumn)({ name: "user" }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], LocalQualification.prototype, "user", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({
|
|
54
|
+
type: "datetime",
|
|
55
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
56
|
+
comment: "Fecha de creación del registro.",
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], LocalQualification.prototype, "created", void 0);
|
|
60
|
+
exports.LocalQualification = LocalQualification = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)("local_qualification", {
|
|
62
|
+
comment: "Valoración que los usuarios le dan a los locales cada vez qué realicen una orden, no es obligatorio.\r\n\r\nTodos los locales cuando se crean y no tienen reseñas quedarán con puntaje de 5.",
|
|
63
|
+
})
|
|
64
|
+
], LocalQualification);
|