@experts_hub/shared 1.0.319 → 1.0.320
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/interview.entity.d.ts +2 -0
- package/dist/index.d.mts +21 -20
- package/dist/index.d.ts +21 -20
- package/dist/index.js +491 -488
- package/dist/index.mjs +532 -529
- 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 Entity41, Column as Column42, ManyToOne as ManyToOne36, JoinColumn as JoinColumn36, Index as Index36 } from "typeorm";
|
|
1388
1388
|
|
|
1389
1389
|
// src/entities/user.entity.ts
|
|
1390
1390
|
import {
|
|
1391
|
-
Entity as
|
|
1392
|
-
Column as
|
|
1391
|
+
Entity as Entity40,
|
|
1392
|
+
Column as Column41,
|
|
1393
1393
|
OneToMany as OneToMany14,
|
|
1394
1394
|
OneToOne,
|
|
1395
|
-
Index as
|
|
1396
|
-
ManyToOne as
|
|
1397
|
-
JoinColumn as
|
|
1395
|
+
Index as Index35,
|
|
1396
|
+
ManyToOne as ManyToOne35,
|
|
1397
|
+
JoinColumn as JoinColumn35
|
|
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 Entity15,
|
|
2110
|
+
Column as Column16,
|
|
2111
|
+
Index as Index11,
|
|
2112
|
+
ManyToOne as ManyToOne14,
|
|
2113
|
+
JoinColumn as JoinColumn14,
|
|
2114
2114
|
OneToMany as OneToMany6
|
|
2115
2115
|
} from "typeorm";
|
|
2116
2116
|
|
|
@@ -2257,11 +2257,11 @@ JobApplication = __decorateClass([
|
|
|
2257
2257
|
|
|
2258
2258
|
// src/entities/interview.entity.ts
|
|
2259
2259
|
import {
|
|
2260
|
-
Entity as
|
|
2261
|
-
Column as
|
|
2262
|
-
Index as
|
|
2263
|
-
ManyToOne as
|
|
2264
|
-
JoinColumn as
|
|
2260
|
+
Entity as Entity14,
|
|
2261
|
+
Column as Column15,
|
|
2262
|
+
Index as Index10,
|
|
2263
|
+
ManyToOne as ManyToOne13,
|
|
2264
|
+
JoinColumn as JoinColumn13,
|
|
2265
2265
|
OneToMany as OneToMany5
|
|
2266
2266
|
} from "typeorm";
|
|
2267
2267
|
|
|
@@ -2316,6 +2316,105 @@ InterviewQuestion = __decorateClass([
|
|
|
2316
2316
|
Entity12("interview_questions")
|
|
2317
2317
|
], InterviewQuestion);
|
|
2318
2318
|
|
|
2319
|
+
// src/entities/interview-invite.entity.ts
|
|
2320
|
+
import { Entity as Entity13, Column as Column14, ManyToOne as ManyToOne12, JoinColumn as JoinColumn12, Index as Index9 } from "typeorm";
|
|
2321
|
+
var InterviewInviteStatusEnum = /* @__PURE__ */ ((InterviewInviteStatusEnum2) => {
|
|
2322
|
+
InterviewInviteStatusEnum2["PENDING"] = "PENDING";
|
|
2323
|
+
InterviewInviteStatusEnum2["ACCEPTED"] = "ACCEPTED";
|
|
2324
|
+
InterviewInviteStatusEnum2["REJECTED"] = "REJECTED";
|
|
2325
|
+
InterviewInviteStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2326
|
+
return InterviewInviteStatusEnum2;
|
|
2327
|
+
})(InterviewInviteStatusEnum || {});
|
|
2328
|
+
var InterviewInvite = class extends BaseEntity {
|
|
2329
|
+
};
|
|
2330
|
+
__decorateClass([
|
|
2331
|
+
Column14({
|
|
2332
|
+
name: "interview_id",
|
|
2333
|
+
type: "integer",
|
|
2334
|
+
comment: "Column to specify interview id"
|
|
2335
|
+
}),
|
|
2336
|
+
Index9()
|
|
2337
|
+
], InterviewInvite.prototype, "interviewId", 2);
|
|
2338
|
+
__decorateClass([
|
|
2339
|
+
ManyToOne12(() => Interview, (interview) => interview.invites, { onDelete: "CASCADE" }),
|
|
2340
|
+
JoinColumn12({ name: "interview_id" })
|
|
2341
|
+
], InterviewInvite.prototype, "interview", 2);
|
|
2342
|
+
__decorateClass([
|
|
2343
|
+
Column14({
|
|
2344
|
+
name: "user_id",
|
|
2345
|
+
type: "integer",
|
|
2346
|
+
nullable: true,
|
|
2347
|
+
comment: "FK to User entity if candidate is already registered"
|
|
2348
|
+
}),
|
|
2349
|
+
Index9()
|
|
2350
|
+
], InterviewInvite.prototype, "userId", 2);
|
|
2351
|
+
__decorateClass([
|
|
2352
|
+
ManyToOne12(() => User),
|
|
2353
|
+
JoinColumn12({ name: "user_id" })
|
|
2354
|
+
], InterviewInvite.prototype, "user", 2);
|
|
2355
|
+
__decorateClass([
|
|
2356
|
+
Column14({
|
|
2357
|
+
name: "full_name",
|
|
2358
|
+
type: "varchar",
|
|
2359
|
+
nullable: true,
|
|
2360
|
+
comment: "Candidate's full name (used in the email invitation)"
|
|
2361
|
+
})
|
|
2362
|
+
], InterviewInvite.prototype, "fullName", 2);
|
|
2363
|
+
__decorateClass([
|
|
2364
|
+
Column14({
|
|
2365
|
+
name: "email",
|
|
2366
|
+
type: "varchar",
|
|
2367
|
+
comment: "Candidate's email address (must be unique per invite)"
|
|
2368
|
+
}),
|
|
2369
|
+
Index9()
|
|
2370
|
+
], InterviewInvite.prototype, "email", 2);
|
|
2371
|
+
__decorateClass([
|
|
2372
|
+
Column14({
|
|
2373
|
+
name: "status",
|
|
2374
|
+
type: "enum",
|
|
2375
|
+
enum: InterviewInviteStatusEnum,
|
|
2376
|
+
default: "PENDING" /* PENDING */,
|
|
2377
|
+
comment: "To manage invite status"
|
|
2378
|
+
})
|
|
2379
|
+
], InterviewInvite.prototype, "status", 2);
|
|
2380
|
+
__decorateClass([
|
|
2381
|
+
Column14({
|
|
2382
|
+
name: "sent_at",
|
|
2383
|
+
type: "timestamp with time zone",
|
|
2384
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
2385
|
+
comment: "Timestamp when the invite was created/sent"
|
|
2386
|
+
})
|
|
2387
|
+
], InterviewInvite.prototype, "sentAt", 2);
|
|
2388
|
+
__decorateClass([
|
|
2389
|
+
Column14({
|
|
2390
|
+
name: "expired_at",
|
|
2391
|
+
type: "timestamp with time zone",
|
|
2392
|
+
comment: "Automatically expires invite after 72 hours",
|
|
2393
|
+
nullable: true
|
|
2394
|
+
})
|
|
2395
|
+
], InterviewInvite.prototype, "expiresAt", 2);
|
|
2396
|
+
__decorateClass([
|
|
2397
|
+
Column14({
|
|
2398
|
+
name: "responded_at",
|
|
2399
|
+
type: "timestamp with time zone",
|
|
2400
|
+
nullable: true,
|
|
2401
|
+
comment: "Timestamp when candidate responded."
|
|
2402
|
+
})
|
|
2403
|
+
], InterviewInvite.prototype, "respondedAt", 2);
|
|
2404
|
+
__decorateClass([
|
|
2405
|
+
Column14({
|
|
2406
|
+
name: "token",
|
|
2407
|
+
type: "varchar",
|
|
2408
|
+
unique: true,
|
|
2409
|
+
comment: "Secure unique token sent in email link for invite tracking",
|
|
2410
|
+
nullable: true
|
|
2411
|
+
}),
|
|
2412
|
+
Index9()
|
|
2413
|
+
], InterviewInvite.prototype, "token", 2);
|
|
2414
|
+
InterviewInvite = __decorateClass([
|
|
2415
|
+
Entity13("interview_invites")
|
|
2416
|
+
], InterviewInvite);
|
|
2417
|
+
|
|
2319
2418
|
// src/entities/interview.entity.ts
|
|
2320
2419
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2321
2420
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2328,38 +2427,38 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2328
2427
|
var Interview = class extends BaseEntity {
|
|
2329
2428
|
};
|
|
2330
2429
|
__decorateClass([
|
|
2331
|
-
|
|
2430
|
+
Column15({
|
|
2332
2431
|
name: "interview_id",
|
|
2333
2432
|
type: "varchar",
|
|
2334
2433
|
unique: true,
|
|
2335
2434
|
nullable: true
|
|
2336
2435
|
}),
|
|
2337
|
-
|
|
2436
|
+
Index10()
|
|
2338
2437
|
], Interview.prototype, "interviewId", 2);
|
|
2339
2438
|
__decorateClass([
|
|
2340
|
-
|
|
2341
|
-
|
|
2439
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
2440
|
+
Index10()
|
|
2342
2441
|
], Interview.prototype, "userId", 2);
|
|
2343
2442
|
__decorateClass([
|
|
2344
|
-
|
|
2345
|
-
|
|
2443
|
+
ManyToOne13(() => User, (user) => user.interviews),
|
|
2444
|
+
JoinColumn13({ name: "user_id" })
|
|
2346
2445
|
], Interview.prototype, "user", 2);
|
|
2347
2446
|
__decorateClass([
|
|
2348
|
-
|
|
2447
|
+
Column15({ name: "interview_name", type: "varchar", nullable: true })
|
|
2349
2448
|
], Interview.prototype, "interviewName", 2);
|
|
2350
2449
|
__decorateClass([
|
|
2351
|
-
|
|
2352
|
-
|
|
2450
|
+
Column15({ name: "job_id", type: "integer" }),
|
|
2451
|
+
Index10()
|
|
2353
2452
|
], Interview.prototype, "jobId", 2);
|
|
2354
2453
|
__decorateClass([
|
|
2355
|
-
|
|
2356
|
-
|
|
2454
|
+
ManyToOne13(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2455
|
+
JoinColumn13({ name: "job_id" })
|
|
2357
2456
|
], Interview.prototype, "job", 2);
|
|
2358
2457
|
__decorateClass([
|
|
2359
|
-
|
|
2458
|
+
Column15({ name: "interview_type", type: "varchar", nullable: true })
|
|
2360
2459
|
], Interview.prototype, "interviewType", 2);
|
|
2361
2460
|
__decorateClass([
|
|
2362
|
-
|
|
2461
|
+
Column15({
|
|
2363
2462
|
name: "status",
|
|
2364
2463
|
type: "enum",
|
|
2365
2464
|
enum: InterviewStatusEnum,
|
|
@@ -2380,8 +2479,11 @@ __decorateClass([
|
|
|
2380
2479
|
{ cascade: true }
|
|
2381
2480
|
)
|
|
2382
2481
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2482
|
+
__decorateClass([
|
|
2483
|
+
OneToMany5(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2484
|
+
], Interview.prototype, "invites", 2);
|
|
2383
2485
|
Interview = __decorateClass([
|
|
2384
|
-
|
|
2486
|
+
Entity14("interviews")
|
|
2385
2487
|
], Interview);
|
|
2386
2488
|
|
|
2387
2489
|
// src/entities/job.entity.ts
|
|
@@ -2421,49 +2523,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2421
2523
|
var Job = class extends BaseEntity {
|
|
2422
2524
|
};
|
|
2423
2525
|
__decorateClass([
|
|
2424
|
-
|
|
2526
|
+
Column16({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2425
2527
|
], Job.prototype, "jobId", 2);
|
|
2426
2528
|
// individual index to find jobs by user
|
|
2427
2529
|
__decorateClass([
|
|
2428
|
-
|
|
2429
|
-
|
|
2530
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
2531
|
+
Index11()
|
|
2430
2532
|
], Job.prototype, "userId", 2);
|
|
2431
2533
|
__decorateClass([
|
|
2432
|
-
|
|
2433
|
-
|
|
2534
|
+
ManyToOne14(() => User, (user) => user.jobs),
|
|
2535
|
+
JoinColumn14({ name: "user_id" })
|
|
2434
2536
|
], Job.prototype, "user", 2);
|
|
2435
2537
|
__decorateClass([
|
|
2436
|
-
|
|
2538
|
+
Column16({ name: "country_id", type: "int", nullable: true })
|
|
2437
2539
|
], Job.prototype, "countryId", 2);
|
|
2438
2540
|
__decorateClass([
|
|
2439
|
-
|
|
2440
|
-
|
|
2541
|
+
ManyToOne14(() => Country),
|
|
2542
|
+
JoinColumn14({ name: "country_id" })
|
|
2441
2543
|
], Job.prototype, "country", 2);
|
|
2442
2544
|
__decorateClass([
|
|
2443
|
-
|
|
2545
|
+
Column16({ name: "state_id", type: "int", nullable: true })
|
|
2444
2546
|
], Job.prototype, "stateId", 2);
|
|
2445
2547
|
__decorateClass([
|
|
2446
|
-
|
|
2447
|
-
|
|
2548
|
+
ManyToOne14(() => State),
|
|
2549
|
+
JoinColumn14({ name: "state_id" })
|
|
2448
2550
|
], Job.prototype, "state", 2);
|
|
2449
2551
|
__decorateClass([
|
|
2450
|
-
|
|
2552
|
+
Column16({ name: "city_id", type: "int", nullable: true })
|
|
2451
2553
|
], Job.prototype, "cityId", 2);
|
|
2452
2554
|
__decorateClass([
|
|
2453
|
-
|
|
2454
|
-
|
|
2555
|
+
ManyToOne14(() => City),
|
|
2556
|
+
JoinColumn14({ name: "city_id" })
|
|
2455
2557
|
], Job.prototype, "city", 2);
|
|
2456
2558
|
__decorateClass([
|
|
2457
|
-
|
|
2559
|
+
Column16({ name: "job_role", type: "varchar", nullable: true })
|
|
2458
2560
|
], Job.prototype, "jobRole", 2);
|
|
2459
2561
|
__decorateClass([
|
|
2460
|
-
|
|
2562
|
+
Column16({ name: "note", type: "varchar", nullable: true })
|
|
2461
2563
|
], Job.prototype, "note", 2);
|
|
2462
2564
|
__decorateClass([
|
|
2463
|
-
|
|
2565
|
+
Column16({ name: "openings", type: "integer", default: 0 })
|
|
2464
2566
|
], Job.prototype, "openings", 2);
|
|
2465
2567
|
__decorateClass([
|
|
2466
|
-
|
|
2568
|
+
Column16({
|
|
2467
2569
|
name: "location",
|
|
2468
2570
|
type: "enum",
|
|
2469
2571
|
enum: JobLocationEnum,
|
|
@@ -2471,7 +2573,7 @@ __decorateClass([
|
|
|
2471
2573
|
})
|
|
2472
2574
|
], Job.prototype, "location", 2);
|
|
2473
2575
|
__decorateClass([
|
|
2474
|
-
|
|
2576
|
+
Column16({
|
|
2475
2577
|
name: "type_of_employment",
|
|
2476
2578
|
type: "enum",
|
|
2477
2579
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2479,19 +2581,19 @@ __decorateClass([
|
|
|
2479
2581
|
})
|
|
2480
2582
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2481
2583
|
__decorateClass([
|
|
2482
|
-
|
|
2584
|
+
Column16({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2483
2585
|
], Job.prototype, "academicQualification", 2);
|
|
2484
2586
|
__decorateClass([
|
|
2485
|
-
|
|
2587
|
+
Column16({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2486
2588
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2487
2589
|
__decorateClass([
|
|
2488
|
-
|
|
2590
|
+
Column16({ name: "business_industry", type: "varchar", nullable: true })
|
|
2489
2591
|
], Job.prototype, "businessIndustry", 2);
|
|
2490
2592
|
__decorateClass([
|
|
2491
|
-
|
|
2593
|
+
Column16({ name: "currency", type: "varchar", default: "USD" })
|
|
2492
2594
|
], Job.prototype, "currency", 2);
|
|
2493
2595
|
__decorateClass([
|
|
2494
|
-
|
|
2596
|
+
Column16({
|
|
2495
2597
|
name: "expected_salary_from",
|
|
2496
2598
|
type: "decimal",
|
|
2497
2599
|
precision: 10,
|
|
@@ -2500,7 +2602,7 @@ __decorateClass([
|
|
|
2500
2602
|
})
|
|
2501
2603
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2502
2604
|
__decorateClass([
|
|
2503
|
-
|
|
2605
|
+
Column16({
|
|
2504
2606
|
name: "expected_salary_to",
|
|
2505
2607
|
type: "decimal",
|
|
2506
2608
|
precision: 10,
|
|
@@ -2509,16 +2611,16 @@ __decorateClass([
|
|
|
2509
2611
|
})
|
|
2510
2612
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2511
2613
|
__decorateClass([
|
|
2512
|
-
|
|
2614
|
+
Column16({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2513
2615
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2514
2616
|
__decorateClass([
|
|
2515
|
-
|
|
2617
|
+
Column16({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2516
2618
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2517
2619
|
__decorateClass([
|
|
2518
|
-
|
|
2620
|
+
Column16({ name: "duration", type: "varchar", nullable: true })
|
|
2519
2621
|
], Job.prototype, "duration", 2);
|
|
2520
2622
|
__decorateClass([
|
|
2521
|
-
|
|
2623
|
+
Column16({
|
|
2522
2624
|
name: "duration_type",
|
|
2523
2625
|
type: "enum",
|
|
2524
2626
|
enum: DurationTypeEnum,
|
|
@@ -2526,13 +2628,13 @@ __decorateClass([
|
|
|
2526
2628
|
})
|
|
2527
2629
|
], Job.prototype, "durationType", 2);
|
|
2528
2630
|
__decorateClass([
|
|
2529
|
-
|
|
2631
|
+
Column16({ name: "description", type: "varchar", nullable: true })
|
|
2530
2632
|
], Job.prototype, "description", 2);
|
|
2531
2633
|
__decorateClass([
|
|
2532
|
-
|
|
2634
|
+
Column16({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2533
2635
|
], Job.prototype, "additionalComment", 2);
|
|
2534
2636
|
__decorateClass([
|
|
2535
|
-
|
|
2637
|
+
Column16({
|
|
2536
2638
|
name: "onboarding_tat",
|
|
2537
2639
|
type: "varchar",
|
|
2538
2640
|
length: 50,
|
|
@@ -2540,14 +2642,14 @@ __decorateClass([
|
|
|
2540
2642
|
})
|
|
2541
2643
|
], Job.prototype, "onboardingTat", 2);
|
|
2542
2644
|
__decorateClass([
|
|
2543
|
-
|
|
2645
|
+
Column16({
|
|
2544
2646
|
name: "candidate_communication_skills",
|
|
2545
2647
|
type: "varchar",
|
|
2546
2648
|
nullable: true
|
|
2547
2649
|
})
|
|
2548
2650
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2549
2651
|
__decorateClass([
|
|
2550
|
-
|
|
2652
|
+
Column16({
|
|
2551
2653
|
name: "step_completed",
|
|
2552
2654
|
type: "enum",
|
|
2553
2655
|
enum: Step,
|
|
@@ -2555,7 +2657,7 @@ __decorateClass([
|
|
|
2555
2657
|
})
|
|
2556
2658
|
], Job.prototype, "stepCompleted", 2);
|
|
2557
2659
|
__decorateClass([
|
|
2558
|
-
|
|
2660
|
+
Column16({
|
|
2559
2661
|
name: "status",
|
|
2560
2662
|
type: "enum",
|
|
2561
2663
|
enum: JobStatusEnum,
|
|
@@ -2563,10 +2665,10 @@ __decorateClass([
|
|
|
2563
2665
|
})
|
|
2564
2666
|
], Job.prototype, "status", 2);
|
|
2565
2667
|
__decorateClass([
|
|
2566
|
-
|
|
2668
|
+
Column16({ name: "viewed_count", type: "integer", default: 0 })
|
|
2567
2669
|
], Job.prototype, "viewedCount", 2);
|
|
2568
2670
|
__decorateClass([
|
|
2569
|
-
|
|
2671
|
+
Column16({ name: "application_count", type: "integer", default: 0 })
|
|
2570
2672
|
], Job.prototype, "applicationCount", 2);
|
|
2571
2673
|
__decorateClass([
|
|
2572
2674
|
OneToMany6(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -2582,16 +2684,16 @@ __decorateClass([
|
|
|
2582
2684
|
})
|
|
2583
2685
|
], Job.prototype, "interviews", 2);
|
|
2584
2686
|
Job = __decorateClass([
|
|
2585
|
-
|
|
2687
|
+
Entity15("jobs")
|
|
2586
2688
|
], Job);
|
|
2587
2689
|
|
|
2588
2690
|
// src/entities/bank-details.entity.ts
|
|
2589
2691
|
import {
|
|
2590
|
-
Entity as
|
|
2591
|
-
Column as
|
|
2592
|
-
Index as
|
|
2593
|
-
ManyToOne as
|
|
2594
|
-
JoinColumn as
|
|
2692
|
+
Entity as Entity16,
|
|
2693
|
+
Column as Column17,
|
|
2694
|
+
Index as Index12,
|
|
2695
|
+
ManyToOne as ManyToOne15,
|
|
2696
|
+
JoinColumn as JoinColumn15
|
|
2595
2697
|
} from "typeorm";
|
|
2596
2698
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2597
2699
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -2607,48 +2709,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2607
2709
|
};
|
|
2608
2710
|
// individual index to find bank details by user
|
|
2609
2711
|
__decorateClass([
|
|
2610
|
-
|
|
2611
|
-
|
|
2712
|
+
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2713
|
+
Index12()
|
|
2612
2714
|
], BankDetail.prototype, "userId", 2);
|
|
2613
2715
|
__decorateClass([
|
|
2614
|
-
|
|
2615
|
-
|
|
2716
|
+
ManyToOne15(() => User, (user) => user.bankDetail),
|
|
2717
|
+
JoinColumn15({ name: "user_id" })
|
|
2616
2718
|
], BankDetail.prototype, "user", 2);
|
|
2617
2719
|
__decorateClass([
|
|
2618
|
-
|
|
2720
|
+
Column17({ name: "name", type: "varchar", nullable: true })
|
|
2619
2721
|
], BankDetail.prototype, "name", 2);
|
|
2620
2722
|
__decorateClass([
|
|
2621
|
-
|
|
2723
|
+
Column17({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2622
2724
|
], BankDetail.prototype, "mobile", 2);
|
|
2623
2725
|
__decorateClass([
|
|
2624
|
-
|
|
2726
|
+
Column17({ name: "email", type: "varchar", unique: true })
|
|
2625
2727
|
], BankDetail.prototype, "email", 2);
|
|
2626
2728
|
__decorateClass([
|
|
2627
|
-
|
|
2729
|
+
Column17({ name: "address", type: "varchar", nullable: true })
|
|
2628
2730
|
], BankDetail.prototype, "address", 2);
|
|
2629
2731
|
__decorateClass([
|
|
2630
|
-
|
|
2732
|
+
Column17({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2631
2733
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2632
2734
|
__decorateClass([
|
|
2633
|
-
|
|
2735
|
+
Column17({ name: "bank_name", type: "varchar", nullable: true })
|
|
2634
2736
|
], BankDetail.prototype, "bankName", 2);
|
|
2635
2737
|
__decorateClass([
|
|
2636
|
-
|
|
2738
|
+
Column17({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2637
2739
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2638
2740
|
__decorateClass([
|
|
2639
|
-
|
|
2741
|
+
Column17({ name: "branch_name", type: "varchar", nullable: true })
|
|
2640
2742
|
], BankDetail.prototype, "branchName", 2);
|
|
2641
2743
|
__decorateClass([
|
|
2642
|
-
|
|
2744
|
+
Column17({ name: "routing_no", type: "varchar", nullable: true })
|
|
2643
2745
|
], BankDetail.prototype, "routingNo", 2);
|
|
2644
2746
|
__decorateClass([
|
|
2645
|
-
|
|
2747
|
+
Column17({ name: "aba_no", type: "varchar", nullable: true })
|
|
2646
2748
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2647
2749
|
__decorateClass([
|
|
2648
|
-
|
|
2750
|
+
Column17({ name: "iban", type: "varchar", nullable: true })
|
|
2649
2751
|
], BankDetail.prototype, "iban", 2);
|
|
2650
2752
|
__decorateClass([
|
|
2651
|
-
|
|
2753
|
+
Column17({
|
|
2652
2754
|
name: "account_type",
|
|
2653
2755
|
type: "enum",
|
|
2654
2756
|
enum: BankAccountTypeEnum,
|
|
@@ -2656,7 +2758,7 @@ __decorateClass([
|
|
|
2656
2758
|
})
|
|
2657
2759
|
], BankDetail.prototype, "accountType", 2);
|
|
2658
2760
|
__decorateClass([
|
|
2659
|
-
|
|
2761
|
+
Column17({
|
|
2660
2762
|
name: "account_scope",
|
|
2661
2763
|
type: "enum",
|
|
2662
2764
|
enum: BankAccountScopeEnum,
|
|
@@ -2664,263 +2766,263 @@ __decorateClass([
|
|
|
2664
2766
|
})
|
|
2665
2767
|
], BankDetail.prototype, "accountScope", 2);
|
|
2666
2768
|
BankDetail = __decorateClass([
|
|
2667
|
-
|
|
2769
|
+
Entity16("bank_details")
|
|
2668
2770
|
], BankDetail);
|
|
2669
2771
|
|
|
2670
2772
|
// src/entities/system-preference.entity.ts
|
|
2671
2773
|
import {
|
|
2672
|
-
Entity as
|
|
2673
|
-
Column as
|
|
2674
|
-
Index as
|
|
2675
|
-
ManyToOne as
|
|
2676
|
-
JoinColumn as
|
|
2774
|
+
Entity as Entity17,
|
|
2775
|
+
Column as Column18,
|
|
2776
|
+
Index as Index13,
|
|
2777
|
+
ManyToOne as ManyToOne16,
|
|
2778
|
+
JoinColumn as JoinColumn16
|
|
2677
2779
|
} from "typeorm";
|
|
2678
2780
|
var SystemPreference = class extends BaseEntity {
|
|
2679
2781
|
};
|
|
2680
2782
|
// individual index to find system preference by user
|
|
2681
2783
|
__decorateClass([
|
|
2682
|
-
|
|
2683
|
-
|
|
2784
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2785
|
+
Index13()
|
|
2684
2786
|
], SystemPreference.prototype, "userId", 2);
|
|
2685
2787
|
__decorateClass([
|
|
2686
|
-
|
|
2687
|
-
|
|
2788
|
+
ManyToOne16(() => User, (user) => user.systemPreference),
|
|
2789
|
+
JoinColumn16({ name: "user_id" })
|
|
2688
2790
|
], SystemPreference.prototype, "user", 2);
|
|
2689
2791
|
__decorateClass([
|
|
2690
|
-
|
|
2792
|
+
Column18({ name: "key", type: "varchar", nullable: false })
|
|
2691
2793
|
], SystemPreference.prototype, "key", 2);
|
|
2692
2794
|
__decorateClass([
|
|
2693
|
-
|
|
2795
|
+
Column18({ name: "value", type: "boolean", default: false })
|
|
2694
2796
|
], SystemPreference.prototype, "value", 2);
|
|
2695
2797
|
SystemPreference = __decorateClass([
|
|
2696
|
-
|
|
2798
|
+
Entity17("system_preferences")
|
|
2697
2799
|
], SystemPreference);
|
|
2698
2800
|
|
|
2699
2801
|
// src/entities/freelancer-experience.entity.ts
|
|
2700
2802
|
import {
|
|
2701
|
-
Entity as
|
|
2702
|
-
Column as
|
|
2703
|
-
Index as
|
|
2704
|
-
ManyToOne as
|
|
2705
|
-
JoinColumn as
|
|
2803
|
+
Entity as Entity18,
|
|
2804
|
+
Column as Column19,
|
|
2805
|
+
Index as Index14,
|
|
2806
|
+
ManyToOne as ManyToOne17,
|
|
2807
|
+
JoinColumn as JoinColumn17
|
|
2706
2808
|
} from "typeorm";
|
|
2707
2809
|
var FreelancerExperience = class extends BaseEntity {
|
|
2708
2810
|
};
|
|
2709
2811
|
// individual index to find experence by user
|
|
2710
2812
|
__decorateClass([
|
|
2711
|
-
|
|
2712
|
-
|
|
2813
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2814
|
+
Index14()
|
|
2713
2815
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2714
2816
|
__decorateClass([
|
|
2715
|
-
|
|
2716
|
-
|
|
2817
|
+
ManyToOne17(() => User, (user) => user.freelancerExperience),
|
|
2818
|
+
JoinColumn17({ name: "user_id" })
|
|
2717
2819
|
], FreelancerExperience.prototype, "user", 2);
|
|
2718
2820
|
__decorateClass([
|
|
2719
|
-
|
|
2821
|
+
Column19({ name: "company_name", type: "varchar", nullable: true })
|
|
2720
2822
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2721
2823
|
__decorateClass([
|
|
2722
|
-
|
|
2824
|
+
Column19({ name: "designation", type: "varchar", nullable: true })
|
|
2723
2825
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2724
2826
|
__decorateClass([
|
|
2725
|
-
|
|
2827
|
+
Column19({ name: "job_duration", type: "varchar", nullable: true })
|
|
2726
2828
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2727
2829
|
__decorateClass([
|
|
2728
|
-
|
|
2830
|
+
Column19({ name: "description", type: "varchar", nullable: true })
|
|
2729
2831
|
], FreelancerExperience.prototype, "description", 2);
|
|
2730
2832
|
FreelancerExperience = __decorateClass([
|
|
2731
|
-
|
|
2833
|
+
Entity18("freelancer_experiences")
|
|
2732
2834
|
], FreelancerExperience);
|
|
2733
2835
|
|
|
2734
2836
|
// src/entities/freelancer-education.entity.ts
|
|
2735
2837
|
import {
|
|
2736
|
-
Entity as
|
|
2737
|
-
Column as
|
|
2738
|
-
Index as
|
|
2739
|
-
ManyToOne as
|
|
2740
|
-
JoinColumn as
|
|
2838
|
+
Entity as Entity19,
|
|
2839
|
+
Column as Column20,
|
|
2840
|
+
Index as Index15,
|
|
2841
|
+
ManyToOne as ManyToOne18,
|
|
2842
|
+
JoinColumn as JoinColumn18
|
|
2741
2843
|
} from "typeorm";
|
|
2742
2844
|
var FreelancerEducation = class extends BaseEntity {
|
|
2743
2845
|
};
|
|
2744
2846
|
// individual index to find education by user
|
|
2745
2847
|
__decorateClass([
|
|
2746
|
-
|
|
2747
|
-
|
|
2848
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2849
|
+
Index15()
|
|
2748
2850
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2749
2851
|
__decorateClass([
|
|
2750
|
-
|
|
2751
|
-
|
|
2852
|
+
ManyToOne18(() => User, (user) => user.freelancerEducation),
|
|
2853
|
+
JoinColumn18({ name: "user_id" })
|
|
2752
2854
|
], FreelancerEducation.prototype, "user", 2);
|
|
2753
2855
|
__decorateClass([
|
|
2754
|
-
|
|
2856
|
+
Column20({ name: "degree", type: "varchar", nullable: true })
|
|
2755
2857
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2756
2858
|
__decorateClass([
|
|
2757
|
-
|
|
2859
|
+
Column20({ name: "university", type: "varchar", nullable: true })
|
|
2758
2860
|
], FreelancerEducation.prototype, "university", 2);
|
|
2759
2861
|
__decorateClass([
|
|
2760
|
-
|
|
2862
|
+
Column20({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2761
2863
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2762
2864
|
FreelancerEducation = __decorateClass([
|
|
2763
|
-
|
|
2865
|
+
Entity19("freelancer_educations")
|
|
2764
2866
|
], FreelancerEducation);
|
|
2765
2867
|
|
|
2766
2868
|
// src/entities/freelancer-project.entity.ts
|
|
2767
2869
|
import {
|
|
2768
|
-
Entity as
|
|
2769
|
-
Column as
|
|
2770
|
-
Index as
|
|
2771
|
-
ManyToOne as
|
|
2772
|
-
JoinColumn as
|
|
2870
|
+
Entity as Entity20,
|
|
2871
|
+
Column as Column21,
|
|
2872
|
+
Index as Index16,
|
|
2873
|
+
ManyToOne as ManyToOne19,
|
|
2874
|
+
JoinColumn as JoinColumn19
|
|
2773
2875
|
} from "typeorm";
|
|
2774
2876
|
var FreelancerProject = class extends BaseEntity {
|
|
2775
2877
|
};
|
|
2776
2878
|
// individual index to find project by user
|
|
2777
2879
|
__decorateClass([
|
|
2778
|
-
|
|
2779
|
-
|
|
2880
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2881
|
+
Index16()
|
|
2780
2882
|
], FreelancerProject.prototype, "userId", 2);
|
|
2781
2883
|
__decorateClass([
|
|
2782
|
-
|
|
2783
|
-
|
|
2884
|
+
ManyToOne19(() => User, (user) => user.freelancerProject),
|
|
2885
|
+
JoinColumn19({ name: "user_id" })
|
|
2784
2886
|
], FreelancerProject.prototype, "user", 2);
|
|
2785
2887
|
__decorateClass([
|
|
2786
|
-
|
|
2888
|
+
Column21({ name: "project_name", type: "varchar", nullable: true })
|
|
2787
2889
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2788
2890
|
__decorateClass([
|
|
2789
|
-
|
|
2891
|
+
Column21({ name: "start_date", type: "date", nullable: true })
|
|
2790
2892
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2791
2893
|
__decorateClass([
|
|
2792
|
-
|
|
2894
|
+
Column21({ name: "end_date", type: "date", nullable: true })
|
|
2793
2895
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2794
2896
|
__decorateClass([
|
|
2795
|
-
|
|
2897
|
+
Column21({ name: "client_name", type: "varchar", nullable: true })
|
|
2796
2898
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2797
2899
|
__decorateClass([
|
|
2798
|
-
|
|
2900
|
+
Column21({ name: "git_link", type: "varchar", nullable: true })
|
|
2799
2901
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2800
2902
|
__decorateClass([
|
|
2801
|
-
|
|
2903
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2802
2904
|
], FreelancerProject.prototype, "description", 2);
|
|
2803
2905
|
FreelancerProject = __decorateClass([
|
|
2804
|
-
|
|
2906
|
+
Entity20("freelancer_projects")
|
|
2805
2907
|
], FreelancerProject);
|
|
2806
2908
|
|
|
2807
2909
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2808
2910
|
import {
|
|
2809
|
-
Entity as
|
|
2810
|
-
Column as
|
|
2811
|
-
Index as
|
|
2812
|
-
ManyToOne as
|
|
2813
|
-
JoinColumn as
|
|
2911
|
+
Entity as Entity21,
|
|
2912
|
+
Column as Column22,
|
|
2913
|
+
Index as Index17,
|
|
2914
|
+
ManyToOne as ManyToOne20,
|
|
2915
|
+
JoinColumn as JoinColumn20
|
|
2814
2916
|
} from "typeorm";
|
|
2815
2917
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2816
2918
|
};
|
|
2817
2919
|
// individual index to find case study by user
|
|
2818
2920
|
__decorateClass([
|
|
2819
|
-
|
|
2820
|
-
|
|
2921
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2922
|
+
Index17()
|
|
2821
2923
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2822
2924
|
__decorateClass([
|
|
2823
|
-
|
|
2824
|
-
|
|
2925
|
+
ManyToOne20(() => User, (user) => user.freelancerCaseStudy),
|
|
2926
|
+
JoinColumn20({ name: "user_id" })
|
|
2825
2927
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2826
2928
|
__decorateClass([
|
|
2827
|
-
|
|
2929
|
+
Column22({ name: "project_name", type: "varchar", nullable: true })
|
|
2828
2930
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2829
2931
|
__decorateClass([
|
|
2830
|
-
|
|
2932
|
+
Column22({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2831
2933
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2832
2934
|
__decorateClass([
|
|
2833
|
-
|
|
2935
|
+
Column22({ name: "description", type: "varchar", nullable: true })
|
|
2834
2936
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2835
2937
|
FreelancerCaseStudy = __decorateClass([
|
|
2836
|
-
|
|
2938
|
+
Entity21("freelancer_case_studies")
|
|
2837
2939
|
], FreelancerCaseStudy);
|
|
2838
2940
|
|
|
2839
2941
|
// src/entities/freelancer-skill.entity.ts
|
|
2840
2942
|
import {
|
|
2841
|
-
Entity as
|
|
2842
|
-
Column as
|
|
2843
|
-
Index as
|
|
2844
|
-
ManyToOne as
|
|
2845
|
-
JoinColumn as
|
|
2943
|
+
Entity as Entity22,
|
|
2944
|
+
Column as Column23,
|
|
2945
|
+
Index as Index18,
|
|
2946
|
+
ManyToOne as ManyToOne21,
|
|
2947
|
+
JoinColumn as JoinColumn21
|
|
2846
2948
|
} from "typeorm";
|
|
2847
2949
|
var FreelancerSkill = class extends BaseEntity {
|
|
2848
2950
|
};
|
|
2849
2951
|
// individual index to find core skills by user
|
|
2850
2952
|
__decorateClass([
|
|
2851
|
-
|
|
2852
|
-
|
|
2953
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2954
|
+
Index18()
|
|
2853
2955
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2854
2956
|
__decorateClass([
|
|
2855
|
-
|
|
2856
|
-
|
|
2957
|
+
ManyToOne21(() => User, (user) => user.freelancerSkills),
|
|
2958
|
+
JoinColumn21({ name: "user_id" })
|
|
2857
2959
|
], FreelancerSkill.prototype, "user", 2);
|
|
2858
2960
|
__decorateClass([
|
|
2859
|
-
|
|
2961
|
+
Column23({ name: "skill_name", type: "varchar", nullable: true })
|
|
2860
2962
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
2861
2963
|
FreelancerSkill = __decorateClass([
|
|
2862
|
-
|
|
2964
|
+
Entity22("freelancer_skills")
|
|
2863
2965
|
], FreelancerSkill);
|
|
2864
2966
|
|
|
2865
2967
|
// src/entities/freelancer-tool.entity.ts
|
|
2866
2968
|
import {
|
|
2867
|
-
Entity as
|
|
2868
|
-
Column as
|
|
2869
|
-
Index as
|
|
2870
|
-
ManyToOne as
|
|
2871
|
-
JoinColumn as
|
|
2969
|
+
Entity as Entity23,
|
|
2970
|
+
Column as Column24,
|
|
2971
|
+
Index as Index19,
|
|
2972
|
+
ManyToOne as ManyToOne22,
|
|
2973
|
+
JoinColumn as JoinColumn22
|
|
2872
2974
|
} from "typeorm";
|
|
2873
2975
|
var FreelancerTool = class extends BaseEntity {
|
|
2874
2976
|
};
|
|
2875
2977
|
// individual index to find tool by user
|
|
2876
2978
|
__decorateClass([
|
|
2877
|
-
|
|
2878
|
-
|
|
2979
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
2980
|
+
Index19()
|
|
2879
2981
|
], FreelancerTool.prototype, "userId", 2);
|
|
2880
2982
|
__decorateClass([
|
|
2881
|
-
|
|
2882
|
-
|
|
2983
|
+
ManyToOne22(() => User, (user) => user.freelancerTool),
|
|
2984
|
+
JoinColumn22({ name: "user_id" })
|
|
2883
2985
|
], FreelancerTool.prototype, "user", 2);
|
|
2884
2986
|
__decorateClass([
|
|
2885
|
-
|
|
2987
|
+
Column24({ name: "tool_name", type: "varchar", nullable: true })
|
|
2886
2988
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2887
2989
|
FreelancerTool = __decorateClass([
|
|
2888
|
-
|
|
2990
|
+
Entity23("freelancer_tools")
|
|
2889
2991
|
], FreelancerTool);
|
|
2890
2992
|
|
|
2891
2993
|
// src/entities/freelancer-framework.entity.ts
|
|
2892
2994
|
import {
|
|
2893
|
-
Entity as
|
|
2894
|
-
Column as
|
|
2895
|
-
Index as
|
|
2896
|
-
ManyToOne as
|
|
2897
|
-
JoinColumn as
|
|
2995
|
+
Entity as Entity24,
|
|
2996
|
+
Column as Column25,
|
|
2997
|
+
Index as Index20,
|
|
2998
|
+
ManyToOne as ManyToOne23,
|
|
2999
|
+
JoinColumn as JoinColumn23
|
|
2898
3000
|
} from "typeorm";
|
|
2899
3001
|
var FreelancerFramework = class extends BaseEntity {
|
|
2900
3002
|
};
|
|
2901
3003
|
// individual index to find framework by user
|
|
2902
3004
|
__decorateClass([
|
|
2903
|
-
|
|
2904
|
-
|
|
3005
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
3006
|
+
Index20()
|
|
2905
3007
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2906
3008
|
__decorateClass([
|
|
2907
|
-
|
|
2908
|
-
|
|
3009
|
+
ManyToOne23(() => User, (user) => user.freelancerFramework),
|
|
3010
|
+
JoinColumn23({ name: "user_id" })
|
|
2909
3011
|
], FreelancerFramework.prototype, "user", 2);
|
|
2910
3012
|
__decorateClass([
|
|
2911
|
-
|
|
3013
|
+
Column25({ name: "framework_name", type: "varchar", nullable: true })
|
|
2912
3014
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2913
3015
|
FreelancerFramework = __decorateClass([
|
|
2914
|
-
|
|
3016
|
+
Entity24("freelancer_frameworks")
|
|
2915
3017
|
], FreelancerFramework);
|
|
2916
3018
|
|
|
2917
3019
|
// src/entities/freelancer-assessment.entity.ts
|
|
2918
3020
|
import {
|
|
2919
|
-
Entity as
|
|
2920
|
-
Column as
|
|
2921
|
-
Index as
|
|
2922
|
-
ManyToOne as
|
|
2923
|
-
JoinColumn as
|
|
3021
|
+
Entity as Entity25,
|
|
3022
|
+
Column as Column26,
|
|
3023
|
+
Index as Index21,
|
|
3024
|
+
ManyToOne as ManyToOne24,
|
|
3025
|
+
JoinColumn as JoinColumn24
|
|
2924
3026
|
} from "typeorm";
|
|
2925
3027
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2926
3028
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -2937,30 +3039,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2937
3039
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2938
3040
|
};
|
|
2939
3041
|
__decorateClass([
|
|
2940
|
-
|
|
2941
|
-
|
|
3042
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3043
|
+
Index21()
|
|
2942
3044
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2943
3045
|
__decorateClass([
|
|
2944
|
-
|
|
2945
|
-
|
|
3046
|
+
ManyToOne24(() => User, (user) => user.assessments),
|
|
3047
|
+
JoinColumn24({ name: "user_id" })
|
|
2946
3048
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2947
3049
|
__decorateClass([
|
|
2948
|
-
|
|
3050
|
+
Column26({ name: "interview_id", type: "varchar", nullable: true })
|
|
2949
3051
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2950
3052
|
__decorateClass([
|
|
2951
|
-
|
|
3053
|
+
Column26({ name: "interview_link", type: "text", nullable: true })
|
|
2952
3054
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2953
3055
|
__decorateClass([
|
|
2954
|
-
|
|
3056
|
+
Column26({ name: "recording_link", type: "text", nullable: true })
|
|
2955
3057
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
2956
3058
|
__decorateClass([
|
|
2957
|
-
|
|
3059
|
+
Column26({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
2958
3060
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
2959
3061
|
__decorateClass([
|
|
2960
|
-
|
|
3062
|
+
Column26({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2961
3063
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2962
3064
|
__decorateClass([
|
|
2963
|
-
|
|
3065
|
+
Column26({
|
|
2964
3066
|
name: "status",
|
|
2965
3067
|
type: "enum",
|
|
2966
3068
|
enum: AssessmentStatusEnum,
|
|
@@ -2968,16 +3070,16 @@ __decorateClass([
|
|
|
2968
3070
|
})
|
|
2969
3071
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2970
3072
|
FreelancerAssessment = __decorateClass([
|
|
2971
|
-
|
|
3073
|
+
Entity25("freelancer_assessments")
|
|
2972
3074
|
], FreelancerAssessment);
|
|
2973
3075
|
|
|
2974
3076
|
// src/entities/freelancer-declaration.entity.ts
|
|
2975
3077
|
import {
|
|
2976
|
-
Entity as
|
|
2977
|
-
Column as
|
|
2978
|
-
Index as
|
|
2979
|
-
ManyToOne as
|
|
2980
|
-
JoinColumn as
|
|
3078
|
+
Entity as Entity26,
|
|
3079
|
+
Column as Column27,
|
|
3080
|
+
Index as Index22,
|
|
3081
|
+
ManyToOne as ManyToOne25,
|
|
3082
|
+
JoinColumn as JoinColumn25
|
|
2981
3083
|
} from "typeorm";
|
|
2982
3084
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2983
3085
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2990,15 +3092,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2990
3092
|
};
|
|
2991
3093
|
// individual index to find declaration by user
|
|
2992
3094
|
__decorateClass([
|
|
2993
|
-
|
|
2994
|
-
|
|
3095
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3096
|
+
Index22()
|
|
2995
3097
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2996
3098
|
__decorateClass([
|
|
2997
|
-
|
|
2998
|
-
|
|
3099
|
+
ManyToOne25(() => User, (user) => user.freelancerDeclaration),
|
|
3100
|
+
JoinColumn25({ name: "user_id" })
|
|
2999
3101
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3000
3102
|
__decorateClass([
|
|
3001
|
-
|
|
3103
|
+
Column27({
|
|
3002
3104
|
name: "document_type",
|
|
3003
3105
|
type: "enum",
|
|
3004
3106
|
enum: DocumentType,
|
|
@@ -3006,175 +3108,175 @@ __decorateClass([
|
|
|
3006
3108
|
})
|
|
3007
3109
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3008
3110
|
__decorateClass([
|
|
3009
|
-
|
|
3111
|
+
Column27({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3010
3112
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3011
3113
|
__decorateClass([
|
|
3012
|
-
|
|
3114
|
+
Column27({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3013
3115
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3014
3116
|
__decorateClass([
|
|
3015
|
-
|
|
3117
|
+
Column27({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3016
3118
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3017
3119
|
__decorateClass([
|
|
3018
|
-
|
|
3120
|
+
Column27({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3019
3121
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3020
3122
|
FreelancerDeclaration = __decorateClass([
|
|
3021
|
-
|
|
3123
|
+
Entity26("freelancer_declaration")
|
|
3022
3124
|
], FreelancerDeclaration);
|
|
3023
3125
|
|
|
3024
3126
|
// src/entities/company-members-roles.entity.ts
|
|
3025
3127
|
import {
|
|
3026
|
-
Column as
|
|
3027
|
-
Entity as
|
|
3028
|
-
ManyToOne as
|
|
3029
|
-
JoinColumn as
|
|
3030
|
-
Index as
|
|
3128
|
+
Column as Column31,
|
|
3129
|
+
Entity as Entity30,
|
|
3130
|
+
ManyToOne as ManyToOne28,
|
|
3131
|
+
JoinColumn as JoinColumn28,
|
|
3132
|
+
Index as Index26
|
|
3031
3133
|
} from "typeorm";
|
|
3032
3134
|
|
|
3033
3135
|
// src/entities/company-role.entity.ts
|
|
3034
3136
|
import {
|
|
3035
|
-
Column as
|
|
3036
|
-
Entity as
|
|
3037
|
-
Index as
|
|
3038
|
-
JoinColumn as
|
|
3039
|
-
ManyToOne as
|
|
3137
|
+
Column as Column30,
|
|
3138
|
+
Entity as Entity29,
|
|
3139
|
+
Index as Index25,
|
|
3140
|
+
JoinColumn as JoinColumn27,
|
|
3141
|
+
ManyToOne as ManyToOne27,
|
|
3040
3142
|
OneToMany as OneToMany8
|
|
3041
3143
|
} from "typeorm";
|
|
3042
3144
|
|
|
3043
3145
|
// src/entities/company-role-permission.entity.ts
|
|
3044
3146
|
import {
|
|
3045
|
-
Column as
|
|
3046
|
-
Entity as
|
|
3047
|
-
ManyToOne as
|
|
3048
|
-
JoinColumn as
|
|
3049
|
-
Index as
|
|
3147
|
+
Column as Column29,
|
|
3148
|
+
Entity as Entity28,
|
|
3149
|
+
ManyToOne as ManyToOne26,
|
|
3150
|
+
JoinColumn as JoinColumn26,
|
|
3151
|
+
Index as Index24
|
|
3050
3152
|
} from "typeorm";
|
|
3051
3153
|
|
|
3052
3154
|
// src/entities/permission.entity.ts
|
|
3053
|
-
import { Column as
|
|
3155
|
+
import { Column as Column28, Entity as Entity27, Index as Index23 } from "typeorm";
|
|
3054
3156
|
var Permission = class extends BaseEntity {
|
|
3055
3157
|
};
|
|
3056
3158
|
__decorateClass([
|
|
3057
|
-
|
|
3159
|
+
Column28({ name: "name", type: "varchar", nullable: true })
|
|
3058
3160
|
], Permission.prototype, "name", 2);
|
|
3059
3161
|
__decorateClass([
|
|
3060
|
-
|
|
3061
|
-
|
|
3162
|
+
Column28({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3163
|
+
Index23()
|
|
3062
3164
|
], Permission.prototype, "slug", 2);
|
|
3063
3165
|
__decorateClass([
|
|
3064
|
-
|
|
3166
|
+
Column28({ name: "description", type: "text", nullable: true })
|
|
3065
3167
|
], Permission.prototype, "description", 2);
|
|
3066
3168
|
__decorateClass([
|
|
3067
|
-
|
|
3169
|
+
Column28({ name: "is_active", type: "boolean", default: true })
|
|
3068
3170
|
], Permission.prototype, "isActive", 2);
|
|
3069
3171
|
Permission = __decorateClass([
|
|
3070
|
-
|
|
3172
|
+
Entity27("permissions")
|
|
3071
3173
|
], Permission);
|
|
3072
3174
|
|
|
3073
3175
|
// src/entities/company-role-permission.entity.ts
|
|
3074
3176
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3075
3177
|
};
|
|
3076
3178
|
__decorateClass([
|
|
3077
|
-
|
|
3078
|
-
|
|
3179
|
+
Column29({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3180
|
+
Index24()
|
|
3079
3181
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3080
3182
|
__decorateClass([
|
|
3081
|
-
|
|
3183
|
+
ManyToOne26(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3082
3184
|
onDelete: "CASCADE"
|
|
3083
3185
|
}),
|
|
3084
|
-
|
|
3186
|
+
JoinColumn26({ name: "company_role_id" })
|
|
3085
3187
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3086
3188
|
__decorateClass([
|
|
3087
|
-
|
|
3088
|
-
|
|
3189
|
+
Column29({ name: "permission_id", type: "integer" }),
|
|
3190
|
+
Index24()
|
|
3089
3191
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3090
3192
|
__decorateClass([
|
|
3091
|
-
|
|
3092
|
-
|
|
3193
|
+
ManyToOne26(() => Permission, { onDelete: "CASCADE" }),
|
|
3194
|
+
JoinColumn26({ name: "permission_id" })
|
|
3093
3195
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3094
3196
|
__decorateClass([
|
|
3095
|
-
|
|
3197
|
+
Column29({ name: "assigned_by", type: "integer", nullable: true })
|
|
3096
3198
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3097
3199
|
CompanyRolePermission = __decorateClass([
|
|
3098
|
-
|
|
3200
|
+
Entity28("company_role_permissions")
|
|
3099
3201
|
], CompanyRolePermission);
|
|
3100
3202
|
|
|
3101
3203
|
// src/entities/company-role.entity.ts
|
|
3102
3204
|
var CompanyRole = class extends BaseEntity {
|
|
3103
3205
|
};
|
|
3104
3206
|
__decorateClass([
|
|
3105
|
-
|
|
3106
|
-
|
|
3207
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
3208
|
+
Index25()
|
|
3107
3209
|
], CompanyRole.prototype, "userId", 2);
|
|
3108
3210
|
__decorateClass([
|
|
3109
|
-
|
|
3110
|
-
|
|
3211
|
+
ManyToOne27(() => User, (user) => user.otps),
|
|
3212
|
+
JoinColumn27({ name: "user_id" })
|
|
3111
3213
|
], CompanyRole.prototype, "user", 2);
|
|
3112
3214
|
__decorateClass([
|
|
3113
|
-
|
|
3215
|
+
Column30({ name: "name", type: "varchar" })
|
|
3114
3216
|
], CompanyRole.prototype, "name", 2);
|
|
3115
3217
|
__decorateClass([
|
|
3116
|
-
|
|
3117
|
-
|
|
3218
|
+
Column30({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3219
|
+
Index25()
|
|
3118
3220
|
], CompanyRole.prototype, "slug", 2);
|
|
3119
3221
|
__decorateClass([
|
|
3120
|
-
|
|
3222
|
+
Column30({ name: "description", type: "text", nullable: true })
|
|
3121
3223
|
], CompanyRole.prototype, "description", 2);
|
|
3122
3224
|
__decorateClass([
|
|
3123
|
-
|
|
3225
|
+
Column30({ name: "is_active", type: "boolean", default: true })
|
|
3124
3226
|
], CompanyRole.prototype, "isActive", 2);
|
|
3125
3227
|
__decorateClass([
|
|
3126
3228
|
OneToMany8(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3127
3229
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3128
3230
|
CompanyRole = __decorateClass([
|
|
3129
|
-
|
|
3231
|
+
Entity29("company_roles")
|
|
3130
3232
|
], CompanyRole);
|
|
3131
3233
|
|
|
3132
3234
|
// src/entities/company-members-roles.entity.ts
|
|
3133
3235
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3134
3236
|
};
|
|
3135
3237
|
__decorateClass([
|
|
3136
|
-
|
|
3137
|
-
|
|
3238
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3239
|
+
Index26()
|
|
3138
3240
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3139
3241
|
__decorateClass([
|
|
3140
|
-
|
|
3141
|
-
|
|
3242
|
+
ManyToOne28(() => User),
|
|
3243
|
+
JoinColumn28({ name: "user_id" })
|
|
3142
3244
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3143
3245
|
__decorateClass([
|
|
3144
|
-
|
|
3145
|
-
|
|
3246
|
+
ManyToOne28(() => CompanyRole),
|
|
3247
|
+
JoinColumn28({ name: "company_role_id" })
|
|
3146
3248
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3147
3249
|
__decorateClass([
|
|
3148
|
-
|
|
3149
|
-
|
|
3250
|
+
Column31({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3251
|
+
Index26()
|
|
3150
3252
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3151
3253
|
__decorateClass([
|
|
3152
|
-
|
|
3254
|
+
Column31({ name: "assigned_by", type: "integer", nullable: true })
|
|
3153
3255
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3154
3256
|
CompanyMemberRole = __decorateClass([
|
|
3155
|
-
|
|
3257
|
+
Entity30("company_member_roles")
|
|
3156
3258
|
], CompanyMemberRole);
|
|
3157
3259
|
|
|
3158
3260
|
// src/entities/assessment-answer.entity.ts
|
|
3159
3261
|
import {
|
|
3160
|
-
Entity as
|
|
3161
|
-
Column as
|
|
3162
|
-
ManyToOne as
|
|
3163
|
-
Index as
|
|
3164
|
-
JoinColumn as
|
|
3262
|
+
Entity as Entity33,
|
|
3263
|
+
Column as Column34,
|
|
3264
|
+
ManyToOne as ManyToOne30,
|
|
3265
|
+
Index as Index28,
|
|
3266
|
+
JoinColumn as JoinColumn30
|
|
3165
3267
|
} from "typeorm";
|
|
3166
3268
|
|
|
3167
3269
|
// src/entities/assessment-question.entity.ts
|
|
3168
|
-
import { Entity as
|
|
3270
|
+
import { Entity as Entity32, Column as Column33, OneToMany as OneToMany10 } from "typeorm";
|
|
3169
3271
|
|
|
3170
3272
|
// src/entities/assessment-question-option.entity.ts
|
|
3171
3273
|
import {
|
|
3172
|
-
Entity as
|
|
3173
|
-
Column as
|
|
3274
|
+
Entity as Entity31,
|
|
3275
|
+
Column as Column32,
|
|
3174
3276
|
OneToMany as OneToMany9,
|
|
3175
|
-
ManyToOne as
|
|
3176
|
-
Index as
|
|
3177
|
-
JoinColumn as
|
|
3277
|
+
ManyToOne as ManyToOne29,
|
|
3278
|
+
Index as Index27,
|
|
3279
|
+
JoinColumn as JoinColumn29
|
|
3178
3280
|
} from "typeorm";
|
|
3179
3281
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3180
3282
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3185,21 +3287,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3185
3287
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3186
3288
|
};
|
|
3187
3289
|
__decorateClass([
|
|
3188
|
-
|
|
3189
|
-
|
|
3290
|
+
Column32({ name: "question_id", type: "integer", nullable: true }),
|
|
3291
|
+
Index27()
|
|
3190
3292
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3191
3293
|
__decorateClass([
|
|
3192
|
-
|
|
3294
|
+
ManyToOne29(
|
|
3193
3295
|
() => AssessmetQuestion,
|
|
3194
3296
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3195
3297
|
),
|
|
3196
|
-
|
|
3298
|
+
JoinColumn29({ name: "question_id" })
|
|
3197
3299
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3198
3300
|
__decorateClass([
|
|
3199
|
-
|
|
3301
|
+
Column32({ name: "text", type: "varchar", nullable: true })
|
|
3200
3302
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3201
3303
|
__decorateClass([
|
|
3202
|
-
|
|
3304
|
+
Column32({
|
|
3203
3305
|
name: "answer_type",
|
|
3204
3306
|
type: "enum",
|
|
3205
3307
|
enum: AnswerTypeEnum,
|
|
@@ -3207,13 +3309,13 @@ __decorateClass([
|
|
|
3207
3309
|
})
|
|
3208
3310
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3209
3311
|
__decorateClass([
|
|
3210
|
-
|
|
3312
|
+
Column32({ name: "is_active", type: "boolean", default: true })
|
|
3211
3313
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3212
3314
|
__decorateClass([
|
|
3213
3315
|
OneToMany9(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3214
3316
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3215
3317
|
AssessmetQuestionOption = __decorateClass([
|
|
3216
|
-
|
|
3318
|
+
Entity31("assessment_question_options")
|
|
3217
3319
|
], AssessmetQuestionOption);
|
|
3218
3320
|
|
|
3219
3321
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3225,10 +3327,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3225
3327
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3226
3328
|
};
|
|
3227
3329
|
__decorateClass([
|
|
3228
|
-
|
|
3330
|
+
Column33({ name: "text", type: "varchar", nullable: true })
|
|
3229
3331
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3230
3332
|
__decorateClass([
|
|
3231
|
-
|
|
3333
|
+
Column33({
|
|
3232
3334
|
name: "question_for",
|
|
3233
3335
|
type: "enum",
|
|
3234
3336
|
enum: QuestionForEnum,
|
|
@@ -3236,7 +3338,7 @@ __decorateClass([
|
|
|
3236
3338
|
})
|
|
3237
3339
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3238
3340
|
__decorateClass([
|
|
3239
|
-
|
|
3341
|
+
Column33({ name: "is_active", type: "boolean", default: true })
|
|
3240
3342
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3241
3343
|
__decorateClass([
|
|
3242
3344
|
OneToMany10(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -3245,7 +3347,7 @@ __decorateClass([
|
|
|
3245
3347
|
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3246
3348
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3247
3349
|
AssessmetQuestion = __decorateClass([
|
|
3248
|
-
|
|
3350
|
+
Entity32("assessment_questions")
|
|
3249
3351
|
], AssessmetQuestion);
|
|
3250
3352
|
|
|
3251
3353
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3258,102 +3360,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3258
3360
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3259
3361
|
};
|
|
3260
3362
|
__decorateClass([
|
|
3261
|
-
|
|
3262
|
-
|
|
3363
|
+
Column34({ name: "user_id", type: "integer" }),
|
|
3364
|
+
Index28()
|
|
3263
3365
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3264
3366
|
__decorateClass([
|
|
3265
|
-
|
|
3266
|
-
|
|
3367
|
+
ManyToOne30(() => User, (user) => user.assessmentAnswers),
|
|
3368
|
+
JoinColumn30({ name: "user_id" })
|
|
3267
3369
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3268
3370
|
__decorateClass([
|
|
3269
|
-
|
|
3270
|
-
|
|
3371
|
+
Column34({ name: "question_id", type: "integer" }),
|
|
3372
|
+
Index28()
|
|
3271
3373
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3272
3374
|
__decorateClass([
|
|
3273
|
-
|
|
3375
|
+
ManyToOne30(
|
|
3274
3376
|
() => AssessmetQuestion,
|
|
3275
3377
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3276
3378
|
),
|
|
3277
|
-
|
|
3379
|
+
JoinColumn30({ name: "question_id" })
|
|
3278
3380
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3279
3381
|
__decorateClass([
|
|
3280
|
-
|
|
3281
|
-
|
|
3382
|
+
Column34({ name: "selected_option_id", type: "integer" }),
|
|
3383
|
+
Index28()
|
|
3282
3384
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3283
3385
|
__decorateClass([
|
|
3284
|
-
|
|
3386
|
+
ManyToOne30(
|
|
3285
3387
|
() => AssessmetQuestionOption,
|
|
3286
3388
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3287
3389
|
),
|
|
3288
|
-
|
|
3390
|
+
JoinColumn30({ name: "selected_option_id" })
|
|
3289
3391
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3290
3392
|
__decorateClass([
|
|
3291
|
-
|
|
3393
|
+
Column34({
|
|
3292
3394
|
name: "selected_answer_type",
|
|
3293
3395
|
type: "enum",
|
|
3294
3396
|
enum: SelectedAnswerTypeEnum
|
|
3295
3397
|
})
|
|
3296
3398
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3297
3399
|
__decorateClass([
|
|
3298
|
-
|
|
3400
|
+
Column34({ name: "score", type: "float" })
|
|
3299
3401
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3300
3402
|
AssessmentAnswer = __decorateClass([
|
|
3301
|
-
|
|
3403
|
+
Entity33("assessment_answers")
|
|
3302
3404
|
], AssessmentAnswer);
|
|
3303
3405
|
|
|
3304
3406
|
// src/entities/company-skill.entity.ts
|
|
3305
|
-
import { Entity as
|
|
3407
|
+
import { Entity as Entity34, Column as Column35, Index as Index29, ManyToOne as ManyToOne31, JoinColumn as JoinColumn31 } from "typeorm";
|
|
3306
3408
|
var CompanySkill = class extends BaseEntity {
|
|
3307
3409
|
};
|
|
3308
3410
|
// individual index to find core skills by user
|
|
3309
3411
|
__decorateClass([
|
|
3310
|
-
|
|
3311
|
-
|
|
3412
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3413
|
+
Index29()
|
|
3312
3414
|
], CompanySkill.prototype, "userId", 2);
|
|
3313
3415
|
__decorateClass([
|
|
3314
|
-
|
|
3315
|
-
|
|
3416
|
+
ManyToOne31(() => User, (user) => user.freelancerSkills),
|
|
3417
|
+
JoinColumn31({ name: "user_id" })
|
|
3316
3418
|
], CompanySkill.prototype, "user", 2);
|
|
3317
3419
|
__decorateClass([
|
|
3318
|
-
|
|
3420
|
+
Column35({ name: "skill_name", type: "varchar", nullable: true })
|
|
3319
3421
|
], CompanySkill.prototype, "skillName", 2);
|
|
3320
3422
|
CompanySkill = __decorateClass([
|
|
3321
|
-
|
|
3423
|
+
Entity34("company_skills")
|
|
3322
3424
|
], CompanySkill);
|
|
3323
3425
|
|
|
3324
3426
|
// src/entities/admin-user-role.entity.ts
|
|
3325
|
-
import { Entity as
|
|
3427
|
+
import { Entity as Entity38, Column as Column39, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33 } from "typeorm";
|
|
3326
3428
|
|
|
3327
3429
|
// src/entities/admin-role.entity.ts
|
|
3328
|
-
import { Entity as
|
|
3430
|
+
import { Entity as Entity37, Column as Column38, Index as Index32, OneToMany as OneToMany13 } from "typeorm";
|
|
3329
3431
|
|
|
3330
3432
|
// src/entities/admin-role-permission.entity.ts
|
|
3331
|
-
import { Entity as
|
|
3433
|
+
import { Entity as Entity36, Column as Column37, ManyToOne as ManyToOne32, JoinColumn as JoinColumn32 } from "typeorm";
|
|
3332
3434
|
|
|
3333
3435
|
// src/entities/admin-permission.entity.ts
|
|
3334
|
-
import { Entity as
|
|
3436
|
+
import { Entity as Entity35, Column as Column36, Index as Index30, OneToMany as OneToMany12 } from "typeorm";
|
|
3335
3437
|
var AdminPermission = class extends BaseEntity {
|
|
3336
3438
|
};
|
|
3337
3439
|
__decorateClass([
|
|
3338
|
-
|
|
3440
|
+
Column36({ name: "permission_name", type: "varchar", nullable: true })
|
|
3339
3441
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3340
3442
|
__decorateClass([
|
|
3341
|
-
|
|
3443
|
+
Column36({
|
|
3342
3444
|
name: "permission_slug",
|
|
3343
3445
|
type: "varchar",
|
|
3344
3446
|
unique: true,
|
|
3345
3447
|
nullable: true
|
|
3346
3448
|
}),
|
|
3347
|
-
|
|
3449
|
+
Index30()
|
|
3348
3450
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3349
3451
|
__decorateClass([
|
|
3350
|
-
|
|
3452
|
+
Column36({ name: "permission_description", type: "varchar", nullable: true })
|
|
3351
3453
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3352
3454
|
__decorateClass([
|
|
3353
|
-
|
|
3455
|
+
Column36({ name: "module", type: "varchar", nullable: true })
|
|
3354
3456
|
], AdminPermission.prototype, "module", 2);
|
|
3355
3457
|
__decorateClass([
|
|
3356
|
-
|
|
3458
|
+
Column36({ name: "is_active", type: "boolean", default: true })
|
|
3357
3459
|
], AdminPermission.prototype, "isActive", 2);
|
|
3358
3460
|
__decorateClass([
|
|
3359
3461
|
OneToMany12(
|
|
@@ -3362,14 +3464,14 @@ __decorateClass([
|
|
|
3362
3464
|
)
|
|
3363
3465
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3364
3466
|
AdminPermission = __decorateClass([
|
|
3365
|
-
|
|
3467
|
+
Entity35("admin_permissions")
|
|
3366
3468
|
], AdminPermission);
|
|
3367
3469
|
|
|
3368
3470
|
// src/entities/admin-role-permission.entity.ts
|
|
3369
3471
|
var AdminRolePermission = class extends BaseEntity {
|
|
3370
3472
|
};
|
|
3371
3473
|
__decorateClass([
|
|
3372
|
-
|
|
3474
|
+
Column37({
|
|
3373
3475
|
name: "role_id",
|
|
3374
3476
|
type: "int",
|
|
3375
3477
|
nullable: true,
|
|
@@ -3377,11 +3479,11 @@ __decorateClass([
|
|
|
3377
3479
|
})
|
|
3378
3480
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3379
3481
|
__decorateClass([
|
|
3380
|
-
|
|
3381
|
-
|
|
3482
|
+
ManyToOne32(() => AdminRole),
|
|
3483
|
+
JoinColumn32({ name: "role_id" })
|
|
3382
3484
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3383
3485
|
__decorateClass([
|
|
3384
|
-
|
|
3486
|
+
Column37({
|
|
3385
3487
|
name: "permission_id",
|
|
3386
3488
|
type: "int",
|
|
3387
3489
|
nullable: true,
|
|
@@ -3389,28 +3491,28 @@ __decorateClass([
|
|
|
3389
3491
|
})
|
|
3390
3492
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3391
3493
|
__decorateClass([
|
|
3392
|
-
|
|
3393
|
-
|
|
3494
|
+
ManyToOne32(() => AdminPermission),
|
|
3495
|
+
JoinColumn32({ name: "permission_id" })
|
|
3394
3496
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3395
3497
|
AdminRolePermission = __decorateClass([
|
|
3396
|
-
|
|
3498
|
+
Entity36("admin_role_permissions")
|
|
3397
3499
|
], AdminRolePermission);
|
|
3398
3500
|
|
|
3399
3501
|
// src/entities/admin-role.entity.ts
|
|
3400
3502
|
var AdminRole = class extends BaseEntity {
|
|
3401
3503
|
};
|
|
3402
3504
|
__decorateClass([
|
|
3403
|
-
|
|
3505
|
+
Column38({ name: "role_name", type: "varchar", nullable: true })
|
|
3404
3506
|
], AdminRole.prototype, "roleName", 2);
|
|
3405
3507
|
__decorateClass([
|
|
3406
|
-
|
|
3407
|
-
|
|
3508
|
+
Column38({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3509
|
+
Index32()
|
|
3408
3510
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3409
3511
|
__decorateClass([
|
|
3410
|
-
|
|
3512
|
+
Column38({ name: "role_description", type: "varchar", nullable: true })
|
|
3411
3513
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3412
3514
|
__decorateClass([
|
|
3413
|
-
|
|
3515
|
+
Column38({ name: "is_active", type: "boolean", default: true })
|
|
3414
3516
|
], AdminRole.prototype, "isActive", 2);
|
|
3415
3517
|
__decorateClass([
|
|
3416
3518
|
OneToMany13(
|
|
@@ -3422,14 +3524,14 @@ __decorateClass([
|
|
|
3422
3524
|
OneToMany13(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3423
3525
|
], AdminRole.prototype, "userRoles", 2);
|
|
3424
3526
|
AdminRole = __decorateClass([
|
|
3425
|
-
|
|
3527
|
+
Entity37("admin_roles")
|
|
3426
3528
|
], AdminRole);
|
|
3427
3529
|
|
|
3428
3530
|
// src/entities/admin-user-role.entity.ts
|
|
3429
3531
|
var AdminUserRole = class extends BaseEntity {
|
|
3430
3532
|
};
|
|
3431
3533
|
__decorateClass([
|
|
3432
|
-
|
|
3534
|
+
Column39({
|
|
3433
3535
|
name: "user_id",
|
|
3434
3536
|
type: "int",
|
|
3435
3537
|
nullable: true,
|
|
@@ -3437,11 +3539,11 @@ __decorateClass([
|
|
|
3437
3539
|
})
|
|
3438
3540
|
], AdminUserRole.prototype, "userId", 2);
|
|
3439
3541
|
__decorateClass([
|
|
3440
|
-
|
|
3441
|
-
|
|
3542
|
+
ManyToOne33(() => User),
|
|
3543
|
+
JoinColumn33({ name: "user_id" })
|
|
3442
3544
|
], AdminUserRole.prototype, "user", 2);
|
|
3443
3545
|
__decorateClass([
|
|
3444
|
-
|
|
3546
|
+
Column39({
|
|
3445
3547
|
name: "role_id",
|
|
3446
3548
|
type: "int",
|
|
3447
3549
|
nullable: true,
|
|
@@ -3449,40 +3551,40 @@ __decorateClass([
|
|
|
3449
3551
|
})
|
|
3450
3552
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3451
3553
|
__decorateClass([
|
|
3452
|
-
|
|
3453
|
-
|
|
3554
|
+
ManyToOne33(() => AdminRole),
|
|
3555
|
+
JoinColumn33({ name: "role_id" })
|
|
3454
3556
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3455
3557
|
AdminUserRole = __decorateClass([
|
|
3456
|
-
|
|
3558
|
+
Entity38("admin_user_roles")
|
|
3457
3559
|
], AdminUserRole);
|
|
3458
3560
|
|
|
3459
3561
|
// src/entities/freelancer-resume.entity.ts
|
|
3460
3562
|
import {
|
|
3461
|
-
Entity as
|
|
3462
|
-
Column as
|
|
3463
|
-
Index as
|
|
3464
|
-
ManyToOne as
|
|
3465
|
-
JoinColumn as
|
|
3563
|
+
Entity as Entity39,
|
|
3564
|
+
Column as Column40,
|
|
3565
|
+
Index as Index34,
|
|
3566
|
+
ManyToOne as ManyToOne34,
|
|
3567
|
+
JoinColumn as JoinColumn34
|
|
3466
3568
|
} from "typeorm";
|
|
3467
3569
|
var FreelancerResume = class extends BaseEntity {
|
|
3468
3570
|
};
|
|
3469
3571
|
// individual index to find profile by user
|
|
3470
3572
|
__decorateClass([
|
|
3471
|
-
|
|
3472
|
-
|
|
3573
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
3574
|
+
Index34()
|
|
3473
3575
|
], FreelancerResume.prototype, "userId", 2);
|
|
3474
3576
|
__decorateClass([
|
|
3475
|
-
|
|
3476
|
-
|
|
3577
|
+
ManyToOne34(() => User, (user) => user.freelancerProfile),
|
|
3578
|
+
JoinColumn34({ name: "user_id" })
|
|
3477
3579
|
], FreelancerResume.prototype, "user", 2);
|
|
3478
3580
|
__decorateClass([
|
|
3479
|
-
|
|
3581
|
+
Column40({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3480
3582
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3481
3583
|
__decorateClass([
|
|
3482
|
-
|
|
3584
|
+
Column40({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3483
3585
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3484
3586
|
FreelancerResume = __decorateClass([
|
|
3485
|
-
|
|
3587
|
+
Entity39("freelancer_resumes")
|
|
3486
3588
|
], FreelancerResume);
|
|
3487
3589
|
|
|
3488
3590
|
// src/entities/user.entity.ts
|
|
@@ -3510,51 +3612,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3510
3612
|
var User = class extends BaseEntity {
|
|
3511
3613
|
};
|
|
3512
3614
|
__decorateClass([
|
|
3513
|
-
|
|
3615
|
+
Column41({ name: "unique_id", type: "varchar", unique: true })
|
|
3514
3616
|
], User.prototype, "uniqueId", 2);
|
|
3515
3617
|
__decorateClass([
|
|
3516
|
-
|
|
3517
|
-
|
|
3618
|
+
Column41({ name: "parent_id", type: "integer", nullable: true }),
|
|
3619
|
+
Index35()
|
|
3518
3620
|
], User.prototype, "parentId", 2);
|
|
3519
3621
|
__decorateClass([
|
|
3520
|
-
|
|
3521
|
-
|
|
3622
|
+
ManyToOne35(() => User, (user) => user.children, { nullable: true }),
|
|
3623
|
+
JoinColumn35({ name: "parent_id" })
|
|
3522
3624
|
], User.prototype, "parent", 2);
|
|
3523
3625
|
__decorateClass([
|
|
3524
3626
|
OneToMany14(() => User, (user) => user.parent)
|
|
3525
3627
|
], User.prototype, "children", 2);
|
|
3526
3628
|
__decorateClass([
|
|
3527
|
-
|
|
3629
|
+
Column41({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3528
3630
|
], User.prototype, "username", 2);
|
|
3529
3631
|
__decorateClass([
|
|
3530
|
-
|
|
3632
|
+
Column41({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3531
3633
|
], User.prototype, "firstName", 2);
|
|
3532
3634
|
__decorateClass([
|
|
3533
|
-
|
|
3635
|
+
Column41({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3534
3636
|
], User.prototype, "lastName", 2);
|
|
3535
3637
|
__decorateClass([
|
|
3536
|
-
|
|
3638
|
+
Column41({ name: "date_of_birth", type: "date", nullable: true })
|
|
3537
3639
|
], User.prototype, "dateOfBirth", 2);
|
|
3538
3640
|
__decorateClass([
|
|
3539
|
-
|
|
3641
|
+
Column41({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3540
3642
|
], User.prototype, "gender", 2);
|
|
3541
3643
|
__decorateClass([
|
|
3542
|
-
|
|
3644
|
+
Column41({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3543
3645
|
], User.prototype, "profilePictureUrl", 2);
|
|
3544
3646
|
__decorateClass([
|
|
3545
|
-
|
|
3647
|
+
Column41({ name: "email", type: "varchar", unique: true })
|
|
3546
3648
|
], User.prototype, "email", 2);
|
|
3547
3649
|
__decorateClass([
|
|
3548
|
-
|
|
3650
|
+
Column41({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3549
3651
|
], User.prototype, "mobileCode", 2);
|
|
3550
3652
|
__decorateClass([
|
|
3551
|
-
|
|
3653
|
+
Column41({ name: "mobile", type: "varchar", nullable: true })
|
|
3552
3654
|
], User.prototype, "mobile", 2);
|
|
3553
3655
|
__decorateClass([
|
|
3554
|
-
|
|
3656
|
+
Column41({ name: "password", type: "varchar", nullable: true })
|
|
3555
3657
|
], User.prototype, "password", 2);
|
|
3556
3658
|
__decorateClass([
|
|
3557
|
-
|
|
3659
|
+
Column41({
|
|
3558
3660
|
name: "account_type",
|
|
3559
3661
|
type: "enum",
|
|
3560
3662
|
enum: AccountType,
|
|
@@ -3562,7 +3664,7 @@ __decorateClass([
|
|
|
3562
3664
|
})
|
|
3563
3665
|
], User.prototype, "accountType", 2);
|
|
3564
3666
|
__decorateClass([
|
|
3565
|
-
|
|
3667
|
+
Column41({
|
|
3566
3668
|
name: "account_status",
|
|
3567
3669
|
type: "enum",
|
|
3568
3670
|
enum: AccountStatus,
|
|
@@ -3570,29 +3672,29 @@ __decorateClass([
|
|
|
3570
3672
|
})
|
|
3571
3673
|
], User.prototype, "accountStatus", 2);
|
|
3572
3674
|
__decorateClass([
|
|
3573
|
-
|
|
3675
|
+
Column41({ name: "is_email_verified", type: "boolean", default: false })
|
|
3574
3676
|
], User.prototype, "isEmailVerified", 2);
|
|
3575
3677
|
__decorateClass([
|
|
3576
|
-
|
|
3678
|
+
Column41({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3577
3679
|
], User.prototype, "isMobileVerified", 2);
|
|
3578
3680
|
__decorateClass([
|
|
3579
|
-
|
|
3681
|
+
Column41({ name: "is_social", type: "boolean", default: false })
|
|
3580
3682
|
], User.prototype, "isSocial", 2);
|
|
3581
3683
|
__decorateClass([
|
|
3582
|
-
|
|
3684
|
+
Column41({
|
|
3583
3685
|
name: "last_login_at",
|
|
3584
3686
|
type: "timestamp with time zone",
|
|
3585
3687
|
nullable: true
|
|
3586
3688
|
})
|
|
3587
3689
|
], User.prototype, "lastLoginAt", 2);
|
|
3588
3690
|
__decorateClass([
|
|
3589
|
-
|
|
3691
|
+
Column41({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3590
3692
|
], User.prototype, "lastLoginIp", 2);
|
|
3591
3693
|
__decorateClass([
|
|
3592
|
-
|
|
3694
|
+
Column41({ name: "reset_token", type: "varchar", nullable: true })
|
|
3593
3695
|
], User.prototype, "resetToken", 2);
|
|
3594
3696
|
__decorateClass([
|
|
3595
|
-
|
|
3697
|
+
Column41({
|
|
3596
3698
|
name: "reset_token_expire_at",
|
|
3597
3699
|
type: "timestamp with time zone",
|
|
3598
3700
|
nullable: true
|
|
@@ -3602,7 +3704,7 @@ __decorateClass([
|
|
|
3602
3704
|
OneToMany14(() => RefreshToken, (token) => token.user)
|
|
3603
3705
|
], User.prototype, "refreshTokens", 2);
|
|
3604
3706
|
__decorateClass([
|
|
3605
|
-
|
|
3707
|
+
Column41({
|
|
3606
3708
|
name: "provider",
|
|
3607
3709
|
type: "enum",
|
|
3608
3710
|
enum: Provider,
|
|
@@ -3611,16 +3713,16 @@ __decorateClass([
|
|
|
3611
3713
|
})
|
|
3612
3714
|
], User.prototype, "provider", 2);
|
|
3613
3715
|
__decorateClass([
|
|
3614
|
-
|
|
3716
|
+
Column41({ name: "provider_token", type: "varchar", nullable: true })
|
|
3615
3717
|
], User.prototype, "providerToken", 2);
|
|
3616
3718
|
__decorateClass([
|
|
3617
|
-
|
|
3719
|
+
Column41({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3618
3720
|
], User.prototype, "linkedInId", 2);
|
|
3619
3721
|
__decorateClass([
|
|
3620
|
-
|
|
3722
|
+
Column41({ name: "google_id", type: "varchar", nullable: true })
|
|
3621
3723
|
], User.prototype, "googleId", 2);
|
|
3622
3724
|
__decorateClass([
|
|
3623
|
-
|
|
3725
|
+
Column41({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3624
3726
|
], User.prototype, "gitLabsId", 2);
|
|
3625
3727
|
__decorateClass([
|
|
3626
3728
|
OneToMany14(() => Otp, (otp) => otp.user)
|
|
@@ -3698,7 +3800,7 @@ __decorateClass([
|
|
|
3698
3800
|
OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3699
3801
|
], User.prototype, "adminUserRoles", 2);
|
|
3700
3802
|
User = __decorateClass([
|
|
3701
|
-
|
|
3803
|
+
Entity40("users")
|
|
3702
3804
|
], User);
|
|
3703
3805
|
|
|
3704
3806
|
// src/entities/rating.entity.ts
|
|
@@ -3710,36 +3812,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3710
3812
|
var Rating = class extends BaseEntity {
|
|
3711
3813
|
};
|
|
3712
3814
|
__decorateClass([
|
|
3713
|
-
|
|
3714
|
-
|
|
3815
|
+
Column42({ name: "reviewer_id", type: "integer" }),
|
|
3816
|
+
Index36()
|
|
3715
3817
|
], Rating.prototype, "reviewer_id", 2);
|
|
3716
3818
|
__decorateClass([
|
|
3717
|
-
|
|
3718
|
-
|
|
3819
|
+
ManyToOne36(() => User, { onDelete: "CASCADE" }),
|
|
3820
|
+
JoinColumn36({ name: "reviewer_id" })
|
|
3719
3821
|
], Rating.prototype, "reviewer", 2);
|
|
3720
3822
|
__decorateClass([
|
|
3721
|
-
|
|
3722
|
-
|
|
3823
|
+
Column42({ name: "reviewee_id", type: "integer" }),
|
|
3824
|
+
Index36()
|
|
3723
3825
|
], Rating.prototype, "reviewee_id", 2);
|
|
3724
3826
|
__decorateClass([
|
|
3725
|
-
|
|
3726
|
-
|
|
3827
|
+
ManyToOne36(() => User, { onDelete: "CASCADE" }),
|
|
3828
|
+
JoinColumn36({ name: "reviewee_id" })
|
|
3727
3829
|
], Rating.prototype, "reviewee", 2);
|
|
3728
3830
|
__decorateClass([
|
|
3729
|
-
|
|
3831
|
+
Column42({
|
|
3730
3832
|
type: "enum",
|
|
3731
3833
|
enum: RatingTypeEnum,
|
|
3732
3834
|
nullable: true
|
|
3733
3835
|
})
|
|
3734
3836
|
], Rating.prototype, "ratingType", 2);
|
|
3735
3837
|
__decorateClass([
|
|
3736
|
-
|
|
3838
|
+
Column42({ type: "integer", nullable: true })
|
|
3737
3839
|
], Rating.prototype, "rating", 2);
|
|
3738
3840
|
__decorateClass([
|
|
3739
|
-
|
|
3841
|
+
Column42({ type: "text", nullable: true })
|
|
3740
3842
|
], Rating.prototype, "review", 2);
|
|
3741
3843
|
Rating = __decorateClass([
|
|
3742
|
-
|
|
3844
|
+
Entity41("ratings")
|
|
3743
3845
|
], Rating);
|
|
3744
3846
|
|
|
3745
3847
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5094,11 +5196,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5094
5196
|
};
|
|
5095
5197
|
|
|
5096
5198
|
// src/entities/sequence-generator.entity.ts
|
|
5097
|
-
import { Entity as
|
|
5199
|
+
import { Entity as Entity42, Column as Column43 } from "typeorm";
|
|
5098
5200
|
var SequenceGenerator = class extends BaseEntity {
|
|
5099
5201
|
};
|
|
5100
5202
|
__decorateClass([
|
|
5101
|
-
|
|
5203
|
+
Column43({
|
|
5102
5204
|
name: "module",
|
|
5103
5205
|
type: "varchar",
|
|
5104
5206
|
length: 50,
|
|
@@ -5107,7 +5209,7 @@ __decorateClass([
|
|
|
5107
5209
|
})
|
|
5108
5210
|
], SequenceGenerator.prototype, "module", 2);
|
|
5109
5211
|
__decorateClass([
|
|
5110
|
-
|
|
5212
|
+
Column43({
|
|
5111
5213
|
name: "prefix",
|
|
5112
5214
|
type: "varchar",
|
|
5113
5215
|
length: 10,
|
|
@@ -5116,7 +5218,7 @@ __decorateClass([
|
|
|
5116
5218
|
})
|
|
5117
5219
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5118
5220
|
__decorateClass([
|
|
5119
|
-
|
|
5221
|
+
Column43({
|
|
5120
5222
|
name: "last_sequence",
|
|
5121
5223
|
type: "int",
|
|
5122
5224
|
nullable: false,
|
|
@@ -5124,7 +5226,7 @@ __decorateClass([
|
|
|
5124
5226
|
})
|
|
5125
5227
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5126
5228
|
__decorateClass([
|
|
5127
|
-
|
|
5229
|
+
Column43({
|
|
5128
5230
|
name: "year",
|
|
5129
5231
|
type: "int",
|
|
5130
5232
|
nullable: true,
|
|
@@ -5132,11 +5234,11 @@ __decorateClass([
|
|
|
5132
5234
|
})
|
|
5133
5235
|
], SequenceGenerator.prototype, "year", 2);
|
|
5134
5236
|
SequenceGenerator = __decorateClass([
|
|
5135
|
-
|
|
5237
|
+
Entity42("sequence_generators")
|
|
5136
5238
|
], SequenceGenerator);
|
|
5137
5239
|
|
|
5138
5240
|
// src/entities/question.entity.ts
|
|
5139
|
-
import { Entity as
|
|
5241
|
+
import { Entity as Entity43, Column as Column44 } from "typeorm";
|
|
5140
5242
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5141
5243
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5142
5244
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5145,16 +5247,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5145
5247
|
var Question = class extends BaseEntity {
|
|
5146
5248
|
};
|
|
5147
5249
|
__decorateClass([
|
|
5148
|
-
|
|
5250
|
+
Column44({ name: "question", type: "varchar" })
|
|
5149
5251
|
], Question.prototype, "question", 2);
|
|
5150
5252
|
__decorateClass([
|
|
5151
|
-
|
|
5253
|
+
Column44({ name: "hint", type: "varchar", nullable: true })
|
|
5152
5254
|
], Question.prototype, "hint", 2);
|
|
5153
5255
|
__decorateClass([
|
|
5154
|
-
|
|
5256
|
+
Column44({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5155
5257
|
], Question.prototype, "slug", 2);
|
|
5156
5258
|
__decorateClass([
|
|
5157
|
-
|
|
5259
|
+
Column44({
|
|
5158
5260
|
name: "question_for",
|
|
5159
5261
|
type: "enum",
|
|
5160
5262
|
enum: QuestionFor,
|
|
@@ -5162,151 +5264,52 @@ __decorateClass([
|
|
|
5162
5264
|
})
|
|
5163
5265
|
], Question.prototype, "questionFor", 2);
|
|
5164
5266
|
__decorateClass([
|
|
5165
|
-
|
|
5267
|
+
Column44({ name: "type", type: "varchar", nullable: true })
|
|
5166
5268
|
], Question.prototype, "type", 2);
|
|
5167
5269
|
__decorateClass([
|
|
5168
|
-
|
|
5270
|
+
Column44({ name: "options", type: "jsonb", nullable: true })
|
|
5169
5271
|
], Question.prototype, "options", 2);
|
|
5170
5272
|
__decorateClass([
|
|
5171
|
-
|
|
5273
|
+
Column44({ name: "is_active", type: "boolean", default: false })
|
|
5172
5274
|
], Question.prototype, "isActive", 2);
|
|
5173
5275
|
Question = __decorateClass([
|
|
5174
|
-
|
|
5276
|
+
Entity43("questions")
|
|
5175
5277
|
], Question);
|
|
5176
5278
|
|
|
5177
5279
|
// src/entities/skill.entity.ts
|
|
5178
|
-
import { Entity as
|
|
5280
|
+
import { Entity as Entity44, Column as Column45 } from "typeorm";
|
|
5179
5281
|
var Skill = class extends BaseEntity {
|
|
5180
5282
|
};
|
|
5181
5283
|
__decorateClass([
|
|
5182
|
-
|
|
5284
|
+
Column45({ name: "name", type: "varchar", nullable: true })
|
|
5183
5285
|
], Skill.prototype, "name", 2);
|
|
5184
5286
|
__decorateClass([
|
|
5185
|
-
|
|
5287
|
+
Column45({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5186
5288
|
], Skill.prototype, "slug", 2);
|
|
5187
5289
|
__decorateClass([
|
|
5188
|
-
|
|
5290
|
+
Column45({ name: "is_active", type: "boolean", default: false })
|
|
5189
5291
|
], Skill.prototype, "isActive", 2);
|
|
5190
5292
|
Skill = __decorateClass([
|
|
5191
|
-
|
|
5293
|
+
Entity44("skills")
|
|
5192
5294
|
], Skill);
|
|
5193
5295
|
|
|
5194
5296
|
// src/entities/job-role.entity.ts
|
|
5195
|
-
import { Entity as
|
|
5297
|
+
import { Entity as Entity45, Column as Column46 } from "typeorm";
|
|
5196
5298
|
var JobRoles = class extends BaseEntity {
|
|
5197
5299
|
};
|
|
5198
5300
|
__decorateClass([
|
|
5199
|
-
|
|
5301
|
+
Column46({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5200
5302
|
], JobRoles.prototype, "slug", 2);
|
|
5201
5303
|
__decorateClass([
|
|
5202
|
-
|
|
5304
|
+
Column46({ name: "name", type: "varchar", nullable: true })
|
|
5203
5305
|
], JobRoles.prototype, "name", 2);
|
|
5204
5306
|
__decorateClass([
|
|
5205
|
-
|
|
5307
|
+
Column46({ name: "is_active", type: "boolean", default: true })
|
|
5206
5308
|
], JobRoles.prototype, "isActive", 2);
|
|
5207
5309
|
JobRoles = __decorateClass([
|
|
5208
|
-
|
|
5310
|
+
Entity45("job_roles")
|
|
5209
5311
|
], JobRoles);
|
|
5210
5312
|
|
|
5211
|
-
// src/entities/interview-invite.entity.ts
|
|
5212
|
-
import { Entity as Entity45, Column as Column46, ManyToOne as ManyToOne36, JoinColumn as JoinColumn36, Index as Index36 } from "typeorm";
|
|
5213
|
-
var InterviewInviteStatusEnum = /* @__PURE__ */ ((InterviewInviteStatusEnum2) => {
|
|
5214
|
-
InterviewInviteStatusEnum2["PENDING"] = "PENDING";
|
|
5215
|
-
InterviewInviteStatusEnum2["ACCEPTED"] = "ACCEPTED";
|
|
5216
|
-
InterviewInviteStatusEnum2["REJECTED"] = "REJECTED";
|
|
5217
|
-
InterviewInviteStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
5218
|
-
return InterviewInviteStatusEnum2;
|
|
5219
|
-
})(InterviewInviteStatusEnum || {});
|
|
5220
|
-
var InterviewInvite = class extends BaseEntity {
|
|
5221
|
-
};
|
|
5222
|
-
__decorateClass([
|
|
5223
|
-
Column46({
|
|
5224
|
-
name: "interview_id",
|
|
5225
|
-
type: "integer",
|
|
5226
|
-
comment: "Column to specify interview id"
|
|
5227
|
-
}),
|
|
5228
|
-
Index36()
|
|
5229
|
-
], InterviewInvite.prototype, "interviewId", 2);
|
|
5230
|
-
__decorateClass([
|
|
5231
|
-
ManyToOne36(() => Interview, { onDelete: "CASCADE" }),
|
|
5232
|
-
JoinColumn36({ name: "interview_id" })
|
|
5233
|
-
], InterviewInvite.prototype, "interview", 2);
|
|
5234
|
-
__decorateClass([
|
|
5235
|
-
Column46({
|
|
5236
|
-
name: "user_id",
|
|
5237
|
-
type: "integer",
|
|
5238
|
-
nullable: true,
|
|
5239
|
-
comment: "FK to User entity if candidate is already registered"
|
|
5240
|
-
}),
|
|
5241
|
-
Index36()
|
|
5242
|
-
], InterviewInvite.prototype, "userId", 2);
|
|
5243
|
-
__decorateClass([
|
|
5244
|
-
ManyToOne36(() => User),
|
|
5245
|
-
JoinColumn36({ name: "user_id" })
|
|
5246
|
-
], InterviewInvite.prototype, "user", 2);
|
|
5247
|
-
__decorateClass([
|
|
5248
|
-
Column46({
|
|
5249
|
-
name: "full_name",
|
|
5250
|
-
type: "varchar",
|
|
5251
|
-
nullable: true,
|
|
5252
|
-
comment: "Candidate's full name (used in the email invitation)"
|
|
5253
|
-
})
|
|
5254
|
-
], InterviewInvite.prototype, "fullName", 2);
|
|
5255
|
-
__decorateClass([
|
|
5256
|
-
Column46({
|
|
5257
|
-
name: "email",
|
|
5258
|
-
type: "varchar",
|
|
5259
|
-
comment: "Candidate's email address (must be unique per invite)"
|
|
5260
|
-
}),
|
|
5261
|
-
Index36()
|
|
5262
|
-
], InterviewInvite.prototype, "email", 2);
|
|
5263
|
-
__decorateClass([
|
|
5264
|
-
Column46({
|
|
5265
|
-
name: "status",
|
|
5266
|
-
type: "enum",
|
|
5267
|
-
enum: InterviewInviteStatusEnum,
|
|
5268
|
-
default: "PENDING" /* PENDING */,
|
|
5269
|
-
comment: "To manage invite status"
|
|
5270
|
-
})
|
|
5271
|
-
], InterviewInvite.prototype, "status", 2);
|
|
5272
|
-
__decorateClass([
|
|
5273
|
-
Column46({
|
|
5274
|
-
name: "sent_at",
|
|
5275
|
-
type: "timestamp with time zone",
|
|
5276
|
-
default: () => "CURRENT_TIMESTAMP",
|
|
5277
|
-
comment: "Timestamp when the invite was created/sent"
|
|
5278
|
-
})
|
|
5279
|
-
], InterviewInvite.prototype, "sentAt", 2);
|
|
5280
|
-
__decorateClass([
|
|
5281
|
-
Column46({
|
|
5282
|
-
name: "expired_at",
|
|
5283
|
-
type: "timestamp with time zone",
|
|
5284
|
-
comment: "Automatically expires invite after 72 hours",
|
|
5285
|
-
nullable: true
|
|
5286
|
-
})
|
|
5287
|
-
], InterviewInvite.prototype, "expiresAt", 2);
|
|
5288
|
-
__decorateClass([
|
|
5289
|
-
Column46({
|
|
5290
|
-
name: "responded_at",
|
|
5291
|
-
type: "timestamp with time zone",
|
|
5292
|
-
nullable: true,
|
|
5293
|
-
comment: "Timestamp when candidate responded."
|
|
5294
|
-
})
|
|
5295
|
-
], InterviewInvite.prototype, "respondedAt", 2);
|
|
5296
|
-
__decorateClass([
|
|
5297
|
-
Column46({
|
|
5298
|
-
name: "token",
|
|
5299
|
-
type: "varchar",
|
|
5300
|
-
unique: true,
|
|
5301
|
-
comment: "Secure unique token sent in email link for invite tracking",
|
|
5302
|
-
nullable: true
|
|
5303
|
-
}),
|
|
5304
|
-
Index36()
|
|
5305
|
-
], InterviewInvite.prototype, "token", 2);
|
|
5306
|
-
InterviewInvite = __decorateClass([
|
|
5307
|
-
Entity45("interview_invites")
|
|
5308
|
-
], InterviewInvite);
|
|
5309
|
-
|
|
5310
5313
|
// src/entities/ai-interview.entity.ts
|
|
5311
5314
|
import { Entity as Entity46, Column as Column47, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37, Index as Index37 } from "typeorm";
|
|
5312
5315
|
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|