@experts_hub/shared 1.0.320 → 1.0.321
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/index.d.ts +1 -0
- package/dist/entities/job-recommendation.entity.d.ts +10 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +546 -502
- package/dist/index.mjs +516 -467
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1384,17 +1384,17 @@ import {
|
|
|
1384
1384
|
} from "class-validator";
|
|
1385
1385
|
|
|
1386
1386
|
// src/entities/rating.entity.ts
|
|
1387
|
-
import { Entity as
|
|
1387
|
+
import { Entity as Entity42, Column as Column43, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37, Index as Index37 } from "typeorm";
|
|
1388
1388
|
|
|
1389
1389
|
// src/entities/user.entity.ts
|
|
1390
1390
|
import {
|
|
1391
|
-
Entity as
|
|
1392
|
-
Column as
|
|
1391
|
+
Entity as Entity41,
|
|
1392
|
+
Column as Column42,
|
|
1393
1393
|
OneToMany as OneToMany14,
|
|
1394
1394
|
OneToOne,
|
|
1395
|
-
Index as
|
|
1396
|
-
ManyToOne as
|
|
1397
|
-
JoinColumn as
|
|
1395
|
+
Index as Index36,
|
|
1396
|
+
ManyToOne as ManyToOne36,
|
|
1397
|
+
JoinColumn as JoinColumn36
|
|
1398
1398
|
} from "typeorm";
|
|
1399
1399
|
|
|
1400
1400
|
// src/entities/base.entity.ts
|
|
@@ -2106,11 +2106,11 @@ CompanyProfile = __decorateClass([
|
|
|
2106
2106
|
|
|
2107
2107
|
// src/entities/job.entity.ts
|
|
2108
2108
|
import {
|
|
2109
|
-
Entity as
|
|
2110
|
-
Column as
|
|
2111
|
-
Index as
|
|
2112
|
-
ManyToOne as
|
|
2113
|
-
JoinColumn as
|
|
2109
|
+
Entity as Entity16,
|
|
2110
|
+
Column as Column17,
|
|
2111
|
+
Index as Index12,
|
|
2112
|
+
ManyToOne as ManyToOne15,
|
|
2113
|
+
JoinColumn as JoinColumn15,
|
|
2114
2114
|
OneToMany as OneToMany6
|
|
2115
2115
|
} from "typeorm";
|
|
2116
2116
|
|
|
@@ -2486,6 +2486,49 @@ Interview = __decorateClass([
|
|
|
2486
2486
|
Entity14("interviews")
|
|
2487
2487
|
], Interview);
|
|
2488
2488
|
|
|
2489
|
+
// src/entities/job-recommendation.entity.ts
|
|
2490
|
+
import {
|
|
2491
|
+
Entity as Entity15,
|
|
2492
|
+
Column as Column16,
|
|
2493
|
+
Index as Index11,
|
|
2494
|
+
ManyToOne as ManyToOne14,
|
|
2495
|
+
JoinColumn as JoinColumn14
|
|
2496
|
+
} from "typeorm";
|
|
2497
|
+
var JobRecommendation = class {
|
|
2498
|
+
};
|
|
2499
|
+
__decorateClass([
|
|
2500
|
+
Column16({ name: "job_id", type: "integer" }),
|
|
2501
|
+
Index11()
|
|
2502
|
+
], JobRecommendation.prototype, "jobId", 2);
|
|
2503
|
+
__decorateClass([
|
|
2504
|
+
ManyToOne14(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2505
|
+
JoinColumn14({ name: "job_id" })
|
|
2506
|
+
], JobRecommendation.prototype, "job", 2);
|
|
2507
|
+
__decorateClass([
|
|
2508
|
+
Column16({ name: "freelancer_id", type: "integer" }),
|
|
2509
|
+
Index11()
|
|
2510
|
+
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2511
|
+
__decorateClass([
|
|
2512
|
+
Column16({ name: "client_id", type: "integer" }),
|
|
2513
|
+
Index11()
|
|
2514
|
+
], JobRecommendation.prototype, "clientId", 2);
|
|
2515
|
+
__decorateClass([
|
|
2516
|
+
Column16({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2517
|
+
], JobRecommendation.prototype, "matchScore", 2);
|
|
2518
|
+
__decorateClass([
|
|
2519
|
+
Column16({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2520
|
+
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2521
|
+
__decorateClass([
|
|
2522
|
+
Column16({
|
|
2523
|
+
name: "last_calculated_at",
|
|
2524
|
+
type: "timestamp with local time zone",
|
|
2525
|
+
nullable: true
|
|
2526
|
+
})
|
|
2527
|
+
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2528
|
+
JobRecommendation = __decorateClass([
|
|
2529
|
+
Entity15("job_recommendations")
|
|
2530
|
+
], JobRecommendation);
|
|
2531
|
+
|
|
2489
2532
|
// src/entities/job.entity.ts
|
|
2490
2533
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
2491
2534
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -2523,49 +2566,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2523
2566
|
var Job = class extends BaseEntity {
|
|
2524
2567
|
};
|
|
2525
2568
|
__decorateClass([
|
|
2526
|
-
|
|
2569
|
+
Column17({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2527
2570
|
], Job.prototype, "jobId", 2);
|
|
2528
2571
|
// individual index to find jobs by user
|
|
2529
2572
|
__decorateClass([
|
|
2530
|
-
|
|
2531
|
-
|
|
2573
|
+
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2574
|
+
Index12()
|
|
2532
2575
|
], Job.prototype, "userId", 2);
|
|
2533
2576
|
__decorateClass([
|
|
2534
|
-
|
|
2535
|
-
|
|
2577
|
+
ManyToOne15(() => User, (user) => user.jobs),
|
|
2578
|
+
JoinColumn15({ name: "user_id" })
|
|
2536
2579
|
], Job.prototype, "user", 2);
|
|
2537
2580
|
__decorateClass([
|
|
2538
|
-
|
|
2581
|
+
Column17({ name: "country_id", type: "int", nullable: true })
|
|
2539
2582
|
], Job.prototype, "countryId", 2);
|
|
2540
2583
|
__decorateClass([
|
|
2541
|
-
|
|
2542
|
-
|
|
2584
|
+
ManyToOne15(() => Country),
|
|
2585
|
+
JoinColumn15({ name: "country_id" })
|
|
2543
2586
|
], Job.prototype, "country", 2);
|
|
2544
2587
|
__decorateClass([
|
|
2545
|
-
|
|
2588
|
+
Column17({ name: "state_id", type: "int", nullable: true })
|
|
2546
2589
|
], Job.prototype, "stateId", 2);
|
|
2547
2590
|
__decorateClass([
|
|
2548
|
-
|
|
2549
|
-
|
|
2591
|
+
ManyToOne15(() => State),
|
|
2592
|
+
JoinColumn15({ name: "state_id" })
|
|
2550
2593
|
], Job.prototype, "state", 2);
|
|
2551
2594
|
__decorateClass([
|
|
2552
|
-
|
|
2595
|
+
Column17({ name: "city_id", type: "int", nullable: true })
|
|
2553
2596
|
], Job.prototype, "cityId", 2);
|
|
2554
2597
|
__decorateClass([
|
|
2555
|
-
|
|
2556
|
-
|
|
2598
|
+
ManyToOne15(() => City),
|
|
2599
|
+
JoinColumn15({ name: "city_id" })
|
|
2557
2600
|
], Job.prototype, "city", 2);
|
|
2558
2601
|
__decorateClass([
|
|
2559
|
-
|
|
2602
|
+
Column17({ name: "job_role", type: "varchar", nullable: true })
|
|
2560
2603
|
], Job.prototype, "jobRole", 2);
|
|
2561
2604
|
__decorateClass([
|
|
2562
|
-
|
|
2605
|
+
Column17({ name: "note", type: "varchar", nullable: true })
|
|
2563
2606
|
], Job.prototype, "note", 2);
|
|
2564
2607
|
__decorateClass([
|
|
2565
|
-
|
|
2608
|
+
Column17({ name: "openings", type: "integer", default: 0 })
|
|
2566
2609
|
], Job.prototype, "openings", 2);
|
|
2567
2610
|
__decorateClass([
|
|
2568
|
-
|
|
2611
|
+
Column17({
|
|
2569
2612
|
name: "location",
|
|
2570
2613
|
type: "enum",
|
|
2571
2614
|
enum: JobLocationEnum,
|
|
@@ -2573,7 +2616,7 @@ __decorateClass([
|
|
|
2573
2616
|
})
|
|
2574
2617
|
], Job.prototype, "location", 2);
|
|
2575
2618
|
__decorateClass([
|
|
2576
|
-
|
|
2619
|
+
Column17({
|
|
2577
2620
|
name: "type_of_employment",
|
|
2578
2621
|
type: "enum",
|
|
2579
2622
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2581,19 +2624,19 @@ __decorateClass([
|
|
|
2581
2624
|
})
|
|
2582
2625
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2583
2626
|
__decorateClass([
|
|
2584
|
-
|
|
2627
|
+
Column17({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2585
2628
|
], Job.prototype, "academicQualification", 2);
|
|
2586
2629
|
__decorateClass([
|
|
2587
|
-
|
|
2630
|
+
Column17({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2588
2631
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2589
2632
|
__decorateClass([
|
|
2590
|
-
|
|
2633
|
+
Column17({ name: "business_industry", type: "varchar", nullable: true })
|
|
2591
2634
|
], Job.prototype, "businessIndustry", 2);
|
|
2592
2635
|
__decorateClass([
|
|
2593
|
-
|
|
2636
|
+
Column17({ name: "currency", type: "varchar", default: "USD" })
|
|
2594
2637
|
], Job.prototype, "currency", 2);
|
|
2595
2638
|
__decorateClass([
|
|
2596
|
-
|
|
2639
|
+
Column17({
|
|
2597
2640
|
name: "expected_salary_from",
|
|
2598
2641
|
type: "decimal",
|
|
2599
2642
|
precision: 10,
|
|
@@ -2602,7 +2645,7 @@ __decorateClass([
|
|
|
2602
2645
|
})
|
|
2603
2646
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2604
2647
|
__decorateClass([
|
|
2605
|
-
|
|
2648
|
+
Column17({
|
|
2606
2649
|
name: "expected_salary_to",
|
|
2607
2650
|
type: "decimal",
|
|
2608
2651
|
precision: 10,
|
|
@@ -2611,16 +2654,16 @@ __decorateClass([
|
|
|
2611
2654
|
})
|
|
2612
2655
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2613
2656
|
__decorateClass([
|
|
2614
|
-
|
|
2657
|
+
Column17({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2615
2658
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2616
2659
|
__decorateClass([
|
|
2617
|
-
|
|
2660
|
+
Column17({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2618
2661
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2619
2662
|
__decorateClass([
|
|
2620
|
-
|
|
2663
|
+
Column17({ name: "duration", type: "varchar", nullable: true })
|
|
2621
2664
|
], Job.prototype, "duration", 2);
|
|
2622
2665
|
__decorateClass([
|
|
2623
|
-
|
|
2666
|
+
Column17({
|
|
2624
2667
|
name: "duration_type",
|
|
2625
2668
|
type: "enum",
|
|
2626
2669
|
enum: DurationTypeEnum,
|
|
@@ -2628,13 +2671,13 @@ __decorateClass([
|
|
|
2628
2671
|
})
|
|
2629
2672
|
], Job.prototype, "durationType", 2);
|
|
2630
2673
|
__decorateClass([
|
|
2631
|
-
|
|
2674
|
+
Column17({ name: "description", type: "varchar", nullable: true })
|
|
2632
2675
|
], Job.prototype, "description", 2);
|
|
2633
2676
|
__decorateClass([
|
|
2634
|
-
|
|
2677
|
+
Column17({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2635
2678
|
], Job.prototype, "additionalComment", 2);
|
|
2636
2679
|
__decorateClass([
|
|
2637
|
-
|
|
2680
|
+
Column17({
|
|
2638
2681
|
name: "onboarding_tat",
|
|
2639
2682
|
type: "varchar",
|
|
2640
2683
|
length: 50,
|
|
@@ -2642,14 +2685,14 @@ __decorateClass([
|
|
|
2642
2685
|
})
|
|
2643
2686
|
], Job.prototype, "onboardingTat", 2);
|
|
2644
2687
|
__decorateClass([
|
|
2645
|
-
|
|
2688
|
+
Column17({
|
|
2646
2689
|
name: "candidate_communication_skills",
|
|
2647
2690
|
type: "varchar",
|
|
2648
2691
|
nullable: true
|
|
2649
2692
|
})
|
|
2650
2693
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2651
2694
|
__decorateClass([
|
|
2652
|
-
|
|
2695
|
+
Column17({
|
|
2653
2696
|
name: "step_completed",
|
|
2654
2697
|
type: "enum",
|
|
2655
2698
|
enum: Step,
|
|
@@ -2657,7 +2700,7 @@ __decorateClass([
|
|
|
2657
2700
|
})
|
|
2658
2701
|
], Job.prototype, "stepCompleted", 2);
|
|
2659
2702
|
__decorateClass([
|
|
2660
|
-
|
|
2703
|
+
Column17({
|
|
2661
2704
|
name: "status",
|
|
2662
2705
|
type: "enum",
|
|
2663
2706
|
enum: JobStatusEnum,
|
|
@@ -2665,10 +2708,10 @@ __decorateClass([
|
|
|
2665
2708
|
})
|
|
2666
2709
|
], Job.prototype, "status", 2);
|
|
2667
2710
|
__decorateClass([
|
|
2668
|
-
|
|
2711
|
+
Column17({ name: "viewed_count", type: "integer", default: 0 })
|
|
2669
2712
|
], Job.prototype, "viewedCount", 2);
|
|
2670
2713
|
__decorateClass([
|
|
2671
|
-
|
|
2714
|
+
Column17({ name: "application_count", type: "integer", default: 0 })
|
|
2672
2715
|
], Job.prototype, "applicationCount", 2);
|
|
2673
2716
|
__decorateClass([
|
|
2674
2717
|
OneToMany6(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -2683,17 +2726,22 @@ __decorateClass([
|
|
|
2683
2726
|
cascade: true
|
|
2684
2727
|
})
|
|
2685
2728
|
], Job.prototype, "interviews", 2);
|
|
2729
|
+
__decorateClass([
|
|
2730
|
+
OneToMany6(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
2731
|
+
cascade: true
|
|
2732
|
+
})
|
|
2733
|
+
], Job.prototype, "recommendations", 2);
|
|
2686
2734
|
Job = __decorateClass([
|
|
2687
|
-
|
|
2735
|
+
Entity16("jobs")
|
|
2688
2736
|
], Job);
|
|
2689
2737
|
|
|
2690
2738
|
// src/entities/bank-details.entity.ts
|
|
2691
2739
|
import {
|
|
2692
|
-
Entity as
|
|
2693
|
-
Column as
|
|
2694
|
-
Index as
|
|
2695
|
-
ManyToOne as
|
|
2696
|
-
JoinColumn as
|
|
2740
|
+
Entity as Entity17,
|
|
2741
|
+
Column as Column18,
|
|
2742
|
+
Index as Index13,
|
|
2743
|
+
ManyToOne as ManyToOne16,
|
|
2744
|
+
JoinColumn as JoinColumn16
|
|
2697
2745
|
} from "typeorm";
|
|
2698
2746
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2699
2747
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -2709,48 +2757,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2709
2757
|
};
|
|
2710
2758
|
// individual index to find bank details by user
|
|
2711
2759
|
__decorateClass([
|
|
2712
|
-
|
|
2713
|
-
|
|
2760
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2761
|
+
Index13()
|
|
2714
2762
|
], BankDetail.prototype, "userId", 2);
|
|
2715
2763
|
__decorateClass([
|
|
2716
|
-
|
|
2717
|
-
|
|
2764
|
+
ManyToOne16(() => User, (user) => user.bankDetail),
|
|
2765
|
+
JoinColumn16({ name: "user_id" })
|
|
2718
2766
|
], BankDetail.prototype, "user", 2);
|
|
2719
2767
|
__decorateClass([
|
|
2720
|
-
|
|
2768
|
+
Column18({ name: "name", type: "varchar", nullable: true })
|
|
2721
2769
|
], BankDetail.prototype, "name", 2);
|
|
2722
2770
|
__decorateClass([
|
|
2723
|
-
|
|
2771
|
+
Column18({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2724
2772
|
], BankDetail.prototype, "mobile", 2);
|
|
2725
2773
|
__decorateClass([
|
|
2726
|
-
|
|
2774
|
+
Column18({ name: "email", type: "varchar", unique: true })
|
|
2727
2775
|
], BankDetail.prototype, "email", 2);
|
|
2728
2776
|
__decorateClass([
|
|
2729
|
-
|
|
2777
|
+
Column18({ name: "address", type: "varchar", nullable: true })
|
|
2730
2778
|
], BankDetail.prototype, "address", 2);
|
|
2731
2779
|
__decorateClass([
|
|
2732
|
-
|
|
2780
|
+
Column18({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2733
2781
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2734
2782
|
__decorateClass([
|
|
2735
|
-
|
|
2783
|
+
Column18({ name: "bank_name", type: "varchar", nullable: true })
|
|
2736
2784
|
], BankDetail.prototype, "bankName", 2);
|
|
2737
2785
|
__decorateClass([
|
|
2738
|
-
|
|
2786
|
+
Column18({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2739
2787
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2740
2788
|
__decorateClass([
|
|
2741
|
-
|
|
2789
|
+
Column18({ name: "branch_name", type: "varchar", nullable: true })
|
|
2742
2790
|
], BankDetail.prototype, "branchName", 2);
|
|
2743
2791
|
__decorateClass([
|
|
2744
|
-
|
|
2792
|
+
Column18({ name: "routing_no", type: "varchar", nullable: true })
|
|
2745
2793
|
], BankDetail.prototype, "routingNo", 2);
|
|
2746
2794
|
__decorateClass([
|
|
2747
|
-
|
|
2795
|
+
Column18({ name: "aba_no", type: "varchar", nullable: true })
|
|
2748
2796
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2749
2797
|
__decorateClass([
|
|
2750
|
-
|
|
2798
|
+
Column18({ name: "iban", type: "varchar", nullable: true })
|
|
2751
2799
|
], BankDetail.prototype, "iban", 2);
|
|
2752
2800
|
__decorateClass([
|
|
2753
|
-
|
|
2801
|
+
Column18({
|
|
2754
2802
|
name: "account_type",
|
|
2755
2803
|
type: "enum",
|
|
2756
2804
|
enum: BankAccountTypeEnum,
|
|
@@ -2758,7 +2806,7 @@ __decorateClass([
|
|
|
2758
2806
|
})
|
|
2759
2807
|
], BankDetail.prototype, "accountType", 2);
|
|
2760
2808
|
__decorateClass([
|
|
2761
|
-
|
|
2809
|
+
Column18({
|
|
2762
2810
|
name: "account_scope",
|
|
2763
2811
|
type: "enum",
|
|
2764
2812
|
enum: BankAccountScopeEnum,
|
|
@@ -2766,263 +2814,263 @@ __decorateClass([
|
|
|
2766
2814
|
})
|
|
2767
2815
|
], BankDetail.prototype, "accountScope", 2);
|
|
2768
2816
|
BankDetail = __decorateClass([
|
|
2769
|
-
|
|
2817
|
+
Entity17("bank_details")
|
|
2770
2818
|
], BankDetail);
|
|
2771
2819
|
|
|
2772
2820
|
// src/entities/system-preference.entity.ts
|
|
2773
2821
|
import {
|
|
2774
|
-
Entity as
|
|
2775
|
-
Column as
|
|
2776
|
-
Index as
|
|
2777
|
-
ManyToOne as
|
|
2778
|
-
JoinColumn as
|
|
2822
|
+
Entity as Entity18,
|
|
2823
|
+
Column as Column19,
|
|
2824
|
+
Index as Index14,
|
|
2825
|
+
ManyToOne as ManyToOne17,
|
|
2826
|
+
JoinColumn as JoinColumn17
|
|
2779
2827
|
} from "typeorm";
|
|
2780
2828
|
var SystemPreference = class extends BaseEntity {
|
|
2781
2829
|
};
|
|
2782
2830
|
// individual index to find system preference by user
|
|
2783
2831
|
__decorateClass([
|
|
2784
|
-
|
|
2785
|
-
|
|
2832
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2833
|
+
Index14()
|
|
2786
2834
|
], SystemPreference.prototype, "userId", 2);
|
|
2787
2835
|
__decorateClass([
|
|
2788
|
-
|
|
2789
|
-
|
|
2836
|
+
ManyToOne17(() => User, (user) => user.systemPreference),
|
|
2837
|
+
JoinColumn17({ name: "user_id" })
|
|
2790
2838
|
], SystemPreference.prototype, "user", 2);
|
|
2791
2839
|
__decorateClass([
|
|
2792
|
-
|
|
2840
|
+
Column19({ name: "key", type: "varchar", nullable: false })
|
|
2793
2841
|
], SystemPreference.prototype, "key", 2);
|
|
2794
2842
|
__decorateClass([
|
|
2795
|
-
|
|
2843
|
+
Column19({ name: "value", type: "boolean", default: false })
|
|
2796
2844
|
], SystemPreference.prototype, "value", 2);
|
|
2797
2845
|
SystemPreference = __decorateClass([
|
|
2798
|
-
|
|
2846
|
+
Entity18("system_preferences")
|
|
2799
2847
|
], SystemPreference);
|
|
2800
2848
|
|
|
2801
2849
|
// src/entities/freelancer-experience.entity.ts
|
|
2802
2850
|
import {
|
|
2803
|
-
Entity as
|
|
2804
|
-
Column as
|
|
2805
|
-
Index as
|
|
2806
|
-
ManyToOne as
|
|
2807
|
-
JoinColumn as
|
|
2851
|
+
Entity as Entity19,
|
|
2852
|
+
Column as Column20,
|
|
2853
|
+
Index as Index15,
|
|
2854
|
+
ManyToOne as ManyToOne18,
|
|
2855
|
+
JoinColumn as JoinColumn18
|
|
2808
2856
|
} from "typeorm";
|
|
2809
2857
|
var FreelancerExperience = class extends BaseEntity {
|
|
2810
2858
|
};
|
|
2811
2859
|
// individual index to find experence by user
|
|
2812
2860
|
__decorateClass([
|
|
2813
|
-
|
|
2814
|
-
|
|
2861
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2862
|
+
Index15()
|
|
2815
2863
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2816
2864
|
__decorateClass([
|
|
2817
|
-
|
|
2818
|
-
|
|
2865
|
+
ManyToOne18(() => User, (user) => user.freelancerExperience),
|
|
2866
|
+
JoinColumn18({ name: "user_id" })
|
|
2819
2867
|
], FreelancerExperience.prototype, "user", 2);
|
|
2820
2868
|
__decorateClass([
|
|
2821
|
-
|
|
2869
|
+
Column20({ name: "company_name", type: "varchar", nullable: true })
|
|
2822
2870
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2823
2871
|
__decorateClass([
|
|
2824
|
-
|
|
2872
|
+
Column20({ name: "designation", type: "varchar", nullable: true })
|
|
2825
2873
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2826
2874
|
__decorateClass([
|
|
2827
|
-
|
|
2875
|
+
Column20({ name: "job_duration", type: "varchar", nullable: true })
|
|
2828
2876
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2829
2877
|
__decorateClass([
|
|
2830
|
-
|
|
2878
|
+
Column20({ name: "description", type: "varchar", nullable: true })
|
|
2831
2879
|
], FreelancerExperience.prototype, "description", 2);
|
|
2832
2880
|
FreelancerExperience = __decorateClass([
|
|
2833
|
-
|
|
2881
|
+
Entity19("freelancer_experiences")
|
|
2834
2882
|
], FreelancerExperience);
|
|
2835
2883
|
|
|
2836
2884
|
// src/entities/freelancer-education.entity.ts
|
|
2837
2885
|
import {
|
|
2838
|
-
Entity as
|
|
2839
|
-
Column as
|
|
2840
|
-
Index as
|
|
2841
|
-
ManyToOne as
|
|
2842
|
-
JoinColumn as
|
|
2886
|
+
Entity as Entity20,
|
|
2887
|
+
Column as Column21,
|
|
2888
|
+
Index as Index16,
|
|
2889
|
+
ManyToOne as ManyToOne19,
|
|
2890
|
+
JoinColumn as JoinColumn19
|
|
2843
2891
|
} from "typeorm";
|
|
2844
2892
|
var FreelancerEducation = class extends BaseEntity {
|
|
2845
2893
|
};
|
|
2846
2894
|
// individual index to find education by user
|
|
2847
2895
|
__decorateClass([
|
|
2848
|
-
|
|
2849
|
-
|
|
2896
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2897
|
+
Index16()
|
|
2850
2898
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2851
2899
|
__decorateClass([
|
|
2852
|
-
|
|
2853
|
-
|
|
2900
|
+
ManyToOne19(() => User, (user) => user.freelancerEducation),
|
|
2901
|
+
JoinColumn19({ name: "user_id" })
|
|
2854
2902
|
], FreelancerEducation.prototype, "user", 2);
|
|
2855
2903
|
__decorateClass([
|
|
2856
|
-
|
|
2904
|
+
Column21({ name: "degree", type: "varchar", nullable: true })
|
|
2857
2905
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2858
2906
|
__decorateClass([
|
|
2859
|
-
|
|
2907
|
+
Column21({ name: "university", type: "varchar", nullable: true })
|
|
2860
2908
|
], FreelancerEducation.prototype, "university", 2);
|
|
2861
2909
|
__decorateClass([
|
|
2862
|
-
|
|
2910
|
+
Column21({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2863
2911
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2864
2912
|
FreelancerEducation = __decorateClass([
|
|
2865
|
-
|
|
2913
|
+
Entity20("freelancer_educations")
|
|
2866
2914
|
], FreelancerEducation);
|
|
2867
2915
|
|
|
2868
2916
|
// src/entities/freelancer-project.entity.ts
|
|
2869
2917
|
import {
|
|
2870
|
-
Entity as
|
|
2871
|
-
Column as
|
|
2872
|
-
Index as
|
|
2873
|
-
ManyToOne as
|
|
2874
|
-
JoinColumn as
|
|
2918
|
+
Entity as Entity21,
|
|
2919
|
+
Column as Column22,
|
|
2920
|
+
Index as Index17,
|
|
2921
|
+
ManyToOne as ManyToOne20,
|
|
2922
|
+
JoinColumn as JoinColumn20
|
|
2875
2923
|
} from "typeorm";
|
|
2876
2924
|
var FreelancerProject = class extends BaseEntity {
|
|
2877
2925
|
};
|
|
2878
2926
|
// individual index to find project by user
|
|
2879
2927
|
__decorateClass([
|
|
2880
|
-
|
|
2881
|
-
|
|
2928
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2929
|
+
Index17()
|
|
2882
2930
|
], FreelancerProject.prototype, "userId", 2);
|
|
2883
2931
|
__decorateClass([
|
|
2884
|
-
|
|
2885
|
-
|
|
2932
|
+
ManyToOne20(() => User, (user) => user.freelancerProject),
|
|
2933
|
+
JoinColumn20({ name: "user_id" })
|
|
2886
2934
|
], FreelancerProject.prototype, "user", 2);
|
|
2887
2935
|
__decorateClass([
|
|
2888
|
-
|
|
2936
|
+
Column22({ name: "project_name", type: "varchar", nullable: true })
|
|
2889
2937
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2890
2938
|
__decorateClass([
|
|
2891
|
-
|
|
2939
|
+
Column22({ name: "start_date", type: "date", nullable: true })
|
|
2892
2940
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2893
2941
|
__decorateClass([
|
|
2894
|
-
|
|
2942
|
+
Column22({ name: "end_date", type: "date", nullable: true })
|
|
2895
2943
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2896
2944
|
__decorateClass([
|
|
2897
|
-
|
|
2945
|
+
Column22({ name: "client_name", type: "varchar", nullable: true })
|
|
2898
2946
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2899
2947
|
__decorateClass([
|
|
2900
|
-
|
|
2948
|
+
Column22({ name: "git_link", type: "varchar", nullable: true })
|
|
2901
2949
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2902
2950
|
__decorateClass([
|
|
2903
|
-
|
|
2951
|
+
Column22({ name: "description", type: "varchar", nullable: true })
|
|
2904
2952
|
], FreelancerProject.prototype, "description", 2);
|
|
2905
2953
|
FreelancerProject = __decorateClass([
|
|
2906
|
-
|
|
2954
|
+
Entity21("freelancer_projects")
|
|
2907
2955
|
], FreelancerProject);
|
|
2908
2956
|
|
|
2909
2957
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2910
2958
|
import {
|
|
2911
|
-
Entity as
|
|
2912
|
-
Column as
|
|
2913
|
-
Index as
|
|
2914
|
-
ManyToOne as
|
|
2915
|
-
JoinColumn as
|
|
2959
|
+
Entity as Entity22,
|
|
2960
|
+
Column as Column23,
|
|
2961
|
+
Index as Index18,
|
|
2962
|
+
ManyToOne as ManyToOne21,
|
|
2963
|
+
JoinColumn as JoinColumn21
|
|
2916
2964
|
} from "typeorm";
|
|
2917
2965
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2918
2966
|
};
|
|
2919
2967
|
// individual index to find case study by user
|
|
2920
2968
|
__decorateClass([
|
|
2921
|
-
|
|
2922
|
-
|
|
2969
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2970
|
+
Index18()
|
|
2923
2971
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2924
2972
|
__decorateClass([
|
|
2925
|
-
|
|
2926
|
-
|
|
2973
|
+
ManyToOne21(() => User, (user) => user.freelancerCaseStudy),
|
|
2974
|
+
JoinColumn21({ name: "user_id" })
|
|
2927
2975
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2928
2976
|
__decorateClass([
|
|
2929
|
-
|
|
2977
|
+
Column23({ name: "project_name", type: "varchar", nullable: true })
|
|
2930
2978
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2931
2979
|
__decorateClass([
|
|
2932
|
-
|
|
2980
|
+
Column23({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2933
2981
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2934
2982
|
__decorateClass([
|
|
2935
|
-
|
|
2983
|
+
Column23({ name: "description", type: "varchar", nullable: true })
|
|
2936
2984
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2937
2985
|
FreelancerCaseStudy = __decorateClass([
|
|
2938
|
-
|
|
2986
|
+
Entity22("freelancer_case_studies")
|
|
2939
2987
|
], FreelancerCaseStudy);
|
|
2940
2988
|
|
|
2941
2989
|
// src/entities/freelancer-skill.entity.ts
|
|
2942
2990
|
import {
|
|
2943
|
-
Entity as
|
|
2944
|
-
Column as
|
|
2945
|
-
Index as
|
|
2946
|
-
ManyToOne as
|
|
2947
|
-
JoinColumn as
|
|
2991
|
+
Entity as Entity23,
|
|
2992
|
+
Column as Column24,
|
|
2993
|
+
Index as Index19,
|
|
2994
|
+
ManyToOne as ManyToOne22,
|
|
2995
|
+
JoinColumn as JoinColumn22
|
|
2948
2996
|
} from "typeorm";
|
|
2949
2997
|
var FreelancerSkill = class extends BaseEntity {
|
|
2950
2998
|
};
|
|
2951
2999
|
// individual index to find core skills by user
|
|
2952
3000
|
__decorateClass([
|
|
2953
|
-
|
|
2954
|
-
|
|
3001
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
3002
|
+
Index19()
|
|
2955
3003
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2956
3004
|
__decorateClass([
|
|
2957
|
-
|
|
2958
|
-
|
|
3005
|
+
ManyToOne22(() => User, (user) => user.freelancerSkills),
|
|
3006
|
+
JoinColumn22({ name: "user_id" })
|
|
2959
3007
|
], FreelancerSkill.prototype, "user", 2);
|
|
2960
3008
|
__decorateClass([
|
|
2961
|
-
|
|
3009
|
+
Column24({ name: "skill_name", type: "varchar", nullable: true })
|
|
2962
3010
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
2963
3011
|
FreelancerSkill = __decorateClass([
|
|
2964
|
-
|
|
3012
|
+
Entity23("freelancer_skills")
|
|
2965
3013
|
], FreelancerSkill);
|
|
2966
3014
|
|
|
2967
3015
|
// src/entities/freelancer-tool.entity.ts
|
|
2968
3016
|
import {
|
|
2969
|
-
Entity as
|
|
2970
|
-
Column as
|
|
2971
|
-
Index as
|
|
2972
|
-
ManyToOne as
|
|
2973
|
-
JoinColumn as
|
|
3017
|
+
Entity as Entity24,
|
|
3018
|
+
Column as Column25,
|
|
3019
|
+
Index as Index20,
|
|
3020
|
+
ManyToOne as ManyToOne23,
|
|
3021
|
+
JoinColumn as JoinColumn23
|
|
2974
3022
|
} from "typeorm";
|
|
2975
3023
|
var FreelancerTool = class extends BaseEntity {
|
|
2976
3024
|
};
|
|
2977
3025
|
// individual index to find tool by user
|
|
2978
3026
|
__decorateClass([
|
|
2979
|
-
|
|
2980
|
-
|
|
3027
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
3028
|
+
Index20()
|
|
2981
3029
|
], FreelancerTool.prototype, "userId", 2);
|
|
2982
3030
|
__decorateClass([
|
|
2983
|
-
|
|
2984
|
-
|
|
3031
|
+
ManyToOne23(() => User, (user) => user.freelancerTool),
|
|
3032
|
+
JoinColumn23({ name: "user_id" })
|
|
2985
3033
|
], FreelancerTool.prototype, "user", 2);
|
|
2986
3034
|
__decorateClass([
|
|
2987
|
-
|
|
3035
|
+
Column25({ name: "tool_name", type: "varchar", nullable: true })
|
|
2988
3036
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2989
3037
|
FreelancerTool = __decorateClass([
|
|
2990
|
-
|
|
3038
|
+
Entity24("freelancer_tools")
|
|
2991
3039
|
], FreelancerTool);
|
|
2992
3040
|
|
|
2993
3041
|
// src/entities/freelancer-framework.entity.ts
|
|
2994
3042
|
import {
|
|
2995
|
-
Entity as
|
|
2996
|
-
Column as
|
|
2997
|
-
Index as
|
|
2998
|
-
ManyToOne as
|
|
2999
|
-
JoinColumn as
|
|
3043
|
+
Entity as Entity25,
|
|
3044
|
+
Column as Column26,
|
|
3045
|
+
Index as Index21,
|
|
3046
|
+
ManyToOne as ManyToOne24,
|
|
3047
|
+
JoinColumn as JoinColumn24
|
|
3000
3048
|
} from "typeorm";
|
|
3001
3049
|
var FreelancerFramework = class extends BaseEntity {
|
|
3002
3050
|
};
|
|
3003
3051
|
// individual index to find framework by user
|
|
3004
3052
|
__decorateClass([
|
|
3005
|
-
|
|
3006
|
-
|
|
3053
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3054
|
+
Index21()
|
|
3007
3055
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3008
3056
|
__decorateClass([
|
|
3009
|
-
|
|
3010
|
-
|
|
3057
|
+
ManyToOne24(() => User, (user) => user.freelancerFramework),
|
|
3058
|
+
JoinColumn24({ name: "user_id" })
|
|
3011
3059
|
], FreelancerFramework.prototype, "user", 2);
|
|
3012
3060
|
__decorateClass([
|
|
3013
|
-
|
|
3061
|
+
Column26({ name: "framework_name", type: "varchar", nullable: true })
|
|
3014
3062
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3015
3063
|
FreelancerFramework = __decorateClass([
|
|
3016
|
-
|
|
3064
|
+
Entity25("freelancer_frameworks")
|
|
3017
3065
|
], FreelancerFramework);
|
|
3018
3066
|
|
|
3019
3067
|
// src/entities/freelancer-assessment.entity.ts
|
|
3020
3068
|
import {
|
|
3021
|
-
Entity as
|
|
3022
|
-
Column as
|
|
3023
|
-
Index as
|
|
3024
|
-
ManyToOne as
|
|
3025
|
-
JoinColumn as
|
|
3069
|
+
Entity as Entity26,
|
|
3070
|
+
Column as Column27,
|
|
3071
|
+
Index as Index22,
|
|
3072
|
+
ManyToOne as ManyToOne25,
|
|
3073
|
+
JoinColumn as JoinColumn25
|
|
3026
3074
|
} from "typeorm";
|
|
3027
3075
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3028
3076
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -3039,30 +3087,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3039
3087
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3040
3088
|
};
|
|
3041
3089
|
__decorateClass([
|
|
3042
|
-
|
|
3043
|
-
|
|
3090
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3091
|
+
Index22()
|
|
3044
3092
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3045
3093
|
__decorateClass([
|
|
3046
|
-
|
|
3047
|
-
|
|
3094
|
+
ManyToOne25(() => User, (user) => user.assessments),
|
|
3095
|
+
JoinColumn25({ name: "user_id" })
|
|
3048
3096
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3049
3097
|
__decorateClass([
|
|
3050
|
-
|
|
3098
|
+
Column27({ name: "interview_id", type: "varchar", nullable: true })
|
|
3051
3099
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3052
3100
|
__decorateClass([
|
|
3053
|
-
|
|
3101
|
+
Column27({ name: "interview_link", type: "text", nullable: true })
|
|
3054
3102
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3055
3103
|
__decorateClass([
|
|
3056
|
-
|
|
3104
|
+
Column27({ name: "recording_link", type: "text", nullable: true })
|
|
3057
3105
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3058
3106
|
__decorateClass([
|
|
3059
|
-
|
|
3107
|
+
Column27({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3060
3108
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3061
3109
|
__decorateClass([
|
|
3062
|
-
|
|
3110
|
+
Column27({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3063
3111
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3064
3112
|
__decorateClass([
|
|
3065
|
-
|
|
3113
|
+
Column27({
|
|
3066
3114
|
name: "status",
|
|
3067
3115
|
type: "enum",
|
|
3068
3116
|
enum: AssessmentStatusEnum,
|
|
@@ -3070,16 +3118,16 @@ __decorateClass([
|
|
|
3070
3118
|
})
|
|
3071
3119
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3072
3120
|
FreelancerAssessment = __decorateClass([
|
|
3073
|
-
|
|
3121
|
+
Entity26("freelancer_assessments")
|
|
3074
3122
|
], FreelancerAssessment);
|
|
3075
3123
|
|
|
3076
3124
|
// src/entities/freelancer-declaration.entity.ts
|
|
3077
3125
|
import {
|
|
3078
|
-
Entity as
|
|
3079
|
-
Column as
|
|
3080
|
-
Index as
|
|
3081
|
-
ManyToOne as
|
|
3082
|
-
JoinColumn as
|
|
3126
|
+
Entity as Entity27,
|
|
3127
|
+
Column as Column28,
|
|
3128
|
+
Index as Index23,
|
|
3129
|
+
ManyToOne as ManyToOne26,
|
|
3130
|
+
JoinColumn as JoinColumn26
|
|
3083
3131
|
} from "typeorm";
|
|
3084
3132
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3085
3133
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -3092,15 +3140,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3092
3140
|
};
|
|
3093
3141
|
// individual index to find declaration by user
|
|
3094
3142
|
__decorateClass([
|
|
3095
|
-
|
|
3096
|
-
|
|
3143
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3144
|
+
Index23()
|
|
3097
3145
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3098
3146
|
__decorateClass([
|
|
3099
|
-
|
|
3100
|
-
|
|
3147
|
+
ManyToOne26(() => User, (user) => user.freelancerDeclaration),
|
|
3148
|
+
JoinColumn26({ name: "user_id" })
|
|
3101
3149
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3102
3150
|
__decorateClass([
|
|
3103
|
-
|
|
3151
|
+
Column28({
|
|
3104
3152
|
name: "document_type",
|
|
3105
3153
|
type: "enum",
|
|
3106
3154
|
enum: DocumentType,
|
|
@@ -3108,175 +3156,175 @@ __decorateClass([
|
|
|
3108
3156
|
})
|
|
3109
3157
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3110
3158
|
__decorateClass([
|
|
3111
|
-
|
|
3159
|
+
Column28({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3112
3160
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3113
3161
|
__decorateClass([
|
|
3114
|
-
|
|
3162
|
+
Column28({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3115
3163
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3116
3164
|
__decorateClass([
|
|
3117
|
-
|
|
3165
|
+
Column28({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3118
3166
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3119
3167
|
__decorateClass([
|
|
3120
|
-
|
|
3168
|
+
Column28({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3121
3169
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3122
3170
|
FreelancerDeclaration = __decorateClass([
|
|
3123
|
-
|
|
3171
|
+
Entity27("freelancer_declaration")
|
|
3124
3172
|
], FreelancerDeclaration);
|
|
3125
3173
|
|
|
3126
3174
|
// src/entities/company-members-roles.entity.ts
|
|
3127
3175
|
import {
|
|
3128
|
-
Column as
|
|
3129
|
-
Entity as
|
|
3130
|
-
ManyToOne as
|
|
3131
|
-
JoinColumn as
|
|
3132
|
-
Index as
|
|
3176
|
+
Column as Column32,
|
|
3177
|
+
Entity as Entity31,
|
|
3178
|
+
ManyToOne as ManyToOne29,
|
|
3179
|
+
JoinColumn as JoinColumn29,
|
|
3180
|
+
Index as Index27
|
|
3133
3181
|
} from "typeorm";
|
|
3134
3182
|
|
|
3135
3183
|
// src/entities/company-role.entity.ts
|
|
3136
3184
|
import {
|
|
3137
|
-
Column as
|
|
3138
|
-
Entity as
|
|
3139
|
-
Index as
|
|
3140
|
-
JoinColumn as
|
|
3141
|
-
ManyToOne as
|
|
3185
|
+
Column as Column31,
|
|
3186
|
+
Entity as Entity30,
|
|
3187
|
+
Index as Index26,
|
|
3188
|
+
JoinColumn as JoinColumn28,
|
|
3189
|
+
ManyToOne as ManyToOne28,
|
|
3142
3190
|
OneToMany as OneToMany8
|
|
3143
3191
|
} from "typeorm";
|
|
3144
3192
|
|
|
3145
3193
|
// src/entities/company-role-permission.entity.ts
|
|
3146
3194
|
import {
|
|
3147
|
-
Column as
|
|
3148
|
-
Entity as
|
|
3149
|
-
ManyToOne as
|
|
3150
|
-
JoinColumn as
|
|
3151
|
-
Index as
|
|
3195
|
+
Column as Column30,
|
|
3196
|
+
Entity as Entity29,
|
|
3197
|
+
ManyToOne as ManyToOne27,
|
|
3198
|
+
JoinColumn as JoinColumn27,
|
|
3199
|
+
Index as Index25
|
|
3152
3200
|
} from "typeorm";
|
|
3153
3201
|
|
|
3154
3202
|
// src/entities/permission.entity.ts
|
|
3155
|
-
import { Column as
|
|
3203
|
+
import { Column as Column29, Entity as Entity28, Index as Index24 } from "typeorm";
|
|
3156
3204
|
var Permission = class extends BaseEntity {
|
|
3157
3205
|
};
|
|
3158
3206
|
__decorateClass([
|
|
3159
|
-
|
|
3207
|
+
Column29({ name: "name", type: "varchar", nullable: true })
|
|
3160
3208
|
], Permission.prototype, "name", 2);
|
|
3161
3209
|
__decorateClass([
|
|
3162
|
-
|
|
3163
|
-
|
|
3210
|
+
Column29({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3211
|
+
Index24()
|
|
3164
3212
|
], Permission.prototype, "slug", 2);
|
|
3165
3213
|
__decorateClass([
|
|
3166
|
-
|
|
3214
|
+
Column29({ name: "description", type: "text", nullable: true })
|
|
3167
3215
|
], Permission.prototype, "description", 2);
|
|
3168
3216
|
__decorateClass([
|
|
3169
|
-
|
|
3217
|
+
Column29({ name: "is_active", type: "boolean", default: true })
|
|
3170
3218
|
], Permission.prototype, "isActive", 2);
|
|
3171
3219
|
Permission = __decorateClass([
|
|
3172
|
-
|
|
3220
|
+
Entity28("permissions")
|
|
3173
3221
|
], Permission);
|
|
3174
3222
|
|
|
3175
3223
|
// src/entities/company-role-permission.entity.ts
|
|
3176
3224
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3177
3225
|
};
|
|
3178
3226
|
__decorateClass([
|
|
3179
|
-
|
|
3180
|
-
|
|
3227
|
+
Column30({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3228
|
+
Index25()
|
|
3181
3229
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3182
3230
|
__decorateClass([
|
|
3183
|
-
|
|
3231
|
+
ManyToOne27(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3184
3232
|
onDelete: "CASCADE"
|
|
3185
3233
|
}),
|
|
3186
|
-
|
|
3234
|
+
JoinColumn27({ name: "company_role_id" })
|
|
3187
3235
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3188
3236
|
__decorateClass([
|
|
3189
|
-
|
|
3190
|
-
|
|
3237
|
+
Column30({ name: "permission_id", type: "integer" }),
|
|
3238
|
+
Index25()
|
|
3191
3239
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3192
3240
|
__decorateClass([
|
|
3193
|
-
|
|
3194
|
-
|
|
3241
|
+
ManyToOne27(() => Permission, { onDelete: "CASCADE" }),
|
|
3242
|
+
JoinColumn27({ name: "permission_id" })
|
|
3195
3243
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3196
3244
|
__decorateClass([
|
|
3197
|
-
|
|
3245
|
+
Column30({ name: "assigned_by", type: "integer", nullable: true })
|
|
3198
3246
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3199
3247
|
CompanyRolePermission = __decorateClass([
|
|
3200
|
-
|
|
3248
|
+
Entity29("company_role_permissions")
|
|
3201
3249
|
], CompanyRolePermission);
|
|
3202
3250
|
|
|
3203
3251
|
// src/entities/company-role.entity.ts
|
|
3204
3252
|
var CompanyRole = class extends BaseEntity {
|
|
3205
3253
|
};
|
|
3206
3254
|
__decorateClass([
|
|
3207
|
-
|
|
3208
|
-
|
|
3255
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3256
|
+
Index26()
|
|
3209
3257
|
], CompanyRole.prototype, "userId", 2);
|
|
3210
3258
|
__decorateClass([
|
|
3211
|
-
|
|
3212
|
-
|
|
3259
|
+
ManyToOne28(() => User, (user) => user.otps),
|
|
3260
|
+
JoinColumn28({ name: "user_id" })
|
|
3213
3261
|
], CompanyRole.prototype, "user", 2);
|
|
3214
3262
|
__decorateClass([
|
|
3215
|
-
|
|
3263
|
+
Column31({ name: "name", type: "varchar" })
|
|
3216
3264
|
], CompanyRole.prototype, "name", 2);
|
|
3217
3265
|
__decorateClass([
|
|
3218
|
-
|
|
3219
|
-
|
|
3266
|
+
Column31({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3267
|
+
Index26()
|
|
3220
3268
|
], CompanyRole.prototype, "slug", 2);
|
|
3221
3269
|
__decorateClass([
|
|
3222
|
-
|
|
3270
|
+
Column31({ name: "description", type: "text", nullable: true })
|
|
3223
3271
|
], CompanyRole.prototype, "description", 2);
|
|
3224
3272
|
__decorateClass([
|
|
3225
|
-
|
|
3273
|
+
Column31({ name: "is_active", type: "boolean", default: true })
|
|
3226
3274
|
], CompanyRole.prototype, "isActive", 2);
|
|
3227
3275
|
__decorateClass([
|
|
3228
3276
|
OneToMany8(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3229
3277
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3230
3278
|
CompanyRole = __decorateClass([
|
|
3231
|
-
|
|
3279
|
+
Entity30("company_roles")
|
|
3232
3280
|
], CompanyRole);
|
|
3233
3281
|
|
|
3234
3282
|
// src/entities/company-members-roles.entity.ts
|
|
3235
3283
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3236
3284
|
};
|
|
3237
3285
|
__decorateClass([
|
|
3238
|
-
|
|
3239
|
-
|
|
3286
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3287
|
+
Index27()
|
|
3240
3288
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3241
3289
|
__decorateClass([
|
|
3242
|
-
|
|
3243
|
-
|
|
3290
|
+
ManyToOne29(() => User),
|
|
3291
|
+
JoinColumn29({ name: "user_id" })
|
|
3244
3292
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3245
3293
|
__decorateClass([
|
|
3246
|
-
|
|
3247
|
-
|
|
3294
|
+
ManyToOne29(() => CompanyRole),
|
|
3295
|
+
JoinColumn29({ name: "company_role_id" })
|
|
3248
3296
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3249
3297
|
__decorateClass([
|
|
3250
|
-
|
|
3251
|
-
|
|
3298
|
+
Column32({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3299
|
+
Index27()
|
|
3252
3300
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3253
3301
|
__decorateClass([
|
|
3254
|
-
|
|
3302
|
+
Column32({ name: "assigned_by", type: "integer", nullable: true })
|
|
3255
3303
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3256
3304
|
CompanyMemberRole = __decorateClass([
|
|
3257
|
-
|
|
3305
|
+
Entity31("company_member_roles")
|
|
3258
3306
|
], CompanyMemberRole);
|
|
3259
3307
|
|
|
3260
3308
|
// src/entities/assessment-answer.entity.ts
|
|
3261
3309
|
import {
|
|
3262
|
-
Entity as
|
|
3263
|
-
Column as
|
|
3264
|
-
ManyToOne as
|
|
3265
|
-
Index as
|
|
3266
|
-
JoinColumn as
|
|
3310
|
+
Entity as Entity34,
|
|
3311
|
+
Column as Column35,
|
|
3312
|
+
ManyToOne as ManyToOne31,
|
|
3313
|
+
Index as Index29,
|
|
3314
|
+
JoinColumn as JoinColumn31
|
|
3267
3315
|
} from "typeorm";
|
|
3268
3316
|
|
|
3269
3317
|
// src/entities/assessment-question.entity.ts
|
|
3270
|
-
import { Entity as
|
|
3318
|
+
import { Entity as Entity33, Column as Column34, OneToMany as OneToMany10 } from "typeorm";
|
|
3271
3319
|
|
|
3272
3320
|
// src/entities/assessment-question-option.entity.ts
|
|
3273
3321
|
import {
|
|
3274
|
-
Entity as
|
|
3275
|
-
Column as
|
|
3322
|
+
Entity as Entity32,
|
|
3323
|
+
Column as Column33,
|
|
3276
3324
|
OneToMany as OneToMany9,
|
|
3277
|
-
ManyToOne as
|
|
3278
|
-
Index as
|
|
3279
|
-
JoinColumn as
|
|
3325
|
+
ManyToOne as ManyToOne30,
|
|
3326
|
+
Index as Index28,
|
|
3327
|
+
JoinColumn as JoinColumn30
|
|
3280
3328
|
} from "typeorm";
|
|
3281
3329
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3282
3330
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3287,21 +3335,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3287
3335
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3288
3336
|
};
|
|
3289
3337
|
__decorateClass([
|
|
3290
|
-
|
|
3291
|
-
|
|
3338
|
+
Column33({ name: "question_id", type: "integer", nullable: true }),
|
|
3339
|
+
Index28()
|
|
3292
3340
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3293
3341
|
__decorateClass([
|
|
3294
|
-
|
|
3342
|
+
ManyToOne30(
|
|
3295
3343
|
() => AssessmetQuestion,
|
|
3296
3344
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3297
3345
|
),
|
|
3298
|
-
|
|
3346
|
+
JoinColumn30({ name: "question_id" })
|
|
3299
3347
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3300
3348
|
__decorateClass([
|
|
3301
|
-
|
|
3349
|
+
Column33({ name: "text", type: "varchar", nullable: true })
|
|
3302
3350
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3303
3351
|
__decorateClass([
|
|
3304
|
-
|
|
3352
|
+
Column33({
|
|
3305
3353
|
name: "answer_type",
|
|
3306
3354
|
type: "enum",
|
|
3307
3355
|
enum: AnswerTypeEnum,
|
|
@@ -3309,13 +3357,13 @@ __decorateClass([
|
|
|
3309
3357
|
})
|
|
3310
3358
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3311
3359
|
__decorateClass([
|
|
3312
|
-
|
|
3360
|
+
Column33({ name: "is_active", type: "boolean", default: true })
|
|
3313
3361
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3314
3362
|
__decorateClass([
|
|
3315
3363
|
OneToMany9(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3316
3364
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3317
3365
|
AssessmetQuestionOption = __decorateClass([
|
|
3318
|
-
|
|
3366
|
+
Entity32("assessment_question_options")
|
|
3319
3367
|
], AssessmetQuestionOption);
|
|
3320
3368
|
|
|
3321
3369
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3327,10 +3375,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3327
3375
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3328
3376
|
};
|
|
3329
3377
|
__decorateClass([
|
|
3330
|
-
|
|
3378
|
+
Column34({ name: "text", type: "varchar", nullable: true })
|
|
3331
3379
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3332
3380
|
__decorateClass([
|
|
3333
|
-
|
|
3381
|
+
Column34({
|
|
3334
3382
|
name: "question_for",
|
|
3335
3383
|
type: "enum",
|
|
3336
3384
|
enum: QuestionForEnum,
|
|
@@ -3338,7 +3386,7 @@ __decorateClass([
|
|
|
3338
3386
|
})
|
|
3339
3387
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3340
3388
|
__decorateClass([
|
|
3341
|
-
|
|
3389
|
+
Column34({ name: "is_active", type: "boolean", default: true })
|
|
3342
3390
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3343
3391
|
__decorateClass([
|
|
3344
3392
|
OneToMany10(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -3347,7 +3395,7 @@ __decorateClass([
|
|
|
3347
3395
|
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3348
3396
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3349
3397
|
AssessmetQuestion = __decorateClass([
|
|
3350
|
-
|
|
3398
|
+
Entity33("assessment_questions")
|
|
3351
3399
|
], AssessmetQuestion);
|
|
3352
3400
|
|
|
3353
3401
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3360,102 +3408,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3360
3408
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3361
3409
|
};
|
|
3362
3410
|
__decorateClass([
|
|
3363
|
-
|
|
3364
|
-
|
|
3411
|
+
Column35({ name: "user_id", type: "integer" }),
|
|
3412
|
+
Index29()
|
|
3365
3413
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3366
3414
|
__decorateClass([
|
|
3367
|
-
|
|
3368
|
-
|
|
3415
|
+
ManyToOne31(() => User, (user) => user.assessmentAnswers),
|
|
3416
|
+
JoinColumn31({ name: "user_id" })
|
|
3369
3417
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3370
3418
|
__decorateClass([
|
|
3371
|
-
|
|
3372
|
-
|
|
3419
|
+
Column35({ name: "question_id", type: "integer" }),
|
|
3420
|
+
Index29()
|
|
3373
3421
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3374
3422
|
__decorateClass([
|
|
3375
|
-
|
|
3423
|
+
ManyToOne31(
|
|
3376
3424
|
() => AssessmetQuestion,
|
|
3377
3425
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3378
3426
|
),
|
|
3379
|
-
|
|
3427
|
+
JoinColumn31({ name: "question_id" })
|
|
3380
3428
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3381
3429
|
__decorateClass([
|
|
3382
|
-
|
|
3383
|
-
|
|
3430
|
+
Column35({ name: "selected_option_id", type: "integer" }),
|
|
3431
|
+
Index29()
|
|
3384
3432
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3385
3433
|
__decorateClass([
|
|
3386
|
-
|
|
3434
|
+
ManyToOne31(
|
|
3387
3435
|
() => AssessmetQuestionOption,
|
|
3388
3436
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3389
3437
|
),
|
|
3390
|
-
|
|
3438
|
+
JoinColumn31({ name: "selected_option_id" })
|
|
3391
3439
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3392
3440
|
__decorateClass([
|
|
3393
|
-
|
|
3441
|
+
Column35({
|
|
3394
3442
|
name: "selected_answer_type",
|
|
3395
3443
|
type: "enum",
|
|
3396
3444
|
enum: SelectedAnswerTypeEnum
|
|
3397
3445
|
})
|
|
3398
3446
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3399
3447
|
__decorateClass([
|
|
3400
|
-
|
|
3448
|
+
Column35({ name: "score", type: "float" })
|
|
3401
3449
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3402
3450
|
AssessmentAnswer = __decorateClass([
|
|
3403
|
-
|
|
3451
|
+
Entity34("assessment_answers")
|
|
3404
3452
|
], AssessmentAnswer);
|
|
3405
3453
|
|
|
3406
3454
|
// src/entities/company-skill.entity.ts
|
|
3407
|
-
import { Entity as
|
|
3455
|
+
import { Entity as Entity35, Column as Column36, Index as Index30, ManyToOne as ManyToOne32, JoinColumn as JoinColumn32 } from "typeorm";
|
|
3408
3456
|
var CompanySkill = class extends BaseEntity {
|
|
3409
3457
|
};
|
|
3410
3458
|
// individual index to find core skills by user
|
|
3411
3459
|
__decorateClass([
|
|
3412
|
-
|
|
3413
|
-
|
|
3460
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
3461
|
+
Index30()
|
|
3414
3462
|
], CompanySkill.prototype, "userId", 2);
|
|
3415
3463
|
__decorateClass([
|
|
3416
|
-
|
|
3417
|
-
|
|
3464
|
+
ManyToOne32(() => User, (user) => user.freelancerSkills),
|
|
3465
|
+
JoinColumn32({ name: "user_id" })
|
|
3418
3466
|
], CompanySkill.prototype, "user", 2);
|
|
3419
3467
|
__decorateClass([
|
|
3420
|
-
|
|
3468
|
+
Column36({ name: "skill_name", type: "varchar", nullable: true })
|
|
3421
3469
|
], CompanySkill.prototype, "skillName", 2);
|
|
3422
3470
|
CompanySkill = __decorateClass([
|
|
3423
|
-
|
|
3471
|
+
Entity35("company_skills")
|
|
3424
3472
|
], CompanySkill);
|
|
3425
3473
|
|
|
3426
3474
|
// src/entities/admin-user-role.entity.ts
|
|
3427
|
-
import { Entity as
|
|
3475
|
+
import { Entity as Entity39, Column as Column40, ManyToOne as ManyToOne34, JoinColumn as JoinColumn34 } from "typeorm";
|
|
3428
3476
|
|
|
3429
3477
|
// src/entities/admin-role.entity.ts
|
|
3430
|
-
import { Entity as
|
|
3478
|
+
import { Entity as Entity38, Column as Column39, Index as Index33, OneToMany as OneToMany13 } from "typeorm";
|
|
3431
3479
|
|
|
3432
3480
|
// src/entities/admin-role-permission.entity.ts
|
|
3433
|
-
import { Entity as
|
|
3481
|
+
import { Entity as Entity37, Column as Column38, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33 } from "typeorm";
|
|
3434
3482
|
|
|
3435
3483
|
// src/entities/admin-permission.entity.ts
|
|
3436
|
-
import { Entity as
|
|
3484
|
+
import { Entity as Entity36, Column as Column37, Index as Index31, OneToMany as OneToMany12 } from "typeorm";
|
|
3437
3485
|
var AdminPermission = class extends BaseEntity {
|
|
3438
3486
|
};
|
|
3439
3487
|
__decorateClass([
|
|
3440
|
-
|
|
3488
|
+
Column37({ name: "permission_name", type: "varchar", nullable: true })
|
|
3441
3489
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3442
3490
|
__decorateClass([
|
|
3443
|
-
|
|
3491
|
+
Column37({
|
|
3444
3492
|
name: "permission_slug",
|
|
3445
3493
|
type: "varchar",
|
|
3446
3494
|
unique: true,
|
|
3447
3495
|
nullable: true
|
|
3448
3496
|
}),
|
|
3449
|
-
|
|
3497
|
+
Index31()
|
|
3450
3498
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3451
3499
|
__decorateClass([
|
|
3452
|
-
|
|
3500
|
+
Column37({ name: "permission_description", type: "varchar", nullable: true })
|
|
3453
3501
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3454
3502
|
__decorateClass([
|
|
3455
|
-
|
|
3503
|
+
Column37({ name: "module", type: "varchar", nullable: true })
|
|
3456
3504
|
], AdminPermission.prototype, "module", 2);
|
|
3457
3505
|
__decorateClass([
|
|
3458
|
-
|
|
3506
|
+
Column37({ name: "is_active", type: "boolean", default: true })
|
|
3459
3507
|
], AdminPermission.prototype, "isActive", 2);
|
|
3460
3508
|
__decorateClass([
|
|
3461
3509
|
OneToMany12(
|
|
@@ -3464,14 +3512,14 @@ __decorateClass([
|
|
|
3464
3512
|
)
|
|
3465
3513
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3466
3514
|
AdminPermission = __decorateClass([
|
|
3467
|
-
|
|
3515
|
+
Entity36("admin_permissions")
|
|
3468
3516
|
], AdminPermission);
|
|
3469
3517
|
|
|
3470
3518
|
// src/entities/admin-role-permission.entity.ts
|
|
3471
3519
|
var AdminRolePermission = class extends BaseEntity {
|
|
3472
3520
|
};
|
|
3473
3521
|
__decorateClass([
|
|
3474
|
-
|
|
3522
|
+
Column38({
|
|
3475
3523
|
name: "role_id",
|
|
3476
3524
|
type: "int",
|
|
3477
3525
|
nullable: true,
|
|
@@ -3479,11 +3527,11 @@ __decorateClass([
|
|
|
3479
3527
|
})
|
|
3480
3528
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3481
3529
|
__decorateClass([
|
|
3482
|
-
|
|
3483
|
-
|
|
3530
|
+
ManyToOne33(() => AdminRole),
|
|
3531
|
+
JoinColumn33({ name: "role_id" })
|
|
3484
3532
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3485
3533
|
__decorateClass([
|
|
3486
|
-
|
|
3534
|
+
Column38({
|
|
3487
3535
|
name: "permission_id",
|
|
3488
3536
|
type: "int",
|
|
3489
3537
|
nullable: true,
|
|
@@ -3491,28 +3539,28 @@ __decorateClass([
|
|
|
3491
3539
|
})
|
|
3492
3540
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3493
3541
|
__decorateClass([
|
|
3494
|
-
|
|
3495
|
-
|
|
3542
|
+
ManyToOne33(() => AdminPermission),
|
|
3543
|
+
JoinColumn33({ name: "permission_id" })
|
|
3496
3544
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3497
3545
|
AdminRolePermission = __decorateClass([
|
|
3498
|
-
|
|
3546
|
+
Entity37("admin_role_permissions")
|
|
3499
3547
|
], AdminRolePermission);
|
|
3500
3548
|
|
|
3501
3549
|
// src/entities/admin-role.entity.ts
|
|
3502
3550
|
var AdminRole = class extends BaseEntity {
|
|
3503
3551
|
};
|
|
3504
3552
|
__decorateClass([
|
|
3505
|
-
|
|
3553
|
+
Column39({ name: "role_name", type: "varchar", nullable: true })
|
|
3506
3554
|
], AdminRole.prototype, "roleName", 2);
|
|
3507
3555
|
__decorateClass([
|
|
3508
|
-
|
|
3509
|
-
|
|
3556
|
+
Column39({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3557
|
+
Index33()
|
|
3510
3558
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3511
3559
|
__decorateClass([
|
|
3512
|
-
|
|
3560
|
+
Column39({ name: "role_description", type: "varchar", nullable: true })
|
|
3513
3561
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3514
3562
|
__decorateClass([
|
|
3515
|
-
|
|
3563
|
+
Column39({ name: "is_active", type: "boolean", default: true })
|
|
3516
3564
|
], AdminRole.prototype, "isActive", 2);
|
|
3517
3565
|
__decorateClass([
|
|
3518
3566
|
OneToMany13(
|
|
@@ -3524,14 +3572,14 @@ __decorateClass([
|
|
|
3524
3572
|
OneToMany13(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3525
3573
|
], AdminRole.prototype, "userRoles", 2);
|
|
3526
3574
|
AdminRole = __decorateClass([
|
|
3527
|
-
|
|
3575
|
+
Entity38("admin_roles")
|
|
3528
3576
|
], AdminRole);
|
|
3529
3577
|
|
|
3530
3578
|
// src/entities/admin-user-role.entity.ts
|
|
3531
3579
|
var AdminUserRole = class extends BaseEntity {
|
|
3532
3580
|
};
|
|
3533
3581
|
__decorateClass([
|
|
3534
|
-
|
|
3582
|
+
Column40({
|
|
3535
3583
|
name: "user_id",
|
|
3536
3584
|
type: "int",
|
|
3537
3585
|
nullable: true,
|
|
@@ -3539,11 +3587,11 @@ __decorateClass([
|
|
|
3539
3587
|
})
|
|
3540
3588
|
], AdminUserRole.prototype, "userId", 2);
|
|
3541
3589
|
__decorateClass([
|
|
3542
|
-
|
|
3543
|
-
|
|
3590
|
+
ManyToOne34(() => User),
|
|
3591
|
+
JoinColumn34({ name: "user_id" })
|
|
3544
3592
|
], AdminUserRole.prototype, "user", 2);
|
|
3545
3593
|
__decorateClass([
|
|
3546
|
-
|
|
3594
|
+
Column40({
|
|
3547
3595
|
name: "role_id",
|
|
3548
3596
|
type: "int",
|
|
3549
3597
|
nullable: true,
|
|
@@ -3551,40 +3599,40 @@ __decorateClass([
|
|
|
3551
3599
|
})
|
|
3552
3600
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3553
3601
|
__decorateClass([
|
|
3554
|
-
|
|
3555
|
-
|
|
3602
|
+
ManyToOne34(() => AdminRole),
|
|
3603
|
+
JoinColumn34({ name: "role_id" })
|
|
3556
3604
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3557
3605
|
AdminUserRole = __decorateClass([
|
|
3558
|
-
|
|
3606
|
+
Entity39("admin_user_roles")
|
|
3559
3607
|
], AdminUserRole);
|
|
3560
3608
|
|
|
3561
3609
|
// src/entities/freelancer-resume.entity.ts
|
|
3562
3610
|
import {
|
|
3563
|
-
Entity as
|
|
3564
|
-
Column as
|
|
3565
|
-
Index as
|
|
3566
|
-
ManyToOne as
|
|
3567
|
-
JoinColumn as
|
|
3611
|
+
Entity as Entity40,
|
|
3612
|
+
Column as Column41,
|
|
3613
|
+
Index as Index35,
|
|
3614
|
+
ManyToOne as ManyToOne35,
|
|
3615
|
+
JoinColumn as JoinColumn35
|
|
3568
3616
|
} from "typeorm";
|
|
3569
3617
|
var FreelancerResume = class extends BaseEntity {
|
|
3570
3618
|
};
|
|
3571
3619
|
// individual index to find profile by user
|
|
3572
3620
|
__decorateClass([
|
|
3573
|
-
|
|
3574
|
-
|
|
3621
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
3622
|
+
Index35()
|
|
3575
3623
|
], FreelancerResume.prototype, "userId", 2);
|
|
3576
3624
|
__decorateClass([
|
|
3577
|
-
|
|
3578
|
-
|
|
3625
|
+
ManyToOne35(() => User, (user) => user.freelancerProfile),
|
|
3626
|
+
JoinColumn35({ name: "user_id" })
|
|
3579
3627
|
], FreelancerResume.prototype, "user", 2);
|
|
3580
3628
|
__decorateClass([
|
|
3581
|
-
|
|
3629
|
+
Column41({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3582
3630
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3583
3631
|
__decorateClass([
|
|
3584
|
-
|
|
3632
|
+
Column41({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3585
3633
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3586
3634
|
FreelancerResume = __decorateClass([
|
|
3587
|
-
|
|
3635
|
+
Entity40("freelancer_resumes")
|
|
3588
3636
|
], FreelancerResume);
|
|
3589
3637
|
|
|
3590
3638
|
// src/entities/user.entity.ts
|
|
@@ -3612,51 +3660,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3612
3660
|
var User = class extends BaseEntity {
|
|
3613
3661
|
};
|
|
3614
3662
|
__decorateClass([
|
|
3615
|
-
|
|
3663
|
+
Column42({ name: "unique_id", type: "varchar", unique: true })
|
|
3616
3664
|
], User.prototype, "uniqueId", 2);
|
|
3617
3665
|
__decorateClass([
|
|
3618
|
-
|
|
3619
|
-
|
|
3666
|
+
Column42({ name: "parent_id", type: "integer", nullable: true }),
|
|
3667
|
+
Index36()
|
|
3620
3668
|
], User.prototype, "parentId", 2);
|
|
3621
3669
|
__decorateClass([
|
|
3622
|
-
|
|
3623
|
-
|
|
3670
|
+
ManyToOne36(() => User, (user) => user.children, { nullable: true }),
|
|
3671
|
+
JoinColumn36({ name: "parent_id" })
|
|
3624
3672
|
], User.prototype, "parent", 2);
|
|
3625
3673
|
__decorateClass([
|
|
3626
3674
|
OneToMany14(() => User, (user) => user.parent)
|
|
3627
3675
|
], User.prototype, "children", 2);
|
|
3628
3676
|
__decorateClass([
|
|
3629
|
-
|
|
3677
|
+
Column42({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3630
3678
|
], User.prototype, "username", 2);
|
|
3631
3679
|
__decorateClass([
|
|
3632
|
-
|
|
3680
|
+
Column42({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3633
3681
|
], User.prototype, "firstName", 2);
|
|
3634
3682
|
__decorateClass([
|
|
3635
|
-
|
|
3683
|
+
Column42({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3636
3684
|
], User.prototype, "lastName", 2);
|
|
3637
3685
|
__decorateClass([
|
|
3638
|
-
|
|
3686
|
+
Column42({ name: "date_of_birth", type: "date", nullable: true })
|
|
3639
3687
|
], User.prototype, "dateOfBirth", 2);
|
|
3640
3688
|
__decorateClass([
|
|
3641
|
-
|
|
3689
|
+
Column42({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3642
3690
|
], User.prototype, "gender", 2);
|
|
3643
3691
|
__decorateClass([
|
|
3644
|
-
|
|
3692
|
+
Column42({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3645
3693
|
], User.prototype, "profilePictureUrl", 2);
|
|
3646
3694
|
__decorateClass([
|
|
3647
|
-
|
|
3695
|
+
Column42({ name: "email", type: "varchar", unique: true })
|
|
3648
3696
|
], User.prototype, "email", 2);
|
|
3649
3697
|
__decorateClass([
|
|
3650
|
-
|
|
3698
|
+
Column42({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3651
3699
|
], User.prototype, "mobileCode", 2);
|
|
3652
3700
|
__decorateClass([
|
|
3653
|
-
|
|
3701
|
+
Column42({ name: "mobile", type: "varchar", nullable: true })
|
|
3654
3702
|
], User.prototype, "mobile", 2);
|
|
3655
3703
|
__decorateClass([
|
|
3656
|
-
|
|
3704
|
+
Column42({ name: "password", type: "varchar", nullable: true })
|
|
3657
3705
|
], User.prototype, "password", 2);
|
|
3658
3706
|
__decorateClass([
|
|
3659
|
-
|
|
3707
|
+
Column42({
|
|
3660
3708
|
name: "account_type",
|
|
3661
3709
|
type: "enum",
|
|
3662
3710
|
enum: AccountType,
|
|
@@ -3664,7 +3712,7 @@ __decorateClass([
|
|
|
3664
3712
|
})
|
|
3665
3713
|
], User.prototype, "accountType", 2);
|
|
3666
3714
|
__decorateClass([
|
|
3667
|
-
|
|
3715
|
+
Column42({
|
|
3668
3716
|
name: "account_status",
|
|
3669
3717
|
type: "enum",
|
|
3670
3718
|
enum: AccountStatus,
|
|
@@ -3672,29 +3720,29 @@ __decorateClass([
|
|
|
3672
3720
|
})
|
|
3673
3721
|
], User.prototype, "accountStatus", 2);
|
|
3674
3722
|
__decorateClass([
|
|
3675
|
-
|
|
3723
|
+
Column42({ name: "is_email_verified", type: "boolean", default: false })
|
|
3676
3724
|
], User.prototype, "isEmailVerified", 2);
|
|
3677
3725
|
__decorateClass([
|
|
3678
|
-
|
|
3726
|
+
Column42({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3679
3727
|
], User.prototype, "isMobileVerified", 2);
|
|
3680
3728
|
__decorateClass([
|
|
3681
|
-
|
|
3729
|
+
Column42({ name: "is_social", type: "boolean", default: false })
|
|
3682
3730
|
], User.prototype, "isSocial", 2);
|
|
3683
3731
|
__decorateClass([
|
|
3684
|
-
|
|
3732
|
+
Column42({
|
|
3685
3733
|
name: "last_login_at",
|
|
3686
3734
|
type: "timestamp with time zone",
|
|
3687
3735
|
nullable: true
|
|
3688
3736
|
})
|
|
3689
3737
|
], User.prototype, "lastLoginAt", 2);
|
|
3690
3738
|
__decorateClass([
|
|
3691
|
-
|
|
3739
|
+
Column42({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3692
3740
|
], User.prototype, "lastLoginIp", 2);
|
|
3693
3741
|
__decorateClass([
|
|
3694
|
-
|
|
3742
|
+
Column42({ name: "reset_token", type: "varchar", nullable: true })
|
|
3695
3743
|
], User.prototype, "resetToken", 2);
|
|
3696
3744
|
__decorateClass([
|
|
3697
|
-
|
|
3745
|
+
Column42({
|
|
3698
3746
|
name: "reset_token_expire_at",
|
|
3699
3747
|
type: "timestamp with time zone",
|
|
3700
3748
|
nullable: true
|
|
@@ -3704,7 +3752,7 @@ __decorateClass([
|
|
|
3704
3752
|
OneToMany14(() => RefreshToken, (token) => token.user)
|
|
3705
3753
|
], User.prototype, "refreshTokens", 2);
|
|
3706
3754
|
__decorateClass([
|
|
3707
|
-
|
|
3755
|
+
Column42({
|
|
3708
3756
|
name: "provider",
|
|
3709
3757
|
type: "enum",
|
|
3710
3758
|
enum: Provider,
|
|
@@ -3713,16 +3761,16 @@ __decorateClass([
|
|
|
3713
3761
|
})
|
|
3714
3762
|
], User.prototype, "provider", 2);
|
|
3715
3763
|
__decorateClass([
|
|
3716
|
-
|
|
3764
|
+
Column42({ name: "provider_token", type: "varchar", nullable: true })
|
|
3717
3765
|
], User.prototype, "providerToken", 2);
|
|
3718
3766
|
__decorateClass([
|
|
3719
|
-
|
|
3767
|
+
Column42({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3720
3768
|
], User.prototype, "linkedInId", 2);
|
|
3721
3769
|
__decorateClass([
|
|
3722
|
-
|
|
3770
|
+
Column42({ name: "google_id", type: "varchar", nullable: true })
|
|
3723
3771
|
], User.prototype, "googleId", 2);
|
|
3724
3772
|
__decorateClass([
|
|
3725
|
-
|
|
3773
|
+
Column42({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3726
3774
|
], User.prototype, "gitLabsId", 2);
|
|
3727
3775
|
__decorateClass([
|
|
3728
3776
|
OneToMany14(() => Otp, (otp) => otp.user)
|
|
@@ -3800,7 +3848,7 @@ __decorateClass([
|
|
|
3800
3848
|
OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3801
3849
|
], User.prototype, "adminUserRoles", 2);
|
|
3802
3850
|
User = __decorateClass([
|
|
3803
|
-
|
|
3851
|
+
Entity41("users")
|
|
3804
3852
|
], User);
|
|
3805
3853
|
|
|
3806
3854
|
// src/entities/rating.entity.ts
|
|
@@ -3812,36 +3860,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3812
3860
|
var Rating = class extends BaseEntity {
|
|
3813
3861
|
};
|
|
3814
3862
|
__decorateClass([
|
|
3815
|
-
|
|
3816
|
-
|
|
3863
|
+
Column43({ name: "reviewer_id", type: "integer" }),
|
|
3864
|
+
Index37()
|
|
3817
3865
|
], Rating.prototype, "reviewer_id", 2);
|
|
3818
3866
|
__decorateClass([
|
|
3819
|
-
|
|
3820
|
-
|
|
3867
|
+
ManyToOne37(() => User, { onDelete: "CASCADE" }),
|
|
3868
|
+
JoinColumn37({ name: "reviewer_id" })
|
|
3821
3869
|
], Rating.prototype, "reviewer", 2);
|
|
3822
3870
|
__decorateClass([
|
|
3823
|
-
|
|
3824
|
-
|
|
3871
|
+
Column43({ name: "reviewee_id", type: "integer" }),
|
|
3872
|
+
Index37()
|
|
3825
3873
|
], Rating.prototype, "reviewee_id", 2);
|
|
3826
3874
|
__decorateClass([
|
|
3827
|
-
|
|
3828
|
-
|
|
3875
|
+
ManyToOne37(() => User, { onDelete: "CASCADE" }),
|
|
3876
|
+
JoinColumn37({ name: "reviewee_id" })
|
|
3829
3877
|
], Rating.prototype, "reviewee", 2);
|
|
3830
3878
|
__decorateClass([
|
|
3831
|
-
|
|
3879
|
+
Column43({
|
|
3832
3880
|
type: "enum",
|
|
3833
3881
|
enum: RatingTypeEnum,
|
|
3834
3882
|
nullable: true
|
|
3835
3883
|
})
|
|
3836
3884
|
], Rating.prototype, "ratingType", 2);
|
|
3837
3885
|
__decorateClass([
|
|
3838
|
-
|
|
3886
|
+
Column43({ type: "integer", nullable: true })
|
|
3839
3887
|
], Rating.prototype, "rating", 2);
|
|
3840
3888
|
__decorateClass([
|
|
3841
|
-
|
|
3889
|
+
Column43({ type: "text", nullable: true })
|
|
3842
3890
|
], Rating.prototype, "review", 2);
|
|
3843
3891
|
Rating = __decorateClass([
|
|
3844
|
-
|
|
3892
|
+
Entity42("ratings")
|
|
3845
3893
|
], Rating);
|
|
3846
3894
|
|
|
3847
3895
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5196,11 +5244,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5196
5244
|
};
|
|
5197
5245
|
|
|
5198
5246
|
// src/entities/sequence-generator.entity.ts
|
|
5199
|
-
import { Entity as
|
|
5247
|
+
import { Entity as Entity43, Column as Column44 } from "typeorm";
|
|
5200
5248
|
var SequenceGenerator = class extends BaseEntity {
|
|
5201
5249
|
};
|
|
5202
5250
|
__decorateClass([
|
|
5203
|
-
|
|
5251
|
+
Column44({
|
|
5204
5252
|
name: "module",
|
|
5205
5253
|
type: "varchar",
|
|
5206
5254
|
length: 50,
|
|
@@ -5209,7 +5257,7 @@ __decorateClass([
|
|
|
5209
5257
|
})
|
|
5210
5258
|
], SequenceGenerator.prototype, "module", 2);
|
|
5211
5259
|
__decorateClass([
|
|
5212
|
-
|
|
5260
|
+
Column44({
|
|
5213
5261
|
name: "prefix",
|
|
5214
5262
|
type: "varchar",
|
|
5215
5263
|
length: 10,
|
|
@@ -5218,7 +5266,7 @@ __decorateClass([
|
|
|
5218
5266
|
})
|
|
5219
5267
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5220
5268
|
__decorateClass([
|
|
5221
|
-
|
|
5269
|
+
Column44({
|
|
5222
5270
|
name: "last_sequence",
|
|
5223
5271
|
type: "int",
|
|
5224
5272
|
nullable: false,
|
|
@@ -5226,7 +5274,7 @@ __decorateClass([
|
|
|
5226
5274
|
})
|
|
5227
5275
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5228
5276
|
__decorateClass([
|
|
5229
|
-
|
|
5277
|
+
Column44({
|
|
5230
5278
|
name: "year",
|
|
5231
5279
|
type: "int",
|
|
5232
5280
|
nullable: true,
|
|
@@ -5234,11 +5282,11 @@ __decorateClass([
|
|
|
5234
5282
|
})
|
|
5235
5283
|
], SequenceGenerator.prototype, "year", 2);
|
|
5236
5284
|
SequenceGenerator = __decorateClass([
|
|
5237
|
-
|
|
5285
|
+
Entity43("sequence_generators")
|
|
5238
5286
|
], SequenceGenerator);
|
|
5239
5287
|
|
|
5240
5288
|
// src/entities/question.entity.ts
|
|
5241
|
-
import { Entity as
|
|
5289
|
+
import { Entity as Entity44, Column as Column45 } from "typeorm";
|
|
5242
5290
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5243
5291
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5244
5292
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5247,16 +5295,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5247
5295
|
var Question = class extends BaseEntity {
|
|
5248
5296
|
};
|
|
5249
5297
|
__decorateClass([
|
|
5250
|
-
|
|
5298
|
+
Column45({ name: "question", type: "varchar" })
|
|
5251
5299
|
], Question.prototype, "question", 2);
|
|
5252
5300
|
__decorateClass([
|
|
5253
|
-
|
|
5301
|
+
Column45({ name: "hint", type: "varchar", nullable: true })
|
|
5254
5302
|
], Question.prototype, "hint", 2);
|
|
5255
5303
|
__decorateClass([
|
|
5256
|
-
|
|
5304
|
+
Column45({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5257
5305
|
], Question.prototype, "slug", 2);
|
|
5258
5306
|
__decorateClass([
|
|
5259
|
-
|
|
5307
|
+
Column45({
|
|
5260
5308
|
name: "question_for",
|
|
5261
5309
|
type: "enum",
|
|
5262
5310
|
enum: QuestionFor,
|
|
@@ -5264,54 +5312,54 @@ __decorateClass([
|
|
|
5264
5312
|
})
|
|
5265
5313
|
], Question.prototype, "questionFor", 2);
|
|
5266
5314
|
__decorateClass([
|
|
5267
|
-
|
|
5315
|
+
Column45({ name: "type", type: "varchar", nullable: true })
|
|
5268
5316
|
], Question.prototype, "type", 2);
|
|
5269
5317
|
__decorateClass([
|
|
5270
|
-
|
|
5318
|
+
Column45({ name: "options", type: "jsonb", nullable: true })
|
|
5271
5319
|
], Question.prototype, "options", 2);
|
|
5272
5320
|
__decorateClass([
|
|
5273
|
-
|
|
5321
|
+
Column45({ name: "is_active", type: "boolean", default: false })
|
|
5274
5322
|
], Question.prototype, "isActive", 2);
|
|
5275
5323
|
Question = __decorateClass([
|
|
5276
|
-
|
|
5324
|
+
Entity44("questions")
|
|
5277
5325
|
], Question);
|
|
5278
5326
|
|
|
5279
5327
|
// src/entities/skill.entity.ts
|
|
5280
|
-
import { Entity as
|
|
5328
|
+
import { Entity as Entity45, Column as Column46 } from "typeorm";
|
|
5281
5329
|
var Skill = class extends BaseEntity {
|
|
5282
5330
|
};
|
|
5283
5331
|
__decorateClass([
|
|
5284
|
-
|
|
5332
|
+
Column46({ name: "name", type: "varchar", nullable: true })
|
|
5285
5333
|
], Skill.prototype, "name", 2);
|
|
5286
5334
|
__decorateClass([
|
|
5287
|
-
|
|
5335
|
+
Column46({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5288
5336
|
], Skill.prototype, "slug", 2);
|
|
5289
5337
|
__decorateClass([
|
|
5290
|
-
|
|
5338
|
+
Column46({ name: "is_active", type: "boolean", default: false })
|
|
5291
5339
|
], Skill.prototype, "isActive", 2);
|
|
5292
5340
|
Skill = __decorateClass([
|
|
5293
|
-
|
|
5341
|
+
Entity45("skills")
|
|
5294
5342
|
], Skill);
|
|
5295
5343
|
|
|
5296
5344
|
// src/entities/job-role.entity.ts
|
|
5297
|
-
import { Entity as
|
|
5345
|
+
import { Entity as Entity46, Column as Column47 } from "typeorm";
|
|
5298
5346
|
var JobRoles = class extends BaseEntity {
|
|
5299
5347
|
};
|
|
5300
5348
|
__decorateClass([
|
|
5301
|
-
|
|
5349
|
+
Column47({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5302
5350
|
], JobRoles.prototype, "slug", 2);
|
|
5303
5351
|
__decorateClass([
|
|
5304
|
-
|
|
5352
|
+
Column47({ name: "name", type: "varchar", nullable: true })
|
|
5305
5353
|
], JobRoles.prototype, "name", 2);
|
|
5306
5354
|
__decorateClass([
|
|
5307
|
-
|
|
5355
|
+
Column47({ name: "is_active", type: "boolean", default: true })
|
|
5308
5356
|
], JobRoles.prototype, "isActive", 2);
|
|
5309
5357
|
JobRoles = __decorateClass([
|
|
5310
|
-
|
|
5358
|
+
Entity46("job_roles")
|
|
5311
5359
|
], JobRoles);
|
|
5312
5360
|
|
|
5313
5361
|
// src/entities/ai-interview.entity.ts
|
|
5314
|
-
import { Entity as
|
|
5362
|
+
import { Entity as Entity47, Column as Column48, ManyToOne as ManyToOne38, JoinColumn as JoinColumn38, Index as Index38 } from "typeorm";
|
|
5315
5363
|
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5316
5364
|
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5317
5365
|
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
@@ -5337,37 +5385,37 @@ var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
|
5337
5385
|
var AIInterview = class extends BaseEntity {
|
|
5338
5386
|
};
|
|
5339
5387
|
__decorateClass([
|
|
5340
|
-
|
|
5388
|
+
Column48({
|
|
5341
5389
|
name: "interview_id",
|
|
5342
5390
|
type: "integer",
|
|
5343
5391
|
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5344
5392
|
}),
|
|
5345
|
-
|
|
5393
|
+
Index38()
|
|
5346
5394
|
], AIInterview.prototype, "interviewId", 2);
|
|
5347
5395
|
__decorateClass([
|
|
5348
|
-
|
|
5396
|
+
Column48({
|
|
5349
5397
|
name: "interview_invite_id",
|
|
5350
5398
|
type: "integer",
|
|
5351
5399
|
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5352
5400
|
})
|
|
5353
5401
|
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5354
5402
|
__decorateClass([
|
|
5355
|
-
|
|
5403
|
+
Column48({
|
|
5356
5404
|
name: "candidate_id",
|
|
5357
5405
|
type: "integer",
|
|
5358
5406
|
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5359
5407
|
}),
|
|
5360
|
-
|
|
5408
|
+
Index38()
|
|
5361
5409
|
], AIInterview.prototype, "candidateId", 2);
|
|
5362
5410
|
__decorateClass([
|
|
5363
|
-
|
|
5411
|
+
Column48({
|
|
5364
5412
|
name: "job_id",
|
|
5365
5413
|
type: "integer",
|
|
5366
5414
|
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5367
5415
|
})
|
|
5368
5416
|
], AIInterview.prototype, "jobId", 2);
|
|
5369
5417
|
__decorateClass([
|
|
5370
|
-
|
|
5418
|
+
Column48({
|
|
5371
5419
|
name: "invite_token",
|
|
5372
5420
|
type: "varchar",
|
|
5373
5421
|
unique: true,
|
|
@@ -5376,38 +5424,38 @@ __decorateClass([
|
|
|
5376
5424
|
})
|
|
5377
5425
|
], AIInterview.prototype, "inviteToken", 2);
|
|
5378
5426
|
__decorateClass([
|
|
5379
|
-
|
|
5427
|
+
Column48({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5380
5428
|
], AIInterview.prototype, "interviewType", 2);
|
|
5381
5429
|
__decorateClass([
|
|
5382
|
-
|
|
5430
|
+
Column48({
|
|
5383
5431
|
name: "interview_name",
|
|
5384
5432
|
type: "varchar",
|
|
5385
5433
|
comment: "Name of the interview"
|
|
5386
5434
|
})
|
|
5387
5435
|
], AIInterview.prototype, "interviewName", 2);
|
|
5388
5436
|
__decorateClass([
|
|
5389
|
-
|
|
5437
|
+
Column48({
|
|
5390
5438
|
name: "job_title",
|
|
5391
5439
|
type: "varchar",
|
|
5392
5440
|
comment: "Name of the job title for that the AI interview was conducted"
|
|
5393
5441
|
})
|
|
5394
5442
|
], AIInterview.prototype, "jobTitle", 2);
|
|
5395
5443
|
__decorateClass([
|
|
5396
|
-
|
|
5444
|
+
Column48({
|
|
5397
5445
|
type: "enum",
|
|
5398
5446
|
enum: AIInterviewStatusEnum,
|
|
5399
5447
|
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5400
5448
|
})
|
|
5401
5449
|
], AIInterview.prototype, "status", 2);
|
|
5402
5450
|
__decorateClass([
|
|
5403
|
-
|
|
5451
|
+
Column48({
|
|
5404
5452
|
name: "started_at",
|
|
5405
5453
|
type: "timestamp with time zone",
|
|
5406
5454
|
comment: "Timestamp when the interview was started"
|
|
5407
5455
|
})
|
|
5408
5456
|
], AIInterview.prototype, "startedAt", 2);
|
|
5409
5457
|
__decorateClass([
|
|
5410
|
-
|
|
5458
|
+
Column48({
|
|
5411
5459
|
name: "completed_at",
|
|
5412
5460
|
type: "timestamp with time zone",
|
|
5413
5461
|
nullable: true,
|
|
@@ -5415,7 +5463,7 @@ __decorateClass([
|
|
|
5415
5463
|
})
|
|
5416
5464
|
], AIInterview.prototype, "completedAt", 2);
|
|
5417
5465
|
__decorateClass([
|
|
5418
|
-
|
|
5466
|
+
Column48({
|
|
5419
5467
|
name: "duration_minutes",
|
|
5420
5468
|
type: "integer",
|
|
5421
5469
|
nullable: true,
|
|
@@ -5423,7 +5471,7 @@ __decorateClass([
|
|
|
5423
5471
|
})
|
|
5424
5472
|
], AIInterview.prototype, "durationMinutes", 2);
|
|
5425
5473
|
__decorateClass([
|
|
5426
|
-
|
|
5474
|
+
Column48({
|
|
5427
5475
|
name: "overall_score",
|
|
5428
5476
|
type: "decimal",
|
|
5429
5477
|
precision: 5,
|
|
@@ -5433,92 +5481,92 @@ __decorateClass([
|
|
|
5433
5481
|
})
|
|
5434
5482
|
], AIInterview.prototype, "overallScore", 2);
|
|
5435
5483
|
__decorateClass([
|
|
5436
|
-
|
|
5437
|
-
|
|
5484
|
+
ManyToOne38(() => Interview, { onDelete: "CASCADE" }),
|
|
5485
|
+
JoinColumn38({ name: "interview_id" })
|
|
5438
5486
|
], AIInterview.prototype, "interview", 2);
|
|
5439
5487
|
__decorateClass([
|
|
5440
|
-
|
|
5441
|
-
|
|
5488
|
+
ManyToOne38(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5489
|
+
JoinColumn38({ name: "interview_invite_id" })
|
|
5442
5490
|
], AIInterview.prototype, "interviewInvite", 2);
|
|
5443
5491
|
__decorateClass([
|
|
5444
|
-
|
|
5445
|
-
|
|
5492
|
+
ManyToOne38(() => User, { onDelete: "CASCADE" }),
|
|
5493
|
+
JoinColumn38({ name: "candidate_id" })
|
|
5446
5494
|
], AIInterview.prototype, "candidate", 2);
|
|
5447
5495
|
__decorateClass([
|
|
5448
|
-
|
|
5449
|
-
|
|
5496
|
+
ManyToOne38(() => Job, { onDelete: "CASCADE" }),
|
|
5497
|
+
JoinColumn38({ name: "job_id" })
|
|
5450
5498
|
], AIInterview.prototype, "job", 2);
|
|
5451
5499
|
AIInterview = __decorateClass([
|
|
5452
|
-
|
|
5500
|
+
Entity47("ai_interviews")
|
|
5453
5501
|
], AIInterview);
|
|
5454
5502
|
|
|
5455
5503
|
// src/entities/plan.entity.ts
|
|
5456
|
-
import { Entity as
|
|
5504
|
+
import { Entity as Entity49, Column as Column50, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
5457
5505
|
|
|
5458
5506
|
// src/entities/feature.entity.ts
|
|
5459
|
-
import { Entity as
|
|
5507
|
+
import { Entity as Entity48, Column as Column49, ManyToMany as ManyToMany2 } from "typeorm";
|
|
5460
5508
|
var Feature = class extends BaseEntity {
|
|
5461
5509
|
};
|
|
5462
5510
|
__decorateClass([
|
|
5463
|
-
|
|
5511
|
+
Column49({ name: "name", type: "varchar", unique: true })
|
|
5464
5512
|
], Feature.prototype, "name", 2);
|
|
5465
5513
|
__decorateClass([
|
|
5466
5514
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
5467
5515
|
], Feature.prototype, "plans", 2);
|
|
5468
5516
|
Feature = __decorateClass([
|
|
5469
|
-
|
|
5517
|
+
Entity48("features")
|
|
5470
5518
|
], Feature);
|
|
5471
5519
|
|
|
5472
5520
|
// src/entities/plan.entity.ts
|
|
5473
5521
|
var Plan = class extends BaseEntity {
|
|
5474
5522
|
};
|
|
5475
5523
|
__decorateClass([
|
|
5476
|
-
|
|
5524
|
+
Column50({ name: "name", type: "varchar", unique: true })
|
|
5477
5525
|
], Plan.prototype, "name", 2);
|
|
5478
5526
|
__decorateClass([
|
|
5479
|
-
|
|
5527
|
+
Column50({ name: "description", type: "varchar", nullable: true })
|
|
5480
5528
|
], Plan.prototype, "description", 2);
|
|
5481
5529
|
__decorateClass([
|
|
5482
|
-
|
|
5530
|
+
Column50({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5483
5531
|
], Plan.prototype, "price", 2);
|
|
5484
5532
|
__decorateClass([
|
|
5485
|
-
|
|
5533
|
+
Column50({ name: "billing_period", type: "varchar" })
|
|
5486
5534
|
], Plan.prototype, "billingPeriod", 2);
|
|
5487
5535
|
__decorateClass([
|
|
5488
|
-
|
|
5536
|
+
Column50({ name: "is_current", type: "boolean", default: false })
|
|
5489
5537
|
], Plan.prototype, "isCurrent", 2);
|
|
5490
5538
|
__decorateClass([
|
|
5491
5539
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5492
5540
|
JoinTable()
|
|
5493
5541
|
], Plan.prototype, "features", 2);
|
|
5494
5542
|
Plan = __decorateClass([
|
|
5495
|
-
|
|
5543
|
+
Entity49("plans")
|
|
5496
5544
|
], Plan);
|
|
5497
5545
|
|
|
5498
5546
|
// src/entities/cms.entity.ts
|
|
5499
|
-
import { Entity as
|
|
5547
|
+
import { Entity as Entity50, Column as Column51 } from "typeorm";
|
|
5500
5548
|
var Cms = class extends BaseEntity {
|
|
5501
5549
|
};
|
|
5502
5550
|
__decorateClass([
|
|
5503
|
-
|
|
5551
|
+
Column51({ name: "title", type: "varchar", nullable: true })
|
|
5504
5552
|
], Cms.prototype, "title", 2);
|
|
5505
5553
|
__decorateClass([
|
|
5506
|
-
|
|
5554
|
+
Column51({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5507
5555
|
], Cms.prototype, "slug", 2);
|
|
5508
5556
|
__decorateClass([
|
|
5509
|
-
|
|
5557
|
+
Column51({ name: "content", type: "varchar", nullable: true })
|
|
5510
5558
|
], Cms.prototype, "content", 2);
|
|
5511
5559
|
__decorateClass([
|
|
5512
|
-
|
|
5560
|
+
Column51({ name: "is_active", type: "boolean", default: true })
|
|
5513
5561
|
], Cms.prototype, "isActive", 2);
|
|
5514
5562
|
Cms = __decorateClass([
|
|
5515
|
-
|
|
5563
|
+
Entity50("cms")
|
|
5516
5564
|
], Cms);
|
|
5517
5565
|
|
|
5518
5566
|
// src/entities/lead.entity.ts
|
|
5519
5567
|
import {
|
|
5520
|
-
Entity as
|
|
5521
|
-
Column as
|
|
5568
|
+
Entity as Entity51,
|
|
5569
|
+
Column as Column52
|
|
5522
5570
|
} from "typeorm";
|
|
5523
5571
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5524
5572
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -5528,22 +5576,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5528
5576
|
var Lead = class extends BaseEntity {
|
|
5529
5577
|
};
|
|
5530
5578
|
__decorateClass([
|
|
5531
|
-
|
|
5579
|
+
Column52({ name: "name", type: "varchar", nullable: true })
|
|
5532
5580
|
], Lead.prototype, "name", 2);
|
|
5533
5581
|
__decorateClass([
|
|
5534
|
-
|
|
5582
|
+
Column52({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5535
5583
|
], Lead.prototype, "mobileCode", 2);
|
|
5536
5584
|
__decorateClass([
|
|
5537
|
-
|
|
5585
|
+
Column52({ name: "mobile", type: "varchar", nullable: true })
|
|
5538
5586
|
], Lead.prototype, "mobile", 2);
|
|
5539
5587
|
__decorateClass([
|
|
5540
|
-
|
|
5588
|
+
Column52({ name: "email", type: "varchar", nullable: true })
|
|
5541
5589
|
], Lead.prototype, "email", 2);
|
|
5542
5590
|
__decorateClass([
|
|
5543
|
-
|
|
5591
|
+
Column52({ name: "description", type: "varchar", nullable: true })
|
|
5544
5592
|
], Lead.prototype, "description", 2);
|
|
5545
5593
|
__decorateClass([
|
|
5546
|
-
|
|
5594
|
+
Column52({
|
|
5547
5595
|
name: "category",
|
|
5548
5596
|
type: "enum",
|
|
5549
5597
|
enum: CategoryEmum,
|
|
@@ -5551,7 +5599,7 @@ __decorateClass([
|
|
|
5551
5599
|
})
|
|
5552
5600
|
], Lead.prototype, "category", 2);
|
|
5553
5601
|
Lead = __decorateClass([
|
|
5554
|
-
|
|
5602
|
+
Entity51("leads")
|
|
5555
5603
|
], Lead);
|
|
5556
5604
|
|
|
5557
5605
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -5792,7 +5840,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5792
5840
|
], ClientFreelancerRecommendation);
|
|
5793
5841
|
|
|
5794
5842
|
// src/entities/commission.entity.ts
|
|
5795
|
-
import { Entity as
|
|
5843
|
+
import { Entity as Entity52, Column as Column53 } from "typeorm";
|
|
5796
5844
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5797
5845
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5798
5846
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5801,7 +5849,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5801
5849
|
var Commission = class extends BaseEntity {
|
|
5802
5850
|
};
|
|
5803
5851
|
__decorateClass([
|
|
5804
|
-
|
|
5852
|
+
Column53({
|
|
5805
5853
|
name: "freelancer_commission_type",
|
|
5806
5854
|
type: "enum",
|
|
5807
5855
|
enum: CommissionTypeEnum,
|
|
@@ -5809,10 +5857,10 @@ __decorateClass([
|
|
|
5809
5857
|
})
|
|
5810
5858
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5811
5859
|
__decorateClass([
|
|
5812
|
-
|
|
5860
|
+
Column53({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5813
5861
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5814
5862
|
__decorateClass([
|
|
5815
|
-
|
|
5863
|
+
Column53({
|
|
5816
5864
|
name: "client_commission_type",
|
|
5817
5865
|
type: "enum",
|
|
5818
5866
|
enum: CommissionTypeEnum,
|
|
@@ -5820,10 +5868,10 @@ __decorateClass([
|
|
|
5820
5868
|
})
|
|
5821
5869
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5822
5870
|
__decorateClass([
|
|
5823
|
-
|
|
5871
|
+
Column53({ name: "client_commission", type: "integer", default: 0 })
|
|
5824
5872
|
], Commission.prototype, "clientCommission", 2);
|
|
5825
5873
|
Commission = __decorateClass([
|
|
5826
|
-
|
|
5874
|
+
Entity52("commissions")
|
|
5827
5875
|
], Commission);
|
|
5828
5876
|
export {
|
|
5829
5877
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -5958,6 +6006,7 @@ export {
|
|
|
5958
6006
|
JobLocationEnumDto,
|
|
5959
6007
|
JobLocationEnums,
|
|
5960
6008
|
JobRMQAdapter,
|
|
6009
|
+
JobRecommendation,
|
|
5961
6010
|
JobRoles,
|
|
5962
6011
|
JobSkill,
|
|
5963
6012
|
JobStatus,
|