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