test-entity-library-asm 3.7.4 → 3.7.6
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/entities/Request.d.ts +0 -2
- package/dist/entities/Request.js +0 -16
- package/dist/entities/RequestLocal.d.ts +2 -0
- package/dist/entities/RequestLocal.js +20 -0
- package/dist/entities/RequestProduct.js +1 -1
- package/dist/entities/RequestProductGroupComplement.js +4 -1
- package/package.json +1 -1
- package/src/entities/Request.ts +0 -15
- package/src/entities/RequestLocal.ts +18 -0
- package/src/entities/RequestProduct.ts +1 -1
- package/src/entities/RequestProductGroupComplement.ts +4 -1
package/dist/entities/Request.js
CHANGED
|
@@ -117,22 +117,6 @@ var Request = /** @class */ (function () {
|
|
|
117
117
|
}),
|
|
118
118
|
__metadata("design:type", Number)
|
|
119
119
|
], Request.prototype, "status", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
(0, typeorm_1.Column)({
|
|
122
|
-
length: 400,
|
|
123
|
-
type: "varchar",
|
|
124
|
-
comment: "Los detalles que el usuario agrega al pedido, puede ser alguna sugerencia u otra cosa.",
|
|
125
|
-
}),
|
|
126
|
-
__metadata("design:type", String)
|
|
127
|
-
], Request.prototype, "details", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, typeorm_1.Column)({
|
|
130
|
-
length: 400,
|
|
131
|
-
type: "varchar",
|
|
132
|
-
comment: "Comentarios del pedido, este los realiza el cliente (local).",
|
|
133
|
-
}),
|
|
134
|
-
__metadata("design:type", String)
|
|
135
|
-
], Request.prototype, "comments", void 0);
|
|
136
120
|
__decorate([
|
|
137
121
|
(0, typeorm_1.Column)({
|
|
138
122
|
type: "datetime",
|
|
@@ -11,6 +11,8 @@ export declare class RequestLocal {
|
|
|
11
11
|
order_number: number;
|
|
12
12
|
order_number_day: number;
|
|
13
13
|
discount: DiscountCodeUser | null;
|
|
14
|
+
comments: string | null;
|
|
15
|
+
user_details: string | null;
|
|
14
16
|
partner: Partner | null;
|
|
15
17
|
is_notified: number;
|
|
16
18
|
requests_local_history: RequestLocalHistory[];
|
|
@@ -111,6 +111,26 @@ var RequestLocal = /** @class */ (function () {
|
|
|
111
111
|
(0, typeorm_1.JoinColumn)({ name: "discount" }),
|
|
112
112
|
__metadata("design:type", Object)
|
|
113
113
|
], RequestLocal.prototype, "discount", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({
|
|
116
|
+
length: 200,
|
|
117
|
+
nullable: true,
|
|
118
|
+
default: null,
|
|
119
|
+
type: "varchar",
|
|
120
|
+
comment: "Comentarios del pedido.",
|
|
121
|
+
}),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], RequestLocal.prototype, "comments", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({
|
|
126
|
+
length: 300,
|
|
127
|
+
type: "varchar",
|
|
128
|
+
nullable: true,
|
|
129
|
+
default: null,
|
|
130
|
+
comment: "Comentarios que el usuario le agrega al pedido.",
|
|
131
|
+
}),
|
|
132
|
+
__metadata("design:type", Object)
|
|
133
|
+
], RequestLocal.prototype, "user_details", void 0);
|
|
114
134
|
__decorate([
|
|
115
135
|
(0, typeorm_1.ManyToOne)(function () { return __1.Partner; }, function (partner) { return partner.partner_request_locals; }, {
|
|
116
136
|
onDelete: "CASCADE",
|
|
@@ -67,7 +67,7 @@ var RequestProduct = /** @class */ (function () {
|
|
|
67
67
|
(0, typeorm_1.Entity)("request_product", {
|
|
68
68
|
comment: "Productos que están en el pedido.",
|
|
69
69
|
}),
|
|
70
|
-
(0, typeorm_1.Unique)(["request", "product"])
|
|
70
|
+
(0, typeorm_1.Unique)("unique_request_product", ["request", "product"])
|
|
71
71
|
], RequestProduct);
|
|
72
72
|
return RequestProduct;
|
|
73
73
|
}());
|
|
@@ -59,7 +59,10 @@ var RequestProductGroupComplement = /** @class */ (function () {
|
|
|
59
59
|
(0, typeorm_1.Entity)("request_product_group_complement", {
|
|
60
60
|
comment: "Complementos (toppings) que el usuario va a poder agregar por cada producto.",
|
|
61
61
|
}),
|
|
62
|
-
(0, typeorm_1.Unique)(
|
|
62
|
+
(0, typeorm_1.Unique)("unique_request_product_group_complement", [
|
|
63
|
+
"request",
|
|
64
|
+
"product_group_complement",
|
|
65
|
+
])
|
|
63
66
|
], RequestProductGroupComplement);
|
|
64
67
|
return RequestProductGroupComplement;
|
|
65
68
|
}());
|
package/package.json
CHANGED
package/src/entities/Request.ts
CHANGED
|
@@ -114,21 +114,6 @@ export class Request {
|
|
|
114
114
|
})
|
|
115
115
|
status: number;
|
|
116
116
|
|
|
117
|
-
@Column({
|
|
118
|
-
length: 400,
|
|
119
|
-
type: "varchar",
|
|
120
|
-
comment:
|
|
121
|
-
"Los detalles que el usuario agrega al pedido, puede ser alguna sugerencia u otra cosa.",
|
|
122
|
-
})
|
|
123
|
-
details: string;
|
|
124
|
-
|
|
125
|
-
@Column({
|
|
126
|
-
length: 400,
|
|
127
|
-
type: "varchar",
|
|
128
|
-
comment: "Comentarios del pedido, este los realiza el cliente (local).",
|
|
129
|
-
})
|
|
130
|
-
comments: string;
|
|
131
|
-
|
|
132
117
|
@Column({
|
|
133
118
|
type: "datetime",
|
|
134
119
|
transformer: new DateTransformer(),
|
|
@@ -117,6 +117,24 @@ export class RequestLocal {
|
|
|
117
117
|
@JoinColumn({ name: "discount" })
|
|
118
118
|
discount: DiscountCodeUser | null;
|
|
119
119
|
|
|
120
|
+
@Column({
|
|
121
|
+
length: 200,
|
|
122
|
+
nullable: true,
|
|
123
|
+
default: null,
|
|
124
|
+
type: "varchar",
|
|
125
|
+
comment: "Comentarios del pedido.",
|
|
126
|
+
})
|
|
127
|
+
comments: string | null;
|
|
128
|
+
|
|
129
|
+
@Column({
|
|
130
|
+
length: 300,
|
|
131
|
+
type: "varchar",
|
|
132
|
+
nullable: true,
|
|
133
|
+
default: null,
|
|
134
|
+
comment: "Comentarios que el usuario le agrega al pedido.",
|
|
135
|
+
})
|
|
136
|
+
user_details: string | null;
|
|
137
|
+
|
|
120
138
|
@ManyToOne(() => Partner, (partner) => partner.partner_request_locals, {
|
|
121
139
|
onDelete: "CASCADE",
|
|
122
140
|
onUpdate: "NO ACTION",
|
|
@@ -13,7 +13,7 @@ import { User } from "./User";
|
|
|
13
13
|
@Entity("request_product", {
|
|
14
14
|
comment: "Productos que están en el pedido.",
|
|
15
15
|
})
|
|
16
|
-
@Unique(["request", "product"])
|
|
16
|
+
@Unique("unique_request_product", ["request", "product"])
|
|
17
17
|
export class RequestProduct {
|
|
18
18
|
@PrimaryGeneratedColumn({
|
|
19
19
|
type: "int",
|
|
@@ -14,7 +14,10 @@ import { User } from "./User";
|
|
|
14
14
|
comment:
|
|
15
15
|
"Complementos (toppings) que el usuario va a poder agregar por cada producto.",
|
|
16
16
|
})
|
|
17
|
-
@Unique(
|
|
17
|
+
@Unique("unique_request_product_group_complement", [
|
|
18
|
+
"request",
|
|
19
|
+
"product_group_complement",
|
|
20
|
+
])
|
|
18
21
|
export class RequestProductGroupComplement {
|
|
19
22
|
@PrimaryGeneratedColumn({
|
|
20
23
|
type: "int",
|