@experts_hub/shared 1.0.291 → 1.0.293
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/user.entity.d.ts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -2
- package/dist/index.mjs +79 -80
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1635,7 +1635,7 @@ __decorateClass([
|
|
|
1635
1635
|
name: "city_code",
|
|
1636
1636
|
type: "varchar",
|
|
1637
1637
|
length: 100,
|
|
1638
|
-
nullable:
|
|
1638
|
+
nullable: true,
|
|
1639
1639
|
unique: true,
|
|
1640
1640
|
comment: "Code of the city"
|
|
1641
1641
|
})
|
|
@@ -1647,7 +1647,8 @@ __decorateClass([
|
|
|
1647
1647
|
length: 100,
|
|
1648
1648
|
nullable: false,
|
|
1649
1649
|
comment: "Name of the city"
|
|
1650
|
-
})
|
|
1650
|
+
}),
|
|
1651
|
+
(0, import_typeorm5.Index)()
|
|
1651
1652
|
], City.prototype, "cityName", 2);
|
|
1652
1653
|
__decorateClass([
|
|
1653
1654
|
(0, import_typeorm5.Column)({
|
|
@@ -3457,6 +3458,9 @@ __decorateClass([
|
|
|
3457
3458
|
__decorateClass([
|
|
3458
3459
|
(0, import_typeorm41.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3459
3460
|
], User.prototype, "isMobileVerified", 2);
|
|
3461
|
+
__decorateClass([
|
|
3462
|
+
(0, import_typeorm41.Column)({ name: "is_social", type: "boolean", default: false })
|
|
3463
|
+
], User.prototype, "isSocial", 2);
|
|
3460
3464
|
__decorateClass([
|
|
3461
3465
|
(0, import_typeorm41.Column)({
|
|
3462
3466
|
name: "last_login_at",
|
package/dist/index.mjs
CHANGED
|
@@ -1303,7 +1303,7 @@ import {
|
|
|
1303
1303
|
} from "class-validator";
|
|
1304
1304
|
|
|
1305
1305
|
// src/entities/rating.entity.ts
|
|
1306
|
-
import { Entity as Entity41, Column as Column42, ManyToOne as ManyToOne35, JoinColumn as JoinColumn35, Index as
|
|
1306
|
+
import { Entity as Entity41, Column as Column42, ManyToOne as ManyToOne35, JoinColumn as JoinColumn35, Index as Index35 } from "typeorm";
|
|
1307
1307
|
|
|
1308
1308
|
// src/entities/user.entity.ts
|
|
1309
1309
|
import {
|
|
@@ -1311,7 +1311,7 @@ import {
|
|
|
1311
1311
|
Column as Column41,
|
|
1312
1312
|
OneToMany as OneToMany15,
|
|
1313
1313
|
OneToOne,
|
|
1314
|
-
Index as
|
|
1314
|
+
Index as Index34,
|
|
1315
1315
|
ManyToOne as ManyToOne34,
|
|
1316
1316
|
JoinColumn as JoinColumn34
|
|
1317
1317
|
} from "typeorm";
|
|
@@ -1520,7 +1520,7 @@ Otp = __decorateClass([
|
|
|
1520
1520
|
import {
|
|
1521
1521
|
Entity as Entity7,
|
|
1522
1522
|
Column as Column8,
|
|
1523
|
-
Index as
|
|
1523
|
+
Index as Index3,
|
|
1524
1524
|
ManyToOne as ManyToOne6,
|
|
1525
1525
|
JoinColumn as JoinColumn6
|
|
1526
1526
|
} from "typeorm";
|
|
@@ -1542,12 +1542,7 @@ import {
|
|
|
1542
1542
|
} from "typeorm";
|
|
1543
1543
|
|
|
1544
1544
|
// src/entities/city.entity.ts
|
|
1545
|
-
import {
|
|
1546
|
-
Entity as Entity4,
|
|
1547
|
-
Column as Column5,
|
|
1548
|
-
ManyToOne as ManyToOne4,
|
|
1549
|
-
JoinColumn as JoinColumn4
|
|
1550
|
-
} from "typeorm";
|
|
1545
|
+
import { Entity as Entity4, Column as Column5, ManyToOne as ManyToOne4, JoinColumn as JoinColumn4, Index as Index2 } from "typeorm";
|
|
1551
1546
|
var City = class extends BaseEntity {
|
|
1552
1547
|
};
|
|
1553
1548
|
__decorateClass([
|
|
@@ -1579,7 +1574,7 @@ __decorateClass([
|
|
|
1579
1574
|
name: "city_code",
|
|
1580
1575
|
type: "varchar",
|
|
1581
1576
|
length: 100,
|
|
1582
|
-
nullable:
|
|
1577
|
+
nullable: true,
|
|
1583
1578
|
unique: true,
|
|
1584
1579
|
comment: "Code of the city"
|
|
1585
1580
|
})
|
|
@@ -1591,7 +1586,8 @@ __decorateClass([
|
|
|
1591
1586
|
length: 100,
|
|
1592
1587
|
nullable: false,
|
|
1593
1588
|
comment: "Name of the city"
|
|
1594
|
-
})
|
|
1589
|
+
}),
|
|
1590
|
+
Index2()
|
|
1595
1591
|
], City.prototype, "cityName", 2);
|
|
1596
1592
|
__decorateClass([
|
|
1597
1593
|
Column5({
|
|
@@ -1757,7 +1753,7 @@ var FreelancerProfile = class extends BaseEntity {
|
|
|
1757
1753
|
// individual index to find profile by user
|
|
1758
1754
|
__decorateClass([
|
|
1759
1755
|
Column8({ name: "user_id", type: "integer", nullable: true }),
|
|
1760
|
-
|
|
1756
|
+
Index3()
|
|
1761
1757
|
], FreelancerProfile.prototype, "userId", 2);
|
|
1762
1758
|
__decorateClass([
|
|
1763
1759
|
ManyToOne6(() => User, (user) => user.freelancerProfile),
|
|
@@ -1915,7 +1911,7 @@ FreelancerProfile = __decorateClass([
|
|
|
1915
1911
|
], FreelancerProfile);
|
|
1916
1912
|
|
|
1917
1913
|
// src/entities/company-profile.entity.ts
|
|
1918
|
-
import { Entity as Entity8, Column as Column9, ManyToOne as ManyToOne7, JoinColumn as JoinColumn7, Index as
|
|
1914
|
+
import { Entity as Entity8, Column as Column9, ManyToOne as ManyToOne7, JoinColumn as JoinColumn7, Index as Index4 } from "typeorm";
|
|
1919
1915
|
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
1920
1916
|
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
1921
1917
|
KindOfHire2["PARTTIME"] = "PARTTIME";
|
|
@@ -1945,7 +1941,7 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1945
1941
|
// individual index to find company profile by user
|
|
1946
1942
|
__decorateClass([
|
|
1947
1943
|
Column9({ name: "user_id", type: "integer", nullable: true }),
|
|
1948
|
-
|
|
1944
|
+
Index4()
|
|
1949
1945
|
], CompanyProfile.prototype, "userId", 2);
|
|
1950
1946
|
__decorateClass([
|
|
1951
1947
|
ManyToOne7(() => User, (user) => user.companyProfile),
|
|
@@ -2031,14 +2027,14 @@ CompanyProfile = __decorateClass([
|
|
|
2031
2027
|
import {
|
|
2032
2028
|
Entity as Entity15,
|
|
2033
2029
|
Column as Column16,
|
|
2034
|
-
Index as
|
|
2030
|
+
Index as Index10,
|
|
2035
2031
|
ManyToOne as ManyToOne13,
|
|
2036
2032
|
JoinColumn as JoinColumn13,
|
|
2037
2033
|
OneToMany as OneToMany7
|
|
2038
2034
|
} from "typeorm";
|
|
2039
2035
|
|
|
2040
2036
|
// src/entities/job-skill.entity.ts
|
|
2041
|
-
import { Entity as Entity10, Column as Column11, Index as
|
|
2037
|
+
import { Entity as Entity10, Column as Column11, Index as Index5, ManyToOne as ManyToOne8, JoinColumn as JoinColumn8 } from "typeorm";
|
|
2042
2038
|
|
|
2043
2039
|
// src/entities/skill.entity.ts
|
|
2044
2040
|
import { Entity as Entity9, Column as Column10, OneToMany as OneToMany4 } from "typeorm";
|
|
@@ -2065,7 +2061,7 @@ var JobSkill = class extends BaseEntity {
|
|
|
2065
2061
|
};
|
|
2066
2062
|
__decorateClass([
|
|
2067
2063
|
Column11({ name: "job_id", type: "integer" }),
|
|
2068
|
-
|
|
2064
|
+
Index5()
|
|
2069
2065
|
], JobSkill.prototype, "jobId", 2);
|
|
2070
2066
|
__decorateClass([
|
|
2071
2067
|
ManyToOne8(() => Job, (job) => job.jobSkills, { onDelete: "CASCADE" }),
|
|
@@ -2073,7 +2069,7 @@ __decorateClass([
|
|
|
2073
2069
|
], JobSkill.prototype, "job", 2);
|
|
2074
2070
|
__decorateClass([
|
|
2075
2071
|
Column11({ name: "skill_id", type: "integer" }),
|
|
2076
|
-
|
|
2072
|
+
Index5()
|
|
2077
2073
|
], JobSkill.prototype, "skillId", 2);
|
|
2078
2074
|
__decorateClass([
|
|
2079
2075
|
ManyToOne8(() => Skill, (skill) => skill.jobSkills, { onDelete: "CASCADE" }),
|
|
@@ -2087,7 +2083,7 @@ JobSkill = __decorateClass([
|
|
|
2087
2083
|
import {
|
|
2088
2084
|
Entity as Entity11,
|
|
2089
2085
|
Column as Column12,
|
|
2090
|
-
Index as
|
|
2086
|
+
Index as Index6,
|
|
2091
2087
|
ManyToOne as ManyToOne9,
|
|
2092
2088
|
JoinColumn as JoinColumn9
|
|
2093
2089
|
} from "typeorm";
|
|
@@ -2117,7 +2113,7 @@ __decorateClass([
|
|
|
2117
2113
|
], JobApplication.prototype, "jobApplicationId", 2);
|
|
2118
2114
|
__decorateClass([
|
|
2119
2115
|
Column12({ name: "job_id", type: "integer" }),
|
|
2120
|
-
|
|
2116
|
+
Index6()
|
|
2121
2117
|
], JobApplication.prototype, "jobId", 2);
|
|
2122
2118
|
__decorateClass([
|
|
2123
2119
|
ManyToOne9(() => Job, (job) => job.jobApplications, { onDelete: "CASCADE" }),
|
|
@@ -2125,7 +2121,7 @@ __decorateClass([
|
|
|
2125
2121
|
], JobApplication.prototype, "job", 2);
|
|
2126
2122
|
__decorateClass([
|
|
2127
2123
|
Column12({ name: "user_id", type: "integer" }),
|
|
2128
|
-
|
|
2124
|
+
Index6()
|
|
2129
2125
|
], JobApplication.prototype, "userId", 2);
|
|
2130
2126
|
__decorateClass([
|
|
2131
2127
|
ManyToOne9(() => User, (user) => user.jobApplications),
|
|
@@ -2209,19 +2205,19 @@ JobApplication = __decorateClass([
|
|
|
2209
2205
|
import {
|
|
2210
2206
|
Entity as Entity14,
|
|
2211
2207
|
Column as Column15,
|
|
2212
|
-
Index as
|
|
2208
|
+
Index as Index9,
|
|
2213
2209
|
ManyToOne as ManyToOne12,
|
|
2214
2210
|
JoinColumn as JoinColumn12,
|
|
2215
2211
|
OneToMany as OneToMany6
|
|
2216
2212
|
} from "typeorm";
|
|
2217
2213
|
|
|
2218
2214
|
// src/entities/interview-skill.entity.ts
|
|
2219
|
-
import { Entity as Entity12, Column as Column13, Index as
|
|
2215
|
+
import { Entity as Entity12, Column as Column13, Index as Index7, ManyToOne as ManyToOne10, JoinColumn as JoinColumn10 } from "typeorm";
|
|
2220
2216
|
var InterviewSkill = class extends BaseEntity {
|
|
2221
2217
|
};
|
|
2222
2218
|
__decorateClass([
|
|
2223
2219
|
Column13({ name: "interview_id", type: "integer" }),
|
|
2224
|
-
|
|
2220
|
+
Index7()
|
|
2225
2221
|
], InterviewSkill.prototype, "interviewId", 2);
|
|
2226
2222
|
__decorateClass([
|
|
2227
2223
|
ManyToOne10(() => Interview, (interview) => interview.interviewSkills, {
|
|
@@ -2243,12 +2239,12 @@ InterviewSkill = __decorateClass([
|
|
|
2243
2239
|
], InterviewSkill);
|
|
2244
2240
|
|
|
2245
2241
|
// src/entities/interview-question.entity.ts
|
|
2246
|
-
import { Entity as Entity13, Column as Column14, Index as
|
|
2242
|
+
import { Entity as Entity13, Column as Column14, Index as Index8, ManyToOne as ManyToOne11, JoinColumn as JoinColumn11 } from "typeorm";
|
|
2247
2243
|
var InterviewQuestion = class extends BaseEntity {
|
|
2248
2244
|
};
|
|
2249
2245
|
__decorateClass([
|
|
2250
2246
|
Column14({ name: "interview_id", type: "integer" }),
|
|
2251
|
-
|
|
2247
|
+
Index8()
|
|
2252
2248
|
], InterviewQuestion.prototype, "interviewId", 2);
|
|
2253
2249
|
__decorateClass([
|
|
2254
2250
|
ManyToOne11(() => Interview, (interview) => interview.interviewSkills, {
|
|
@@ -2284,11 +2280,11 @@ __decorateClass([
|
|
|
2284
2280
|
unique: true,
|
|
2285
2281
|
nullable: true
|
|
2286
2282
|
}),
|
|
2287
|
-
|
|
2283
|
+
Index9()
|
|
2288
2284
|
], Interview.prototype, "interviewId", 2);
|
|
2289
2285
|
__decorateClass([
|
|
2290
2286
|
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
2291
|
-
|
|
2287
|
+
Index9()
|
|
2292
2288
|
], Interview.prototype, "userId", 2);
|
|
2293
2289
|
__decorateClass([
|
|
2294
2290
|
ManyToOne12(() => User, (user) => user.interviews),
|
|
@@ -2299,7 +2295,7 @@ __decorateClass([
|
|
|
2299
2295
|
], Interview.prototype, "interviewName", 2);
|
|
2300
2296
|
__decorateClass([
|
|
2301
2297
|
Column15({ name: "job_id", type: "integer" }),
|
|
2302
|
-
|
|
2298
|
+
Index9()
|
|
2303
2299
|
], Interview.prototype, "jobId", 2);
|
|
2304
2300
|
__decorateClass([
|
|
2305
2301
|
ManyToOne12(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
@@ -2376,7 +2372,7 @@ __decorateClass([
|
|
|
2376
2372
|
// individual index to find jobs by user
|
|
2377
2373
|
__decorateClass([
|
|
2378
2374
|
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
2379
|
-
|
|
2375
|
+
Index10()
|
|
2380
2376
|
], Job.prototype, "userId", 2);
|
|
2381
2377
|
__decorateClass([
|
|
2382
2378
|
ManyToOne13(() => User, (user) => user.jobs),
|
|
@@ -2539,7 +2535,7 @@ Job = __decorateClass([
|
|
|
2539
2535
|
import {
|
|
2540
2536
|
Entity as Entity16,
|
|
2541
2537
|
Column as Column17,
|
|
2542
|
-
Index as
|
|
2538
|
+
Index as Index11,
|
|
2543
2539
|
ManyToOne as ManyToOne14,
|
|
2544
2540
|
JoinColumn as JoinColumn14
|
|
2545
2541
|
} from "typeorm";
|
|
@@ -2558,7 +2554,7 @@ var BankDetail = class extends BaseEntity {
|
|
|
2558
2554
|
// individual index to find bank details by user
|
|
2559
2555
|
__decorateClass([
|
|
2560
2556
|
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2561
|
-
|
|
2557
|
+
Index11()
|
|
2562
2558
|
], BankDetail.prototype, "userId", 2);
|
|
2563
2559
|
__decorateClass([
|
|
2564
2560
|
ManyToOne14(() => User, (user) => user.bankDetail),
|
|
@@ -2621,7 +2617,7 @@ BankDetail = __decorateClass([
|
|
|
2621
2617
|
import {
|
|
2622
2618
|
Entity as Entity17,
|
|
2623
2619
|
Column as Column18,
|
|
2624
|
-
Index as
|
|
2620
|
+
Index as Index12,
|
|
2625
2621
|
ManyToOne as ManyToOne15,
|
|
2626
2622
|
JoinColumn as JoinColumn15
|
|
2627
2623
|
} from "typeorm";
|
|
@@ -2630,7 +2626,7 @@ var SystemPreference = class extends BaseEntity {
|
|
|
2630
2626
|
// individual index to find system preference by user
|
|
2631
2627
|
__decorateClass([
|
|
2632
2628
|
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2633
|
-
|
|
2629
|
+
Index12()
|
|
2634
2630
|
], SystemPreference.prototype, "userId", 2);
|
|
2635
2631
|
__decorateClass([
|
|
2636
2632
|
ManyToOne15(() => User, (user) => user.systemPreference),
|
|
@@ -2650,7 +2646,7 @@ SystemPreference = __decorateClass([
|
|
|
2650
2646
|
import {
|
|
2651
2647
|
Entity as Entity18,
|
|
2652
2648
|
Column as Column19,
|
|
2653
|
-
Index as
|
|
2649
|
+
Index as Index13,
|
|
2654
2650
|
ManyToOne as ManyToOne16,
|
|
2655
2651
|
JoinColumn as JoinColumn16
|
|
2656
2652
|
} from "typeorm";
|
|
@@ -2659,7 +2655,7 @@ var FreelancerExperience = class extends BaseEntity {
|
|
|
2659
2655
|
// individual index to find experence by user
|
|
2660
2656
|
__decorateClass([
|
|
2661
2657
|
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2662
|
-
|
|
2658
|
+
Index13()
|
|
2663
2659
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2664
2660
|
__decorateClass([
|
|
2665
2661
|
ManyToOne16(() => User, (user) => user.freelancerExperience),
|
|
@@ -2685,7 +2681,7 @@ FreelancerExperience = __decorateClass([
|
|
|
2685
2681
|
import {
|
|
2686
2682
|
Entity as Entity19,
|
|
2687
2683
|
Column as Column20,
|
|
2688
|
-
Index as
|
|
2684
|
+
Index as Index14,
|
|
2689
2685
|
ManyToOne as ManyToOne17,
|
|
2690
2686
|
JoinColumn as JoinColumn17
|
|
2691
2687
|
} from "typeorm";
|
|
@@ -2694,7 +2690,7 @@ var FreelancerEducation = class extends BaseEntity {
|
|
|
2694
2690
|
// individual index to find education by user
|
|
2695
2691
|
__decorateClass([
|
|
2696
2692
|
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2697
|
-
|
|
2693
|
+
Index14()
|
|
2698
2694
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2699
2695
|
__decorateClass([
|
|
2700
2696
|
ManyToOne17(() => User, (user) => user.freelancerEducation),
|
|
@@ -2717,7 +2713,7 @@ FreelancerEducation = __decorateClass([
|
|
|
2717
2713
|
import {
|
|
2718
2714
|
Entity as Entity20,
|
|
2719
2715
|
Column as Column21,
|
|
2720
|
-
Index as
|
|
2716
|
+
Index as Index15,
|
|
2721
2717
|
ManyToOne as ManyToOne18,
|
|
2722
2718
|
JoinColumn as JoinColumn18
|
|
2723
2719
|
} from "typeorm";
|
|
@@ -2726,7 +2722,7 @@ var FreelancerProject = class extends BaseEntity {
|
|
|
2726
2722
|
// individual index to find project by user
|
|
2727
2723
|
__decorateClass([
|
|
2728
2724
|
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2729
|
-
|
|
2725
|
+
Index15()
|
|
2730
2726
|
], FreelancerProject.prototype, "userId", 2);
|
|
2731
2727
|
__decorateClass([
|
|
2732
2728
|
ManyToOne18(() => User, (user) => user.freelancerProject),
|
|
@@ -2758,7 +2754,7 @@ FreelancerProject = __decorateClass([
|
|
|
2758
2754
|
import {
|
|
2759
2755
|
Entity as Entity21,
|
|
2760
2756
|
Column as Column22,
|
|
2761
|
-
Index as
|
|
2757
|
+
Index as Index16,
|
|
2762
2758
|
ManyToOne as ManyToOne19,
|
|
2763
2759
|
JoinColumn as JoinColumn19
|
|
2764
2760
|
} from "typeorm";
|
|
@@ -2767,7 +2763,7 @@ var FreelancerCaseStudy = class extends BaseEntity {
|
|
|
2767
2763
|
// individual index to find case study by user
|
|
2768
2764
|
__decorateClass([
|
|
2769
2765
|
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2770
|
-
|
|
2766
|
+
Index16()
|
|
2771
2767
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2772
2768
|
__decorateClass([
|
|
2773
2769
|
ManyToOne19(() => User, (user) => user.freelancerCaseStudy),
|
|
@@ -2790,7 +2786,7 @@ FreelancerCaseStudy = __decorateClass([
|
|
|
2790
2786
|
import {
|
|
2791
2787
|
Entity as Entity22,
|
|
2792
2788
|
Column as Column23,
|
|
2793
|
-
Index as
|
|
2789
|
+
Index as Index17,
|
|
2794
2790
|
ManyToOne as ManyToOne20,
|
|
2795
2791
|
JoinColumn as JoinColumn20
|
|
2796
2792
|
} from "typeorm";
|
|
@@ -2799,7 +2795,7 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
2799
2795
|
// individual index to find core skills by user
|
|
2800
2796
|
__decorateClass([
|
|
2801
2797
|
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2802
|
-
|
|
2798
|
+
Index17()
|
|
2803
2799
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2804
2800
|
__decorateClass([
|
|
2805
2801
|
ManyToOne20(() => User, (user) => user.freelancerSkills),
|
|
@@ -2816,7 +2812,7 @@ FreelancerSkill = __decorateClass([
|
|
|
2816
2812
|
import {
|
|
2817
2813
|
Entity as Entity23,
|
|
2818
2814
|
Column as Column24,
|
|
2819
|
-
Index as
|
|
2815
|
+
Index as Index18,
|
|
2820
2816
|
ManyToOne as ManyToOne21,
|
|
2821
2817
|
JoinColumn as JoinColumn21
|
|
2822
2818
|
} from "typeorm";
|
|
@@ -2825,7 +2821,7 @@ var FreelancerTool = class extends BaseEntity {
|
|
|
2825
2821
|
// individual index to find tool by user
|
|
2826
2822
|
__decorateClass([
|
|
2827
2823
|
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
2828
|
-
|
|
2824
|
+
Index18()
|
|
2829
2825
|
], FreelancerTool.prototype, "userId", 2);
|
|
2830
2826
|
__decorateClass([
|
|
2831
2827
|
ManyToOne21(() => User, (user) => user.freelancerTool),
|
|
@@ -2842,7 +2838,7 @@ FreelancerTool = __decorateClass([
|
|
|
2842
2838
|
import {
|
|
2843
2839
|
Entity as Entity24,
|
|
2844
2840
|
Column as Column25,
|
|
2845
|
-
Index as
|
|
2841
|
+
Index as Index19,
|
|
2846
2842
|
ManyToOne as ManyToOne22,
|
|
2847
2843
|
JoinColumn as JoinColumn22
|
|
2848
2844
|
} from "typeorm";
|
|
@@ -2851,7 +2847,7 @@ var FreelancerFramework = class extends BaseEntity {
|
|
|
2851
2847
|
// individual index to find framework by user
|
|
2852
2848
|
__decorateClass([
|
|
2853
2849
|
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
2854
|
-
|
|
2850
|
+
Index19()
|
|
2855
2851
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2856
2852
|
__decorateClass([
|
|
2857
2853
|
ManyToOne22(() => User, (user) => user.freelancerFramework),
|
|
@@ -2868,7 +2864,7 @@ FreelancerFramework = __decorateClass([
|
|
|
2868
2864
|
import {
|
|
2869
2865
|
Entity as Entity25,
|
|
2870
2866
|
Column as Column26,
|
|
2871
|
-
Index as
|
|
2867
|
+
Index as Index20,
|
|
2872
2868
|
ManyToOne as ManyToOne23,
|
|
2873
2869
|
JoinColumn as JoinColumn23
|
|
2874
2870
|
} from "typeorm";
|
|
@@ -2888,7 +2884,7 @@ var FreelancerAssessment = class extends BaseEntity {
|
|
|
2888
2884
|
};
|
|
2889
2885
|
__decorateClass([
|
|
2890
2886
|
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
2891
|
-
|
|
2887
|
+
Index20()
|
|
2892
2888
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2893
2889
|
__decorateClass([
|
|
2894
2890
|
ManyToOne23(() => User, (user) => user.assessments),
|
|
@@ -2925,7 +2921,7 @@ FreelancerAssessment = __decorateClass([
|
|
|
2925
2921
|
import {
|
|
2926
2922
|
Entity as Entity26,
|
|
2927
2923
|
Column as Column27,
|
|
2928
|
-
Index as
|
|
2924
|
+
Index as Index21,
|
|
2929
2925
|
ManyToOne as ManyToOne24,
|
|
2930
2926
|
JoinColumn as JoinColumn24
|
|
2931
2927
|
} from "typeorm";
|
|
@@ -2941,7 +2937,7 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2941
2937
|
// individual index to find declaration by user
|
|
2942
2938
|
__decorateClass([
|
|
2943
2939
|
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
2944
|
-
|
|
2940
|
+
Index21()
|
|
2945
2941
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2946
2942
|
__decorateClass([
|
|
2947
2943
|
ManyToOne24(() => User, (user) => user.freelancerDeclaration),
|
|
@@ -2977,14 +2973,14 @@ import {
|
|
|
2977
2973
|
Entity as Entity30,
|
|
2978
2974
|
ManyToOne as ManyToOne27,
|
|
2979
2975
|
JoinColumn as JoinColumn27,
|
|
2980
|
-
Index as
|
|
2976
|
+
Index as Index25
|
|
2981
2977
|
} from "typeorm";
|
|
2982
2978
|
|
|
2983
2979
|
// src/entities/company-role.entity.ts
|
|
2984
2980
|
import {
|
|
2985
2981
|
Column as Column30,
|
|
2986
2982
|
Entity as Entity29,
|
|
2987
|
-
Index as
|
|
2983
|
+
Index as Index24,
|
|
2988
2984
|
JoinColumn as JoinColumn26,
|
|
2989
2985
|
ManyToOne as ManyToOne26,
|
|
2990
2986
|
OneToMany as OneToMany9
|
|
@@ -2996,11 +2992,11 @@ import {
|
|
|
2996
2992
|
Entity as Entity28,
|
|
2997
2993
|
ManyToOne as ManyToOne25,
|
|
2998
2994
|
JoinColumn as JoinColumn25,
|
|
2999
|
-
Index as
|
|
2995
|
+
Index as Index23
|
|
3000
2996
|
} from "typeorm";
|
|
3001
2997
|
|
|
3002
2998
|
// src/entities/permission.entity.ts
|
|
3003
|
-
import { Column as Column28, Entity as Entity27, Index as
|
|
2999
|
+
import { Column as Column28, Entity as Entity27, Index as Index22 } from "typeorm";
|
|
3004
3000
|
var Permission = class extends BaseEntity {
|
|
3005
3001
|
};
|
|
3006
3002
|
__decorateClass([
|
|
@@ -3008,7 +3004,7 @@ __decorateClass([
|
|
|
3008
3004
|
], Permission.prototype, "name", 2);
|
|
3009
3005
|
__decorateClass([
|
|
3010
3006
|
Column28({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3011
|
-
|
|
3007
|
+
Index22()
|
|
3012
3008
|
], Permission.prototype, "slug", 2);
|
|
3013
3009
|
__decorateClass([
|
|
3014
3010
|
Column28({ name: "description", type: "text", nullable: true })
|
|
@@ -3025,7 +3021,7 @@ var CompanyRolePermission = class extends BaseEntity {
|
|
|
3025
3021
|
};
|
|
3026
3022
|
__decorateClass([
|
|
3027
3023
|
Column29({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3028
|
-
|
|
3024
|
+
Index23()
|
|
3029
3025
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3030
3026
|
__decorateClass([
|
|
3031
3027
|
ManyToOne25(() => CompanyRole, (role) => role.rolePermissions, {
|
|
@@ -3035,7 +3031,7 @@ __decorateClass([
|
|
|
3035
3031
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3036
3032
|
__decorateClass([
|
|
3037
3033
|
Column29({ name: "permission_id", type: "integer" }),
|
|
3038
|
-
|
|
3034
|
+
Index23()
|
|
3039
3035
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3040
3036
|
__decorateClass([
|
|
3041
3037
|
ManyToOne25(() => Permission, { onDelete: "CASCADE" }),
|
|
@@ -3053,7 +3049,7 @@ var CompanyRole = class extends BaseEntity {
|
|
|
3053
3049
|
};
|
|
3054
3050
|
__decorateClass([
|
|
3055
3051
|
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
3056
|
-
|
|
3052
|
+
Index24()
|
|
3057
3053
|
], CompanyRole.prototype, "userId", 2);
|
|
3058
3054
|
__decorateClass([
|
|
3059
3055
|
ManyToOne26(() => User, (user) => user.otps),
|
|
@@ -3064,7 +3060,7 @@ __decorateClass([
|
|
|
3064
3060
|
], CompanyRole.prototype, "name", 2);
|
|
3065
3061
|
__decorateClass([
|
|
3066
3062
|
Column30({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3067
|
-
|
|
3063
|
+
Index24()
|
|
3068
3064
|
], CompanyRole.prototype, "slug", 2);
|
|
3069
3065
|
__decorateClass([
|
|
3070
3066
|
Column30({ name: "description", type: "text", nullable: true })
|
|
@@ -3084,7 +3080,7 @@ var CompanyMemberRole = class extends BaseEntity {
|
|
|
3084
3080
|
};
|
|
3085
3081
|
__decorateClass([
|
|
3086
3082
|
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3087
|
-
|
|
3083
|
+
Index25()
|
|
3088
3084
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3089
3085
|
__decorateClass([
|
|
3090
3086
|
ManyToOne27(() => User),
|
|
@@ -3096,7 +3092,7 @@ __decorateClass([
|
|
|
3096
3092
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3097
3093
|
__decorateClass([
|
|
3098
3094
|
Column31({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3099
|
-
|
|
3095
|
+
Index25()
|
|
3100
3096
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3101
3097
|
__decorateClass([
|
|
3102
3098
|
Column31({ name: "assigned_by", type: "integer", nullable: true })
|
|
@@ -3110,7 +3106,7 @@ import {
|
|
|
3110
3106
|
Entity as Entity33,
|
|
3111
3107
|
Column as Column34,
|
|
3112
3108
|
ManyToOne as ManyToOne29,
|
|
3113
|
-
Index as
|
|
3109
|
+
Index as Index27,
|
|
3114
3110
|
JoinColumn as JoinColumn29
|
|
3115
3111
|
} from "typeorm";
|
|
3116
3112
|
|
|
@@ -3123,7 +3119,7 @@ import {
|
|
|
3123
3119
|
Column as Column32,
|
|
3124
3120
|
OneToMany as OneToMany10,
|
|
3125
3121
|
ManyToOne as ManyToOne28,
|
|
3126
|
-
Index as
|
|
3122
|
+
Index as Index26,
|
|
3127
3123
|
JoinColumn as JoinColumn28
|
|
3128
3124
|
} from "typeorm";
|
|
3129
3125
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
@@ -3136,7 +3132,7 @@ var AssessmetQuestionOption = class extends BaseEntity {
|
|
|
3136
3132
|
};
|
|
3137
3133
|
__decorateClass([
|
|
3138
3134
|
Column32({ name: "question_id", type: "integer", nullable: true }),
|
|
3139
|
-
|
|
3135
|
+
Index26()
|
|
3140
3136
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3141
3137
|
__decorateClass([
|
|
3142
3138
|
ManyToOne28(
|
|
@@ -3209,7 +3205,7 @@ var AssessmentAnswer = class extends BaseEntity {
|
|
|
3209
3205
|
};
|
|
3210
3206
|
__decorateClass([
|
|
3211
3207
|
Column34({ name: "user_id", type: "integer" }),
|
|
3212
|
-
|
|
3208
|
+
Index27()
|
|
3213
3209
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3214
3210
|
__decorateClass([
|
|
3215
3211
|
ManyToOne29(() => User, (user) => user.assessmentAnswers),
|
|
@@ -3217,7 +3213,7 @@ __decorateClass([
|
|
|
3217
3213
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3218
3214
|
__decorateClass([
|
|
3219
3215
|
Column34({ name: "question_id", type: "integer" }),
|
|
3220
|
-
|
|
3216
|
+
Index27()
|
|
3221
3217
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3222
3218
|
__decorateClass([
|
|
3223
3219
|
ManyToOne29(
|
|
@@ -3228,7 +3224,7 @@ __decorateClass([
|
|
|
3228
3224
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3229
3225
|
__decorateClass([
|
|
3230
3226
|
Column34({ name: "selected_option_id", type: "integer" }),
|
|
3231
|
-
|
|
3227
|
+
Index27()
|
|
3232
3228
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3233
3229
|
__decorateClass([
|
|
3234
3230
|
ManyToOne29(
|
|
@@ -3252,13 +3248,13 @@ AssessmentAnswer = __decorateClass([
|
|
|
3252
3248
|
], AssessmentAnswer);
|
|
3253
3249
|
|
|
3254
3250
|
// src/entities/company-skill.entity.ts
|
|
3255
|
-
import { Entity as Entity34, Column as Column35, Index as
|
|
3251
|
+
import { Entity as Entity34, Column as Column35, Index as Index28, ManyToOne as ManyToOne30, JoinColumn as JoinColumn30 } from "typeorm";
|
|
3256
3252
|
var CompanySkill = class extends BaseEntity {
|
|
3257
3253
|
};
|
|
3258
3254
|
// individual index to find core skills by user
|
|
3259
3255
|
__decorateClass([
|
|
3260
3256
|
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3261
|
-
|
|
3257
|
+
Index28()
|
|
3262
3258
|
], CompanySkill.prototype, "userId", 2);
|
|
3263
3259
|
__decorateClass([
|
|
3264
3260
|
ManyToOne30(() => User, (user) => user.freelancerSkills),
|
|
@@ -3275,13 +3271,13 @@ CompanySkill = __decorateClass([
|
|
|
3275
3271
|
import { Entity as Entity38, Column as Column39, ManyToOne as ManyToOne32, JoinColumn as JoinColumn32 } from "typeorm";
|
|
3276
3272
|
|
|
3277
3273
|
// src/entities/admin-role.entity.ts
|
|
3278
|
-
import { Entity as Entity37, Column as Column38, Index as
|
|
3274
|
+
import { Entity as Entity37, Column as Column38, Index as Index31, OneToMany as OneToMany14 } from "typeorm";
|
|
3279
3275
|
|
|
3280
3276
|
// src/entities/admin-role-permission.entity.ts
|
|
3281
3277
|
import { Entity as Entity36, Column as Column37, ManyToOne as ManyToOne31, JoinColumn as JoinColumn31 } from "typeorm";
|
|
3282
3278
|
|
|
3283
3279
|
// src/entities/admin-permission.entity.ts
|
|
3284
|
-
import { Entity as Entity35, Column as Column36, Index as
|
|
3280
|
+
import { Entity as Entity35, Column as Column36, Index as Index29, OneToMany as OneToMany13 } from "typeorm";
|
|
3285
3281
|
var AdminPermission = class extends BaseEntity {
|
|
3286
3282
|
};
|
|
3287
3283
|
__decorateClass([
|
|
@@ -3294,7 +3290,7 @@ __decorateClass([
|
|
|
3294
3290
|
unique: true,
|
|
3295
3291
|
nullable: true
|
|
3296
3292
|
}),
|
|
3297
|
-
|
|
3293
|
+
Index29()
|
|
3298
3294
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3299
3295
|
__decorateClass([
|
|
3300
3296
|
Column36({ name: "permission_description", type: "varchar", nullable: true })
|
|
@@ -3354,7 +3350,7 @@ __decorateClass([
|
|
|
3354
3350
|
], AdminRole.prototype, "roleName", 2);
|
|
3355
3351
|
__decorateClass([
|
|
3356
3352
|
Column38({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3357
|
-
|
|
3353
|
+
Index31()
|
|
3358
3354
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3359
3355
|
__decorateClass([
|
|
3360
3356
|
Column38({ name: "role_description", type: "varchar", nullable: true })
|
|
@@ -3410,7 +3406,7 @@ AdminUserRole = __decorateClass([
|
|
|
3410
3406
|
import {
|
|
3411
3407
|
Entity as Entity39,
|
|
3412
3408
|
Column as Column40,
|
|
3413
|
-
Index as
|
|
3409
|
+
Index as Index33,
|
|
3414
3410
|
ManyToOne as ManyToOne33,
|
|
3415
3411
|
JoinColumn as JoinColumn33
|
|
3416
3412
|
} from "typeorm";
|
|
@@ -3419,7 +3415,7 @@ var FreelancerResume = class extends BaseEntity {
|
|
|
3419
3415
|
// individual index to find profile by user
|
|
3420
3416
|
__decorateClass([
|
|
3421
3417
|
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
3422
|
-
|
|
3418
|
+
Index33()
|
|
3423
3419
|
], FreelancerResume.prototype, "userId", 2);
|
|
3424
3420
|
__decorateClass([
|
|
3425
3421
|
ManyToOne33(() => User, (user) => user.freelancerProfile),
|
|
@@ -3464,7 +3460,7 @@ __decorateClass([
|
|
|
3464
3460
|
], User.prototype, "uniqueId", 2);
|
|
3465
3461
|
__decorateClass([
|
|
3466
3462
|
Column41({ name: "parent_id", type: "integer", nullable: true }),
|
|
3467
|
-
|
|
3463
|
+
Index34()
|
|
3468
3464
|
], User.prototype, "parentId", 2);
|
|
3469
3465
|
__decorateClass([
|
|
3470
3466
|
ManyToOne34(() => User, (user) => user.children, { nullable: true }),
|
|
@@ -3525,6 +3521,9 @@ __decorateClass([
|
|
|
3525
3521
|
__decorateClass([
|
|
3526
3522
|
Column41({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3527
3523
|
], User.prototype, "isMobileVerified", 2);
|
|
3524
|
+
__decorateClass([
|
|
3525
|
+
Column41({ name: "is_social", type: "boolean", default: false })
|
|
3526
|
+
], User.prototype, "isSocial", 2);
|
|
3528
3527
|
__decorateClass([
|
|
3529
3528
|
Column41({
|
|
3530
3529
|
name: "last_login_at",
|
|
@@ -3658,7 +3657,7 @@ var Rating = class extends BaseEntity {
|
|
|
3658
3657
|
};
|
|
3659
3658
|
__decorateClass([
|
|
3660
3659
|
Column42({ name: "reviewer_id", type: "integer" }),
|
|
3661
|
-
|
|
3660
|
+
Index35()
|
|
3662
3661
|
], Rating.prototype, "reviewer_id", 2);
|
|
3663
3662
|
__decorateClass([
|
|
3664
3663
|
ManyToOne35(() => User, { onDelete: "CASCADE" }),
|
|
@@ -3666,7 +3665,7 @@ __decorateClass([
|
|
|
3666
3665
|
], Rating.prototype, "reviewer", 2);
|
|
3667
3666
|
__decorateClass([
|
|
3668
3667
|
Column42({ name: "reviewee_id", type: "integer" }),
|
|
3669
|
-
|
|
3668
|
+
Index35()
|
|
3670
3669
|
], Rating.prototype, "reviewee_id", 2);
|
|
3671
3670
|
__decorateClass([
|
|
3672
3671
|
ManyToOne35(() => User, { onDelete: "CASCADE" }),
|