@asumano/worklip-typeorm-db 1.1.11 → 1.1.13
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.
|
@@ -60,33 +60,23 @@ __decorate([
|
|
|
60
60
|
__metadata("design:type", Number)
|
|
61
61
|
], AssociatePermission.prototype, "status", void 0);
|
|
62
62
|
__decorate([
|
|
63
|
-
(0, typeorm_1.ManyToMany)(() => entities_views_routes_1.AssociateRole, (role) => role.permissions)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
})
|
|
63
|
+
(0, typeorm_1.ManyToMany)(() => entities_views_routes_1.AssociateRole, (role) => role.permissions)
|
|
64
|
+
// @JoinTable({
|
|
65
|
+
// name: "associate_role_permission",
|
|
66
|
+
// joinColumn: {
|
|
67
|
+
// name: "permission",
|
|
68
|
+
// referencedColumnName: "id",
|
|
69
|
+
// },
|
|
70
|
+
// inverseJoinColumn: {
|
|
71
|
+
// name: "role",
|
|
72
|
+
// referencedColumnName: "id",
|
|
73
|
+
// },
|
|
74
|
+
// })
|
|
75
|
+
,
|
|
75
76
|
__metadata("design:type", Array)
|
|
76
77
|
], AssociatePermission.prototype, "roles", void 0);
|
|
77
78
|
__decorate([
|
|
78
79
|
(0, typeorm_1.ManyToMany)(() => entities_views_routes_1.Associate, (associate) => associate.permissions),
|
|
79
|
-
(0, typeorm_1.JoinTable)({
|
|
80
|
-
name: "associate_assigned_permission",
|
|
81
|
-
joinColumn: {
|
|
82
|
-
name: "permission",
|
|
83
|
-
referencedColumnName: "id",
|
|
84
|
-
},
|
|
85
|
-
inverseJoinColumn: {
|
|
86
|
-
name: "associate",
|
|
87
|
-
referencedColumnName: "id",
|
|
88
|
-
},
|
|
89
|
-
}),
|
|
90
80
|
__metadata("design:type", Array)
|
|
91
81
|
], AssociatePermission.prototype, "associates", void 0);
|
|
92
82
|
exports.AssociatePermission = AssociatePermission = __decorate([
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Associate } from "./Associate";
|
|
1
2
|
import { City } from "./City";
|
|
2
3
|
import { Company } from "./Company";
|
|
3
|
-
import { Associate } from "./Associate";
|
|
4
|
-
import { Template } from "./Template";
|
|
5
|
-
import { ServiceOrder } from "./ServiceOrder";
|
|
6
4
|
import { Reminder } from "./Reminder";
|
|
5
|
+
import { ServiceOrder } from "./ServiceOrder";
|
|
6
|
+
import { Template } from "./Template";
|
|
7
7
|
export declare class Workshop {
|
|
8
8
|
id: number;
|
|
9
9
|
code: string;
|
|
@@ -11,12 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Workshop = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const Associate_1 = require("./Associate");
|
|
14
15
|
const City_1 = require("./City");
|
|
15
16
|
const Company_1 = require("./Company");
|
|
16
|
-
const Associate_1 = require("./Associate");
|
|
17
|
-
const Template_1 = require("./Template");
|
|
18
|
-
const ServiceOrder_1 = require("./ServiceOrder");
|
|
19
17
|
const Reminder_1 = require("./Reminder");
|
|
18
|
+
const ServiceOrder_1 = require("./ServiceOrder");
|
|
19
|
+
const Template_1 = require("./Template");
|
|
20
20
|
let Workshop = class Workshop {
|
|
21
21
|
};
|
|
22
22
|
exports.Workshop = Workshop;
|
|
@@ -123,18 +123,19 @@ __decorate([
|
|
|
123
123
|
__metadata("design:type", Number)
|
|
124
124
|
], Workshop.prototype, "status", void 0);
|
|
125
125
|
__decorate([
|
|
126
|
-
(0, typeorm_1.ManyToMany)(() => Associate_1.Associate, (associate) => associate.workshops_associated)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
})
|
|
126
|
+
(0, typeorm_1.ManyToMany)(() => Associate_1.Associate, (associate) => associate.workshops_associated)
|
|
127
|
+
// @JoinTable({
|
|
128
|
+
// name: "workshop_associate",
|
|
129
|
+
// joinColumn: {
|
|
130
|
+
// name: "workshop",
|
|
131
|
+
// referencedColumnName: "id",
|
|
132
|
+
// },
|
|
133
|
+
// inverseJoinColumn: {
|
|
134
|
+
// name: "associate",
|
|
135
|
+
// referencedColumnName: "id",
|
|
136
|
+
// },
|
|
137
|
+
// })
|
|
138
|
+
,
|
|
138
139
|
__metadata("design:type", Array)
|
|
139
140
|
], Workshop.prototype, "associates", void 0);
|
|
140
141
|
__decorate([
|