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