test-entity-library-asm 3.7.3 → 3.7.4
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.
|
@@ -66,7 +66,8 @@ var RequestProduct = /** @class */ (function () {
|
|
|
66
66
|
RequestProduct = __decorate([
|
|
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
71
|
], RequestProduct);
|
|
71
72
|
return RequestProduct;
|
|
72
73
|
}());
|
|
@@ -58,7 +58,8 @@ var RequestProductGroupComplement = /** @class */ (function () {
|
|
|
58
58
|
RequestProductGroupComplement = __decorate([
|
|
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)(["request", "product_group_complement"])
|
|
62
63
|
], RequestProductGroupComplement);
|
|
63
64
|
return RequestProductGroupComplement;
|
|
64
65
|
}());
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
JoinColumn,
|
|
5
5
|
ManyToOne,
|
|
6
6
|
PrimaryGeneratedColumn,
|
|
7
|
+
Unique,
|
|
7
8
|
} from "typeorm";
|
|
8
9
|
import { Product } from "./Product";
|
|
9
10
|
import { RequestLocal } from "./RequestLocal";
|
|
@@ -12,6 +13,7 @@ import { User } from "./User";
|
|
|
12
13
|
@Entity("request_product", {
|
|
13
14
|
comment: "Productos que están en el pedido.",
|
|
14
15
|
})
|
|
16
|
+
@Unique(["request", "product"])
|
|
15
17
|
export class RequestProduct {
|
|
16
18
|
@PrimaryGeneratedColumn({
|
|
17
19
|
type: "int",
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
JoinColumn,
|
|
5
5
|
ManyToOne,
|
|
6
6
|
PrimaryGeneratedColumn,
|
|
7
|
+
Unique,
|
|
7
8
|
} from "typeorm";
|
|
8
9
|
import { ProductGroupComplement } from "./productGroupComplement";
|
|
9
10
|
import { RequestLocal } from "./RequestLocal";
|
|
@@ -13,6 +14,7 @@ import { User } from "./User";
|
|
|
13
14
|
comment:
|
|
14
15
|
"Complementos (toppings) que el usuario va a poder agregar por cada producto.",
|
|
15
16
|
})
|
|
17
|
+
@Unique(["request", "product_group_complement"])
|
|
16
18
|
export class RequestProductGroupComplement {
|
|
17
19
|
@PrimaryGeneratedColumn({
|
|
18
20
|
type: "int",
|