@aurispec/core-backend 1.0.19 → 1.0.20
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.
|
@@ -80,7 +80,7 @@ __decorate([
|
|
|
80
80
|
__metadata("design:type", String)
|
|
81
81
|
], BusinessModel.prototype, "status", void 0);
|
|
82
82
|
__decorate([
|
|
83
|
-
(0, typeorm_1.ManyToOne)((
|
|
83
|
+
(0, typeorm_1.ManyToOne)(() => UserModel_1.UserModel, (reviews) => reviews.businesses),
|
|
84
84
|
(0, typeorm_1.JoinColumn)({ name: "user_id", referencedColumnName: "id" }),
|
|
85
85
|
__metadata("design:type", UserModel_1.UserModel)
|
|
86
86
|
], BusinessModel.prototype, "user", void 0);
|
|
@@ -12,6 +12,7 @@ import { EventAttendanceModel } from "./EventAttendanceModel";
|
|
|
12
12
|
import { ConnectionModel } from "./ConnectionModel";
|
|
13
13
|
import { ReviewModel } from "./ReviewModel";
|
|
14
14
|
import { SubscriptionHistoryModel } from "./SubscriptionHistoryModel";
|
|
15
|
+
import { BusinessModel } from "./BusinessModel";
|
|
15
16
|
export declare class UserModel extends BaseModel {
|
|
16
17
|
full_name: string;
|
|
17
18
|
terms_and_conditions: boolean;
|
|
@@ -44,5 +45,6 @@ export declare class UserModel extends BaseModel {
|
|
|
44
45
|
sent_connections?: ConnectionModel[];
|
|
45
46
|
received_connections?: ConnectionModel[];
|
|
46
47
|
posted_reviews?: ReviewModel[];
|
|
48
|
+
businesses?: BusinessModel[];
|
|
47
49
|
}
|
|
48
50
|
//# sourceMappingURL=UserModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserModel.d.ts","sourceRoot":"","sources":["../../src/models/UserModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO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,CAAC,EAAE,SAAS,EAAE,CAAC;IAQpB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAS/B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAQzB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAQpB,eAAe,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAQzC,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IAQrC,oBAAoB,CAAC,EAAE,eAAe,EAAE,CAAC;IAQzC,cAAc,CAAC,EAAE,WAAW,EAAE,CAAC;IAQ/B,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;CAChC"}
|
package/dist/models/UserModel.js
CHANGED
|
@@ -25,6 +25,7 @@ const EventAttendanceModel_1 = require("./EventAttendanceModel");
|
|
|
25
25
|
const ConnectionModel_1 = require("./ConnectionModel");
|
|
26
26
|
const ReviewModel_1 = require("./ReviewModel");
|
|
27
27
|
const SubscriptionHistoryModel_1 = require("./SubscriptionHistoryModel");
|
|
28
|
+
const BusinessModel_1 = require("./BusinessModel");
|
|
28
29
|
let UserModel = class UserModel extends BaseModel_1.BaseModel {
|
|
29
30
|
full_name;
|
|
30
31
|
terms_and_conditions;
|
|
@@ -57,6 +58,7 @@ let UserModel = class UserModel extends BaseModel_1.BaseModel {
|
|
|
57
58
|
sent_connections;
|
|
58
59
|
received_connections;
|
|
59
60
|
posted_reviews;
|
|
61
|
+
businesses;
|
|
60
62
|
};
|
|
61
63
|
exports.UserModel = UserModel;
|
|
62
64
|
__decorate([
|
|
@@ -235,6 +237,13 @@ __decorate([
|
|
|
235
237
|
}),
|
|
236
238
|
__metadata("design:type", Array)
|
|
237
239
|
], UserModel.prototype, "posted_reviews", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, typeorm_1.OneToMany)(() => BusinessModel_1.BusinessModel, (business) => business.user, {
|
|
242
|
+
onDelete: "SET NULL",
|
|
243
|
+
onUpdate: "CASCADE",
|
|
244
|
+
}),
|
|
245
|
+
__metadata("design:type", Array)
|
|
246
|
+
], UserModel.prototype, "businesses", void 0);
|
|
238
247
|
exports.UserModel = UserModel = __decorate([
|
|
239
248
|
(0, typeorm_1.Entity)({ name: "users" }),
|
|
240
249
|
(0, typeorm_1.Index)(["email", "phone", "plan_id", "verification_token", "verification_otp", "reset_token", "reset_otp"])
|