@experts_hub/shared 1.0.691 → 1.0.694

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -460,6 +460,13 @@ __export(index_exports, {
460
460
  UpdateTaskDto: () => UpdateTaskDto,
461
461
  User: () => User,
462
462
  UserRMQAdapter: () => UserRMQAdapter,
463
+ UserSubscription: () => UserSubscription,
464
+ UserSubscriptionPlan: () => UserSubscriptionPlan,
465
+ UserSubscriptionPlanFeature: () => UserSubscriptionPlanFeature,
466
+ UserSubscriptionPlanPricing: () => UserSubscriptionPlanPricing,
467
+ UserSubscriptionPlanPricingBillingCycleEnum: () => UserSubscriptionPlanPricingBillingCycleEnum,
468
+ UserSubscriptionPlanTypeEnum: () => UserSubscriptionPlanTypeEnum,
469
+ UserSubscriptionStatusEnum: () => UserSubscriptionStatusEnum,
463
470
  UserTCPAdapter: () => UserTCPAdapter,
464
471
  ValidateEmailDto: () => ValidateEmailDto,
465
472
  ValidateEmailForLoginDto: () => ValidateEmailForLoginDto,
@@ -1402,7 +1409,7 @@ __decorateClass([
1402
1409
  var import_class_validator37 = require("class-validator");
1403
1410
 
1404
1411
  // src/entities/user.entity.ts
1405
- var import_typeorm75 = require("typeorm");
1412
+ var import_typeorm79 = require("typeorm");
1406
1413
 
1407
1414
  // src/entities/base.entity.ts
1408
1415
  var import_typeorm = require("typeorm");
@@ -2231,7 +2238,7 @@ FreelancerProfile = __decorateClass([
2231
2238
  ], FreelancerProfile);
2232
2239
 
2233
2240
  // src/entities/job.entity.ts
2234
- var import_typeorm41 = require("typeorm");
2241
+ var import_typeorm43 = require("typeorm");
2235
2242
 
2236
2243
  // src/entities/job-skill.entity.ts
2237
2244
  var import_typeorm10 = require("typeorm");
@@ -4083,10 +4090,10 @@ Contract = __decorateClass([
4083
4090
  ], Contract);
4084
4091
 
4085
4092
  // src/entities/timesheets.entity.ts
4086
- var import_typeorm38 = require("typeorm");
4093
+ var import_typeorm40 = require("typeorm");
4087
4094
 
4088
4095
  // src/entities/task.entity.ts
4089
- var import_typeorm37 = require("typeorm");
4096
+ var import_typeorm39 = require("typeorm");
4090
4097
 
4091
4098
  // src/entities/task-deliverable.entity.ts
4092
4099
  var import_typeorm32 = require("typeorm");
@@ -4258,6 +4265,169 @@ TaskLogTime = __decorateClass([
4258
4265
  (0, import_typeorm36.Entity)("task_log_times")
4259
4266
  ], TaskLogTime);
4260
4267
 
4268
+ // src/entities/task-query.entity.ts
4269
+ var import_typeorm38 = require("typeorm");
4270
+
4271
+ // src/entities/task-query-message.entity.ts
4272
+ var import_typeorm37 = require("typeorm");
4273
+ var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnum2) => {
4274
+ TaskQueryMessageUserTypeEnum2["CLIENT"] = "CLIENT";
4275
+ TaskQueryMessageUserTypeEnum2["FREELANCER"] = "FREELANCER";
4276
+ return TaskQueryMessageUserTypeEnum2;
4277
+ })(TaskQueryMessageUserTypeEnum || {});
4278
+ var TaskQueryMessage = class extends BaseEntity {
4279
+ };
4280
+ __decorateClass([
4281
+ (0, import_typeorm37.Column)({ name: "task_query_id", type: "integer" }),
4282
+ (0, import_typeorm37.Index)()
4283
+ ], TaskQueryMessage.prototype, "taskQueryId", 2);
4284
+ __decorateClass([
4285
+ (0, import_typeorm37.ManyToOne)(() => TaskQuery, (taskQuery) => taskQuery.messages),
4286
+ (0, import_typeorm37.JoinColumn)({ name: "task_query_id" })
4287
+ ], TaskQueryMessage.prototype, "taskQuery", 2);
4288
+ __decorateClass([
4289
+ (0, import_typeorm37.Column)({ name: "sender_user_id", type: "integer" }),
4290
+ (0, import_typeorm37.Index)()
4291
+ ], TaskQueryMessage.prototype, "senderUserId", 2);
4292
+ __decorateClass([
4293
+ (0, import_typeorm37.ManyToOne)(() => User, (user) => user.taskQueryMessages),
4294
+ (0, import_typeorm37.JoinColumn)({ name: "sender_user_id" })
4295
+ ], TaskQueryMessage.prototype, "senderUser", 2);
4296
+ __decorateClass([
4297
+ (0, import_typeorm37.Column)({
4298
+ name: "sender_type",
4299
+ type: "enum",
4300
+ enum: TaskQueryMessageUserTypeEnum
4301
+ })
4302
+ ], TaskQueryMessage.prototype, "senderType", 2);
4303
+ __decorateClass([
4304
+ (0, import_typeorm37.Column)({ name: "message", type: "varchar", nullable: true })
4305
+ ], TaskQueryMessage.prototype, "message", 2);
4306
+ __decorateClass([
4307
+ (0, import_typeorm37.Column)({ name: "attachment_url", type: "varchar", nullable: true })
4308
+ ], TaskQueryMessage.prototype, "attachmentUrl", 2);
4309
+ __decorateClass([
4310
+ (0, import_typeorm37.Column)({ name: "attachment_type", type: "varchar", nullable: true })
4311
+ ], TaskQueryMessage.prototype, "attachmentType", 2);
4312
+ __decorateClass([
4313
+ (0, import_typeorm37.Column)({ name: "meta", type: "jsonb", nullable: true })
4314
+ ], TaskQueryMessage.prototype, "meta", 2);
4315
+ __decorateClass([
4316
+ (0, import_typeorm37.Column)({ name: "is_read", type: "boolean", default: false })
4317
+ ], TaskQueryMessage.prototype, "isRead", 2);
4318
+ __decorateClass([
4319
+ (0, import_typeorm37.Column)({
4320
+ name: "read_at",
4321
+ type: "timestamp with time zone",
4322
+ nullable: true
4323
+ })
4324
+ ], TaskQueryMessage.prototype, "readAt", 2);
4325
+ TaskQueryMessage = __decorateClass([
4326
+ (0, import_typeorm37.Entity)("task_query_messages")
4327
+ ], TaskQueryMessage);
4328
+
4329
+ // src/entities/task-query.entity.ts
4330
+ var TaskQueryUserTypeEnum = /* @__PURE__ */ ((TaskQueryUserTypeEnum2) => {
4331
+ TaskQueryUserTypeEnum2["CLIENT"] = "CLIENT";
4332
+ TaskQueryUserTypeEnum2["FREELANCER"] = "FREELANCER";
4333
+ return TaskQueryUserTypeEnum2;
4334
+ })(TaskQueryUserTypeEnum || {});
4335
+ var TaskQueryCategoryEnum = /* @__PURE__ */ ((TaskQueryCategoryEnum2) => {
4336
+ TaskQueryCategoryEnum2["DEVELOPMENT_ISSUE"] = "DEVELOPMENT_ISSUE";
4337
+ TaskQueryCategoryEnum2["TESTING_ISSUE"] = "TESTING_ISSUE";
4338
+ TaskQueryCategoryEnum2["OTHER"] = "OTHER";
4339
+ return TaskQueryCategoryEnum2;
4340
+ })(TaskQueryCategoryEnum || {});
4341
+ var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
4342
+ TaskQueryStatusEnum2["OPEN"] = "OPEN";
4343
+ TaskQueryStatusEnum2["ANSWERED"] = "ANSWERED";
4344
+ TaskQueryStatusEnum2["CLOSED"] = "CLOSED";
4345
+ return TaskQueryStatusEnum2;
4346
+ })(TaskQueryStatusEnum || {});
4347
+ var TaskQuery = class extends BaseEntity {
4348
+ };
4349
+ __decorateClass([
4350
+ (0, import_typeorm38.Column)({ name: "task_id", type: "integer" }),
4351
+ (0, import_typeorm38.Index)()
4352
+ ], TaskQuery.prototype, "taskId", 2);
4353
+ __decorateClass([
4354
+ (0, import_typeorm38.ManyToOne)(() => Task, (task) => task.taskQueries),
4355
+ (0, import_typeorm38.JoinColumn)({ name: "task_id" })
4356
+ ], TaskQuery.prototype, "task", 2);
4357
+ __decorateClass([
4358
+ (0, import_typeorm38.Column)({ name: "raised_by_user_id", type: "integer" }),
4359
+ (0, import_typeorm38.Index)()
4360
+ ], TaskQuery.prototype, "raisedByUserId", 2);
4361
+ __decorateClass([
4362
+ (0, import_typeorm38.ManyToOne)(() => User, (user) => user.raisedTaskQueries),
4363
+ (0, import_typeorm38.JoinColumn)({ name: "raised_by_user_id" })
4364
+ ], TaskQuery.prototype, "raisedByUser", 2);
4365
+ __decorateClass([
4366
+ (0, import_typeorm38.Column)({
4367
+ name: "raised_by_type",
4368
+ type: "enum",
4369
+ enum: TaskQueryUserTypeEnum
4370
+ })
4371
+ ], TaskQuery.prototype, "raisedByType", 2);
4372
+ __decorateClass([
4373
+ (0, import_typeorm38.Column)({ name: "assigned_to_user_id", type: "integer" }),
4374
+ (0, import_typeorm38.Index)()
4375
+ ], TaskQuery.prototype, "assignedToUserId", 2);
4376
+ __decorateClass([
4377
+ (0, import_typeorm38.ManyToOne)(() => User, (user) => user.assignedTaskQueries),
4378
+ (0, import_typeorm38.JoinColumn)({ name: "assigned_to_user_id" })
4379
+ ], TaskQuery.prototype, "assignedToUser", 2);
4380
+ __decorateClass([
4381
+ (0, import_typeorm38.Column)({
4382
+ name: "assigned_to_type",
4383
+ type: "enum",
4384
+ enum: TaskQueryUserTypeEnum
4385
+ })
4386
+ ], TaskQuery.prototype, "assignedToType", 2);
4387
+ __decorateClass([
4388
+ (0, import_typeorm38.Column)({
4389
+ name: "query_category",
4390
+ type: "enum",
4391
+ enum: TaskQueryCategoryEnum
4392
+ })
4393
+ ], TaskQuery.prototype, "queryCategory", 2);
4394
+ __decorateClass([
4395
+ (0, import_typeorm38.Column)({ name: "subject", type: "varchar", nullable: true })
4396
+ ], TaskQuery.prototype, "subject", 2);
4397
+ __decorateClass([
4398
+ (0, import_typeorm38.Column)({ name: "description", type: "varchar", nullable: true })
4399
+ ], TaskQuery.prototype, "description", 2);
4400
+ __decorateClass([
4401
+ (0, import_typeorm38.Column)({
4402
+ name: "status",
4403
+ type: "enum",
4404
+ enum: TaskQueryStatusEnum,
4405
+ default: "OPEN" /* OPEN */
4406
+ })
4407
+ ], TaskQuery.prototype, "status", 2);
4408
+ __decorateClass([
4409
+ (0, import_typeorm38.Column)({
4410
+ name: "last_message_at",
4411
+ type: "timestamp with time zone",
4412
+ nullable: true
4413
+ })
4414
+ ], TaskQuery.prototype, "lastMessageAt", 2);
4415
+ __decorateClass([
4416
+ (0, import_typeorm38.Column)({ name: "last_message_preview", type: "varchar", nullable: true })
4417
+ ], TaskQuery.prototype, "lastMessagePreview", 2);
4418
+ __decorateClass([
4419
+ (0, import_typeorm38.Column)({ name: "unread_count_client", type: "integer", default: 0 })
4420
+ ], TaskQuery.prototype, "unreadCountClient", 2);
4421
+ __decorateClass([
4422
+ (0, import_typeorm38.Column)({ name: "unread_count_freelancer", type: "integer", default: 0 })
4423
+ ], TaskQuery.prototype, "unreadCountFreelancer", 2);
4424
+ __decorateClass([
4425
+ (0, import_typeorm38.OneToMany)(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
4426
+ ], TaskQuery.prototype, "messages", 2);
4427
+ TaskQuery = __decorateClass([
4428
+ (0, import_typeorm38.Entity)("task_queries")
4429
+ ], TaskQuery);
4430
+
4261
4431
  // src/entities/task.entity.ts
4262
4432
  var TaskPriorityEnum = /* @__PURE__ */ ((TaskPriorityEnum2) => {
4263
4433
  TaskPriorityEnum2["LOW"] = "LOW";
@@ -4277,37 +4447,37 @@ var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
4277
4447
  var Task = class extends BaseEntity {
4278
4448
  };
4279
4449
  __decorateClass([
4280
- (0, import_typeorm37.Column)({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
4450
+ (0, import_typeorm39.Column)({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
4281
4451
  ], Task.prototype, "taskUniqueId", 2);
4282
4452
  __decorateClass([
4283
- (0, import_typeorm37.Column)({ name: "job_id", type: "integer", nullable: true }),
4284
- (0, import_typeorm37.Index)()
4453
+ (0, import_typeorm39.Column)({ name: "job_id", type: "integer", nullable: true }),
4454
+ (0, import_typeorm39.Index)()
4285
4455
  ], Task.prototype, "jobId", 2);
4286
4456
  __decorateClass([
4287
- (0, import_typeorm37.ManyToOne)(() => Job, (job) => job.tasks),
4288
- (0, import_typeorm37.JoinColumn)({ name: "job_id" })
4457
+ (0, import_typeorm39.ManyToOne)(() => Job, (job) => job.tasks),
4458
+ (0, import_typeorm39.JoinColumn)({ name: "job_id" })
4289
4459
  ], Task.prototype, "job", 2);
4290
4460
  __decorateClass([
4291
- (0, import_typeorm37.Column)({ name: "client_id", type: "integer", nullable: true }),
4292
- (0, import_typeorm37.Index)()
4461
+ (0, import_typeorm39.Column)({ name: "client_id", type: "integer", nullable: true }),
4462
+ (0, import_typeorm39.Index)()
4293
4463
  ], Task.prototype, "clientId", 2);
4294
4464
  __decorateClass([
4295
- (0, import_typeorm37.ManyToOne)(() => User, (user) => user.clientTasks),
4296
- (0, import_typeorm37.JoinColumn)({ name: "client_id" })
4465
+ (0, import_typeorm39.ManyToOne)(() => User, (user) => user.clientTasks),
4466
+ (0, import_typeorm39.JoinColumn)({ name: "client_id" })
4297
4467
  ], Task.prototype, "client", 2);
4298
4468
  __decorateClass([
4299
- (0, import_typeorm37.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4300
- (0, import_typeorm37.Index)()
4469
+ (0, import_typeorm39.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4470
+ (0, import_typeorm39.Index)()
4301
4471
  ], Task.prototype, "freelancerId", 2);
4302
4472
  __decorateClass([
4303
- (0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerTasks),
4304
- (0, import_typeorm37.JoinColumn)({ name: "freelancer_id" })
4473
+ (0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerTasks),
4474
+ (0, import_typeorm39.JoinColumn)({ name: "freelancer_id" })
4305
4475
  ], Task.prototype, "freelancer", 2);
4306
4476
  __decorateClass([
4307
- (0, import_typeorm37.Column)({ name: "task_name", type: "varchar", nullable: true })
4477
+ (0, import_typeorm39.Column)({ name: "task_name", type: "varchar", nullable: true })
4308
4478
  ], Task.prototype, "taskName", 2);
4309
4479
  __decorateClass([
4310
- (0, import_typeorm37.Column)({
4480
+ (0, import_typeorm39.Column)({
4311
4481
  name: "status",
4312
4482
  type: "enum",
4313
4483
  enum: TaskStatusEnum,
@@ -4315,7 +4485,7 @@ __decorateClass([
4315
4485
  })
4316
4486
  ], Task.prototype, "status", 2);
4317
4487
  __decorateClass([
4318
- (0, import_typeorm37.Column)({
4488
+ (0, import_typeorm39.Column)({
4319
4489
  name: "priority",
4320
4490
  type: "enum",
4321
4491
  enum: TaskPriorityEnum,
@@ -4323,55 +4493,58 @@ __decorateClass([
4323
4493
  })
4324
4494
  ], Task.prototype, "priority", 2);
4325
4495
  __decorateClass([
4326
- (0, import_typeorm37.Column)({ name: "description", type: "varchar", nullable: true })
4496
+ (0, import_typeorm39.Column)({ name: "description", type: "varchar", nullable: true })
4327
4497
  ], Task.prototype, "description", 2);
4328
4498
  __decorateClass([
4329
- (0, import_typeorm37.Column)({
4499
+ (0, import_typeorm39.Column)({
4330
4500
  name: "due_date",
4331
4501
  type: "timestamp with time zone",
4332
4502
  nullable: true
4333
4503
  })
4334
4504
  ], Task.prototype, "dueDate", 2);
4335
4505
  __decorateClass([
4336
- (0, import_typeorm37.Column)({
4506
+ (0, import_typeorm39.Column)({
4337
4507
  name: "created_on",
4338
4508
  type: "timestamp with time zone",
4339
4509
  nullable: true
4340
4510
  })
4341
4511
  ], Task.prototype, "createdOn", 2);
4342
4512
  __decorateClass([
4343
- (0, import_typeorm37.Column)({
4513
+ (0, import_typeorm39.Column)({
4344
4514
  name: "estimate_hours",
4345
4515
  type: "integer",
4346
4516
  nullable: true
4347
4517
  })
4348
4518
  ], Task.prototype, "estimateHours", 2);
4349
4519
  __decorateClass([
4350
- (0, import_typeorm37.Column)({ name: "client_remarks", type: "varchar", nullable: true })
4520
+ (0, import_typeorm39.Column)({ name: "client_remarks", type: "varchar", nullable: true })
4351
4521
  ], Task.prototype, "clientRemarks", 2);
4352
4522
  __decorateClass([
4353
- (0, import_typeorm37.Column)({ name: "freelancer_work_note", type: "varchar", nullable: true })
4523
+ (0, import_typeorm39.Column)({ name: "freelancer_work_note", type: "varchar", nullable: true })
4354
4524
  ], Task.prototype, "freelancerWorkNote", 2);
4355
4525
  __decorateClass([
4356
- (0, import_typeorm37.OneToMany)(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
4526
+ (0, import_typeorm39.OneToMany)(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
4357
4527
  ], Task.prototype, "deliverables", 2);
4358
4528
  __decorateClass([
4359
- (0, import_typeorm37.OneToMany)(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
4529
+ (0, import_typeorm39.OneToMany)(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
4360
4530
  ], Task.prototype, "resources", 2);
4361
4531
  __decorateClass([
4362
- (0, import_typeorm37.OneToMany)(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
4532
+ (0, import_typeorm39.OneToMany)(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
4363
4533
  ], Task.prototype, "checklistItems", 2);
4364
4534
  __decorateClass([
4365
- (0, import_typeorm37.OneToMany)(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
4535
+ (0, import_typeorm39.OneToMany)(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
4366
4536
  ], Task.prototype, "subtasks", 2);
4367
4537
  __decorateClass([
4368
- (0, import_typeorm37.OneToMany)(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
4538
+ (0, import_typeorm39.OneToMany)(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
4369
4539
  ], Task.prototype, "timesheets", 2);
4370
4540
  __decorateClass([
4371
- (0, import_typeorm37.OneToMany)(() => TaskLogTime, (taskLogTime) => taskLogTime.task, { cascade: true })
4541
+ (0, import_typeorm39.OneToMany)(() => TaskLogTime, (taskLogTime) => taskLogTime.task, { cascade: true })
4372
4542
  ], Task.prototype, "taskLogTimes", 2);
4543
+ __decorateClass([
4544
+ (0, import_typeorm39.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.task, { cascade: true })
4545
+ ], Task.prototype, "taskQueries", 2);
4373
4546
  Task = __decorateClass([
4374
- (0, import_typeorm37.Entity)("tasks")
4547
+ (0, import_typeorm39.Entity)("tasks")
4375
4548
  ], Task);
4376
4549
 
4377
4550
  // src/entities/timesheets.entity.ts
@@ -4387,144 +4560,144 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
4387
4560
  var Timesheet = class extends BaseEntity {
4388
4561
  };
4389
4562
  __decorateClass([
4390
- (0, import_typeorm38.Column)({ name: "job_id", type: "integer", nullable: true }),
4391
- (0, import_typeorm38.Index)()
4563
+ (0, import_typeorm40.Column)({ name: "job_id", type: "integer", nullable: true }),
4564
+ (0, import_typeorm40.Index)()
4392
4565
  ], Timesheet.prototype, "jobId", 2);
4393
4566
  __decorateClass([
4394
- (0, import_typeorm38.ManyToOne)(() => Job, (job) => job.timesheets),
4395
- (0, import_typeorm38.JoinColumn)({ name: "job_id" })
4567
+ (0, import_typeorm40.ManyToOne)(() => Job, (job) => job.timesheets),
4568
+ (0, import_typeorm40.JoinColumn)({ name: "job_id" })
4396
4569
  ], Timesheet.prototype, "job", 2);
4397
4570
  __decorateClass([
4398
- (0, import_typeorm38.Column)({ name: "client_id", type: "integer", nullable: true }),
4399
- (0, import_typeorm38.Index)()
4571
+ (0, import_typeorm40.Column)({ name: "client_id", type: "integer", nullable: true }),
4572
+ (0, import_typeorm40.Index)()
4400
4573
  ], Timesheet.prototype, "clientId", 2);
4401
4574
  __decorateClass([
4402
- (0, import_typeorm38.ManyToOne)(() => User, (user) => user.clientTimesheets),
4403
- (0, import_typeorm38.JoinColumn)({ name: "client_id" })
4575
+ (0, import_typeorm40.ManyToOne)(() => User, (user) => user.clientTimesheets),
4576
+ (0, import_typeorm40.JoinColumn)({ name: "client_id" })
4404
4577
  ], Timesheet.prototype, "client", 2);
4405
4578
  __decorateClass([
4406
- (0, import_typeorm38.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4407
- (0, import_typeorm38.Index)()
4579
+ (0, import_typeorm40.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4580
+ (0, import_typeorm40.Index)()
4408
4581
  ], Timesheet.prototype, "freelancerId", 2);
4409
4582
  __decorateClass([
4410
- (0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
4411
- (0, import_typeorm38.JoinColumn)({ name: "freelancer_id" })
4583
+ (0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
4584
+ (0, import_typeorm40.JoinColumn)({ name: "freelancer_id" })
4412
4585
  ], Timesheet.prototype, "freelancer", 2);
4413
4586
  __decorateClass([
4414
- (0, import_typeorm38.Column)({
4587
+ (0, import_typeorm40.Column)({
4415
4588
  name: "start_date",
4416
4589
  type: "date",
4417
4590
  nullable: true
4418
4591
  })
4419
4592
  ], Timesheet.prototype, "startDate", 2);
4420
4593
  __decorateClass([
4421
- (0, import_typeorm38.Column)({
4594
+ (0, import_typeorm40.Column)({
4422
4595
  name: "end_date",
4423
4596
  type: "date",
4424
4597
  nullable: true
4425
4598
  })
4426
4599
  ], Timesheet.prototype, "endDate", 2);
4427
4600
  __decorateClass([
4428
- (0, import_typeorm38.Column)({ name: "start_time", type: "varchar", nullable: true })
4601
+ (0, import_typeorm40.Column)({ name: "start_time", type: "varchar", nullable: true })
4429
4602
  ], Timesheet.prototype, "startTime", 2);
4430
4603
  __decorateClass([
4431
- (0, import_typeorm38.Column)({ name: "end_time", type: "varchar", nullable: true })
4604
+ (0, import_typeorm40.Column)({ name: "end_time", type: "varchar", nullable: true })
4432
4605
  ], Timesheet.prototype, "endTime", 2);
4433
4606
  __decorateClass([
4434
- (0, import_typeorm38.Column)({ name: "worked_hours", type: "varchar", nullable: true })
4607
+ (0, import_typeorm40.Column)({ name: "worked_hours", type: "varchar", nullable: true })
4435
4608
  ], Timesheet.prototype, "workedHours", 2);
4436
4609
  __decorateClass([
4437
- (0, import_typeorm38.Column)({ name: "task_id", type: "integer", nullable: true })
4610
+ (0, import_typeorm40.Column)({ name: "task_id", type: "integer", nullable: true })
4438
4611
  ], Timesheet.prototype, "taskId", 2);
4439
4612
  __decorateClass([
4440
- (0, import_typeorm38.ManyToOne)(() => Task, (task) => task.timesheets),
4441
- (0, import_typeorm38.JoinColumn)({ name: "task_id" })
4613
+ (0, import_typeorm40.ManyToOne)(() => Task, (task) => task.timesheets),
4614
+ (0, import_typeorm40.JoinColumn)({ name: "task_id" })
4442
4615
  ], Timesheet.prototype, "task", 2);
4443
4616
  __decorateClass([
4444
- (0, import_typeorm38.Column)({ name: "task_name", type: "varchar", nullable: true })
4617
+ (0, import_typeorm40.Column)({ name: "task_name", type: "varchar", nullable: true })
4445
4618
  ], Timesheet.prototype, "taskName", 2);
4446
4619
  __decorateClass([
4447
- (0, import_typeorm38.Column)({ name: "description", type: "varchar", nullable: true })
4620
+ (0, import_typeorm40.Column)({ name: "description", type: "varchar", nullable: true })
4448
4621
  ], Timesheet.prototype, "description", 2);
4449
4622
  __decorateClass([
4450
- (0, import_typeorm38.Column)({ name: "week_start_date", type: "date", nullable: true })
4623
+ (0, import_typeorm40.Column)({ name: "week_start_date", type: "date", nullable: true })
4451
4624
  ], Timesheet.prototype, "weekStartDate", 2);
4452
4625
  __decorateClass([
4453
- (0, import_typeorm38.Column)({ name: "week_end_date", type: "date", nullable: true })
4626
+ (0, import_typeorm40.Column)({ name: "week_end_date", type: "date", nullable: true })
4454
4627
  ], Timesheet.prototype, "weekEndDate", 2);
4455
4628
  __decorateClass([
4456
- (0, import_typeorm38.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4629
+ (0, import_typeorm40.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4457
4630
  ], Timesheet.prototype, "rejectedAt", 2);
4458
4631
  __decorateClass([
4459
- (0, import_typeorm38.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4632
+ (0, import_typeorm40.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4460
4633
  ], Timesheet.prototype, "submittedAt", 2);
4461
4634
  __decorateClass([
4462
- (0, import_typeorm38.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4635
+ (0, import_typeorm40.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4463
4636
  ], Timesheet.prototype, "resubmittedAt", 2);
4464
4637
  __decorateClass([
4465
- (0, import_typeorm38.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4638
+ (0, import_typeorm40.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4466
4639
  ], Timesheet.prototype, "approvedAt", 2);
4467
4640
  __decorateClass([
4468
- (0, import_typeorm38.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4641
+ (0, import_typeorm40.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4469
4642
  ], Timesheet.prototype, "status", 2);
4470
4643
  __decorateClass([
4471
- (0, import_typeorm38.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
4644
+ (0, import_typeorm40.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
4472
4645
  ], Timesheet.prototype, "clientSendBackReason", 2);
4473
4646
  Timesheet = __decorateClass([
4474
- (0, import_typeorm38.Entity)("timesheets")
4647
+ (0, import_typeorm40.Entity)("timesheets")
4475
4648
  ], Timesheet);
4476
4649
 
4477
4650
  // src/entities/job-location.entity.ts
4478
- var import_typeorm39 = require("typeorm");
4651
+ var import_typeorm41 = require("typeorm");
4479
4652
  var JobLocation = class extends BaseEntity {
4480
4653
  };
4481
4654
  __decorateClass([
4482
- (0, import_typeorm39.Column)({ name: "job_id", type: "integer", nullable: false }),
4483
- (0, import_typeorm39.Index)()
4655
+ (0, import_typeorm41.Column)({ name: "job_id", type: "integer", nullable: false }),
4656
+ (0, import_typeorm41.Index)()
4484
4657
  ], JobLocation.prototype, "jobId", 2);
4485
4658
  __decorateClass([
4486
- (0, import_typeorm39.ManyToOne)(() => Job, (job) => job.jobLocations),
4487
- (0, import_typeorm39.JoinColumn)({ name: "job_id" })
4659
+ (0, import_typeorm41.ManyToOne)(() => Job, (job) => job.jobLocations),
4660
+ (0, import_typeorm41.JoinColumn)({ name: "job_id" })
4488
4661
  ], JobLocation.prototype, "job", 2);
4489
4662
  __decorateClass([
4490
- (0, import_typeorm39.Column)({ name: "country_id", type: "int", nullable: false })
4663
+ (0, import_typeorm41.Column)({ name: "country_id", type: "int", nullable: false })
4491
4664
  ], JobLocation.prototype, "countryId", 2);
4492
4665
  __decorateClass([
4493
- (0, import_typeorm39.Column)({ name: "country_name", type: "varchar", nullable: true })
4666
+ (0, import_typeorm41.Column)({ name: "country_name", type: "varchar", nullable: true })
4494
4667
  ], JobLocation.prototype, "countryName", 2);
4495
4668
  __decorateClass([
4496
- (0, import_typeorm39.ManyToOne)(() => Country),
4497
- (0, import_typeorm39.JoinColumn)({ name: "country_id" })
4669
+ (0, import_typeorm41.ManyToOne)(() => Country),
4670
+ (0, import_typeorm41.JoinColumn)({ name: "country_id" })
4498
4671
  ], JobLocation.prototype, "country", 2);
4499
4672
  __decorateClass([
4500
- (0, import_typeorm39.Column)({ name: "state_id", type: "int", nullable: false })
4673
+ (0, import_typeorm41.Column)({ name: "state_id", type: "int", nullable: false })
4501
4674
  ], JobLocation.prototype, "stateId", 2);
4502
4675
  __decorateClass([
4503
- (0, import_typeorm39.Column)({ name: "state_name", type: "varchar", nullable: true })
4676
+ (0, import_typeorm41.Column)({ name: "state_name", type: "varchar", nullable: true })
4504
4677
  ], JobLocation.prototype, "stateName", 2);
4505
4678
  __decorateClass([
4506
- (0, import_typeorm39.ManyToOne)(() => State),
4507
- (0, import_typeorm39.JoinColumn)({ name: "state_id" })
4679
+ (0, import_typeorm41.ManyToOne)(() => State),
4680
+ (0, import_typeorm41.JoinColumn)({ name: "state_id" })
4508
4681
  ], JobLocation.prototype, "state", 2);
4509
4682
  __decorateClass([
4510
- (0, import_typeorm39.Column)({ name: "city_id", type: "int", nullable: false })
4683
+ (0, import_typeorm41.Column)({ name: "city_id", type: "int", nullable: false })
4511
4684
  ], JobLocation.prototype, "cityId", 2);
4512
4685
  __decorateClass([
4513
- (0, import_typeorm39.Column)({ name: "city_name", type: "varchar", nullable: true })
4686
+ (0, import_typeorm41.Column)({ name: "city_name", type: "varchar", nullable: true })
4514
4687
  ], JobLocation.prototype, "cityName", 2);
4515
4688
  __decorateClass([
4516
- (0, import_typeorm39.ManyToOne)(() => City),
4517
- (0, import_typeorm39.JoinColumn)({ name: "city_id" })
4689
+ (0, import_typeorm41.ManyToOne)(() => City),
4690
+ (0, import_typeorm41.JoinColumn)({ name: "city_id" })
4518
4691
  ], JobLocation.prototype, "city", 2);
4519
4692
  __decorateClass([
4520
- (0, import_typeorm39.Column)({ name: "location_wise_openings", type: "int", default: 0 })
4693
+ (0, import_typeorm41.Column)({ name: "location_wise_openings", type: "int", default: 0 })
4521
4694
  ], JobLocation.prototype, "locationWiseOpenings", 2);
4522
4695
  JobLocation = __decorateClass([
4523
- (0, import_typeorm39.Entity)("job_locations")
4696
+ (0, import_typeorm41.Entity)("job_locations")
4524
4697
  ], JobLocation);
4525
4698
 
4526
4699
  // src/entities/rating.entity.ts
4527
- var import_typeorm40 = require("typeorm");
4700
+ var import_typeorm42 = require("typeorm");
4528
4701
  var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
4529
4702
  RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
4530
4703
  RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
@@ -4533,31 +4706,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
4533
4706
  var Rating = class extends BaseEntity {
4534
4707
  };
4535
4708
  __decorateClass([
4536
- (0, import_typeorm40.Column)({ name: "reviewer_id", type: "integer" }),
4537
- (0, import_typeorm40.Index)()
4709
+ (0, import_typeorm42.Column)({ name: "reviewer_id", type: "integer" }),
4710
+ (0, import_typeorm42.Index)()
4538
4711
  ], Rating.prototype, "reviewerId", 2);
4539
4712
  __decorateClass([
4540
- (0, import_typeorm40.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4541
- (0, import_typeorm40.JoinColumn)({ name: "reviewer_id" })
4713
+ (0, import_typeorm42.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4714
+ (0, import_typeorm42.JoinColumn)({ name: "reviewer_id" })
4542
4715
  ], Rating.prototype, "reviewer", 2);
4543
4716
  __decorateClass([
4544
- (0, import_typeorm40.Column)({ name: "reviewee_id", type: "integer" }),
4545
- (0, import_typeorm40.Index)()
4717
+ (0, import_typeorm42.Column)({ name: "reviewee_id", type: "integer" }),
4718
+ (0, import_typeorm42.Index)()
4546
4719
  ], Rating.prototype, "revieweeId", 2);
4547
4720
  __decorateClass([
4548
- (0, import_typeorm40.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4549
- (0, import_typeorm40.JoinColumn)({ name: "reviewee_id" })
4721
+ (0, import_typeorm42.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4722
+ (0, import_typeorm42.JoinColumn)({ name: "reviewee_id" })
4550
4723
  ], Rating.prototype, "reviewee", 2);
4551
4724
  __decorateClass([
4552
- (0, import_typeorm40.Column)({ name: "job_id", type: "integer" }),
4553
- (0, import_typeorm40.Index)()
4725
+ (0, import_typeorm42.Column)({ name: "job_id", type: "integer" }),
4726
+ (0, import_typeorm42.Index)()
4554
4727
  ], Rating.prototype, "jobId", 2);
4555
4728
  __decorateClass([
4556
- (0, import_typeorm40.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
4557
- (0, import_typeorm40.JoinColumn)({ name: "job_id" })
4729
+ (0, import_typeorm42.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
4730
+ (0, import_typeorm42.JoinColumn)({ name: "job_id" })
4558
4731
  ], Rating.prototype, "job", 2);
4559
4732
  __decorateClass([
4560
- (0, import_typeorm40.Column)({
4733
+ (0, import_typeorm42.Column)({
4561
4734
  name: "rating_type",
4562
4735
  type: "enum",
4563
4736
  enum: RatingTypeEnum,
@@ -4565,67 +4738,67 @@ __decorateClass([
4565
4738
  })
4566
4739
  ], Rating.prototype, "ratingType", 2);
4567
4740
  __decorateClass([
4568
- (0, import_typeorm40.Column)({ name: "reviewer_comment", type: "text", nullable: true })
4741
+ (0, import_typeorm42.Column)({ name: "reviewer_comment", type: "text", nullable: true })
4569
4742
  ], Rating.prototype, "reviewerComment", 2);
4570
4743
  __decorateClass([
4571
- (0, import_typeorm40.Column)({
4744
+ (0, import_typeorm42.Column)({
4572
4745
  name: "overall_experience",
4573
4746
  type: "float",
4574
4747
  default: 0
4575
4748
  })
4576
4749
  ], Rating.prototype, "overAllExperience", 2);
4577
4750
  __decorateClass([
4578
- (0, import_typeorm40.Column)({
4751
+ (0, import_typeorm42.Column)({
4579
4752
  name: "work_quality",
4580
4753
  type: "float",
4581
4754
  default: 0
4582
4755
  })
4583
4756
  ], Rating.prototype, "workQuality", 2);
4584
4757
  __decorateClass([
4585
- (0, import_typeorm40.Column)({
4758
+ (0, import_typeorm42.Column)({
4586
4759
  name: "one_time_delivery",
4587
4760
  type: "float",
4588
4761
  default: 0
4589
4762
  })
4590
4763
  ], Rating.prototype, "oneTimeDelivery", 2);
4591
4764
  __decorateClass([
4592
- (0, import_typeorm40.Column)({
4765
+ (0, import_typeorm42.Column)({
4593
4766
  name: "understaning",
4594
4767
  type: "float",
4595
4768
  default: 0
4596
4769
  })
4597
4770
  ], Rating.prototype, "understaning", 2);
4598
4771
  __decorateClass([
4599
- (0, import_typeorm40.Column)({
4772
+ (0, import_typeorm42.Column)({
4600
4773
  name: "communication",
4601
4774
  type: "float",
4602
4775
  default: 0
4603
4776
  })
4604
4777
  ], Rating.prototype, "communication", 2);
4605
4778
  __decorateClass([
4606
- (0, import_typeorm40.Column)({
4779
+ (0, import_typeorm42.Column)({
4607
4780
  name: "skill_utilized",
4608
4781
  type: "float",
4609
4782
  default: 0
4610
4783
  })
4611
4784
  ], Rating.prototype, "skillUtilized", 2);
4612
4785
  __decorateClass([
4613
- (0, import_typeorm40.Column)({ name: "communication_clarity", type: "float", default: 0 })
4786
+ (0, import_typeorm42.Column)({ name: "communication_clarity", type: "float", default: 0 })
4614
4787
  ], Rating.prototype, "communicationClarity", 2);
4615
4788
  __decorateClass([
4616
- (0, import_typeorm40.Column)({ name: "requirements_clarity", type: "float", default: 0 })
4789
+ (0, import_typeorm42.Column)({ name: "requirements_clarity", type: "float", default: 0 })
4617
4790
  ], Rating.prototype, "requirementsClarity", 2);
4618
4791
  __decorateClass([
4619
- (0, import_typeorm40.Column)({ name: "responsiveness", type: "float", default: 0 })
4792
+ (0, import_typeorm42.Column)({ name: "responsiveness", type: "float", default: 0 })
4620
4793
  ], Rating.prototype, "responsiveness", 2);
4621
4794
  __decorateClass([
4622
- (0, import_typeorm40.Column)({ name: "payment_promptness", type: "float", default: 0 })
4795
+ (0, import_typeorm42.Column)({ name: "payment_promptness", type: "float", default: 0 })
4623
4796
  ], Rating.prototype, "paymentPromptness", 2);
4624
4797
  __decorateClass([
4625
- (0, import_typeorm40.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4798
+ (0, import_typeorm42.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4626
4799
  ], Rating.prototype, "responsibilitiesAndExpectations", 2);
4627
4800
  Rating = __decorateClass([
4628
- (0, import_typeorm40.Entity)("ratings")
4801
+ (0, import_typeorm42.Entity)("ratings")
4629
4802
  ], Rating);
4630
4803
 
4631
4804
  // src/entities/job.entity.ts
@@ -4680,58 +4853,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
4680
4853
  var Job = class extends BaseEntity {
4681
4854
  };
4682
4855
  __decorateClass([
4683
- (0, import_typeorm41.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
4856
+ (0, import_typeorm43.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
4684
4857
  ], Job.prototype, "jobId", 2);
4685
4858
  // individual index to find jobs by user
4686
4859
  __decorateClass([
4687
- (0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
4688
- (0, import_typeorm41.Index)()
4860
+ (0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
4861
+ (0, import_typeorm43.Index)()
4689
4862
  ], Job.prototype, "userId", 2);
4690
4863
  __decorateClass([
4691
- (0, import_typeorm41.ManyToOne)(() => User, (user) => user.jobs),
4692
- (0, import_typeorm41.JoinColumn)({ name: "user_id" })
4864
+ (0, import_typeorm43.ManyToOne)(() => User, (user) => user.jobs),
4865
+ (0, import_typeorm43.JoinColumn)({ name: "user_id" })
4693
4866
  ], Job.prototype, "user", 2);
4694
4867
  __decorateClass([
4695
- (0, import_typeorm41.Column)({ name: "country_id", type: "int", nullable: true })
4868
+ (0, import_typeorm43.Column)({ name: "country_id", type: "int", nullable: true })
4696
4869
  ], Job.prototype, "countryId", 2);
4697
4870
  __decorateClass([
4698
- (0, import_typeorm41.ManyToOne)(() => Country),
4699
- (0, import_typeorm41.JoinColumn)({ name: "country_id" })
4871
+ (0, import_typeorm43.ManyToOne)(() => Country),
4872
+ (0, import_typeorm43.JoinColumn)({ name: "country_id" })
4700
4873
  ], Job.prototype, "country", 2);
4701
4874
  __decorateClass([
4702
- (0, import_typeorm41.Column)({ name: "state_id", type: "int", nullable: true })
4875
+ (0, import_typeorm43.Column)({ name: "state_id", type: "int", nullable: true })
4703
4876
  ], Job.prototype, "stateId", 2);
4704
4877
  __decorateClass([
4705
- (0, import_typeorm41.ManyToOne)(() => State),
4706
- (0, import_typeorm41.JoinColumn)({ name: "state_id" })
4878
+ (0, import_typeorm43.ManyToOne)(() => State),
4879
+ (0, import_typeorm43.JoinColumn)({ name: "state_id" })
4707
4880
  ], Job.prototype, "state", 2);
4708
4881
  __decorateClass([
4709
- (0, import_typeorm41.Column)({ name: "city_id", type: "int", nullable: true })
4882
+ (0, import_typeorm43.Column)({ name: "city_id", type: "int", nullable: true })
4710
4883
  ], Job.prototype, "cityId", 2);
4711
4884
  __decorateClass([
4712
- (0, import_typeorm41.ManyToOne)(() => City),
4713
- (0, import_typeorm41.JoinColumn)({ name: "city_id" })
4885
+ (0, import_typeorm43.ManyToOne)(() => City),
4886
+ (0, import_typeorm43.JoinColumn)({ name: "city_id" })
4714
4887
  ], Job.prototype, "city", 2);
4715
4888
  __decorateClass([
4716
- (0, import_typeorm41.Column)({ name: "job_role", type: "varchar", nullable: true })
4889
+ (0, import_typeorm43.Column)({ name: "job_role", type: "varchar", nullable: true })
4717
4890
  ], Job.prototype, "jobRole", 2);
4718
4891
  __decorateClass([
4719
- (0, import_typeorm41.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4892
+ (0, import_typeorm43.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4720
4893
  ], Job.prototype, "jobRoleCanonicalName", 2);
4721
4894
  __decorateClass([
4722
- (0, import_typeorm41.Column)({ name: "project_name", type: "varchar", nullable: true })
4895
+ (0, import_typeorm43.Column)({ name: "project_name", type: "varchar", nullable: true })
4723
4896
  ], Job.prototype, "projectName", 2);
4724
4897
  __decorateClass([
4725
- (0, import_typeorm41.Column)({ name: "note", type: "varchar", nullable: true })
4898
+ (0, import_typeorm43.Column)({ name: "note", type: "varchar", nullable: true })
4726
4899
  ], Job.prototype, "note", 2);
4727
4900
  __decorateClass([
4728
- (0, import_typeorm41.Column)({ name: "openings", type: "integer", default: 0 })
4901
+ (0, import_typeorm43.Column)({ name: "openings", type: "integer", default: 0 })
4729
4902
  ], Job.prototype, "openings", 2);
4730
4903
  __decorateClass([
4731
- (0, import_typeorm41.Column)({ name: "utilised_openings", type: "integer", default: 0 })
4904
+ (0, import_typeorm43.Column)({ name: "utilised_openings", type: "integer", default: 0 })
4732
4905
  ], Job.prototype, "utilisedOpenings", 2);
4733
4906
  __decorateClass([
4734
- (0, import_typeorm41.Column)({
4907
+ (0, import_typeorm43.Column)({
4735
4908
  name: "location",
4736
4909
  type: "enum",
4737
4910
  enum: JobLocationEnum,
@@ -4739,7 +4912,7 @@ __decorateClass([
4739
4912
  })
4740
4913
  ], Job.prototype, "location", 2);
4741
4914
  __decorateClass([
4742
- (0, import_typeorm41.Column)({
4915
+ (0, import_typeorm43.Column)({
4743
4916
  name: "type_of_employment",
4744
4917
  type: "enum",
4745
4918
  enum: TypeOfEmploymentEnum,
@@ -4747,7 +4920,7 @@ __decorateClass([
4747
4920
  })
4748
4921
  ], Job.prototype, "typeOfEmployment", 2);
4749
4922
  __decorateClass([
4750
- (0, import_typeorm41.Column)({
4923
+ (0, import_typeorm43.Column)({
4751
4924
  name: "billing_cycle",
4752
4925
  type: "enum",
4753
4926
  enum: BillingCycleEnum,
@@ -4755,10 +4928,10 @@ __decorateClass([
4755
4928
  })
4756
4929
  ], Job.prototype, "billingCycle", 2);
4757
4930
  __decorateClass([
4758
- (0, import_typeorm41.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4931
+ (0, import_typeorm43.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4759
4932
  ], Job.prototype, "academicQualification", 2);
4760
4933
  __decorateClass([
4761
- (0, import_typeorm41.Column)({
4934
+ (0, import_typeorm43.Column)({
4762
4935
  name: "type_of_experience",
4763
4936
  type: "enum",
4764
4937
  enum: typeOfExperienceEnum,
@@ -4766,22 +4939,22 @@ __decorateClass([
4766
4939
  })
4767
4940
  ], Job.prototype, "typeOfExperience", 2);
4768
4941
  __decorateClass([
4769
- (0, import_typeorm41.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4942
+ (0, import_typeorm43.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4770
4943
  ], Job.prototype, "yearsOfExperience", 2);
4771
4944
  __decorateClass([
4772
- (0, import_typeorm41.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
4945
+ (0, import_typeorm43.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
4773
4946
  ], Job.prototype, "yearsOfExperienceFrom", 2);
4774
4947
  __decorateClass([
4775
- (0, import_typeorm41.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
4948
+ (0, import_typeorm43.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
4776
4949
  ], Job.prototype, "yearsOfExperienceTo", 2);
4777
4950
  __decorateClass([
4778
- (0, import_typeorm41.Column)({ name: "business_industry", type: "varchar", nullable: true })
4951
+ (0, import_typeorm43.Column)({ name: "business_industry", type: "varchar", nullable: true })
4779
4952
  ], Job.prototype, "businessIndustry", 2);
4780
4953
  __decorateClass([
4781
- (0, import_typeorm41.Column)({ name: "currency", type: "varchar", default: "USD" })
4954
+ (0, import_typeorm43.Column)({ name: "currency", type: "varchar", default: "USD" })
4782
4955
  ], Job.prototype, "currency", 2);
4783
4956
  __decorateClass([
4784
- (0, import_typeorm41.Column)({
4957
+ (0, import_typeorm43.Column)({
4785
4958
  name: "expected_salary_from",
4786
4959
  type: "decimal",
4787
4960
  precision: 10,
@@ -4790,14 +4963,14 @@ __decorateClass([
4790
4963
  })
4791
4964
  ], Job.prototype, "expectedSalaryFrom", 2);
4792
4965
  __decorateClass([
4793
- (0, import_typeorm41.Column)({
4966
+ (0, import_typeorm43.Column)({
4794
4967
  name: "hide_expected_salary_from",
4795
4968
  type: "boolean",
4796
4969
  default: false
4797
4970
  })
4798
4971
  ], Job.prototype, "hideExpectedSalaryFrom", 2);
4799
4972
  __decorateClass([
4800
- (0, import_typeorm41.Column)({
4973
+ (0, import_typeorm43.Column)({
4801
4974
  name: "expected_salary_to",
4802
4975
  type: "decimal",
4803
4976
  precision: 10,
@@ -4806,14 +4979,14 @@ __decorateClass([
4806
4979
  })
4807
4980
  ], Job.prototype, "expectedSalaryTo", 2);
4808
4981
  __decorateClass([
4809
- (0, import_typeorm41.Column)({
4982
+ (0, import_typeorm43.Column)({
4810
4983
  name: "hide_expected_salary_to",
4811
4984
  type: "boolean",
4812
4985
  default: false
4813
4986
  })
4814
4987
  ], Job.prototype, "hideExpectedSalaryTo", 2);
4815
4988
  __decorateClass([
4816
- (0, import_typeorm41.Column)({
4989
+ (0, import_typeorm43.Column)({
4817
4990
  name: "expected_annual_budget_from",
4818
4991
  type: "decimal",
4819
4992
  precision: 10,
@@ -4822,14 +4995,14 @@ __decorateClass([
4822
4995
  })
4823
4996
  ], Job.prototype, "expectedAnnualBudgetFrom", 2);
4824
4997
  __decorateClass([
4825
- (0, import_typeorm41.Column)({
4998
+ (0, import_typeorm43.Column)({
4826
4999
  name: "hide_expected_annual_budget_from",
4827
5000
  type: "boolean",
4828
5001
  default: false
4829
5002
  })
4830
5003
  ], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
4831
5004
  __decorateClass([
4832
- (0, import_typeorm41.Column)({
5005
+ (0, import_typeorm43.Column)({
4833
5006
  name: "expected_annual_budget_to",
4834
5007
  type: "decimal",
4835
5008
  precision: 10,
@@ -4838,32 +5011,32 @@ __decorateClass([
4838
5011
  })
4839
5012
  ], Job.prototype, "expectedAnnualBudgetTo", 2);
4840
5013
  __decorateClass([
4841
- (0, import_typeorm41.Column)({
5014
+ (0, import_typeorm43.Column)({
4842
5015
  name: "hide_expected_annual_budget_to",
4843
5016
  type: "boolean",
4844
5017
  default: false
4845
5018
  })
4846
5019
  ], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
4847
5020
  __decorateClass([
4848
- (0, import_typeorm41.Column)({ name: "years", type: "varchar", nullable: true })
5021
+ (0, import_typeorm43.Column)({ name: "years", type: "varchar", nullable: true })
4849
5022
  ], Job.prototype, "years", 2);
4850
5023
  __decorateClass([
4851
- (0, import_typeorm41.Column)({ name: "months", type: "varchar", nullable: true })
5024
+ (0, import_typeorm43.Column)({ name: "months", type: "varchar", nullable: true })
4852
5025
  ], Job.prototype, "months", 2);
4853
5026
  __decorateClass([
4854
- (0, import_typeorm41.Column)({ name: "weeks", type: "varchar", nullable: true })
5027
+ (0, import_typeorm43.Column)({ name: "weeks", type: "varchar", nullable: true })
4855
5028
  ], Job.prototype, "weeks", 2);
4856
5029
  __decorateClass([
4857
- (0, import_typeorm41.Column)({ name: "days", type: "varchar", nullable: true })
5030
+ (0, import_typeorm43.Column)({ name: "days", type: "varchar", nullable: true })
4858
5031
  ], Job.prototype, "days", 2);
4859
5032
  __decorateClass([
4860
- (0, import_typeorm41.Column)({ name: "tentative_start_date", type: "date", nullable: true })
5033
+ (0, import_typeorm43.Column)({ name: "tentative_start_date", type: "date", nullable: true })
4861
5034
  ], Job.prototype, "tentativeStartDate", 2);
4862
5035
  __decorateClass([
4863
- (0, import_typeorm41.Column)({ name: "tentative_end_date", type: "date", nullable: true })
5036
+ (0, import_typeorm43.Column)({ name: "tentative_end_date", type: "date", nullable: true })
4864
5037
  ], Job.prototype, "tentativeEndDate", 2);
4865
5038
  __decorateClass([
4866
- (0, import_typeorm41.Column)({
5039
+ (0, import_typeorm43.Column)({
4867
5040
  name: "duration_type",
4868
5041
  type: "enum",
4869
5042
  enum: DurationTypeEnum,
@@ -4871,10 +5044,10 @@ __decorateClass([
4871
5044
  })
4872
5045
  ], Job.prototype, "durationType", 2);
4873
5046
  __decorateClass([
4874
- (0, import_typeorm41.Column)({ name: "duration", type: "varchar", nullable: true })
5047
+ (0, import_typeorm43.Column)({ name: "duration", type: "varchar", nullable: true })
4875
5048
  ], Job.prototype, "duration", 2);
4876
5049
  __decorateClass([
4877
- (0, import_typeorm41.Column)({
5050
+ (0, import_typeorm43.Column)({
4878
5051
  name: "number_of_hours",
4879
5052
  type: "decimal",
4880
5053
  precision: 4,
@@ -4883,13 +5056,13 @@ __decorateClass([
4883
5056
  })
4884
5057
  ], Job.prototype, "numberOfHours", 2);
4885
5058
  __decorateClass([
4886
- (0, import_typeorm41.Column)({ name: "description", type: "varchar", nullable: true })
5059
+ (0, import_typeorm43.Column)({ name: "description", type: "varchar", nullable: true })
4887
5060
  ], Job.prototype, "description", 2);
4888
5061
  __decorateClass([
4889
- (0, import_typeorm41.Column)({ name: "additional_comment", type: "varchar", nullable: true })
5062
+ (0, import_typeorm43.Column)({ name: "additional_comment", type: "varchar", nullable: true })
4890
5063
  ], Job.prototype, "additionalComment", 2);
4891
5064
  __decorateClass([
4892
- (0, import_typeorm41.Column)({
5065
+ (0, import_typeorm43.Column)({
4893
5066
  name: "onboarding_tat",
4894
5067
  type: "varchar",
4895
5068
  length: 50,
@@ -4897,17 +5070,17 @@ __decorateClass([
4897
5070
  })
4898
5071
  ], Job.prototype, "onboardingTat", 2);
4899
5072
  __decorateClass([
4900
- (0, import_typeorm41.Column)({
5073
+ (0, import_typeorm43.Column)({
4901
5074
  name: "candidate_communication_skills",
4902
5075
  type: "varchar",
4903
5076
  nullable: true
4904
5077
  })
4905
5078
  ], Job.prototype, "candidateCommunicationSkills", 2);
4906
5079
  __decorateClass([
4907
- (0, import_typeorm41.Column)({ name: "deal_breakers", type: "jsonb", nullable: true })
5080
+ (0, import_typeorm43.Column)({ name: "deal_breakers", type: "jsonb", nullable: true })
4908
5081
  ], Job.prototype, "dealBreakers", 2);
4909
5082
  __decorateClass([
4910
- (0, import_typeorm41.Column)({
5083
+ (0, import_typeorm43.Column)({
4911
5084
  name: "step_completed",
4912
5085
  type: "enum",
4913
5086
  enum: Step,
@@ -4915,7 +5088,7 @@ __decorateClass([
4915
5088
  })
4916
5089
  ], Job.prototype, "stepCompleted", 2);
4917
5090
  __decorateClass([
4918
- (0, import_typeorm41.Column)({
5091
+ (0, import_typeorm43.Column)({
4919
5092
  name: "status",
4920
5093
  type: "enum",
4921
5094
  enum: JobStatusEnum,
@@ -4923,43 +5096,43 @@ __decorateClass([
4923
5096
  })
4924
5097
  ], Job.prototype, "status", 2);
4925
5098
  __decorateClass([
4926
- (0, import_typeorm41.Column)({ name: "viewed_count", type: "integer", default: 0 })
5099
+ (0, import_typeorm43.Column)({ name: "viewed_count", type: "integer", default: 0 })
4927
5100
  ], Job.prototype, "viewedCount", 2);
4928
5101
  __decorateClass([
4929
- (0, import_typeorm41.Column)({ name: "application_count", type: "integer", default: 0 })
5102
+ (0, import_typeorm43.Column)({ name: "application_count", type: "integer", default: 0 })
4930
5103
  ], Job.prototype, "applicationCount", 2);
4931
5104
  __decorateClass([
4932
- (0, import_typeorm41.Column)({ name: "is_contract_signed", type: "boolean", default: false })
5105
+ (0, import_typeorm43.Column)({ name: "is_contract_signed", type: "boolean", default: false })
4933
5106
  ], Job.prototype, "isContractSigned", 2);
4934
5107
  __decorateClass([
4935
- (0, import_typeorm41.Column)({ name: "is_interview_created", type: "boolean", default: false })
5108
+ (0, import_typeorm43.Column)({ name: "is_interview_created", type: "boolean", default: false })
4936
5109
  ], Job.prototype, "isInterviewCreated", 2);
4937
5110
  __decorateClass([
4938
- (0, import_typeorm41.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
5111
+ (0, import_typeorm43.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
4939
5112
  ], Job.prototype, "isJobCreatedViaAI", 2);
4940
5113
  __decorateClass([
4941
- (0, import_typeorm41.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
5114
+ (0, import_typeorm43.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4942
5115
  ], Job.prototype, "interviewInvites", 2);
4943
5116
  __decorateClass([
4944
- (0, import_typeorm41.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
5117
+ (0, import_typeorm43.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4945
5118
  ], Job.prototype, "jobSkills", 2);
4946
5119
  __decorateClass([
4947
- (0, import_typeorm41.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
5120
+ (0, import_typeorm43.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
4948
5121
  cascade: true
4949
5122
  })
4950
5123
  ], Job.prototype, "jobApplications", 2);
4951
5124
  __decorateClass([
4952
- (0, import_typeorm41.OneToMany)(() => Interview, (interview) => interview.job, {
5125
+ (0, import_typeorm43.OneToMany)(() => Interview, (interview) => interview.job, {
4953
5126
  cascade: true
4954
5127
  })
4955
5128
  ], Job.prototype, "interviews", 2);
4956
5129
  __decorateClass([
4957
- (0, import_typeorm41.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
5130
+ (0, import_typeorm43.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4958
5131
  cascade: true
4959
5132
  })
4960
5133
  ], Job.prototype, "f2fInterviews", 2);
4961
5134
  __decorateClass([
4962
- (0, import_typeorm41.OneToMany)(
5135
+ (0, import_typeorm43.OneToMany)(
4963
5136
  () => JobRecommendation,
4964
5137
  (jobRecommendation) => jobRecommendation.job,
4965
5138
  {
@@ -4968,64 +5141,64 @@ __decorateClass([
4968
5141
  )
4969
5142
  ], Job.prototype, "recommendations", 2);
4970
5143
  __decorateClass([
4971
- (0, import_typeorm41.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
5144
+ (0, import_typeorm43.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
4972
5145
  cascade: true
4973
5146
  })
4974
5147
  ], Job.prototype, "contractSummaries", 2);
4975
5148
  __decorateClass([
4976
- (0, import_typeorm41.OneToMany)(() => Contract, (contract) => contract.job, {
5149
+ (0, import_typeorm43.OneToMany)(() => Contract, (contract) => contract.job, {
4977
5150
  cascade: true
4978
5151
  })
4979
5152
  ], Job.prototype, "contracts", 2);
4980
5153
  __decorateClass([
4981
- (0, import_typeorm41.OneToMany)(() => Hiring, (hiring) => hiring.job, {
5154
+ (0, import_typeorm43.OneToMany)(() => Hiring, (hiring) => hiring.job, {
4982
5155
  cascade: true
4983
5156
  })
4984
5157
  ], Job.prototype, "hirings", 2);
4985
5158
  __decorateClass([
4986
- (0, import_typeorm41.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
5159
+ (0, import_typeorm43.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4987
5160
  cascade: true
4988
5161
  })
4989
5162
  ], Job.prototype, "escrowWallets", 2);
4990
5163
  __decorateClass([
4991
- (0, import_typeorm41.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
5164
+ (0, import_typeorm43.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
4992
5165
  cascade: true
4993
5166
  })
4994
5167
  ], Job.prototype, "timesheets", 2);
4995
5168
  __decorateClass([
4996
- (0, import_typeorm41.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
5169
+ (0, import_typeorm43.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4997
5170
  cascade: true
4998
5171
  })
4999
5172
  ], Job.prototype, "timesheetLine", 2);
5000
5173
  __decorateClass([
5001
- (0, import_typeorm41.OneToMany)(() => Invoice, (invoice) => invoice.job, {
5174
+ (0, import_typeorm43.OneToMany)(() => Invoice, (invoice) => invoice.job, {
5002
5175
  cascade: true
5003
5176
  })
5004
5177
  ], Job.prototype, "invoice", 2);
5005
5178
  __decorateClass([
5006
- (0, import_typeorm41.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
5179
+ (0, import_typeorm43.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
5007
5180
  ], Job.prototype, "clientCandidatePreferences", 2);
5008
5181
  __decorateClass([
5009
- (0, import_typeorm41.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
5182
+ (0, import_typeorm43.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
5010
5183
  cascade: true
5011
5184
  })
5012
5185
  ], Job.prototype, "jobLocations", 2);
5013
5186
  __decorateClass([
5014
- (0, import_typeorm41.OneToMany)(() => Rating, (rating) => rating.job, {
5187
+ (0, import_typeorm43.OneToMany)(() => Rating, (rating) => rating.job, {
5015
5188
  cascade: true
5016
5189
  })
5017
5190
  ], Job.prototype, "ratings", 2);
5018
5191
  __decorateClass([
5019
- (0, import_typeorm41.OneToMany)(() => Task, (task) => task.job, {
5192
+ (0, import_typeorm43.OneToMany)(() => Task, (task) => task.job, {
5020
5193
  cascade: true
5021
5194
  })
5022
5195
  ], Job.prototype, "tasks", 2);
5023
5196
  Job = __decorateClass([
5024
- (0, import_typeorm41.Entity)("jobs")
5197
+ (0, import_typeorm43.Entity)("jobs")
5025
5198
  ], Job);
5026
5199
 
5027
5200
  // src/entities/bank-details.entity.ts
5028
- var import_typeorm42 = require("typeorm");
5201
+ var import_typeorm44 = require("typeorm");
5029
5202
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
5030
5203
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
5031
5204
  BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
@@ -5040,51 +5213,51 @@ var BankDetail = class extends BaseEntity {
5040
5213
  };
5041
5214
  // individual index to find bank details by user
5042
5215
  __decorateClass([
5043
- (0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
5044
- (0, import_typeorm42.Index)()
5216
+ (0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
5217
+ (0, import_typeorm44.Index)()
5045
5218
  ], BankDetail.prototype, "userId", 2);
5046
5219
  __decorateClass([
5047
- (0, import_typeorm42.ManyToOne)(() => User, (user) => user.bankDetail),
5048
- (0, import_typeorm42.JoinColumn)({ name: "user_id" })
5220
+ (0, import_typeorm44.ManyToOne)(() => User, (user) => user.bankDetail),
5221
+ (0, import_typeorm44.JoinColumn)({ name: "user_id" })
5049
5222
  ], BankDetail.prototype, "user", 2);
5050
5223
  __decorateClass([
5051
- (0, import_typeorm42.Column)({ name: "name", type: "varchar", nullable: true })
5224
+ (0, import_typeorm44.Column)({ name: "name", type: "varchar", nullable: true })
5052
5225
  ], BankDetail.prototype, "name", 2);
5053
5226
  __decorateClass([
5054
- (0, import_typeorm42.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5227
+ (0, import_typeorm44.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5055
5228
  ], BankDetail.prototype, "mobileCode", 2);
5056
5229
  __decorateClass([
5057
- (0, import_typeorm42.Column)({ name: "mobile", type: "varchar", nullable: true })
5230
+ (0, import_typeorm44.Column)({ name: "mobile", type: "varchar", nullable: true })
5058
5231
  ], BankDetail.prototype, "mobile", 2);
5059
5232
  __decorateClass([
5060
- (0, import_typeorm42.Column)({ name: "email", type: "varchar" })
5233
+ (0, import_typeorm44.Column)({ name: "email", type: "varchar" })
5061
5234
  ], BankDetail.prototype, "email", 2);
5062
5235
  __decorateClass([
5063
- (0, import_typeorm42.Column)({ name: "address", type: "varchar", nullable: true })
5236
+ (0, import_typeorm44.Column)({ name: "address", type: "varchar", nullable: true })
5064
5237
  ], BankDetail.prototype, "address", 2);
5065
5238
  __decorateClass([
5066
- (0, import_typeorm42.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
5239
+ (0, import_typeorm44.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
5067
5240
  ], BankDetail.prototype, "accountNumber", 2);
5068
5241
  __decorateClass([
5069
- (0, import_typeorm42.Column)({ name: "bank_name", type: "varchar", nullable: true })
5242
+ (0, import_typeorm44.Column)({ name: "bank_name", type: "varchar", nullable: true })
5070
5243
  ], BankDetail.prototype, "bankName", 2);
5071
5244
  __decorateClass([
5072
- (0, import_typeorm42.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
5245
+ (0, import_typeorm44.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
5073
5246
  ], BankDetail.prototype, "ifscCode", 2);
5074
5247
  __decorateClass([
5075
- (0, import_typeorm42.Column)({ name: "branch_name", type: "varchar", nullable: true })
5248
+ (0, import_typeorm44.Column)({ name: "branch_name", type: "varchar", nullable: true })
5076
5249
  ], BankDetail.prototype, "branchName", 2);
5077
5250
  __decorateClass([
5078
- (0, import_typeorm42.Column)({ name: "routing_no", type: "varchar", nullable: true })
5251
+ (0, import_typeorm44.Column)({ name: "routing_no", type: "varchar", nullable: true })
5079
5252
  ], BankDetail.prototype, "routingNo", 2);
5080
5253
  __decorateClass([
5081
- (0, import_typeorm42.Column)({ name: "aba_no", type: "varchar", nullable: true })
5254
+ (0, import_typeorm44.Column)({ name: "aba_no", type: "varchar", nullable: true })
5082
5255
  ], BankDetail.prototype, "abaNumber", 2);
5083
5256
  __decorateClass([
5084
- (0, import_typeorm42.Column)({ name: "iban", type: "varchar", nullable: true })
5257
+ (0, import_typeorm44.Column)({ name: "iban", type: "varchar", nullable: true })
5085
5258
  ], BankDetail.prototype, "iban", 2);
5086
5259
  __decorateClass([
5087
- (0, import_typeorm42.Column)({
5260
+ (0, import_typeorm44.Column)({
5088
5261
  name: "account_type",
5089
5262
  type: "enum",
5090
5263
  enum: BankAccountTypeEnum,
@@ -5092,7 +5265,7 @@ __decorateClass([
5092
5265
  })
5093
5266
  ], BankDetail.prototype, "accountType", 2);
5094
5267
  __decorateClass([
5095
- (0, import_typeorm42.Column)({
5268
+ (0, import_typeorm44.Column)({
5096
5269
  name: "account_scope",
5097
5270
  type: "enum",
5098
5271
  enum: BankAccountScopeEnum,
@@ -5100,150 +5273,150 @@ __decorateClass([
5100
5273
  })
5101
5274
  ], BankDetail.prototype, "accountScope", 2);
5102
5275
  BankDetail = __decorateClass([
5103
- (0, import_typeorm42.Entity)("bank_details")
5276
+ (0, import_typeorm44.Entity)("bank_details")
5104
5277
  ], BankDetail);
5105
5278
 
5106
5279
  // src/entities/system-preference.entity.ts
5107
- var import_typeorm43 = require("typeorm");
5280
+ var import_typeorm45 = require("typeorm");
5108
5281
  var SystemPreference = class extends BaseEntity {
5109
5282
  };
5110
5283
  // individual index to find system preference by user
5111
5284
  __decorateClass([
5112
- (0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
5113
- (0, import_typeorm43.Index)()
5285
+ (0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
5286
+ (0, import_typeorm45.Index)()
5114
5287
  ], SystemPreference.prototype, "userId", 2);
5115
5288
  __decorateClass([
5116
- (0, import_typeorm43.ManyToOne)(() => User, (user) => user.systemPreference),
5117
- (0, import_typeorm43.JoinColumn)({ name: "user_id" })
5289
+ (0, import_typeorm45.ManyToOne)(() => User, (user) => user.systemPreference),
5290
+ (0, import_typeorm45.JoinColumn)({ name: "user_id" })
5118
5291
  ], SystemPreference.prototype, "user", 2);
5119
5292
  __decorateClass([
5120
- (0, import_typeorm43.Column)({ name: "key", type: "varchar", nullable: false })
5293
+ (0, import_typeorm45.Column)({ name: "key", type: "varchar", nullable: false })
5121
5294
  ], SystemPreference.prototype, "key", 2);
5122
5295
  __decorateClass([
5123
- (0, import_typeorm43.Column)({ name: "value", type: "boolean", default: false })
5296
+ (0, import_typeorm45.Column)({ name: "value", type: "boolean", default: false })
5124
5297
  ], SystemPreference.prototype, "value", 2);
5125
5298
  SystemPreference = __decorateClass([
5126
- (0, import_typeorm43.Entity)("system_preferences")
5299
+ (0, import_typeorm45.Entity)("system_preferences")
5127
5300
  ], SystemPreference);
5128
5301
 
5129
5302
  // src/entities/freelancer-experience.entity.ts
5130
- var import_typeorm44 = require("typeorm");
5303
+ var import_typeorm46 = require("typeorm");
5131
5304
  var FreelancerExperience = class extends BaseEntity {
5132
5305
  };
5133
5306
  // individual index to find experence by user
5134
5307
  __decorateClass([
5135
- (0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
5136
- (0, import_typeorm44.Index)()
5308
+ (0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
5309
+ (0, import_typeorm46.Index)()
5137
5310
  ], FreelancerExperience.prototype, "userId", 2);
5138
5311
  __decorateClass([
5139
- (0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerExperience),
5140
- (0, import_typeorm44.JoinColumn)({ name: "user_id" })
5312
+ (0, import_typeorm46.ManyToOne)(() => User, (user) => user.freelancerExperience),
5313
+ (0, import_typeorm46.JoinColumn)({ name: "user_id" })
5141
5314
  ], FreelancerExperience.prototype, "user", 2);
5142
5315
  __decorateClass([
5143
- (0, import_typeorm44.Column)({ name: "company_name", type: "varchar", nullable: true })
5316
+ (0, import_typeorm46.Column)({ name: "company_name", type: "varchar", nullable: true })
5144
5317
  ], FreelancerExperience.prototype, "companyName", 2);
5145
5318
  __decorateClass([
5146
- (0, import_typeorm44.Column)({ name: "designation", type: "varchar", nullable: true })
5319
+ (0, import_typeorm46.Column)({ name: "designation", type: "varchar", nullable: true })
5147
5320
  ], FreelancerExperience.prototype, "designation", 2);
5148
5321
  __decorateClass([
5149
- (0, import_typeorm44.Column)({ name: "job_duration", type: "varchar", nullable: true })
5322
+ (0, import_typeorm46.Column)({ name: "job_duration", type: "varchar", nullable: true })
5150
5323
  ], FreelancerExperience.prototype, "jobDuration", 2);
5151
5324
  __decorateClass([
5152
- (0, import_typeorm44.Column)({ name: "description", type: "varchar", nullable: true })
5325
+ (0, import_typeorm46.Column)({ name: "description", type: "varchar", nullable: true })
5153
5326
  ], FreelancerExperience.prototype, "description", 2);
5154
5327
  FreelancerExperience = __decorateClass([
5155
- (0, import_typeorm44.Entity)("freelancer_experiences")
5328
+ (0, import_typeorm46.Entity)("freelancer_experiences")
5156
5329
  ], FreelancerExperience);
5157
5330
 
5158
5331
  // src/entities/freelancer-education.entity.ts
5159
- var import_typeorm45 = require("typeorm");
5332
+ var import_typeorm47 = require("typeorm");
5160
5333
  var FreelancerEducation = class extends BaseEntity {
5161
5334
  };
5162
5335
  // individual index to find education by user
5163
5336
  __decorateClass([
5164
- (0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
5165
- (0, import_typeorm45.Index)()
5337
+ (0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
5338
+ (0, import_typeorm47.Index)()
5166
5339
  ], FreelancerEducation.prototype, "userId", 2);
5167
5340
  __decorateClass([
5168
- (0, import_typeorm45.ManyToOne)(() => User, (user) => user.freelancerEducation),
5169
- (0, import_typeorm45.JoinColumn)({ name: "user_id" })
5341
+ (0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerEducation),
5342
+ (0, import_typeorm47.JoinColumn)({ name: "user_id" })
5170
5343
  ], FreelancerEducation.prototype, "user", 2);
5171
5344
  __decorateClass([
5172
- (0, import_typeorm45.Column)({ name: "degree", type: "varchar", nullable: true })
5345
+ (0, import_typeorm47.Column)({ name: "degree", type: "varchar", nullable: true })
5173
5346
  ], FreelancerEducation.prototype, "degree", 2);
5174
5347
  __decorateClass([
5175
- (0, import_typeorm45.Column)({ name: "university", type: "varchar", nullable: true })
5348
+ (0, import_typeorm47.Column)({ name: "university", type: "varchar", nullable: true })
5176
5349
  ], FreelancerEducation.prototype, "university", 2);
5177
5350
  __decorateClass([
5178
- (0, import_typeorm45.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
5351
+ (0, import_typeorm47.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
5179
5352
  ], FreelancerEducation.prototype, "yearOfGraduation", 2);
5180
5353
  FreelancerEducation = __decorateClass([
5181
- (0, import_typeorm45.Entity)("freelancer_educations")
5354
+ (0, import_typeorm47.Entity)("freelancer_educations")
5182
5355
  ], FreelancerEducation);
5183
5356
 
5184
5357
  // src/entities/freelancer-project.entity.ts
5185
- var import_typeorm46 = require("typeorm");
5358
+ var import_typeorm48 = require("typeorm");
5186
5359
  var FreelancerProject = class extends BaseEntity {
5187
5360
  };
5188
5361
  // individual index to find project by user
5189
5362
  __decorateClass([
5190
- (0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
5191
- (0, import_typeorm46.Index)()
5363
+ (0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
5364
+ (0, import_typeorm48.Index)()
5192
5365
  ], FreelancerProject.prototype, "userId", 2);
5193
5366
  __decorateClass([
5194
- (0, import_typeorm46.ManyToOne)(() => User, (user) => user.freelancerProject),
5195
- (0, import_typeorm46.JoinColumn)({ name: "user_id" })
5367
+ (0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerProject),
5368
+ (0, import_typeorm48.JoinColumn)({ name: "user_id" })
5196
5369
  ], FreelancerProject.prototype, "user", 2);
5197
5370
  __decorateClass([
5198
- (0, import_typeorm46.Column)({ name: "project_name", type: "varchar", nullable: true })
5371
+ (0, import_typeorm48.Column)({ name: "project_name", type: "varchar", nullable: true })
5199
5372
  ], FreelancerProject.prototype, "projectName", 2);
5200
5373
  __decorateClass([
5201
- (0, import_typeorm46.Column)({ name: "start_date", type: "date", nullable: true })
5374
+ (0, import_typeorm48.Column)({ name: "start_date", type: "date", nullable: true })
5202
5375
  ], FreelancerProject.prototype, "startDate", 2);
5203
5376
  __decorateClass([
5204
- (0, import_typeorm46.Column)({ name: "end_date", type: "date", nullable: true })
5377
+ (0, import_typeorm48.Column)({ name: "end_date", type: "date", nullable: true })
5205
5378
  ], FreelancerProject.prototype, "endDate", 2);
5206
5379
  __decorateClass([
5207
- (0, import_typeorm46.Column)({ name: "client_name", type: "varchar", nullable: true })
5380
+ (0, import_typeorm48.Column)({ name: "client_name", type: "varchar", nullable: true })
5208
5381
  ], FreelancerProject.prototype, "clientName", 2);
5209
5382
  __decorateClass([
5210
- (0, import_typeorm46.Column)({ name: "git_link", type: "varchar", nullable: true })
5383
+ (0, import_typeorm48.Column)({ name: "git_link", type: "varchar", nullable: true })
5211
5384
  ], FreelancerProject.prototype, "gitLink", 2);
5212
5385
  __decorateClass([
5213
- (0, import_typeorm46.Column)({ name: "description", type: "varchar", nullable: true })
5386
+ (0, import_typeorm48.Column)({ name: "description", type: "varchar", nullable: true })
5214
5387
  ], FreelancerProject.prototype, "description", 2);
5215
5388
  FreelancerProject = __decorateClass([
5216
- (0, import_typeorm46.Entity)("freelancer_projects")
5389
+ (0, import_typeorm48.Entity)("freelancer_projects")
5217
5390
  ], FreelancerProject);
5218
5391
 
5219
5392
  // src/entities/freelancer-casestudy.entity.ts
5220
- var import_typeorm47 = require("typeorm");
5393
+ var import_typeorm49 = require("typeorm");
5221
5394
  var FreelancerCaseStudy = class extends BaseEntity {
5222
5395
  };
5223
5396
  // individual index to find case study by user
5224
5397
  __decorateClass([
5225
- (0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
5226
- (0, import_typeorm47.Index)()
5398
+ (0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
5399
+ (0, import_typeorm49.Index)()
5227
5400
  ], FreelancerCaseStudy.prototype, "userId", 2);
5228
5401
  __decorateClass([
5229
- (0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
5230
- (0, import_typeorm47.JoinColumn)({ name: "user_id" })
5402
+ (0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
5403
+ (0, import_typeorm49.JoinColumn)({ name: "user_id" })
5231
5404
  ], FreelancerCaseStudy.prototype, "user", 2);
5232
5405
  __decorateClass([
5233
- (0, import_typeorm47.Column)({ name: "project_name", type: "varchar", nullable: true })
5406
+ (0, import_typeorm49.Column)({ name: "project_name", type: "varchar", nullable: true })
5234
5407
  ], FreelancerCaseStudy.prototype, "projectName", 2);
5235
5408
  __decorateClass([
5236
- (0, import_typeorm47.Column)({ name: "case_study_link", type: "varchar", nullable: true })
5409
+ (0, import_typeorm49.Column)({ name: "case_study_link", type: "varchar", nullable: true })
5237
5410
  ], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
5238
5411
  __decorateClass([
5239
- (0, import_typeorm47.Column)({ name: "description", type: "varchar", nullable: true })
5412
+ (0, import_typeorm49.Column)({ name: "description", type: "varchar", nullable: true })
5240
5413
  ], FreelancerCaseStudy.prototype, "description", 2);
5241
5414
  FreelancerCaseStudy = __decorateClass([
5242
- (0, import_typeorm47.Entity)("freelancer_case_studies")
5415
+ (0, import_typeorm49.Entity)("freelancer_case_studies")
5243
5416
  ], FreelancerCaseStudy);
5244
5417
 
5245
5418
  // src/entities/freelancer-skill.entity.ts
5246
- var import_typeorm48 = require("typeorm");
5419
+ var import_typeorm50 = require("typeorm");
5247
5420
  var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
5248
5421
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
5249
5422
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
@@ -5253,18 +5426,18 @@ var FreelancerSkill = class extends BaseEntity {
5253
5426
  };
5254
5427
  // individual index to find core skills by user
5255
5428
  __decorateClass([
5256
- (0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
5257
- (0, import_typeorm48.Index)()
5429
+ (0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
5430
+ (0, import_typeorm50.Index)()
5258
5431
  ], FreelancerSkill.prototype, "userId", 2);
5259
5432
  __decorateClass([
5260
- (0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerSkills),
5261
- (0, import_typeorm48.JoinColumn)({ name: "user_id" })
5433
+ (0, import_typeorm50.ManyToOne)(() => User, (user) => user.freelancerSkills),
5434
+ (0, import_typeorm50.JoinColumn)({ name: "user_id" })
5262
5435
  ], FreelancerSkill.prototype, "user", 2);
5263
5436
  __decorateClass([
5264
- (0, import_typeorm48.Column)({ name: "skill_name", type: "varchar", nullable: true })
5437
+ (0, import_typeorm50.Column)({ name: "skill_name", type: "varchar", nullable: true })
5265
5438
  ], FreelancerSkill.prototype, "skillName", 2);
5266
5439
  __decorateClass([
5267
- (0, import_typeorm48.Column)({
5440
+ (0, import_typeorm50.Column)({
5268
5441
  name: "skill_category",
5269
5442
  type: "smallint",
5270
5443
  default: 1,
@@ -5272,51 +5445,51 @@ __decorateClass([
5272
5445
  })
5273
5446
  ], FreelancerSkill.prototype, "skillCategory", 2);
5274
5447
  FreelancerSkill = __decorateClass([
5275
- (0, import_typeorm48.Entity)("freelancer_skills")
5448
+ (0, import_typeorm50.Entity)("freelancer_skills")
5276
5449
  ], FreelancerSkill);
5277
5450
 
5278
5451
  // src/entities/freelancer-tool.entity.ts
5279
- var import_typeorm49 = require("typeorm");
5452
+ var import_typeorm51 = require("typeorm");
5280
5453
  var FreelancerTool = class extends BaseEntity {
5281
5454
  };
5282
5455
  // individual index to find tool by user
5283
5456
  __decorateClass([
5284
- (0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
5285
- (0, import_typeorm49.Index)()
5457
+ (0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
5458
+ (0, import_typeorm51.Index)()
5286
5459
  ], FreelancerTool.prototype, "userId", 2);
5287
5460
  __decorateClass([
5288
- (0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerTool),
5289
- (0, import_typeorm49.JoinColumn)({ name: "user_id" })
5461
+ (0, import_typeorm51.ManyToOne)(() => User, (user) => user.freelancerTool),
5462
+ (0, import_typeorm51.JoinColumn)({ name: "user_id" })
5290
5463
  ], FreelancerTool.prototype, "user", 2);
5291
5464
  __decorateClass([
5292
- (0, import_typeorm49.Column)({ name: "tool_name", type: "varchar", nullable: true })
5465
+ (0, import_typeorm51.Column)({ name: "tool_name", type: "varchar", nullable: true })
5293
5466
  ], FreelancerTool.prototype, "toolName", 2);
5294
5467
  FreelancerTool = __decorateClass([
5295
- (0, import_typeorm49.Entity)("freelancer_tools")
5468
+ (0, import_typeorm51.Entity)("freelancer_tools")
5296
5469
  ], FreelancerTool);
5297
5470
 
5298
5471
  // src/entities/freelancer-framework.entity.ts
5299
- var import_typeorm50 = require("typeorm");
5472
+ var import_typeorm52 = require("typeorm");
5300
5473
  var FreelancerFramework = class extends BaseEntity {
5301
5474
  };
5302
5475
  // individual index to find framework by user
5303
5476
  __decorateClass([
5304
- (0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
5305
- (0, import_typeorm50.Index)()
5477
+ (0, import_typeorm52.Column)({ name: "user_id", type: "integer", nullable: true }),
5478
+ (0, import_typeorm52.Index)()
5306
5479
  ], FreelancerFramework.prototype, "userId", 2);
5307
5480
  __decorateClass([
5308
- (0, import_typeorm50.ManyToOne)(() => User, (user) => user.freelancerFramework),
5309
- (0, import_typeorm50.JoinColumn)({ name: "user_id" })
5481
+ (0, import_typeorm52.ManyToOne)(() => User, (user) => user.freelancerFramework),
5482
+ (0, import_typeorm52.JoinColumn)({ name: "user_id" })
5310
5483
  ], FreelancerFramework.prototype, "user", 2);
5311
5484
  __decorateClass([
5312
- (0, import_typeorm50.Column)({ name: "framework_name", type: "varchar", nullable: true })
5485
+ (0, import_typeorm52.Column)({ name: "framework_name", type: "varchar", nullable: true })
5313
5486
  ], FreelancerFramework.prototype, "frameworkName", 2);
5314
5487
  FreelancerFramework = __decorateClass([
5315
- (0, import_typeorm50.Entity)("freelancer_frameworks")
5488
+ (0, import_typeorm52.Entity)("freelancer_frameworks")
5316
5489
  ], FreelancerFramework);
5317
5490
 
5318
5491
  // src/entities/freelancer-assessment.entity.ts
5319
- var import_typeorm51 = require("typeorm");
5492
+ var import_typeorm53 = require("typeorm");
5320
5493
  var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
5321
5494
  AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
5322
5495
  AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
@@ -5333,33 +5506,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
5333
5506
  var FreelancerAssessment = class extends BaseEntity {
5334
5507
  };
5335
5508
  __decorateClass([
5336
- (0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
5337
- (0, import_typeorm51.Index)()
5509
+ (0, import_typeorm53.Column)({ name: "user_id", type: "integer", nullable: true }),
5510
+ (0, import_typeorm53.Index)()
5338
5511
  ], FreelancerAssessment.prototype, "userId", 2);
5339
5512
  __decorateClass([
5340
- (0, import_typeorm51.ManyToOne)(() => User, (user) => user.assessments),
5341
- (0, import_typeorm51.JoinColumn)({ name: "user_id" })
5513
+ (0, import_typeorm53.ManyToOne)(() => User, (user) => user.assessments),
5514
+ (0, import_typeorm53.JoinColumn)({ name: "user_id" })
5342
5515
  ], FreelancerAssessment.prototype, "user", 2);
5343
5516
  __decorateClass([
5344
- (0, import_typeorm51.Column)({ name: "interview_id", type: "varchar", nullable: true })
5517
+ (0, import_typeorm53.Column)({ name: "interview_id", type: "varchar", nullable: true })
5345
5518
  ], FreelancerAssessment.prototype, "interviewId", 2);
5346
5519
  __decorateClass([
5347
- (0, import_typeorm51.Column)({ name: "interview_link", type: "text", nullable: true })
5520
+ (0, import_typeorm53.Column)({ name: "interview_link", type: "text", nullable: true })
5348
5521
  ], FreelancerAssessment.prototype, "interviewLink", 2);
5349
5522
  __decorateClass([
5350
- (0, import_typeorm51.Column)({ name: "recording_link", type: "text", nullable: true })
5523
+ (0, import_typeorm53.Column)({ name: "recording_link", type: "text", nullable: true })
5351
5524
  ], FreelancerAssessment.prototype, "recordingLink", 2);
5352
5525
  __decorateClass([
5353
- (0, import_typeorm51.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
5526
+ (0, import_typeorm53.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
5354
5527
  ], FreelancerAssessment.prototype, "iframeResponse", 2);
5355
5528
  __decorateClass([
5356
- (0, import_typeorm51.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
5529
+ (0, import_typeorm53.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
5357
5530
  ], FreelancerAssessment.prototype, "interviewSummary", 2);
5358
5531
  __decorateClass([
5359
- (0, import_typeorm51.Column)({ name: "score", type: "float", nullable: true })
5532
+ (0, import_typeorm53.Column)({ name: "score", type: "float", nullable: true })
5360
5533
  ], FreelancerAssessment.prototype, "score", 2);
5361
5534
  __decorateClass([
5362
- (0, import_typeorm51.Column)({
5535
+ (0, import_typeorm53.Column)({
5363
5536
  name: "status",
5364
5537
  type: "enum",
5365
5538
  enum: AssessmentStatusEnum,
@@ -5367,17 +5540,17 @@ __decorateClass([
5367
5540
  })
5368
5541
  ], FreelancerAssessment.prototype, "status", 2);
5369
5542
  __decorateClass([
5370
- (0, import_typeorm51.Column)({ name: "task_id", type: "varchar", nullable: true })
5543
+ (0, import_typeorm53.Column)({ name: "task_id", type: "varchar", nullable: true })
5371
5544
  ], FreelancerAssessment.prototype, "taskId", 2);
5372
5545
  __decorateClass([
5373
- (0, import_typeorm51.Column)({ name: "meta_data", type: "jsonb", nullable: true })
5546
+ (0, import_typeorm53.Column)({ name: "meta_data", type: "jsonb", nullable: true })
5374
5547
  ], FreelancerAssessment.prototype, "metaData", 2);
5375
5548
  FreelancerAssessment = __decorateClass([
5376
- (0, import_typeorm51.Entity)("freelancer_assessments")
5549
+ (0, import_typeorm53.Entity)("freelancer_assessments")
5377
5550
  ], FreelancerAssessment);
5378
5551
 
5379
5552
  // src/entities/freelancer-declaration.entity.ts
5380
- var import_typeorm52 = require("typeorm");
5553
+ var import_typeorm54 = require("typeorm");
5381
5554
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
5382
5555
  DocumentType2["AADHAAR"] = "AADHAAR_CARD";
5383
5556
  DocumentType2["PASSPORT"] = "PASSPORT";
@@ -5389,15 +5562,15 @@ var FreelancerDeclaration = class extends BaseEntity {
5389
5562
  };
5390
5563
  // individual index to find declaration by user
5391
5564
  __decorateClass([
5392
- (0, import_typeorm52.Column)({ name: "user_id", type: "integer", nullable: true }),
5393
- (0, import_typeorm52.Index)()
5565
+ (0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
5566
+ (0, import_typeorm54.Index)()
5394
5567
  ], FreelancerDeclaration.prototype, "userId", 2);
5395
5568
  __decorateClass([
5396
- (0, import_typeorm52.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
5397
- (0, import_typeorm52.JoinColumn)({ name: "user_id" })
5569
+ (0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
5570
+ (0, import_typeorm54.JoinColumn)({ name: "user_id" })
5398
5571
  ], FreelancerDeclaration.prototype, "user", 2);
5399
5572
  __decorateClass([
5400
- (0, import_typeorm52.Column)({
5573
+ (0, import_typeorm54.Column)({
5401
5574
  name: "document_type",
5402
5575
  type: "enum",
5403
5576
  enum: DocumentType,
@@ -5405,147 +5578,147 @@ __decorateClass([
5405
5578
  })
5406
5579
  ], FreelancerDeclaration.prototype, "documentType", 2);
5407
5580
  __decorateClass([
5408
- (0, import_typeorm52.Column)({ name: "front_document_url", type: "varchar", nullable: true })
5581
+ (0, import_typeorm54.Column)({ name: "front_document_url", type: "varchar", nullable: true })
5409
5582
  ], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
5410
5583
  __decorateClass([
5411
- (0, import_typeorm52.Column)({ name: "back_document_url", type: "varchar", nullable: true })
5584
+ (0, import_typeorm54.Column)({ name: "back_document_url", type: "varchar", nullable: true })
5412
5585
  ], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
5413
5586
  __decorateClass([
5414
- (0, import_typeorm52.Column)({ name: "declaration_accepted", type: "boolean", default: false })
5587
+ (0, import_typeorm54.Column)({ name: "declaration_accepted", type: "boolean", default: false })
5415
5588
  ], FreelancerDeclaration.prototype, "declarationAccepted", 2);
5416
5589
  __decorateClass([
5417
- (0, import_typeorm52.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
5590
+ (0, import_typeorm54.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
5418
5591
  ], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
5419
5592
  FreelancerDeclaration = __decorateClass([
5420
- (0, import_typeorm52.Entity)("freelancer_declaration")
5593
+ (0, import_typeorm54.Entity)("freelancer_declaration")
5421
5594
  ], FreelancerDeclaration);
5422
5595
 
5423
5596
  // src/entities/company-members-roles.entity.ts
5424
- var import_typeorm56 = require("typeorm");
5597
+ var import_typeorm58 = require("typeorm");
5425
5598
 
5426
5599
  // src/entities/company-role.entity.ts
5427
- var import_typeorm55 = require("typeorm");
5600
+ var import_typeorm57 = require("typeorm");
5428
5601
 
5429
5602
  // src/entities/company-role-permission.entity.ts
5430
- var import_typeorm54 = require("typeorm");
5603
+ var import_typeorm56 = require("typeorm");
5431
5604
 
5432
5605
  // src/entities/permission.entity.ts
5433
- var import_typeorm53 = require("typeorm");
5606
+ var import_typeorm55 = require("typeorm");
5434
5607
  var Permission = class extends BaseEntity {
5435
5608
  };
5436
5609
  __decorateClass([
5437
- (0, import_typeorm53.Column)({ name: "name", type: "varchar", nullable: true })
5610
+ (0, import_typeorm55.Column)({ name: "name", type: "varchar", nullable: true })
5438
5611
  ], Permission.prototype, "name", 2);
5439
5612
  __decorateClass([
5440
- (0, import_typeorm53.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5441
- (0, import_typeorm53.Index)()
5613
+ (0, import_typeorm55.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5614
+ (0, import_typeorm55.Index)()
5442
5615
  ], Permission.prototype, "slug", 2);
5443
5616
  __decorateClass([
5444
- (0, import_typeorm53.Column)({ name: "description", type: "text", nullable: true })
5617
+ (0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
5445
5618
  ], Permission.prototype, "description", 2);
5446
5619
  __decorateClass([
5447
- (0, import_typeorm53.Column)({ name: "module", type: "varchar", nullable: true })
5620
+ (0, import_typeorm55.Column)({ name: "module", type: "varchar", nullable: true })
5448
5621
  ], Permission.prototype, "module", 2);
5449
5622
  __decorateClass([
5450
- (0, import_typeorm53.Column)({ name: "is_active", type: "boolean", default: true })
5623
+ (0, import_typeorm55.Column)({ name: "is_active", type: "boolean", default: true })
5451
5624
  ], Permission.prototype, "isActive", 2);
5452
5625
  Permission = __decorateClass([
5453
- (0, import_typeorm53.Entity)("permissions")
5626
+ (0, import_typeorm55.Entity)("permissions")
5454
5627
  ], Permission);
5455
5628
 
5456
5629
  // src/entities/company-role-permission.entity.ts
5457
5630
  var CompanyRolePermission = class extends BaseEntity {
5458
5631
  };
5459
5632
  __decorateClass([
5460
- (0, import_typeorm54.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5461
- (0, import_typeorm54.Index)()
5633
+ (0, import_typeorm56.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5634
+ (0, import_typeorm56.Index)()
5462
5635
  ], CompanyRolePermission.prototype, "companyRoleId", 2);
5463
5636
  __decorateClass([
5464
- (0, import_typeorm54.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
5637
+ (0, import_typeorm56.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
5465
5638
  onDelete: "CASCADE"
5466
5639
  }),
5467
- (0, import_typeorm54.JoinColumn)({ name: "company_role_id" })
5640
+ (0, import_typeorm56.JoinColumn)({ name: "company_role_id" })
5468
5641
  ], CompanyRolePermission.prototype, "companyRole", 2);
5469
5642
  __decorateClass([
5470
- (0, import_typeorm54.Column)({ name: "permission_id", type: "integer" }),
5471
- (0, import_typeorm54.Index)()
5643
+ (0, import_typeorm56.Column)({ name: "permission_id", type: "integer" }),
5644
+ (0, import_typeorm56.Index)()
5472
5645
  ], CompanyRolePermission.prototype, "permissionId", 2);
5473
5646
  __decorateClass([
5474
- (0, import_typeorm54.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
5475
- (0, import_typeorm54.JoinColumn)({ name: "permission_id" })
5647
+ (0, import_typeorm56.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
5648
+ (0, import_typeorm56.JoinColumn)({ name: "permission_id" })
5476
5649
  ], CompanyRolePermission.prototype, "permission", 2);
5477
5650
  __decorateClass([
5478
- (0, import_typeorm54.Column)({ name: "assigned_by", type: "integer", nullable: true })
5651
+ (0, import_typeorm56.Column)({ name: "assigned_by", type: "integer", nullable: true })
5479
5652
  ], CompanyRolePermission.prototype, "assignedBy", 2);
5480
5653
  CompanyRolePermission = __decorateClass([
5481
- (0, import_typeorm54.Entity)("company_role_permissions")
5654
+ (0, import_typeorm56.Entity)("company_role_permissions")
5482
5655
  ], CompanyRolePermission);
5483
5656
 
5484
5657
  // src/entities/company-role.entity.ts
5485
5658
  var CompanyRole = class extends BaseEntity {
5486
5659
  };
5487
5660
  __decorateClass([
5488
- (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
5489
- (0, import_typeorm55.Index)()
5661
+ (0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
5662
+ (0, import_typeorm57.Index)()
5490
5663
  ], CompanyRole.prototype, "userId", 2);
5491
5664
  __decorateClass([
5492
- (0, import_typeorm55.ManyToOne)(() => User, (user) => user.otps),
5493
- (0, import_typeorm55.JoinColumn)({ name: "user_id" })
5665
+ (0, import_typeorm57.ManyToOne)(() => User, (user) => user.otps),
5666
+ (0, import_typeorm57.JoinColumn)({ name: "user_id" })
5494
5667
  ], CompanyRole.prototype, "user", 2);
5495
5668
  __decorateClass([
5496
- (0, import_typeorm55.Column)({ name: "name", type: "varchar" })
5669
+ (0, import_typeorm57.Column)({ name: "name", type: "varchar" })
5497
5670
  ], CompanyRole.prototype, "name", 2);
5498
5671
  __decorateClass([
5499
- (0, import_typeorm55.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5500
- (0, import_typeorm55.Index)()
5672
+ (0, import_typeorm57.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5673
+ (0, import_typeorm57.Index)()
5501
5674
  ], CompanyRole.prototype, "slug", 2);
5502
5675
  __decorateClass([
5503
- (0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
5676
+ (0, import_typeorm57.Column)({ name: "description", type: "text", nullable: true })
5504
5677
  ], CompanyRole.prototype, "description", 2);
5505
5678
  __decorateClass([
5506
- (0, import_typeorm55.Column)({ name: "is_active", type: "boolean", default: true })
5679
+ (0, import_typeorm57.Column)({ name: "is_active", type: "boolean", default: true })
5507
5680
  ], CompanyRole.prototype, "isActive", 2);
5508
5681
  __decorateClass([
5509
- (0, import_typeorm55.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
5682
+ (0, import_typeorm57.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
5510
5683
  ], CompanyRole.prototype, "rolePermissions", 2);
5511
5684
  CompanyRole = __decorateClass([
5512
- (0, import_typeorm55.Entity)("company_roles")
5685
+ (0, import_typeorm57.Entity)("company_roles")
5513
5686
  ], CompanyRole);
5514
5687
 
5515
5688
  // src/entities/company-members-roles.entity.ts
5516
5689
  var CompanyMemberRole = class extends BaseEntity {
5517
5690
  };
5518
5691
  __decorateClass([
5519
- (0, import_typeorm56.Column)({ name: "user_id", type: "integer", nullable: true }),
5520
- (0, import_typeorm56.Index)()
5692
+ (0, import_typeorm58.Column)({ name: "user_id", type: "integer", nullable: true }),
5693
+ (0, import_typeorm58.Index)()
5521
5694
  ], CompanyMemberRole.prototype, "userId", 2);
5522
5695
  __decorateClass([
5523
- (0, import_typeorm56.ManyToOne)(() => User),
5524
- (0, import_typeorm56.JoinColumn)({ name: "user_id" })
5696
+ (0, import_typeorm58.ManyToOne)(() => User),
5697
+ (0, import_typeorm58.JoinColumn)({ name: "user_id" })
5525
5698
  ], CompanyMemberRole.prototype, "user", 2);
5526
5699
  __decorateClass([
5527
- (0, import_typeorm56.ManyToOne)(() => CompanyRole),
5528
- (0, import_typeorm56.JoinColumn)({ name: "company_role_id" })
5700
+ (0, import_typeorm58.ManyToOne)(() => CompanyRole),
5701
+ (0, import_typeorm58.JoinColumn)({ name: "company_role_id" })
5529
5702
  ], CompanyMemberRole.prototype, "role", 2);
5530
5703
  __decorateClass([
5531
- (0, import_typeorm56.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5532
- (0, import_typeorm56.Index)()
5704
+ (0, import_typeorm58.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5705
+ (0, import_typeorm58.Index)()
5533
5706
  ], CompanyMemberRole.prototype, "companyRoleId", 2);
5534
5707
  __decorateClass([
5535
- (0, import_typeorm56.Column)({ name: "assigned_by", type: "integer", nullable: true })
5708
+ (0, import_typeorm58.Column)({ name: "assigned_by", type: "integer", nullable: true })
5536
5709
  ], CompanyMemberRole.prototype, "assignedBy", 2);
5537
5710
  CompanyMemberRole = __decorateClass([
5538
- (0, import_typeorm56.Entity)("company_member_roles")
5711
+ (0, import_typeorm58.Entity)("company_member_roles")
5539
5712
  ], CompanyMemberRole);
5540
5713
 
5541
5714
  // src/entities/assessment-answer.entity.ts
5542
- var import_typeorm59 = require("typeorm");
5715
+ var import_typeorm61 = require("typeorm");
5543
5716
 
5544
5717
  // src/entities/assessment-question.entity.ts
5545
- var import_typeorm58 = require("typeorm");
5718
+ var import_typeorm60 = require("typeorm");
5546
5719
 
5547
5720
  // src/entities/assessment-question-option.entity.ts
5548
- var import_typeorm57 = require("typeorm");
5721
+ var import_typeorm59 = require("typeorm");
5549
5722
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5550
5723
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
5551
5724
  AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
@@ -5555,21 +5728,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5555
5728
  var AssessmetQuestionOption = class extends BaseEntity {
5556
5729
  };
5557
5730
  __decorateClass([
5558
- (0, import_typeorm57.Column)({ name: "question_id", type: "integer", nullable: true }),
5559
- (0, import_typeorm57.Index)()
5731
+ (0, import_typeorm59.Column)({ name: "question_id", type: "integer", nullable: true }),
5732
+ (0, import_typeorm59.Index)()
5560
5733
  ], AssessmetQuestionOption.prototype, "questionId", 2);
5561
5734
  __decorateClass([
5562
- (0, import_typeorm57.ManyToOne)(
5735
+ (0, import_typeorm59.ManyToOne)(
5563
5736
  () => AssessmetQuestion,
5564
5737
  (assessmentQuestion) => assessmentQuestion.options
5565
5738
  ),
5566
- (0, import_typeorm57.JoinColumn)({ name: "question_id" })
5739
+ (0, import_typeorm59.JoinColumn)({ name: "question_id" })
5567
5740
  ], AssessmetQuestionOption.prototype, "question", 2);
5568
5741
  __decorateClass([
5569
- (0, import_typeorm57.Column)({ name: "text", type: "varchar", nullable: true })
5742
+ (0, import_typeorm59.Column)({ name: "text", type: "varchar", nullable: true })
5570
5743
  ], AssessmetQuestionOption.prototype, "text", 2);
5571
5744
  __decorateClass([
5572
- (0, import_typeorm57.Column)({
5745
+ (0, import_typeorm59.Column)({
5573
5746
  name: "answer_type",
5574
5747
  type: "enum",
5575
5748
  enum: AnswerTypeEnum,
@@ -5577,13 +5750,13 @@ __decorateClass([
5577
5750
  })
5578
5751
  ], AssessmetQuestionOption.prototype, "answerType", 2);
5579
5752
  __decorateClass([
5580
- (0, import_typeorm57.Column)({ name: "is_active", type: "boolean", default: true })
5753
+ (0, import_typeorm59.Column)({ name: "is_active", type: "boolean", default: true })
5581
5754
  ], AssessmetQuestionOption.prototype, "isActive", 2);
5582
5755
  __decorateClass([
5583
- (0, import_typeorm57.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5756
+ (0, import_typeorm59.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5584
5757
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
5585
5758
  AssessmetQuestionOption = __decorateClass([
5586
- (0, import_typeorm57.Entity)("assessment_question_options")
5759
+ (0, import_typeorm59.Entity)("assessment_question_options")
5587
5760
  ], AssessmetQuestionOption);
5588
5761
 
5589
5762
  // src/entities/assessment-question.entity.ts
@@ -5595,10 +5768,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
5595
5768
  var AssessmetQuestion = class extends BaseEntity {
5596
5769
  };
5597
5770
  __decorateClass([
5598
- (0, import_typeorm58.Column)({ name: "text", type: "varchar", nullable: true })
5771
+ (0, import_typeorm60.Column)({ name: "text", type: "varchar", nullable: true })
5599
5772
  ], AssessmetQuestion.prototype, "text", 2);
5600
5773
  __decorateClass([
5601
- (0, import_typeorm58.Column)({
5774
+ (0, import_typeorm60.Column)({
5602
5775
  name: "question_for",
5603
5776
  type: "enum",
5604
5777
  enum: QuestionForEnum,
@@ -5606,24 +5779,24 @@ __decorateClass([
5606
5779
  })
5607
5780
  ], AssessmetQuestion.prototype, "questionFor", 2);
5608
5781
  __decorateClass([
5609
- (0, import_typeorm58.Column)({ name: "is_active", type: "boolean", default: true })
5782
+ (0, import_typeorm60.Column)({ name: "is_active", type: "boolean", default: true })
5610
5783
  ], AssessmetQuestion.prototype, "isActive", 2);
5611
5784
  __decorateClass([
5612
- (0, import_typeorm58.Column)({ name: "candidate_id", type: "integer", nullable: true }),
5613
- (0, import_typeorm58.Index)()
5785
+ (0, import_typeorm60.Column)({ name: "candidate_id", type: "integer", nullable: true }),
5786
+ (0, import_typeorm60.Index)()
5614
5787
  ], AssessmetQuestion.prototype, "candidateId", 2);
5615
5788
  __decorateClass([
5616
- (0, import_typeorm58.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
5617
- (0, import_typeorm58.JoinColumn)({ name: "candidate_id" })
5789
+ (0, import_typeorm60.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
5790
+ (0, import_typeorm60.JoinColumn)({ name: "candidate_id" })
5618
5791
  ], AssessmetQuestion.prototype, "candidate", 2);
5619
5792
  __decorateClass([
5620
- (0, import_typeorm58.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5793
+ (0, import_typeorm60.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5621
5794
  ], AssessmetQuestion.prototype, "options", 2);
5622
5795
  __decorateClass([
5623
- (0, import_typeorm58.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5796
+ (0, import_typeorm60.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5624
5797
  ], AssessmetQuestion.prototype, "answers", 2);
5625
5798
  AssessmetQuestion = __decorateClass([
5626
- (0, import_typeorm58.Entity)("assessment_questions")
5799
+ (0, import_typeorm60.Entity)("assessment_questions")
5627
5800
  ], AssessmetQuestion);
5628
5801
 
5629
5802
  // src/entities/assessment-answer.entity.ts
@@ -5636,118 +5809,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
5636
5809
  var AssessmentAnswer = class extends BaseEntity {
5637
5810
  };
5638
5811
  __decorateClass([
5639
- (0, import_typeorm59.Column)({ name: "user_id", type: "integer" }),
5640
- (0, import_typeorm59.Index)()
5812
+ (0, import_typeorm61.Column)({ name: "user_id", type: "integer" }),
5813
+ (0, import_typeorm61.Index)()
5641
5814
  ], AssessmentAnswer.prototype, "userId", 2);
5642
5815
  __decorateClass([
5643
- (0, import_typeorm59.ManyToOne)(() => User, (user) => user.assessmentAnswers),
5644
- (0, import_typeorm59.JoinColumn)({ name: "user_id" })
5816
+ (0, import_typeorm61.ManyToOne)(() => User, (user) => user.assessmentAnswers),
5817
+ (0, import_typeorm61.JoinColumn)({ name: "user_id" })
5645
5818
  ], AssessmentAnswer.prototype, "user", 2);
5646
5819
  __decorateClass([
5647
- (0, import_typeorm59.Column)({ name: "question_id", type: "integer" }),
5648
- (0, import_typeorm59.Index)()
5820
+ (0, import_typeorm61.Column)({ name: "question_id", type: "integer" }),
5821
+ (0, import_typeorm61.Index)()
5649
5822
  ], AssessmentAnswer.prototype, "questionId", 2);
5650
5823
  __decorateClass([
5651
- (0, import_typeorm59.ManyToOne)(
5824
+ (0, import_typeorm61.ManyToOne)(
5652
5825
  () => AssessmetQuestion,
5653
5826
  (assessmentQuestion) => assessmentQuestion.answers
5654
5827
  ),
5655
- (0, import_typeorm59.JoinColumn)({ name: "question_id" })
5828
+ (0, import_typeorm61.JoinColumn)({ name: "question_id" })
5656
5829
  ], AssessmentAnswer.prototype, "question", 2);
5657
5830
  __decorateClass([
5658
- (0, import_typeorm59.Column)({ name: "selected_option_id", type: "integer" }),
5659
- (0, import_typeorm59.Index)()
5831
+ (0, import_typeorm61.Column)({ name: "selected_option_id", type: "integer" }),
5832
+ (0, import_typeorm61.Index)()
5660
5833
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
5661
5834
  __decorateClass([
5662
- (0, import_typeorm59.ManyToOne)(
5835
+ (0, import_typeorm61.ManyToOne)(
5663
5836
  () => AssessmetQuestionOption,
5664
5837
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
5665
5838
  ),
5666
- (0, import_typeorm59.JoinColumn)({ name: "selected_option_id" })
5839
+ (0, import_typeorm61.JoinColumn)({ name: "selected_option_id" })
5667
5840
  ], AssessmentAnswer.prototype, "option", 2);
5668
5841
  __decorateClass([
5669
- (0, import_typeorm59.Column)({
5842
+ (0, import_typeorm61.Column)({
5670
5843
  name: "selected_answer_type",
5671
5844
  type: "enum",
5672
5845
  enum: SelectedAnswerTypeEnum
5673
5846
  })
5674
5847
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
5675
5848
  __decorateClass([
5676
- (0, import_typeorm59.Column)({ name: "score", type: "float" })
5849
+ (0, import_typeorm61.Column)({ name: "score", type: "float" })
5677
5850
  ], AssessmentAnswer.prototype, "score", 2);
5678
5851
  AssessmentAnswer = __decorateClass([
5679
- (0, import_typeorm59.Entity)("assessment_answers")
5852
+ (0, import_typeorm61.Entity)("assessment_answers")
5680
5853
  ], AssessmentAnswer);
5681
5854
 
5682
5855
  // src/entities/company-skill.entity.ts
5683
- var import_typeorm60 = require("typeorm");
5856
+ var import_typeorm62 = require("typeorm");
5684
5857
  var CompanySkill = class extends BaseEntity {
5685
5858
  };
5686
5859
  // individual index to find core skills by user
5687
5860
  __decorateClass([
5688
- (0, import_typeorm60.Column)({ name: "user_id", type: "integer", nullable: true }),
5689
- (0, import_typeorm60.Index)()
5861
+ (0, import_typeorm62.Column)({ name: "user_id", type: "integer", nullable: true }),
5862
+ (0, import_typeorm62.Index)()
5690
5863
  ], CompanySkill.prototype, "userId", 2);
5691
5864
  __decorateClass([
5692
- (0, import_typeorm60.ManyToOne)(() => User, (user) => user.companySkills),
5693
- (0, import_typeorm60.JoinColumn)({ name: "user_id" })
5865
+ (0, import_typeorm62.ManyToOne)(() => User, (user) => user.companySkills),
5866
+ (0, import_typeorm62.JoinColumn)({ name: "user_id" })
5694
5867
  ], CompanySkill.prototype, "user", 2);
5695
5868
  __decorateClass([
5696
- (0, import_typeorm60.Column)({ name: "skill_name", type: "varchar", nullable: true })
5869
+ (0, import_typeorm62.Column)({ name: "skill_name", type: "varchar", nullable: true })
5697
5870
  ], CompanySkill.prototype, "skillName", 2);
5698
5871
  CompanySkill = __decorateClass([
5699
- (0, import_typeorm60.Entity)("company_skills")
5872
+ (0, import_typeorm62.Entity)("company_skills")
5700
5873
  ], CompanySkill);
5701
5874
 
5702
5875
  // src/entities/admin-user-role.entity.ts
5703
- var import_typeorm64 = require("typeorm");
5876
+ var import_typeorm66 = require("typeorm");
5704
5877
 
5705
5878
  // src/entities/admin-role.entity.ts
5706
- var import_typeorm63 = require("typeorm");
5879
+ var import_typeorm65 = require("typeorm");
5707
5880
 
5708
5881
  // src/entities/admin-role-permission.entity.ts
5709
- var import_typeorm62 = require("typeorm");
5882
+ var import_typeorm64 = require("typeorm");
5710
5883
 
5711
5884
  // src/entities/admin-permission.entity.ts
5712
- var import_typeorm61 = require("typeorm");
5885
+ var import_typeorm63 = require("typeorm");
5713
5886
  var AdminPermission = class extends BaseEntity {
5714
5887
  };
5715
5888
  __decorateClass([
5716
- (0, import_typeorm61.Column)({ name: "permission_name", type: "varchar", nullable: true })
5889
+ (0, import_typeorm63.Column)({ name: "permission_name", type: "varchar", nullable: true })
5717
5890
  ], AdminPermission.prototype, "permissionName", 2);
5718
5891
  __decorateClass([
5719
- (0, import_typeorm61.Column)({
5892
+ (0, import_typeorm63.Column)({
5720
5893
  name: "permission_slug",
5721
5894
  type: "varchar",
5722
5895
  unique: true,
5723
5896
  nullable: true
5724
5897
  }),
5725
- (0, import_typeorm61.Index)()
5898
+ (0, import_typeorm63.Index)()
5726
5899
  ], AdminPermission.prototype, "permissionSlug", 2);
5727
5900
  __decorateClass([
5728
- (0, import_typeorm61.Column)({ name: "permission_description", type: "varchar", nullable: true })
5901
+ (0, import_typeorm63.Column)({ name: "permission_description", type: "varchar", nullable: true })
5729
5902
  ], AdminPermission.prototype, "permissionDescription", 2);
5730
5903
  __decorateClass([
5731
- (0, import_typeorm61.Column)({ name: "module", type: "varchar", nullable: true })
5904
+ (0, import_typeorm63.Column)({ name: "module", type: "varchar", nullable: true })
5732
5905
  ], AdminPermission.prototype, "module", 2);
5733
5906
  __decorateClass([
5734
- (0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: true })
5907
+ (0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: true })
5735
5908
  ], AdminPermission.prototype, "isActive", 2);
5736
5909
  __decorateClass([
5737
- (0, import_typeorm61.OneToMany)(
5910
+ (0, import_typeorm63.OneToMany)(
5738
5911
  () => AdminRolePermission,
5739
5912
  (adminRolePermission) => adminRolePermission.adminPermissions
5740
5913
  )
5741
5914
  ], AdminPermission.prototype, "adminRole", 2);
5742
5915
  AdminPermission = __decorateClass([
5743
- (0, import_typeorm61.Entity)("admin_permissions")
5916
+ (0, import_typeorm63.Entity)("admin_permissions")
5744
5917
  ], AdminPermission);
5745
5918
 
5746
5919
  // src/entities/admin-role-permission.entity.ts
5747
5920
  var AdminRolePermission = class extends BaseEntity {
5748
5921
  };
5749
5922
  __decorateClass([
5750
- (0, import_typeorm62.Column)({
5923
+ (0, import_typeorm64.Column)({
5751
5924
  name: "role_id",
5752
5925
  type: "int",
5753
5926
  nullable: true,
@@ -5755,11 +5928,11 @@ __decorateClass([
5755
5928
  })
5756
5929
  ], AdminRolePermission.prototype, "roleId", 2);
5757
5930
  __decorateClass([
5758
- (0, import_typeorm62.ManyToOne)(() => AdminRole),
5759
- (0, import_typeorm62.JoinColumn)({ name: "role_id" })
5931
+ (0, import_typeorm64.ManyToOne)(() => AdminRole),
5932
+ (0, import_typeorm64.JoinColumn)({ name: "role_id" })
5760
5933
  ], AdminRolePermission.prototype, "adminRole", 2);
5761
5934
  __decorateClass([
5762
- (0, import_typeorm62.Column)({
5935
+ (0, import_typeorm64.Column)({
5763
5936
  name: "permission_id",
5764
5937
  type: "int",
5765
5938
  nullable: true,
@@ -5767,47 +5940,47 @@ __decorateClass([
5767
5940
  })
5768
5941
  ], AdminRolePermission.prototype, "permissionId", 2);
5769
5942
  __decorateClass([
5770
- (0, import_typeorm62.ManyToOne)(() => AdminPermission),
5771
- (0, import_typeorm62.JoinColumn)({ name: "permission_id" })
5943
+ (0, import_typeorm64.ManyToOne)(() => AdminPermission),
5944
+ (0, import_typeorm64.JoinColumn)({ name: "permission_id" })
5772
5945
  ], AdminRolePermission.prototype, "adminPermissions", 2);
5773
5946
  AdminRolePermission = __decorateClass([
5774
- (0, import_typeorm62.Entity)("admin_role_permissions")
5947
+ (0, import_typeorm64.Entity)("admin_role_permissions")
5775
5948
  ], AdminRolePermission);
5776
5949
 
5777
5950
  // src/entities/admin-role.entity.ts
5778
5951
  var AdminRole = class extends BaseEntity {
5779
5952
  };
5780
5953
  __decorateClass([
5781
- (0, import_typeorm63.Column)({ name: "role_name", type: "varchar", nullable: true })
5954
+ (0, import_typeorm65.Column)({ name: "role_name", type: "varchar", nullable: true })
5782
5955
  ], AdminRole.prototype, "roleName", 2);
5783
5956
  __decorateClass([
5784
- (0, import_typeorm63.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5785
- (0, import_typeorm63.Index)()
5957
+ (0, import_typeorm65.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5958
+ (0, import_typeorm65.Index)()
5786
5959
  ], AdminRole.prototype, "roleSlug", 2);
5787
5960
  __decorateClass([
5788
- (0, import_typeorm63.Column)({ name: "role_description", type: "varchar", nullable: true })
5961
+ (0, import_typeorm65.Column)({ name: "role_description", type: "varchar", nullable: true })
5789
5962
  ], AdminRole.prototype, "roleDescription", 2);
5790
5963
  __decorateClass([
5791
- (0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: true })
5964
+ (0, import_typeorm65.Column)({ name: "is_active", type: "boolean", default: true })
5792
5965
  ], AdminRole.prototype, "isActive", 2);
5793
5966
  __decorateClass([
5794
- (0, import_typeorm63.OneToMany)(
5967
+ (0, import_typeorm65.OneToMany)(
5795
5968
  () => AdminRolePermission,
5796
5969
  (addminRolePermission) => addminRolePermission.adminRole
5797
5970
  )
5798
5971
  ], AdminRole.prototype, "adminRolePermission", 2);
5799
5972
  __decorateClass([
5800
- (0, import_typeorm63.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5973
+ (0, import_typeorm65.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5801
5974
  ], AdminRole.prototype, "userRoles", 2);
5802
5975
  AdminRole = __decorateClass([
5803
- (0, import_typeorm63.Entity)("admin_roles")
5976
+ (0, import_typeorm65.Entity)("admin_roles")
5804
5977
  ], AdminRole);
5805
5978
 
5806
5979
  // src/entities/admin-user-role.entity.ts
5807
5980
  var AdminUserRole = class extends BaseEntity {
5808
5981
  };
5809
5982
  __decorateClass([
5810
- (0, import_typeorm64.Column)({
5983
+ (0, import_typeorm66.Column)({
5811
5984
  name: "user_id",
5812
5985
  type: "int",
5813
5986
  nullable: true,
@@ -5815,11 +5988,11 @@ __decorateClass([
5815
5988
  })
5816
5989
  ], AdminUserRole.prototype, "userId", 2);
5817
5990
  __decorateClass([
5818
- (0, import_typeorm64.ManyToOne)(() => User),
5819
- (0, import_typeorm64.JoinColumn)({ name: "user_id" })
5991
+ (0, import_typeorm66.ManyToOne)(() => User),
5992
+ (0, import_typeorm66.JoinColumn)({ name: "user_id" })
5820
5993
  ], AdminUserRole.prototype, "user", 2);
5821
5994
  __decorateClass([
5822
- (0, import_typeorm64.Column)({
5995
+ (0, import_typeorm66.Column)({
5823
5996
  name: "role_id",
5824
5997
  type: "int",
5825
5998
  nullable: true,
@@ -5827,58 +6000,58 @@ __decorateClass([
5827
6000
  })
5828
6001
  ], AdminUserRole.prototype, "roleId", 2);
5829
6002
  __decorateClass([
5830
- (0, import_typeorm64.ManyToOne)(() => AdminRole),
5831
- (0, import_typeorm64.JoinColumn)({ name: "role_id" })
6003
+ (0, import_typeorm66.ManyToOne)(() => AdminRole),
6004
+ (0, import_typeorm66.JoinColumn)({ name: "role_id" })
5832
6005
  ], AdminUserRole.prototype, "adminRole", 2);
5833
6006
  AdminUserRole = __decorateClass([
5834
- (0, import_typeorm64.Entity)("admin_user_roles")
6007
+ (0, import_typeorm66.Entity)("admin_user_roles")
5835
6008
  ], AdminUserRole);
5836
6009
 
5837
6010
  // src/entities/freelancer-resume.entity.ts
5838
- var import_typeorm65 = require("typeorm");
6011
+ var import_typeorm67 = require("typeorm");
5839
6012
  var FreelancerResume = class extends BaseEntity {
5840
6013
  };
5841
6014
  // individual index to find profile by user
5842
6015
  __decorateClass([
5843
- (0, import_typeorm65.Column)({ name: "user_id", type: "integer", nullable: true }),
5844
- (0, import_typeorm65.Index)()
6016
+ (0, import_typeorm67.Column)({ name: "user_id", type: "integer", nullable: true }),
6017
+ (0, import_typeorm67.Index)()
5845
6018
  ], FreelancerResume.prototype, "userId", 2);
5846
6019
  __decorateClass([
5847
- (0, import_typeorm65.ManyToOne)(() => User, (user) => user.freelancerProfile),
5848
- (0, import_typeorm65.JoinColumn)({ name: "user_id" })
6020
+ (0, import_typeorm67.ManyToOne)(() => User, (user) => user.freelancerProfile),
6021
+ (0, import_typeorm67.JoinColumn)({ name: "user_id" })
5849
6022
  ], FreelancerResume.prototype, "user", 2);
5850
6023
  __decorateClass([
5851
- (0, import_typeorm65.Column)({ name: "resume_data", type: "jsonb", nullable: true })
6024
+ (0, import_typeorm67.Column)({ name: "resume_data", type: "jsonb", nullable: true })
5852
6025
  ], FreelancerResume.prototype, "resumeData", 2);
5853
6026
  __decorateClass([
5854
- (0, import_typeorm65.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
6027
+ (0, import_typeorm67.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
5855
6028
  ], FreelancerResume.prototype, "processedResumeData", 2);
5856
6029
  FreelancerResume = __decorateClass([
5857
- (0, import_typeorm65.Entity)("freelancer_resumes")
6030
+ (0, import_typeorm67.Entity)("freelancer_resumes")
5858
6031
  ], FreelancerResume);
5859
6032
 
5860
6033
  // src/entities/signature.entity.ts
5861
- var import_typeorm66 = require("typeorm");
6034
+ var import_typeorm68 = require("typeorm");
5862
6035
  var Signature = class extends BaseEntity {
5863
6036
  };
5864
6037
  // individual index to find profile by user
5865
6038
  __decorateClass([
5866
- (0, import_typeorm66.Column)({ name: "user_id", type: "integer", nullable: true }),
5867
- (0, import_typeorm66.Index)()
6039
+ (0, import_typeorm68.Column)({ name: "user_id", type: "integer", nullable: true }),
6040
+ (0, import_typeorm68.Index)()
5868
6041
  ], Signature.prototype, "userId", 2);
5869
6042
  __decorateClass([
5870
- (0, import_typeorm66.ManyToOne)(() => User, (user) => user.signatures),
5871
- (0, import_typeorm66.JoinColumn)({ name: "user_id" })
6043
+ (0, import_typeorm68.ManyToOne)(() => User, (user) => user.signatures),
6044
+ (0, import_typeorm68.JoinColumn)({ name: "user_id" })
5872
6045
  ], Signature.prototype, "user", 2);
5873
6046
  __decorateClass([
5874
- (0, import_typeorm66.Column)({ name: "signature_url", type: "text", nullable: true })
6047
+ (0, import_typeorm68.Column)({ name: "signature_url", type: "text", nullable: true })
5875
6048
  ], Signature.prototype, "signatureUrl", 2);
5876
6049
  Signature = __decorateClass([
5877
- (0, import_typeorm66.Entity)("signatures")
6050
+ (0, import_typeorm68.Entity)("signatures")
5878
6051
  ], Signature);
5879
6052
 
5880
6053
  // src/entities/dispute.entity.ts
5881
- var import_typeorm67 = require("typeorm");
6054
+ var import_typeorm69 = require("typeorm");
5882
6055
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5883
6056
  DisputeStatusEnum2["OPEN"] = "OPEN";
5884
6057
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5899,36 +6072,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
5899
6072
  var Dispute = class extends BaseEntity {
5900
6073
  };
5901
6074
  __decorateClass([
5902
- (0, import_typeorm67.Column)({ name: "client_id", type: "integer", nullable: true }),
5903
- (0, import_typeorm67.Index)()
6075
+ (0, import_typeorm69.Column)({ name: "client_id", type: "integer", nullable: true }),
6076
+ (0, import_typeorm69.Index)()
5904
6077
  ], Dispute.prototype, "clientId", 2);
5905
6078
  __decorateClass([
5906
- (0, import_typeorm67.ManyToOne)(() => User, (user) => user.clientDisputes),
5907
- (0, import_typeorm67.JoinColumn)({ name: "client_id" })
6079
+ (0, import_typeorm69.ManyToOne)(() => User, (user) => user.clientDisputes),
6080
+ (0, import_typeorm69.JoinColumn)({ name: "client_id" })
5908
6081
  ], Dispute.prototype, "client", 2);
5909
6082
  __decorateClass([
5910
- (0, import_typeorm67.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5911
- (0, import_typeorm67.Index)()
6083
+ (0, import_typeorm69.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
6084
+ (0, import_typeorm69.Index)()
5912
6085
  ], Dispute.prototype, "freelancerId", 2);
5913
6086
  __decorateClass([
5914
- (0, import_typeorm67.ManyToOne)(() => User, (user) => user.freelancerDisputes),
5915
- (0, import_typeorm67.JoinColumn)({ name: "freelancer_id" })
6087
+ (0, import_typeorm69.ManyToOne)(() => User, (user) => user.freelancerDisputes),
6088
+ (0, import_typeorm69.JoinColumn)({ name: "freelancer_id" })
5916
6089
  ], Dispute.prototype, "freelancer", 2);
5917
6090
  __decorateClass([
5918
- (0, import_typeorm67.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
6091
+ (0, import_typeorm69.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
5919
6092
  ], Dispute.prototype, "disputeUniqueId", 2);
5920
6093
  __decorateClass([
5921
- (0, import_typeorm67.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
5922
- (0, import_typeorm67.Index)()
6094
+ (0, import_typeorm69.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
6095
+ (0, import_typeorm69.Index)()
5923
6096
  ], Dispute.prototype, "disputeType", 2);
5924
6097
  __decorateClass([
5925
- (0, import_typeorm67.Column)({ name: "description", type: "varchar", nullable: true })
6098
+ (0, import_typeorm69.Column)({ name: "description", type: "varchar", nullable: true })
5926
6099
  ], Dispute.prototype, "description", 2);
5927
6100
  __decorateClass([
5928
- (0, import_typeorm67.Column)({ name: "comment", type: "varchar", nullable: true })
6101
+ (0, import_typeorm69.Column)({ name: "comment", type: "varchar", nullable: true })
5929
6102
  ], Dispute.prototype, "comment", 2);
5930
6103
  __decorateClass([
5931
- (0, import_typeorm67.Column)({
6104
+ (0, import_typeorm69.Column)({
5932
6105
  name: "status",
5933
6106
  type: "enum",
5934
6107
  enum: DisputeStatusEnum,
@@ -5936,7 +6109,7 @@ __decorateClass([
5936
6109
  })
5937
6110
  ], Dispute.prototype, "status", 2);
5938
6111
  __decorateClass([
5939
- (0, import_typeorm67.Column)({
6112
+ (0, import_typeorm69.Column)({
5940
6113
  name: "initiator_type",
5941
6114
  type: "enum",
5942
6115
  enum: InitiatorTypeEnum,
@@ -5945,33 +6118,33 @@ __decorateClass([
5945
6118
  })
5946
6119
  ], Dispute.prototype, "initiatorType", 2);
5947
6120
  __decorateClass([
5948
- (0, import_typeorm67.Column)({ name: "initiator_id", type: "integer" }),
5949
- (0, import_typeorm67.Index)()
6121
+ (0, import_typeorm69.Column)({ name: "initiator_id", type: "integer" }),
6122
+ (0, import_typeorm69.Index)()
5950
6123
  ], Dispute.prototype, "initiatorId", 2);
5951
6124
  __decorateClass([
5952
- (0, import_typeorm67.ManyToOne)(() => User, (user) => user.initiatedDisputes),
5953
- (0, import_typeorm67.JoinColumn)({ name: "initiator_id" })
6125
+ (0, import_typeorm69.ManyToOne)(() => User, (user) => user.initiatedDisputes),
6126
+ (0, import_typeorm69.JoinColumn)({ name: "initiator_id" })
5954
6127
  ], Dispute.prototype, "initiator", 2);
5955
6128
  __decorateClass([
5956
- (0, import_typeorm67.Column)({ name: "respondent_id", type: "integer", nullable: true }),
5957
- (0, import_typeorm67.Index)()
6129
+ (0, import_typeorm69.Column)({ name: "respondent_id", type: "integer", nullable: true }),
6130
+ (0, import_typeorm69.Index)()
5958
6131
  ], Dispute.prototype, "respondentId", 2);
5959
6132
  __decorateClass([
5960
- (0, import_typeorm67.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
5961
- (0, import_typeorm67.JoinColumn)({ name: "respondent_id" })
6133
+ (0, import_typeorm69.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
6134
+ (0, import_typeorm69.JoinColumn)({ name: "respondent_id" })
5962
6135
  ], Dispute.prototype, "respondent", 2);
5963
6136
  __decorateClass([
5964
- (0, import_typeorm67.Column)({ name: "attachments", type: "jsonb", nullable: true })
6137
+ (0, import_typeorm69.Column)({ name: "attachments", type: "jsonb", nullable: true })
5965
6138
  ], Dispute.prototype, "attachments", 2);
5966
6139
  __decorateClass([
5967
- (0, import_typeorm67.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
6140
+ (0, import_typeorm69.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
5968
6141
  ], Dispute.prototype, "dynamicFields", 2);
5969
6142
  Dispute = __decorateClass([
5970
- (0, import_typeorm67.Entity)("disputes")
6143
+ (0, import_typeorm69.Entity)("disputes")
5971
6144
  ], Dispute);
5972
6145
 
5973
6146
  // src/entities/stripe-transaction.entity.ts
5974
- var import_typeorm68 = require("typeorm");
6147
+ var import_typeorm70 = require("typeorm");
5975
6148
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5976
6149
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5977
6150
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5993,97 +6166,97 @@ var StripeTransaction = class extends BaseEntity {
5993
6166
  // Full Stripe session response
5994
6167
  };
5995
6168
  __decorateClass([
5996
- (0, import_typeorm68.Column)({ name: "user_id", type: "integer", nullable: true }),
5997
- (0, import_typeorm68.Index)()
6169
+ (0, import_typeorm70.Column)({ name: "user_id", type: "integer", nullable: true }),
6170
+ (0, import_typeorm70.Index)()
5998
6171
  ], StripeTransaction.prototype, "userId", 2);
5999
6172
  __decorateClass([
6000
- (0, import_typeorm68.ManyToOne)(() => User, (user) => user.stripeTransactions),
6001
- (0, import_typeorm68.JoinColumn)({ name: "user_id" })
6173
+ (0, import_typeorm70.ManyToOne)(() => User, (user) => user.stripeTransactions),
6174
+ (0, import_typeorm70.JoinColumn)({ name: "user_id" })
6002
6175
  ], StripeTransaction.prototype, "user", 2);
6003
6176
  __decorateClass([
6004
- (0, import_typeorm68.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
6177
+ (0, import_typeorm70.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
6005
6178
  ], StripeTransaction.prototype, "stripeSessionId", 2);
6006
6179
  __decorateClass([
6007
- (0, import_typeorm68.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
6180
+ (0, import_typeorm70.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
6008
6181
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
6009
6182
  __decorateClass([
6010
- (0, import_typeorm68.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
6183
+ (0, import_typeorm70.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
6011
6184
  ], StripeTransaction.prototype, "stripeChargeId", 2);
6012
6185
  __decorateClass([
6013
- (0, import_typeorm68.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
6186
+ (0, import_typeorm70.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
6014
6187
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
6015
6188
  __decorateClass([
6016
- (0, import_typeorm68.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
6189
+ (0, import_typeorm70.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
6017
6190
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
6018
6191
  __decorateClass([
6019
- (0, import_typeorm68.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
6192
+ (0, import_typeorm70.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
6020
6193
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
6021
6194
  __decorateClass([
6022
- (0, import_typeorm68.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
6195
+ (0, import_typeorm70.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
6023
6196
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
6024
6197
  __decorateClass([
6025
- (0, import_typeorm68.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
6198
+ (0, import_typeorm70.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
6026
6199
  ], StripeTransaction.prototype, "type", 2);
6027
6200
  __decorateClass([
6028
- (0, import_typeorm68.Column)({ name: "currency", type: "varchar", nullable: true })
6201
+ (0, import_typeorm70.Column)({ name: "currency", type: "varchar", nullable: true })
6029
6202
  ], StripeTransaction.prototype, "currency", 2);
6030
6203
  __decorateClass([
6031
- (0, import_typeorm68.Column)({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
6204
+ (0, import_typeorm70.Column)({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
6032
6205
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
6033
6206
  __decorateClass([
6034
- (0, import_typeorm68.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
6207
+ (0, import_typeorm70.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
6035
6208
  ], StripeTransaction.prototype, "platformFeeCents", 2);
6036
6209
  __decorateClass([
6037
- (0, import_typeorm68.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
6210
+ (0, import_typeorm70.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
6038
6211
  ], StripeTransaction.prototype, "taxCents", 2);
6039
6212
  __decorateClass([
6040
- (0, import_typeorm68.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
6213
+ (0, import_typeorm70.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
6041
6214
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
6042
6215
  __decorateClass([
6043
- (0, import_typeorm68.Column)({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
6216
+ (0, import_typeorm70.Column)({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
6044
6217
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
6045
6218
  __decorateClass([
6046
- (0, import_typeorm68.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
6219
+ (0, import_typeorm70.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
6047
6220
  ], StripeTransaction.prototype, "actualStripeFee", 2);
6048
6221
  __decorateClass([
6049
- (0, import_typeorm68.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
6222
+ (0, import_typeorm70.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
6050
6223
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
6051
6224
  __decorateClass([
6052
- (0, import_typeorm68.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
6225
+ (0, import_typeorm70.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
6053
6226
  ], StripeTransaction.prototype, "netReceivedCents", 2);
6054
6227
  __decorateClass([
6055
- (0, import_typeorm68.Column)({ name: "description", type: "text", nullable: true })
6228
+ (0, import_typeorm70.Column)({ name: "description", type: "text", nullable: true })
6056
6229
  ], StripeTransaction.prototype, "description", 2);
6057
6230
  __decorateClass([
6058
- (0, import_typeorm68.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6231
+ (0, import_typeorm70.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6059
6232
  ], StripeTransaction.prototype, "status", 2);
6060
6233
  __decorateClass([
6061
- (0, import_typeorm68.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
6234
+ (0, import_typeorm70.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
6062
6235
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
6063
6236
  __decorateClass([
6064
- (0, import_typeorm68.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6237
+ (0, import_typeorm70.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6065
6238
  ], StripeTransaction.prototype, "completedAt", 2);
6066
6239
  __decorateClass([
6067
- (0, import_typeorm68.Column)({ name: "billing_details", type: "jsonb", nullable: true })
6240
+ (0, import_typeorm70.Column)({ name: "billing_details", type: "jsonb", nullable: true })
6068
6241
  ], StripeTransaction.prototype, "billingDetails", 2);
6069
6242
  __decorateClass([
6070
- (0, import_typeorm68.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
6243
+ (0, import_typeorm70.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
6071
6244
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
6072
6245
  __decorateClass([
6073
- (0, import_typeorm68.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
6246
+ (0, import_typeorm70.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
6074
6247
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
6075
6248
  __decorateClass([
6076
- (0, import_typeorm68.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
6249
+ (0, import_typeorm70.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
6077
6250
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
6078
6251
  StripeTransaction = __decorateClass([
6079
- (0, import_typeorm68.Entity)("stripe_transactions")
6252
+ (0, import_typeorm70.Entity)("stripe_transactions")
6080
6253
  ], StripeTransaction);
6081
6254
 
6082
6255
  // src/entities/wallet.entity.ts
6083
- var import_typeorm70 = require("typeorm");
6256
+ var import_typeorm72 = require("typeorm");
6084
6257
 
6085
6258
  // src/entities/wallet-transaction.entity.ts
6086
- var import_typeorm69 = require("typeorm");
6259
+ var import_typeorm71 = require("typeorm");
6087
6260
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
6088
6261
  WalletTransactionTypeEnum2["CR"] = "CR";
6089
6262
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -6100,46 +6273,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
6100
6273
  var WalletTransaction = class extends BaseEntity {
6101
6274
  };
6102
6275
  __decorateClass([
6103
- (0, import_typeorm69.Column)({ name: "wallet_id", type: "integer", nullable: true }),
6104
- (0, import_typeorm69.Index)()
6276
+ (0, import_typeorm71.Column)({ name: "wallet_id", type: "integer", nullable: true }),
6277
+ (0, import_typeorm71.Index)()
6105
6278
  ], WalletTransaction.prototype, "walletId", 2);
6106
6279
  __decorateClass([
6107
- (0, import_typeorm69.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
6108
- (0, import_typeorm69.JoinColumn)({ name: "wallet_id" })
6280
+ (0, import_typeorm71.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
6281
+ (0, import_typeorm71.JoinColumn)({ name: "wallet_id" })
6109
6282
  ], WalletTransaction.prototype, "wallet", 2);
6110
6283
  __decorateClass([
6111
- (0, import_typeorm69.Column)({ name: "amount", type: "bigint", nullable: true })
6284
+ (0, import_typeorm71.Column)({ name: "amount", type: "bigint", nullable: true })
6112
6285
  ], WalletTransaction.prototype, "amount", 2);
6113
6286
  __decorateClass([
6114
- (0, import_typeorm69.Column)({ name: "balance_before", type: "bigint", nullable: true })
6287
+ (0, import_typeorm71.Column)({ name: "balance_before", type: "bigint", nullable: true })
6115
6288
  ], WalletTransaction.prototype, "balanceBefore", 2);
6116
6289
  __decorateClass([
6117
- (0, import_typeorm69.Column)({ name: "balance_after", type: "bigint", nullable: true })
6290
+ (0, import_typeorm71.Column)({ name: "balance_after", type: "bigint", nullable: true })
6118
6291
  ], WalletTransaction.prototype, "balanceAfter", 2);
6119
6292
  __decorateClass([
6120
- (0, import_typeorm69.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6293
+ (0, import_typeorm71.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6121
6294
  ], WalletTransaction.prototype, "type", 2);
6122
6295
  __decorateClass([
6123
- (0, import_typeorm69.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6296
+ (0, import_typeorm71.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6124
6297
  ], WalletTransaction.prototype, "status", 2);
6125
6298
  __decorateClass([
6126
- (0, import_typeorm69.Column)({ name: "description", type: "text", nullable: true })
6299
+ (0, import_typeorm71.Column)({ name: "description", type: "text", nullable: true })
6127
6300
  ], WalletTransaction.prototype, "description", 2);
6128
6301
  __decorateClass([
6129
- (0, import_typeorm69.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6302
+ (0, import_typeorm71.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6130
6303
  ], WalletTransaction.prototype, "completedAt", 2);
6131
6304
  __decorateClass([
6132
- (0, import_typeorm69.Column)({ name: "transaction_for", type: "varchar", nullable: true })
6305
+ (0, import_typeorm71.Column)({ name: "transaction_for", type: "varchar", nullable: true })
6133
6306
  ], WalletTransaction.prototype, "transactionFor", 2);
6134
6307
  __decorateClass([
6135
- (0, import_typeorm69.Column)({ name: "meta_data", type: "varchar", nullable: true })
6308
+ (0, import_typeorm71.Column)({ name: "meta_data", type: "varchar", nullable: true })
6136
6309
  ], WalletTransaction.prototype, "metaData", 2);
6137
6310
  __decorateClass([
6138
- (0, import_typeorm69.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
6139
- (0, import_typeorm69.Index)()
6311
+ (0, import_typeorm71.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
6312
+ (0, import_typeorm71.Index)()
6140
6313
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
6141
6314
  WalletTransaction = __decorateClass([
6142
- (0, import_typeorm69.Entity)("wallet_transactions")
6315
+ (0, import_typeorm71.Entity)("wallet_transactions")
6143
6316
  ], WalletTransaction);
6144
6317
 
6145
6318
  // src/entities/wallet.entity.ts
@@ -6157,43 +6330,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
6157
6330
  var Wallet = class extends BaseEntity {
6158
6331
  };
6159
6332
  __decorateClass([
6160
- (0, import_typeorm70.Column)({ name: "user_id", type: "integer", nullable: true }),
6161
- (0, import_typeorm70.Index)()
6333
+ (0, import_typeorm72.Column)({ name: "user_id", type: "integer", nullable: true }),
6334
+ (0, import_typeorm72.Index)()
6162
6335
  ], Wallet.prototype, "userId", 2);
6163
6336
  __decorateClass([
6164
- (0, import_typeorm70.OneToOne)(() => User, (user) => user.wallet),
6165
- (0, import_typeorm70.JoinColumn)({ name: "user_id" })
6337
+ (0, import_typeorm72.OneToOne)(() => User, (user) => user.wallet),
6338
+ (0, import_typeorm72.JoinColumn)({ name: "user_id" })
6166
6339
  ], Wallet.prototype, "user", 2);
6167
6340
  __decorateClass([
6168
- (0, import_typeorm70.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
6341
+ (0, import_typeorm72.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
6169
6342
  ], Wallet.prototype, "accountType", 2);
6170
6343
  __decorateClass([
6171
- (0, import_typeorm70.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
6344
+ (0, import_typeorm72.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
6172
6345
  ], Wallet.prototype, "stripeAccountId", 2);
6173
6346
  __decorateClass([
6174
- (0, import_typeorm70.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
6347
+ (0, import_typeorm72.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
6175
6348
  ], Wallet.prototype, "stripeCustomerId", 2);
6176
6349
  __decorateClass([
6177
- (0, import_typeorm70.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
6350
+ (0, import_typeorm72.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
6178
6351
  ], Wallet.prototype, "walletBalance", 2);
6179
6352
  __decorateClass([
6180
- (0, import_typeorm70.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
6353
+ (0, import_typeorm72.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
6181
6354
  ], Wallet.prototype, "walletBalanceCents", 2);
6182
6355
  __decorateClass([
6183
- (0, import_typeorm70.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
6356
+ (0, import_typeorm72.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
6184
6357
  ], Wallet.prototype, "onboardingStatus", 2);
6185
6358
  __decorateClass([
6186
- (0, import_typeorm70.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
6359
+ (0, import_typeorm72.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
6187
6360
  ], Wallet.prototype, "stripeMetadata", 2);
6188
6361
  __decorateClass([
6189
- (0, import_typeorm70.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
6362
+ (0, import_typeorm72.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
6190
6363
  ], Wallet.prototype, "walletTransactions", 2);
6191
6364
  Wallet = __decorateClass([
6192
- (0, import_typeorm70.Entity)("wallets")
6365
+ (0, import_typeorm72.Entity)("wallets")
6193
6366
  ], Wallet);
6194
6367
 
6195
6368
  // src/entities/freelancer-assessment-request.entity.ts
6196
- var import_typeorm71 = require("typeorm");
6369
+ var import_typeorm73 = require("typeorm");
6197
6370
  var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
6198
6371
  AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
6199
6372
  AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
@@ -6203,23 +6376,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
6203
6376
  var FreelancerAssessmentRequest = class extends BaseEntity {
6204
6377
  };
6205
6378
  __decorateClass([
6206
- (0, import_typeorm71.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
6207
- (0, import_typeorm71.Index)()
6379
+ (0, import_typeorm73.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
6380
+ (0, import_typeorm73.Index)()
6208
6381
  ], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
6209
6382
  __decorateClass([
6210
- (0, import_typeorm71.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
6211
- (0, import_typeorm71.JoinColumn)({ name: "freelancer_id" })
6383
+ (0, import_typeorm73.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
6384
+ (0, import_typeorm73.JoinColumn)({ name: "freelancer_id" })
6212
6385
  ], FreelancerAssessmentRequest.prototype, "freelancer", 2);
6213
6386
  __decorateClass([
6214
- (0, import_typeorm71.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
6215
- (0, import_typeorm71.Index)()
6387
+ (0, import_typeorm73.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
6388
+ (0, import_typeorm73.Index)()
6216
6389
  ], FreelancerAssessmentRequest.prototype, "approvedById", 2);
6217
6390
  __decorateClass([
6218
- (0, import_typeorm71.ManyToOne)(() => User, (user) => user.assessmentRequests),
6219
- (0, import_typeorm71.JoinColumn)({ name: "approved_by_id" })
6391
+ (0, import_typeorm73.ManyToOne)(() => User, (user) => user.assessmentRequests),
6392
+ (0, import_typeorm73.JoinColumn)({ name: "approved_by_id" })
6220
6393
  ], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
6221
6394
  __decorateClass([
6222
- (0, import_typeorm71.Column)({
6395
+ (0, import_typeorm73.Column)({
6223
6396
  name: "status",
6224
6397
  type: "enum",
6225
6398
  enum: AssessmentRequestStatusEnum,
@@ -6227,208 +6400,297 @@ __decorateClass([
6227
6400
  })
6228
6401
  ], FreelancerAssessmentRequest.prototype, "status", 2);
6229
6402
  __decorateClass([
6230
- (0, import_typeorm71.Column)({ name: "assessment_link", type: "text", nullable: true })
6403
+ (0, import_typeorm73.Column)({ name: "assessment_link", type: "text", nullable: true })
6231
6404
  ], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
6232
6405
  FreelancerAssessmentRequest = __decorateClass([
6233
- (0, import_typeorm71.Entity)({ name: "freelancer_assessment_requests" })
6406
+ (0, import_typeorm73.Entity)({ name: "freelancer_assessment_requests" })
6234
6407
  ], FreelancerAssessmentRequest);
6235
6408
 
6236
6409
  // src/entities/in-app-notification.entity.ts
6237
- var import_typeorm72 = require("typeorm");
6410
+ var import_typeorm74 = require("typeorm");
6238
6411
  var InAppNotification = class extends BaseEntity {
6239
6412
  };
6240
6413
  __decorateClass([
6241
- (0, import_typeorm72.Column)({ name: "user_id", type: "integer", nullable: true }),
6242
- (0, import_typeorm72.Index)()
6414
+ (0, import_typeorm74.Column)({ name: "user_id", type: "integer", nullable: true }),
6415
+ (0, import_typeorm74.Index)()
6243
6416
  ], InAppNotification.prototype, "userId", 2);
6244
6417
  __decorateClass([
6245
- (0, import_typeorm72.ManyToOne)(() => User, (user) => user.inAppNotifications),
6246
- (0, import_typeorm72.JoinColumn)({ name: "user_id" })
6418
+ (0, import_typeorm74.ManyToOne)(() => User, (user) => user.inAppNotifications),
6419
+ (0, import_typeorm74.JoinColumn)({ name: "user_id" })
6247
6420
  ], InAppNotification.prototype, "user", 2);
6248
6421
  __decorateClass([
6249
- (0, import_typeorm72.Column)({ name: "event", type: "varchar", nullable: true })
6422
+ (0, import_typeorm74.Column)({ name: "event", type: "varchar", nullable: true })
6250
6423
  ], InAppNotification.prototype, "event", 2);
6251
6424
  __decorateClass([
6252
- (0, import_typeorm72.Column)({ name: "title", type: "varchar", nullable: true })
6425
+ (0, import_typeorm74.Column)({ name: "title", type: "varchar", nullable: true })
6253
6426
  ], InAppNotification.prototype, "title", 2);
6254
6427
  __decorateClass([
6255
- (0, import_typeorm72.Column)({ name: "message", type: "varchar", nullable: true })
6428
+ (0, import_typeorm74.Column)({ name: "message", type: "varchar", nullable: true })
6256
6429
  ], InAppNotification.prototype, "message", 2);
6257
6430
  __decorateClass([
6258
- (0, import_typeorm72.Column)({ name: "redirect_url", type: "varchar", nullable: true })
6431
+ (0, import_typeorm74.Column)({ name: "redirect_url", type: "varchar", nullable: true })
6259
6432
  ], InAppNotification.prototype, "redirectUrl", 2);
6260
6433
  __decorateClass([
6261
- (0, import_typeorm72.Column)({ name: "is_read", type: "boolean", default: false })
6434
+ (0, import_typeorm74.Column)({ name: "is_read", type: "boolean", default: false })
6262
6435
  ], InAppNotification.prototype, "isRead", 2);
6263
6436
  __decorateClass([
6264
- (0, import_typeorm72.Column)({ name: "meta_data", type: "jsonb", nullable: true })
6437
+ (0, import_typeorm74.Column)({ name: "meta_data", type: "jsonb", nullable: true })
6265
6438
  ], InAppNotification.prototype, "metaData", 2);
6266
6439
  InAppNotification = __decorateClass([
6267
- (0, import_typeorm72.Entity)("in_app_notifications")
6440
+ (0, import_typeorm74.Entity)("in_app_notifications")
6268
6441
  ], InAppNotification);
6269
6442
 
6270
- // src/entities/task-query.entity.ts
6271
- var import_typeorm74 = require("typeorm");
6443
+ // src/entities/user-subscription.entity.ts
6444
+ var import_typeorm78 = require("typeorm");
6272
6445
 
6273
- // src/entities/task-query-message.entity.ts
6274
- var import_typeorm73 = require("typeorm");
6275
- var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnum2) => {
6276
- TaskQueryMessageUserTypeEnum2["CLIENT"] = "CLIENT";
6277
- TaskQueryMessageUserTypeEnum2["FREELANCER"] = "FREELANCER";
6278
- return TaskQueryMessageUserTypeEnum2;
6279
- })(TaskQueryMessageUserTypeEnum || {});
6280
- var TaskQueryMessage = class extends BaseEntity {
6446
+ // src/entities/user-subscription-plan.entity.ts
6447
+ var import_typeorm77 = require("typeorm");
6448
+
6449
+ // src/entities/user-subscription-plan-feature.entity.ts
6450
+ var import_typeorm75 = require("typeorm");
6451
+ var UserSubscriptionPlanFeature = class extends BaseEntity {
6281
6452
  };
6282
6453
  __decorateClass([
6283
- (0, import_typeorm73.Column)({ name: "task_query_id", type: "integer" }),
6284
- (0, import_typeorm73.Index)()
6285
- ], TaskQueryMessage.prototype, "taskQueryId", 2);
6454
+ (0, import_typeorm75.Column)({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6455
+ (0, import_typeorm75.Index)()
6456
+ ], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlanId", 2);
6286
6457
  __decorateClass([
6287
- (0, import_typeorm73.ManyToOne)(() => TaskQuery, (taskQuery) => taskQuery.messages),
6288
- (0, import_typeorm73.JoinColumn)({ name: "task_query_id" })
6289
- ], TaskQueryMessage.prototype, "taskQuery", 2);
6458
+ (0, import_typeorm75.ManyToOne)(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanFeatures, { onDelete: "CASCADE", nullable: false }),
6459
+ (0, import_typeorm75.JoinColumn)({ name: "user_subscription_plan_id" })
6460
+ ], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlan", 2);
6290
6461
  __decorateClass([
6291
- (0, import_typeorm73.Column)({ name: "sender_user_id", type: "integer" }),
6292
- (0, import_typeorm73.Index)()
6293
- ], TaskQueryMessage.prototype, "senderUserId", 2);
6462
+ (0, import_typeorm75.Column)({ name: "plan_feature_id", type: "integer", nullable: false })
6463
+ ], UserSubscriptionPlanFeature.prototype, "planFeatureId", 2);
6294
6464
  __decorateClass([
6295
- (0, import_typeorm73.ManyToOne)(() => User, (user) => user.taskQueryMessages),
6296
- (0, import_typeorm73.JoinColumn)({ name: "sender_user_id" })
6297
- ], TaskQueryMessage.prototype, "senderUser", 2);
6465
+ (0, import_typeorm75.Column)({ name: "name", type: "varchar", length: 200 })
6466
+ ], UserSubscriptionPlanFeature.prototype, "name", 2);
6298
6467
  __decorateClass([
6299
- (0, import_typeorm73.Column)({
6300
- name: "sender_type",
6301
- type: "enum",
6302
- enum: TaskQueryMessageUserTypeEnum
6303
- })
6304
- ], TaskQueryMessage.prototype, "senderType", 2);
6468
+ (0, import_typeorm75.Column)({ name: "slug", type: "varchar", length: 100 }),
6469
+ (0, import_typeorm75.Index)()
6470
+ ], UserSubscriptionPlanFeature.prototype, "slug", 2);
6305
6471
  __decorateClass([
6306
- (0, import_typeorm73.Column)({ name: "message", type: "varchar", nullable: true })
6307
- ], TaskQueryMessage.prototype, "message", 2);
6472
+ (0, import_typeorm75.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
6473
+ ], UserSubscriptionPlanFeature.prototype, "tooltip", 2);
6308
6474
  __decorateClass([
6309
- (0, import_typeorm73.Column)({ name: "attachment_url", type: "varchar", nullable: true })
6310
- ], TaskQueryMessage.prototype, "attachmentUrl", 2);
6475
+ (0, import_typeorm75.Column)({ name: "sort_order", type: "smallint", default: 0 })
6476
+ ], UserSubscriptionPlanFeature.prototype, "sortOrder", 2);
6311
6477
  __decorateClass([
6312
- (0, import_typeorm73.Column)({ name: "attachment_type", type: "varchar", nullable: true })
6313
- ], TaskQueryMessage.prototype, "attachmentType", 2);
6478
+ (0, import_typeorm75.Column)({ name: "is_active", type: "boolean", default: true })
6479
+ ], UserSubscriptionPlanFeature.prototype, "isActive", 2);
6480
+ UserSubscriptionPlanFeature = __decorateClass([
6481
+ (0, import_typeorm75.Entity)("user_subscription_plan_features")
6482
+ ], UserSubscriptionPlanFeature);
6483
+
6484
+ // src/entities/user-subscription-plan-pricing.entity.ts
6485
+ var import_typeorm76 = require("typeorm");
6486
+ var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscriptionPlanPricingBillingCycleEnum2) => {
6487
+ UserSubscriptionPlanPricingBillingCycleEnum2["MONTHLY"] = "MONTHLY";
6488
+ UserSubscriptionPlanPricingBillingCycleEnum2["YEARLY"] = "YEARLY";
6489
+ return UserSubscriptionPlanPricingBillingCycleEnum2;
6490
+ })(UserSubscriptionPlanPricingBillingCycleEnum || {});
6491
+ var UserSubscriptionPlanPricing = class extends BaseEntity {
6492
+ };
6314
6493
  __decorateClass([
6315
- (0, import_typeorm73.Column)({ name: "meta", type: "jsonb", nullable: true })
6316
- ], TaskQueryMessage.prototype, "meta", 2);
6494
+ (0, import_typeorm76.Column)({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6495
+ (0, import_typeorm76.Index)()
6496
+ ], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlanId", 2);
6317
6497
  __decorateClass([
6318
- (0, import_typeorm73.Column)({ name: "is_read", type: "boolean", default: false })
6319
- ], TaskQueryMessage.prototype, "isRead", 2);
6498
+ (0, import_typeorm76.ManyToOne)(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanPricing, { onDelete: "CASCADE", nullable: false }),
6499
+ (0, import_typeorm76.JoinColumn)({ name: "user_subscription_plan_id" })
6500
+ ], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlan", 2);
6320
6501
  __decorateClass([
6321
- (0, import_typeorm73.Column)({
6322
- name: "read_at",
6323
- type: "timestamp with time zone",
6324
- nullable: true
6325
- })
6326
- ], TaskQueryMessage.prototype, "readAt", 2);
6327
- TaskQueryMessage = __decorateClass([
6328
- (0, import_typeorm73.Entity)("task_query_messages")
6329
- ], TaskQueryMessage);
6502
+ (0, import_typeorm76.Column)({ name: "plan_pricing_id", type: "integer", nullable: false })
6503
+ ], UserSubscriptionPlanPricing.prototype, "planPricingId", 2);
6504
+ __decorateClass([
6505
+ (0, import_typeorm76.Column)({ name: "billing_cycle", type: "enum", enum: UserSubscriptionPlanPricingBillingCycleEnum })
6506
+ ], UserSubscriptionPlanPricing.prototype, "billingCycle", 2);
6507
+ __decorateClass([
6508
+ (0, import_typeorm76.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
6509
+ ], UserSubscriptionPlanPricing.prototype, "price", 2);
6510
+ __decorateClass([
6511
+ (0, import_typeorm76.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
6512
+ ], UserSubscriptionPlanPricing.prototype, "originalPrice", 2);
6513
+ __decorateClass([
6514
+ (0, import_typeorm76.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
6515
+ ], UserSubscriptionPlanPricing.prototype, "discountPct", 2);
6516
+ __decorateClass([
6517
+ (0, import_typeorm76.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
6518
+ ], UserSubscriptionPlanPricing.prototype, "currency", 2);
6519
+ __decorateClass([
6520
+ (0, import_typeorm76.Column)({ name: "is_free", type: "boolean", default: false })
6521
+ ], UserSubscriptionPlanPricing.prototype, "isFree", 2);
6522
+ __decorateClass([
6523
+ (0, import_typeorm76.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
6524
+ ], UserSubscriptionPlanPricing.prototype, "stripePriceId", 2);
6525
+ __decorateClass([
6526
+ (0, import_typeorm76.Column)({ name: "is_active", type: "boolean", default: true })
6527
+ ], UserSubscriptionPlanPricing.prototype, "isActive", 2);
6528
+ UserSubscriptionPlanPricing = __decorateClass([
6529
+ (0, import_typeorm76.Entity)("user_subscription_plan_pricings")
6530
+ ], UserSubscriptionPlanPricing);
6330
6531
 
6331
- // src/entities/task-query.entity.ts
6332
- var TaskQueryUserTypeEnum = /* @__PURE__ */ ((TaskQueryUserTypeEnum2) => {
6333
- TaskQueryUserTypeEnum2["CLIENT"] = "CLIENT";
6334
- TaskQueryUserTypeEnum2["FREELANCER"] = "FREELANCER";
6335
- return TaskQueryUserTypeEnum2;
6336
- })(TaskQueryUserTypeEnum || {});
6337
- var TaskQueryCategoryEnum = /* @__PURE__ */ ((TaskQueryCategoryEnum2) => {
6338
- TaskQueryCategoryEnum2["DEVELOPMENT_ISSUE"] = "DEVELOPMENT_ISSUE";
6339
- TaskQueryCategoryEnum2["TESTING_ISSUE"] = "TESTING_ISSUE";
6340
- TaskQueryCategoryEnum2["OTHER"] = "OTHER";
6341
- return TaskQueryCategoryEnum2;
6342
- })(TaskQueryCategoryEnum || {});
6343
- var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
6344
- TaskQueryStatusEnum2["OPEN"] = "OPEN";
6345
- TaskQueryStatusEnum2["ANSWERED"] = "ANSWERED";
6346
- TaskQueryStatusEnum2["CLOSED"] = "CLOSED";
6347
- return TaskQueryStatusEnum2;
6348
- })(TaskQueryStatusEnum || {});
6349
- var TaskQuery = class extends BaseEntity {
6532
+ // src/entities/user-subscription-plan.entity.ts
6533
+ var UserSubscriptionPlanTypeEnum = /* @__PURE__ */ ((UserSubscriptionPlanTypeEnum2) => {
6534
+ UserSubscriptionPlanTypeEnum2["FREELANCER"] = "FREELANCER";
6535
+ UserSubscriptionPlanTypeEnum2["BUSINESS"] = "BUSINESS";
6536
+ return UserSubscriptionPlanTypeEnum2;
6537
+ })(UserSubscriptionPlanTypeEnum || {});
6538
+ var UserSubscriptionPlan = class extends BaseEntity {
6350
6539
  };
6351
6540
  __decorateClass([
6352
- (0, import_typeorm74.Column)({ name: "task_id", type: "integer" }),
6353
- (0, import_typeorm74.Index)()
6354
- ], TaskQuery.prototype, "taskId", 2);
6541
+ (0, import_typeorm77.Column)({ name: "user_subscription_id", type: "integer", nullable: false })
6542
+ ], UserSubscriptionPlan.prototype, "userSubscriptionId", 2);
6355
6543
  __decorateClass([
6356
- (0, import_typeorm74.ManyToOne)(() => Task),
6357
- (0, import_typeorm74.JoinColumn)({ name: "task_id" })
6358
- ], TaskQuery.prototype, "task", 2);
6544
+ (0, import_typeorm77.ManyToOne)(() => UserSubscription, (userSubscription) => userSubscription.userSubscriptionPlans, { onDelete: "CASCADE", nullable: false }),
6545
+ (0, import_typeorm77.JoinColumn)({ name: "user_subscription_id" })
6546
+ ], UserSubscriptionPlan.prototype, "userSubscription", 2);
6359
6547
  __decorateClass([
6360
- (0, import_typeorm74.Column)({ name: "raised_by_user_id", type: "integer" }),
6361
- (0, import_typeorm74.Index)()
6362
- ], TaskQuery.prototype, "raisedByUserId", 2);
6548
+ (0, import_typeorm77.Column)({ name: "plan_id", type: "integer", nullable: false })
6549
+ ], UserSubscriptionPlan.prototype, "planId", 2);
6363
6550
  __decorateClass([
6364
- (0, import_typeorm74.ManyToOne)(() => User, (user) => user.raisedTaskQueries),
6365
- (0, import_typeorm74.JoinColumn)({ name: "raised_by_user_id" })
6366
- ], TaskQuery.prototype, "raisedByUser", 2);
6551
+ (0, import_typeorm77.Column)({ name: "name", type: "varchar", length: 100 })
6552
+ ], UserSubscriptionPlan.prototype, "name", 2);
6367
6553
  __decorateClass([
6368
- (0, import_typeorm74.Column)({
6369
- name: "raised_by_type",
6370
- type: "enum",
6371
- enum: TaskQueryUserTypeEnum
6372
- })
6373
- ], TaskQuery.prototype, "raisedByType", 2);
6554
+ (0, import_typeorm77.Column)({ name: "slug", type: "varchar", length: 100 })
6555
+ ], UserSubscriptionPlan.prototype, "slug", 2);
6374
6556
  __decorateClass([
6375
- (0, import_typeorm74.Column)({ name: "assigned_to_user_id", type: "integer" }),
6376
- (0, import_typeorm74.Index)()
6377
- ], TaskQuery.prototype, "assignedToUserId", 2);
6557
+ (0, import_typeorm77.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
6558
+ ], UserSubscriptionPlan.prototype, "badgeLabel", 2);
6378
6559
  __decorateClass([
6379
- (0, import_typeorm74.ManyToOne)(() => User, (user) => user.assignedTaskQueries),
6380
- (0, import_typeorm74.JoinColumn)({ name: "assigned_to_user_id" })
6381
- ], TaskQuery.prototype, "assignedToUser", 2);
6560
+ (0, import_typeorm77.Column)({ name: "sort_order", type: "smallint", default: 0 })
6561
+ ], UserSubscriptionPlan.prototype, "sortOrder", 2);
6382
6562
  __decorateClass([
6383
- (0, import_typeorm74.Column)({
6384
- name: "assigned_to_type",
6563
+ (0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: true })
6564
+ ], UserSubscriptionPlan.prototype, "isActive", 2);
6565
+ __decorateClass([
6566
+ (0, import_typeorm77.Column)({ name: "plan_type", type: "enum", enum: UserSubscriptionPlanTypeEnum, default: "BUSINESS" /* BUSINESS */ })
6567
+ ], UserSubscriptionPlan.prototype, "planType", 2);
6568
+ __decorateClass([
6569
+ (0, import_typeorm77.Column)({ name: "metadata", type: "jsonb", default: {} })
6570
+ ], UserSubscriptionPlan.prototype, "metadata", 2);
6571
+ __decorateClass([
6572
+ (0, import_typeorm77.OneToMany)(() => UserSubscriptionPlanFeature, (f) => f.userSubscriptionPlan)
6573
+ ], UserSubscriptionPlan.prototype, "userSubscriptionPlanFeatures", 2);
6574
+ __decorateClass([
6575
+ (0, import_typeorm77.OneToMany)(() => UserSubscriptionPlanPricing, (p) => p.userSubscriptionPlan)
6576
+ ], UserSubscriptionPlan.prototype, "userSubscriptionPlanPricing", 2);
6577
+ UserSubscriptionPlan = __decorateClass([
6578
+ (0, import_typeorm77.Entity)("user_subscription_plans")
6579
+ ], UserSubscriptionPlan);
6580
+
6581
+ // src/entities/user-subscription.entity.ts
6582
+ var UserSubscriptionStatusEnum = /* @__PURE__ */ ((UserSubscriptionStatusEnum2) => {
6583
+ UserSubscriptionStatusEnum2["INCOMPLETE"] = "INCOMPLETE";
6584
+ UserSubscriptionStatusEnum2["INCOMPLETE_EXPIRED"] = "INCOMPLETE_EXPIRED";
6585
+ UserSubscriptionStatusEnum2["TRIALING"] = "TRIALING";
6586
+ UserSubscriptionStatusEnum2["ACTIVE"] = "ACTIVE";
6587
+ UserSubscriptionStatusEnum2["PAST_DUE"] = "PAST_DUE";
6588
+ UserSubscriptionStatusEnum2["CANCELED"] = "CANCELED";
6589
+ UserSubscriptionStatusEnum2["UNPAID"] = "UNPAID";
6590
+ UserSubscriptionStatusEnum2["EXPIRED"] = "EXPIRED";
6591
+ return UserSubscriptionStatusEnum2;
6592
+ })(UserSubscriptionStatusEnum || {});
6593
+ var UserSubscription = class extends BaseEntity {
6594
+ };
6595
+ __decorateClass([
6596
+ (0, import_typeorm78.Column)({ name: "user_id", type: "integer", nullable: false })
6597
+ ], UserSubscription.prototype, "userId", 2);
6598
+ __decorateClass([
6599
+ (0, import_typeorm78.ManyToOne)(() => User, (user) => user.userSubscriptions, { onDelete: "CASCADE", nullable: false }),
6600
+ (0, import_typeorm78.JoinColumn)({ name: "user_id" })
6601
+ ], UserSubscription.prototype, "user", 2);
6602
+ __decorateClass([
6603
+ (0, import_typeorm78.OneToMany)(() => UserSubscriptionPlan, (plan) => plan.userSubscription)
6604
+ ], UserSubscription.prototype, "userSubscriptionPlans", 2);
6605
+ __decorateClass([
6606
+ (0, import_typeorm78.Column)({ name: "subscription_amount", type: "integer", nullable: false })
6607
+ ], UserSubscription.prototype, "subscriptionAmount", 2);
6608
+ __decorateClass([
6609
+ (0, import_typeorm78.Column)({ name: "total_tax_amount", type: "integer", nullable: false })
6610
+ ], UserSubscription.prototype, "totalTaxAmount", 2);
6611
+ __decorateClass([
6612
+ (0, import_typeorm78.Column)({ name: "total_amount", type: "integer", nullable: false })
6613
+ ], UserSubscription.prototype, "totalAmount", 2);
6614
+ __decorateClass([
6615
+ (0, import_typeorm78.Column)({
6616
+ name: "status",
6385
6617
  type: "enum",
6386
- enum: TaskQueryUserTypeEnum
6618
+ enum: UserSubscriptionStatusEnum,
6619
+ default: "INCOMPLETE" /* INCOMPLETE */
6387
6620
  })
6388
- ], TaskQuery.prototype, "assignedToType", 2);
6621
+ ], UserSubscription.prototype, "status", 2);
6389
6622
  __decorateClass([
6390
- (0, import_typeorm74.Column)({
6391
- name: "query_category",
6392
- type: "enum",
6393
- enum: TaskQueryCategoryEnum
6623
+ (0, import_typeorm78.Column)({
6624
+ name: "subscription_start_date",
6625
+ type: "timestamptz",
6626
+ nullable: true
6394
6627
  })
6395
- ], TaskQuery.prototype, "queryCategory", 2);
6628
+ ], UserSubscription.prototype, "subscriptionStartDate", 2);
6396
6629
  __decorateClass([
6397
- (0, import_typeorm74.Column)({ name: "subject", type: "varchar", nullable: true })
6398
- ], TaskQuery.prototype, "subject", 2);
6630
+ (0, import_typeorm78.Column)({
6631
+ name: "subscription_start_date_timestamp",
6632
+ type: "integer",
6633
+ nullable: true
6634
+ })
6635
+ ], UserSubscription.prototype, "subscriptionStartDateTimestamp", 2);
6399
6636
  __decorateClass([
6400
- (0, import_typeorm74.Column)({ name: "description", type: "varchar", nullable: true })
6401
- ], TaskQuery.prototype, "description", 2);
6637
+ (0, import_typeorm78.Column)({
6638
+ name: "subscription_end_date",
6639
+ type: "timestamptz",
6640
+ nullable: true
6641
+ })
6642
+ ], UserSubscription.prototype, "subscriptionEndDate", 2);
6402
6643
  __decorateClass([
6403
- (0, import_typeorm74.Column)({
6404
- name: "status",
6405
- type: "enum",
6406
- enum: TaskQueryStatusEnum,
6407
- default: "OPEN" /* OPEN */
6644
+ (0, import_typeorm78.Column)({
6645
+ name: "subscription_end_date_timestamp",
6646
+ type: "integer",
6647
+ nullable: true
6408
6648
  })
6409
- ], TaskQuery.prototype, "status", 2);
6649
+ ], UserSubscription.prototype, "subscriptionEndDateTimestamp", 2);
6410
6650
  __decorateClass([
6411
- (0, import_typeorm74.Column)({
6412
- name: "last_message_at",
6413
- type: "timestamp with time zone",
6651
+ (0, import_typeorm78.Column)({
6652
+ name: "stripe_price_id",
6653
+ type: "varchar",
6654
+ length: 100,
6414
6655
  nullable: true
6415
6656
  })
6416
- ], TaskQuery.prototype, "lastMessageAt", 2);
6657
+ ], UserSubscription.prototype, "stripePriceId", 2);
6417
6658
  __decorateClass([
6418
- (0, import_typeorm74.Column)({ name: "last_message_preview", type: "varchar", nullable: true })
6419
- ], TaskQuery.prototype, "lastMessagePreview", 2);
6659
+ (0, import_typeorm78.Column)({
6660
+ name: "stripe_product_id",
6661
+ type: "varchar",
6662
+ length: 100,
6663
+ nullable: true
6664
+ })
6665
+ ], UserSubscription.prototype, "stripeProductId", 2);
6420
6666
  __decorateClass([
6421
- (0, import_typeorm74.Column)({ name: "unread_count_client", type: "integer", default: 0 })
6422
- ], TaskQuery.prototype, "unreadCountClient", 2);
6667
+ (0, import_typeorm78.Column)({
6668
+ name: "stripe_customer_id",
6669
+ type: "varchar",
6670
+ length: 64,
6671
+ nullable: true
6672
+ })
6673
+ ], UserSubscription.prototype, "stripeCustomerId", 2);
6423
6674
  __decorateClass([
6424
- (0, import_typeorm74.Column)({ name: "unread_count_freelancer", type: "integer", default: 0 })
6425
- ], TaskQuery.prototype, "unreadCountFreelancer", 2);
6675
+ (0, import_typeorm78.Column)({
6676
+ name: "stripe_subscription_id",
6677
+ type: "varchar",
6678
+ length: 64,
6679
+ nullable: true,
6680
+ unique: true
6681
+ })
6682
+ ], UserSubscription.prototype, "stripeSubscriptionId", 2);
6426
6683
  __decorateClass([
6427
- (0, import_typeorm74.OneToMany)(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
6428
- ], TaskQuery.prototype, "messages", 2);
6429
- TaskQuery = __decorateClass([
6430
- (0, import_typeorm74.Entity)("task_queries")
6431
- ], TaskQuery);
6684
+ (0, import_typeorm78.Column)({
6685
+ name: "stripe_checkout_session_id",
6686
+ type: "varchar",
6687
+ length: 255,
6688
+ nullable: true
6689
+ })
6690
+ ], UserSubscription.prototype, "stripeCheckoutSessionId", 2);
6691
+ UserSubscription = __decorateClass([
6692
+ (0, import_typeorm78.Entity)("user_subscriptions")
6693
+ ], UserSubscription);
6432
6694
 
6433
6695
  // src/entities/user.entity.ts
6434
6696
  var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
@@ -6456,51 +6718,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
6456
6718
  var User = class extends BaseEntity {
6457
6719
  };
6458
6720
  __decorateClass([
6459
- (0, import_typeorm75.Column)({ name: "unique_id", type: "varchar", unique: true })
6721
+ (0, import_typeorm79.Column)({ name: "unique_id", type: "varchar", unique: true })
6460
6722
  ], User.prototype, "uniqueId", 2);
6461
6723
  __decorateClass([
6462
- (0, import_typeorm75.Column)({ name: "parent_id", type: "integer", nullable: true }),
6463
- (0, import_typeorm75.Index)()
6724
+ (0, import_typeorm79.Column)({ name: "parent_id", type: "integer", nullable: true }),
6725
+ (0, import_typeorm79.Index)()
6464
6726
  ], User.prototype, "parentId", 2);
6465
6727
  __decorateClass([
6466
- (0, import_typeorm75.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
6467
- (0, import_typeorm75.JoinColumn)({ name: "parent_id" })
6728
+ (0, import_typeorm79.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
6729
+ (0, import_typeorm79.JoinColumn)({ name: "parent_id" })
6468
6730
  ], User.prototype, "parent", 2);
6469
6731
  __decorateClass([
6470
- (0, import_typeorm75.OneToMany)(() => User, (user) => user.parent)
6732
+ (0, import_typeorm79.OneToMany)(() => User, (user) => user.parent)
6471
6733
  ], User.prototype, "children", 2);
6472
6734
  __decorateClass([
6473
- (0, import_typeorm75.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
6735
+ (0, import_typeorm79.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
6474
6736
  ], User.prototype, "username", 2);
6475
6737
  __decorateClass([
6476
- (0, import_typeorm75.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
6738
+ (0, import_typeorm79.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
6477
6739
  ], User.prototype, "firstName", 2);
6478
6740
  __decorateClass([
6479
- (0, import_typeorm75.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
6741
+ (0, import_typeorm79.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
6480
6742
  ], User.prototype, "lastName", 2);
6481
6743
  __decorateClass([
6482
- (0, import_typeorm75.Column)({ name: "date_of_birth", type: "date", nullable: true })
6744
+ (0, import_typeorm79.Column)({ name: "date_of_birth", type: "date", nullable: true })
6483
6745
  ], User.prototype, "dateOfBirth", 2);
6484
6746
  __decorateClass([
6485
- (0, import_typeorm75.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
6747
+ (0, import_typeorm79.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
6486
6748
  ], User.prototype, "gender", 2);
6487
6749
  __decorateClass([
6488
- (0, import_typeorm75.Column)({ name: "profile_picture_url", type: "text", nullable: true })
6750
+ (0, import_typeorm79.Column)({ name: "profile_picture_url", type: "text", nullable: true })
6489
6751
  ], User.prototype, "profilePictureUrl", 2);
6490
6752
  __decorateClass([
6491
- (0, import_typeorm75.Column)({ name: "email", type: "varchar", unique: true })
6753
+ (0, import_typeorm79.Column)({ name: "email", type: "varchar", unique: true })
6492
6754
  ], User.prototype, "email", 2);
6493
6755
  __decorateClass([
6494
- (0, import_typeorm75.Column)({ name: "mobile_code", type: "varchar", nullable: true })
6756
+ (0, import_typeorm79.Column)({ name: "mobile_code", type: "varchar", nullable: true })
6495
6757
  ], User.prototype, "mobileCode", 2);
6496
6758
  __decorateClass([
6497
- (0, import_typeorm75.Column)({ name: "mobile", type: "varchar", nullable: true })
6759
+ (0, import_typeorm79.Column)({ name: "mobile", type: "varchar", nullable: true })
6498
6760
  ], User.prototype, "mobile", 2);
6499
6761
  __decorateClass([
6500
- (0, import_typeorm75.Column)({ name: "password", type: "varchar", nullable: true })
6762
+ (0, import_typeorm79.Column)({ name: "password", type: "varchar", nullable: true })
6501
6763
  ], User.prototype, "password", 2);
6502
6764
  __decorateClass([
6503
- (0, import_typeorm75.Column)({
6765
+ (0, import_typeorm79.Column)({
6504
6766
  name: "account_type",
6505
6767
  type: "enum",
6506
6768
  enum: AccountType2,
@@ -6508,7 +6770,7 @@ __decorateClass([
6508
6770
  })
6509
6771
  ], User.prototype, "accountType", 2);
6510
6772
  __decorateClass([
6511
- (0, import_typeorm75.Column)({
6773
+ (0, import_typeorm79.Column)({
6512
6774
  name: "account_status",
6513
6775
  type: "enum",
6514
6776
  enum: AccountStatus,
@@ -6516,45 +6778,45 @@ __decorateClass([
6516
6778
  })
6517
6779
  ], User.prototype, "accountStatus", 2);
6518
6780
  __decorateClass([
6519
- (0, import_typeorm75.Column)({ name: "is_email_verified", type: "boolean", default: false })
6781
+ (0, import_typeorm79.Column)({ name: "is_email_verified", type: "boolean", default: false })
6520
6782
  ], User.prototype, "isEmailVerified", 2);
6521
6783
  __decorateClass([
6522
- (0, import_typeorm75.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
6784
+ (0, import_typeorm79.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
6523
6785
  ], User.prototype, "isMobileVerified", 2);
6524
6786
  __decorateClass([
6525
- (0, import_typeorm75.Column)({ name: "is_social", type: "boolean", default: false })
6787
+ (0, import_typeorm79.Column)({ name: "is_social", type: "boolean", default: false })
6526
6788
  ], User.prototype, "isSocial", 2);
6527
6789
  __decorateClass([
6528
- (0, import_typeorm75.Column)({ name: "is_referral_user", type: "boolean", default: false })
6790
+ (0, import_typeorm79.Column)({ name: "is_referral_user", type: "boolean", default: false })
6529
6791
  ], User.prototype, "isReferralUser", 2);
6530
6792
  __decorateClass([
6531
- (0, import_typeorm75.Column)({
6793
+ (0, import_typeorm79.Column)({
6532
6794
  name: "last_login_at",
6533
6795
  type: "timestamp with time zone",
6534
6796
  nullable: true
6535
6797
  })
6536
6798
  ], User.prototype, "lastLoginAt", 2);
6537
6799
  __decorateClass([
6538
- (0, import_typeorm75.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
6800
+ (0, import_typeorm79.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
6539
6801
  ], User.prototype, "lastLoginIp", 2);
6540
6802
  __decorateClass([
6541
- (0, import_typeorm75.Column)({ name: "reset_token", type: "varchar", nullable: true })
6803
+ (0, import_typeorm79.Column)({ name: "reset_token", type: "varchar", nullable: true })
6542
6804
  ], User.prototype, "resetToken", 2);
6543
6805
  __decorateClass([
6544
- (0, import_typeorm75.Column)({
6806
+ (0, import_typeorm79.Column)({
6545
6807
  name: "reset_token_expire_at",
6546
6808
  type: "timestamp with time zone",
6547
6809
  nullable: true
6548
6810
  })
6549
6811
  ], User.prototype, "resetTokenExpireAt", 2);
6550
6812
  __decorateClass([
6551
- (0, import_typeorm75.Column)({ name: "set_password_token", type: "varchar", nullable: true })
6813
+ (0, import_typeorm79.Column)({ name: "set_password_token", type: "varchar", nullable: true })
6552
6814
  ], User.prototype, "setPasswordToken", 2);
6553
6815
  __decorateClass([
6554
- (0, import_typeorm75.OneToMany)(() => RefreshToken, (token) => token.user)
6816
+ (0, import_typeorm79.OneToMany)(() => RefreshToken, (token) => token.user)
6555
6817
  ], User.prototype, "refreshTokens", 2);
6556
6818
  __decorateClass([
6557
- (0, import_typeorm75.Column)({
6819
+ (0, import_typeorm79.Column)({
6558
6820
  name: "provider",
6559
6821
  type: "enum",
6560
6822
  enum: Provider,
@@ -6563,266 +6825,269 @@ __decorateClass([
6563
6825
  })
6564
6826
  ], User.prototype, "provider", 2);
6565
6827
  __decorateClass([
6566
- (0, import_typeorm75.Column)({ name: "provider_token", type: "varchar", nullable: true })
6828
+ (0, import_typeorm79.Column)({ name: "provider_token", type: "varchar", nullable: true })
6567
6829
  ], User.prototype, "providerToken", 2);
6568
6830
  __decorateClass([
6569
- (0, import_typeorm75.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
6831
+ (0, import_typeorm79.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
6570
6832
  ], User.prototype, "linkedInId", 2);
6571
6833
  __decorateClass([
6572
- (0, import_typeorm75.Column)({ name: "google_id", type: "varchar", nullable: true })
6834
+ (0, import_typeorm79.Column)({ name: "google_id", type: "varchar", nullable: true })
6573
6835
  ], User.prototype, "googleId", 2);
6574
6836
  __decorateClass([
6575
- (0, import_typeorm75.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
6837
+ (0, import_typeorm79.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
6576
6838
  ], User.prototype, "gitLabsId", 2);
6577
6839
  __decorateClass([
6578
- (0, import_typeorm75.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
6840
+ (0, import_typeorm79.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
6579
6841
  ], User.prototype, "onBoardedBy", 2);
6580
6842
  __decorateClass([
6581
- (0, import_typeorm75.OneToMany)(() => Otp, (otp) => otp.user)
6843
+ (0, import_typeorm79.OneToMany)(() => Otp, (otp) => otp.user)
6582
6844
  ], User.prototype, "otps", 2);
6583
6845
  __decorateClass([
6584
- (0, import_typeorm75.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
6846
+ (0, import_typeorm79.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
6585
6847
  ], User.prototype, "senseloafLogs", 2);
6586
6848
  __decorateClass([
6587
- (0, import_typeorm75.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
6849
+ (0, import_typeorm79.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
6588
6850
  ], User.prototype, "companyProfile", 2);
6589
6851
  __decorateClass([
6590
- (0, import_typeorm75.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
6852
+ (0, import_typeorm79.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
6591
6853
  ], User.prototype, "companySkills", 2);
6592
6854
  __decorateClass([
6593
- (0, import_typeorm75.OneToMany)(
6855
+ (0, import_typeorm79.OneToMany)(
6594
6856
  () => CompanyMemberRole,
6595
6857
  (companyMemberRole) => companyMemberRole.user
6596
6858
  )
6597
6859
  ], User.prototype, "companyMemberRoles", 2);
6598
6860
  __decorateClass([
6599
- (0, import_typeorm75.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
6861
+ (0, import_typeorm79.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
6600
6862
  ], User.prototype, "companyAiInterview", 2);
6601
6863
  __decorateClass([
6602
- (0, import_typeorm75.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
6864
+ (0, import_typeorm79.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
6603
6865
  ], User.prototype, "clientF2FInterviews", 2);
6604
6866
  __decorateClass([
6605
- (0, import_typeorm75.OneToOne)(
6867
+ (0, import_typeorm79.OneToOne)(
6606
6868
  () => FreelancerProfile,
6607
6869
  (freelancerProfile) => freelancerProfile.user
6608
6870
  )
6609
6871
  ], User.prototype, "freelancerProfile", 2);
6610
6872
  __decorateClass([
6611
- (0, import_typeorm75.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
6873
+ (0, import_typeorm79.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
6612
6874
  ], User.prototype, "freelancerResume", 2);
6613
6875
  __decorateClass([
6614
- (0, import_typeorm75.OneToMany)(
6876
+ (0, import_typeorm79.OneToMany)(
6615
6877
  () => FreelancerAssessmentRequest,
6616
6878
  (freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
6617
6879
  )
6618
6880
  ], User.prototype, "freelancerAssessmentRequests", 2);
6619
6881
  __decorateClass([
6620
- (0, import_typeorm75.OneToMany)(
6882
+ (0, import_typeorm79.OneToMany)(
6621
6883
  () => FreelancerAssessmentRequest,
6622
6884
  (freelancerAssessment) => freelancerAssessment.approvedBy
6623
6885
  )
6624
6886
  ], User.prototype, "assessmentRequests", 2);
6625
6887
  __decorateClass([
6626
- (0, import_typeorm75.OneToMany)(
6888
+ (0, import_typeorm79.OneToMany)(
6627
6889
  () => FreelancerAssessment,
6628
6890
  (freelancerAssessment) => freelancerAssessment.user
6629
6891
  )
6630
6892
  ], User.prototype, "assessments", 2);
6631
6893
  __decorateClass([
6632
- (0, import_typeorm75.OneToMany)(
6894
+ (0, import_typeorm79.OneToMany)(
6633
6895
  () => AssessmentAnswer,
6634
6896
  (assessmentAnswer) => assessmentAnswer.user
6635
6897
  )
6636
6898
  ], User.prototype, "assessmentAnswers", 2);
6637
6899
  __decorateClass([
6638
- (0, import_typeorm75.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
6900
+ (0, import_typeorm79.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
6639
6901
  ], User.prototype, "freelancerSkills", 2);
6640
6902
  __decorateClass([
6641
- (0, import_typeorm75.OneToMany)(
6903
+ (0, import_typeorm79.OneToMany)(
6642
6904
  () => FreelancerExperience,
6643
6905
  (freelancerExperience) => freelancerExperience.user
6644
6906
  )
6645
6907
  ], User.prototype, "freelancerExperience", 2);
6646
6908
  __decorateClass([
6647
- (0, import_typeorm75.OneToMany)(
6909
+ (0, import_typeorm79.OneToMany)(
6648
6910
  () => FreelancerEducation,
6649
6911
  (freelancerEducation) => freelancerEducation.user
6650
6912
  )
6651
6913
  ], User.prototype, "freelancerEducation", 2);
6652
6914
  __decorateClass([
6653
- (0, import_typeorm75.OneToMany)(
6915
+ (0, import_typeorm79.OneToMany)(
6654
6916
  () => FreelancerProject,
6655
6917
  (freelancerProject) => freelancerProject.user
6656
6918
  )
6657
6919
  ], User.prototype, "freelancerProject", 2);
6658
6920
  __decorateClass([
6659
- (0, import_typeorm75.OneToMany)(
6921
+ (0, import_typeorm79.OneToMany)(
6660
6922
  () => FreelancerCaseStudy,
6661
6923
  (freelancerCaseStudy) => freelancerCaseStudy.user
6662
6924
  )
6663
6925
  ], User.prototype, "freelancerCaseStudy", 2);
6664
6926
  __decorateClass([
6665
- (0, import_typeorm75.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
6927
+ (0, import_typeorm79.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
6666
6928
  ], User.prototype, "freelancerTool", 2);
6667
6929
  __decorateClass([
6668
- (0, import_typeorm75.OneToMany)(
6930
+ (0, import_typeorm79.OneToMany)(
6669
6931
  () => FreelancerFramework,
6670
6932
  (freelancerFramework) => freelancerFramework.user
6671
6933
  )
6672
6934
  ], User.prototype, "freelancerFramework", 2);
6673
6935
  __decorateClass([
6674
- (0, import_typeorm75.OneToOne)(
6936
+ (0, import_typeorm79.OneToOne)(
6675
6937
  () => FreelancerDeclaration,
6676
6938
  (freelancerDeclaration) => freelancerDeclaration.user
6677
6939
  )
6678
6940
  ], User.prototype, "freelancerDeclaration", 2);
6679
6941
  __decorateClass([
6680
- (0, import_typeorm75.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
6942
+ (0, import_typeorm79.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
6681
6943
  ], User.prototype, "freelancerMcq", 2);
6682
6944
  __decorateClass([
6683
- (0, import_typeorm75.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
6945
+ (0, import_typeorm79.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
6684
6946
  ], User.prototype, "freelancerAiInterview", 2);
6685
6947
  __decorateClass([
6686
- (0, import_typeorm75.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
6948
+ (0, import_typeorm79.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
6687
6949
  ], User.prototype, "freelancerF2FInterviews", 2);
6688
6950
  __decorateClass([
6689
- (0, import_typeorm75.OneToMany)(
6951
+ (0, import_typeorm79.OneToMany)(
6690
6952
  () => F2fInterviewRescheduleRequest,
6691
6953
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
6692
6954
  )
6693
6955
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
6694
6956
  __decorateClass([
6695
- (0, import_typeorm75.OneToMany)(
6957
+ (0, import_typeorm79.OneToMany)(
6696
6958
  () => AiInterviewRescheduleRequest,
6697
6959
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
6698
6960
  )
6699
6961
  ], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
6700
6962
  __decorateClass([
6701
- (0, import_typeorm75.OneToMany)(
6963
+ (0, import_typeorm79.OneToMany)(
6702
6964
  () => AiInterviewRescheduleRequest,
6703
6965
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
6704
6966
  )
6705
6967
  ], User.prototype, "clientAiInterviewRescheduleRequests", 2);
6706
6968
  __decorateClass([
6707
- (0, import_typeorm75.OneToMany)(() => Job, (job) => job.user)
6969
+ (0, import_typeorm79.OneToMany)(() => Job, (job) => job.user)
6708
6970
  ], User.prototype, "jobs", 2);
6709
6971
  __decorateClass([
6710
- (0, import_typeorm75.OneToMany)(() => Task, (task) => task.client)
6972
+ (0, import_typeorm79.OneToMany)(() => Task, (task) => task.client)
6711
6973
  ], User.prototype, "clientTasks", 2);
6712
6974
  __decorateClass([
6713
- (0, import_typeorm75.OneToMany)(() => Task, (task) => task.freelancer)
6975
+ (0, import_typeorm79.OneToMany)(() => Task, (task) => task.freelancer)
6714
6976
  ], User.prototype, "freelancerTasks", 2);
6715
6977
  __decorateClass([
6716
- (0, import_typeorm75.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
6978
+ (0, import_typeorm79.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
6717
6979
  ], User.prototype, "raisedTaskQueries", 2);
6718
6980
  __decorateClass([
6719
- (0, import_typeorm75.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
6981
+ (0, import_typeorm79.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
6720
6982
  ], User.prototype, "assignedTaskQueries", 2);
6721
6983
  __decorateClass([
6722
- (0, import_typeorm75.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
6984
+ (0, import_typeorm79.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
6723
6985
  ], User.prototype, "taskQueryMessages", 2);
6724
6986
  __decorateClass([
6725
- (0, import_typeorm75.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
6987
+ (0, import_typeorm79.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
6726
6988
  ], User.prototype, "jobApplications", 2);
6727
6989
  __decorateClass([
6728
- (0, import_typeorm75.OneToMany)(() => Interview, (interview) => interview.user)
6990
+ (0, import_typeorm79.OneToMany)(() => Interview, (interview) => interview.user)
6729
6991
  ], User.prototype, "interviews", 2);
6730
6992
  __decorateClass([
6731
- (0, import_typeorm75.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
6993
+ (0, import_typeorm79.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
6732
6994
  ], User.prototype, "bankDetail", 2);
6733
6995
  __decorateClass([
6734
- (0, import_typeorm75.OneToMany)(
6996
+ (0, import_typeorm79.OneToMany)(
6735
6997
  () => SystemPreference,
6736
6998
  (systemPreference) => systemPreference.user
6737
6999
  )
6738
7000
  ], User.prototype, "systemPreference", 2);
6739
7001
  __decorateClass([
6740
- (0, import_typeorm75.OneToMany)(() => Rating, (rating) => rating.reviewer)
7002
+ (0, import_typeorm79.OneToMany)(() => Rating, (rating) => rating.reviewer)
6741
7003
  ], User.prototype, "givenRatings", 2);
6742
7004
  __decorateClass([
6743
- (0, import_typeorm75.OneToMany)(() => Rating, (rating) => rating.reviewee)
7005
+ (0, import_typeorm79.OneToMany)(() => Rating, (rating) => rating.reviewee)
6744
7006
  ], User.prototype, "receivedRatings", 2);
6745
7007
  __decorateClass([
6746
- (0, import_typeorm75.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
7008
+ (0, import_typeorm79.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
6747
7009
  ], User.prototype, "adminUserRoles", 2);
6748
7010
  __decorateClass([
6749
- (0, import_typeorm75.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
7011
+ (0, import_typeorm79.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
6750
7012
  cascade: true
6751
7013
  })
6752
7014
  ], User.prototype, "clientContractSummaries", 2);
6753
7015
  __decorateClass([
6754
- (0, import_typeorm75.OneToMany)(() => Contract, (contract) => contract.client)
7016
+ (0, import_typeorm79.OneToMany)(() => Contract, (contract) => contract.client)
6755
7017
  ], User.prototype, "clientContracts", 2);
6756
7018
  __decorateClass([
6757
- (0, import_typeorm75.OneToMany)(() => Hiring, (hiring) => hiring.client)
7019
+ (0, import_typeorm79.OneToMany)(() => Hiring, (hiring) => hiring.client)
6758
7020
  ], User.prototype, "clientHirings", 2);
6759
7021
  __decorateClass([
6760
- (0, import_typeorm75.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
7022
+ (0, import_typeorm79.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
6761
7023
  ], User.prototype, "clientEscrowWallets", 2);
6762
7024
  __decorateClass([
6763
- (0, import_typeorm75.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
7025
+ (0, import_typeorm79.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
6764
7026
  cascade: true
6765
7027
  })
6766
7028
  ], User.prototype, "freelancerContractSummaries", 2);
6767
7029
  __decorateClass([
6768
- (0, import_typeorm75.OneToMany)(() => Contract, (contract) => contract.freelancer)
7030
+ (0, import_typeorm79.OneToMany)(() => Contract, (contract) => contract.freelancer)
6769
7031
  ], User.prototype, "freelancerContracts", 2);
6770
7032
  __decorateClass([
6771
- (0, import_typeorm75.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
7033
+ (0, import_typeorm79.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
6772
7034
  ], User.prototype, "freelancerHirings", 2);
6773
7035
  __decorateClass([
6774
- (0, import_typeorm75.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
7036
+ (0, import_typeorm79.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
6775
7037
  ], User.prototype, "freelancerEscrowWallets", 2);
6776
7038
  __decorateClass([
6777
- (0, import_typeorm75.OneToOne)(() => Signature, (signature) => signature.user)
7039
+ (0, import_typeorm79.OneToOne)(() => Signature, (signature) => signature.user)
6778
7040
  ], User.prototype, "signatures", 2);
6779
7041
  __decorateClass([
6780
- (0, import_typeorm75.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
7042
+ (0, import_typeorm79.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
6781
7043
  ], User.prototype, "clientTimesheets", 2);
6782
7044
  __decorateClass([
6783
- (0, import_typeorm75.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
7045
+ (0, import_typeorm79.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
6784
7046
  ], User.prototype, "freelancerTimesheets", 2);
6785
7047
  __decorateClass([
6786
- (0, import_typeorm75.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
7048
+ (0, import_typeorm79.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
6787
7049
  ], User.prototype, "clientTimesheetLine", 2);
6788
7050
  __decorateClass([
6789
- (0, import_typeorm75.OneToMany)(() => Invoice, (invoice) => invoice.client)
7051
+ (0, import_typeorm79.OneToMany)(() => Invoice, (invoice) => invoice.client)
6790
7052
  ], User.prototype, "clientInvoice", 2);
6791
7053
  __decorateClass([
6792
- (0, import_typeorm75.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
7054
+ (0, import_typeorm79.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
6793
7055
  ], User.prototype, "freelancerTimesheetLine", 2);
6794
7056
  __decorateClass([
6795
- (0, import_typeorm75.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
7057
+ (0, import_typeorm79.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
6796
7058
  ], User.prototype, "freelancerInvoice", 2);
6797
7059
  __decorateClass([
6798
- (0, import_typeorm75.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
7060
+ (0, import_typeorm79.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
6799
7061
  ], User.prototype, "clientPreferencesGiven", 2);
6800
7062
  __decorateClass([
6801
- (0, import_typeorm75.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
7063
+ (0, import_typeorm79.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
6802
7064
  ], User.prototype, "clientPreferencesReceived", 2);
6803
7065
  __decorateClass([
6804
- (0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
7066
+ (0, import_typeorm79.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
6805
7067
  ], User.prototype, "initiatedDisputes", 2);
6806
7068
  __decorateClass([
6807
- (0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
7069
+ (0, import_typeorm79.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
6808
7070
  ], User.prototype, "respondentDisputes", 2);
6809
7071
  __decorateClass([
6810
- (0, import_typeorm75.OneToOne)(() => Wallet, (wallet) => wallet.user)
7072
+ (0, import_typeorm79.OneToOne)(() => Wallet, (wallet) => wallet.user)
6811
7073
  ], User.prototype, "wallet", 2);
6812
7074
  __decorateClass([
6813
- (0, import_typeorm75.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
7075
+ (0, import_typeorm79.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
6814
7076
  ], User.prototype, "stripeTransactions", 2);
6815
7077
  __decorateClass([
6816
- (0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.client)
7078
+ (0, import_typeorm79.OneToMany)(() => Dispute, (dispute) => dispute.client)
6817
7079
  ], User.prototype, "clientDisputes", 2);
6818
7080
  __decorateClass([
6819
- (0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
7081
+ (0, import_typeorm79.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
6820
7082
  ], User.prototype, "freelancerDisputes", 2);
6821
7083
  __decorateClass([
6822
- (0, import_typeorm75.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
7084
+ (0, import_typeorm79.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
6823
7085
  ], User.prototype, "inAppNotifications", 2);
7086
+ __decorateClass([
7087
+ (0, import_typeorm79.OneToMany)(() => UserSubscription, (userSubscription) => userSubscription.user)
7088
+ ], User.prototype, "userSubscriptions", 2);
6824
7089
  User = __decorateClass([
6825
- (0, import_typeorm75.Entity)("users")
7090
+ (0, import_typeorm79.Entity)("users")
6826
7091
  ], User);
6827
7092
 
6828
7093
  // src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
@@ -13718,11 +13983,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
13718
13983
  };
13719
13984
 
13720
13985
  // src/entities/sequence-generator.entity.ts
13721
- var import_typeorm76 = require("typeorm");
13986
+ var import_typeorm80 = require("typeorm");
13722
13987
  var SequenceGenerator = class extends BaseEntity {
13723
13988
  };
13724
13989
  __decorateClass([
13725
- (0, import_typeorm76.Column)({
13990
+ (0, import_typeorm80.Column)({
13726
13991
  name: "module",
13727
13992
  type: "varchar",
13728
13993
  length: 50,
@@ -13731,7 +13996,7 @@ __decorateClass([
13731
13996
  })
13732
13997
  ], SequenceGenerator.prototype, "module", 2);
13733
13998
  __decorateClass([
13734
- (0, import_typeorm76.Column)({
13999
+ (0, import_typeorm80.Column)({
13735
14000
  name: "prefix",
13736
14001
  type: "varchar",
13737
14002
  length: 10,
@@ -13740,7 +14005,7 @@ __decorateClass([
13740
14005
  })
13741
14006
  ], SequenceGenerator.prototype, "prefix", 2);
13742
14007
  __decorateClass([
13743
- (0, import_typeorm76.Column)({
14008
+ (0, import_typeorm80.Column)({
13744
14009
  name: "last_sequence",
13745
14010
  type: "int",
13746
14011
  nullable: false,
@@ -13748,7 +14013,7 @@ __decorateClass([
13748
14013
  })
13749
14014
  ], SequenceGenerator.prototype, "lastSequence", 2);
13750
14015
  __decorateClass([
13751
- (0, import_typeorm76.Column)({
14016
+ (0, import_typeorm80.Column)({
13752
14017
  name: "year",
13753
14018
  type: "int",
13754
14019
  nullable: true,
@@ -13756,11 +14021,11 @@ __decorateClass([
13756
14021
  })
13757
14022
  ], SequenceGenerator.prototype, "year", 2);
13758
14023
  SequenceGenerator = __decorateClass([
13759
- (0, import_typeorm76.Entity)("sequence_generators")
14024
+ (0, import_typeorm80.Entity)("sequence_generators")
13760
14025
  ], SequenceGenerator);
13761
14026
 
13762
14027
  // src/entities/question.entity.ts
13763
- var import_typeorm77 = require("typeorm");
14028
+ var import_typeorm81 = require("typeorm");
13764
14029
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
13765
14030
  QuestionFor2["CLIENT"] = "CLIENT";
13766
14031
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -13769,16 +14034,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
13769
14034
  var Question = class extends BaseEntity {
13770
14035
  };
13771
14036
  __decorateClass([
13772
- (0, import_typeorm77.Column)({ name: "question", type: "varchar" })
14037
+ (0, import_typeorm81.Column)({ name: "question", type: "varchar" })
13773
14038
  ], Question.prototype, "question", 2);
13774
14039
  __decorateClass([
13775
- (0, import_typeorm77.Column)({ name: "hint", type: "varchar", nullable: true })
14040
+ (0, import_typeorm81.Column)({ name: "hint", type: "varchar", nullable: true })
13776
14041
  ], Question.prototype, "hint", 2);
13777
14042
  __decorateClass([
13778
- (0, import_typeorm77.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14043
+ (0, import_typeorm81.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13779
14044
  ], Question.prototype, "slug", 2);
13780
14045
  __decorateClass([
13781
- (0, import_typeorm77.Column)({
14046
+ (0, import_typeorm81.Column)({
13782
14047
  name: "question_for",
13783
14048
  type: "enum",
13784
14049
  enum: QuestionFor,
@@ -13786,45 +14051,45 @@ __decorateClass([
13786
14051
  })
13787
14052
  ], Question.prototype, "questionFor", 2);
13788
14053
  __decorateClass([
13789
- (0, import_typeorm77.Column)({ name: "type", type: "varchar", nullable: true })
14054
+ (0, import_typeorm81.Column)({ name: "type", type: "varchar", nullable: true })
13790
14055
  ], Question.prototype, "type", 2);
13791
14056
  __decorateClass([
13792
- (0, import_typeorm77.Column)({ name: "options", type: "jsonb", nullable: true })
14057
+ (0, import_typeorm81.Column)({ name: "options", type: "jsonb", nullable: true })
13793
14058
  ], Question.prototype, "options", 2);
13794
14059
  __decorateClass([
13795
- (0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: false })
14060
+ (0, import_typeorm81.Column)({ name: "is_active", type: "boolean", default: false })
13796
14061
  ], Question.prototype, "isActive", 2);
13797
14062
  Question = __decorateClass([
13798
- (0, import_typeorm77.Entity)("questions")
14063
+ (0, import_typeorm81.Entity)("questions")
13799
14064
  ], Question);
13800
14065
 
13801
14066
  // src/entities/skill.entity.ts
13802
- var import_typeorm78 = require("typeorm");
14067
+ var import_typeorm82 = require("typeorm");
13803
14068
  var Skill = class extends BaseEntity {
13804
14069
  };
13805
14070
  __decorateClass([
13806
- (0, import_typeorm78.Column)({ name: "name", type: "varchar", nullable: true })
14071
+ (0, import_typeorm82.Column)({ name: "name", type: "varchar", nullable: true })
13807
14072
  ], Skill.prototype, "name", 2);
13808
14073
  __decorateClass([
13809
- (0, import_typeorm78.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14074
+ (0, import_typeorm82.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13810
14075
  ], Skill.prototype, "slug", 2);
13811
14076
  __decorateClass([
13812
- (0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: false })
14077
+ (0, import_typeorm82.Column)({ name: "is_active", type: "boolean", default: false })
13813
14078
  ], Skill.prototype, "isActive", 2);
13814
14079
  Skill = __decorateClass([
13815
- (0, import_typeorm78.Entity)("skills")
14080
+ (0, import_typeorm82.Entity)("skills")
13816
14081
  ], Skill);
13817
14082
 
13818
14083
  // src/entities/skill-catalog.entity.ts
13819
- var import_typeorm79 = require("typeorm");
14084
+ var import_typeorm83 = require("typeorm");
13820
14085
  var SkillCatalog = class extends BaseEntity {
13821
14086
  };
13822
14087
  __decorateClass([
13823
- (0, import_typeorm79.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
13824
- (0, import_typeorm79.Index)()
14088
+ (0, import_typeorm83.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14089
+ (0, import_typeorm83.Index)()
13825
14090
  ], SkillCatalog.prototype, "canonicalName", 2);
13826
14091
  __decorateClass([
13827
- (0, import_typeorm79.Column)({
14092
+ (0, import_typeorm83.Column)({
13828
14093
  name: "aliases",
13829
14094
  type: "text",
13830
14095
  array: true,
@@ -13832,20 +14097,20 @@ __decorateClass([
13832
14097
  })
13833
14098
  ], SkillCatalog.prototype, "aliases", 2);
13834
14099
  __decorateClass([
13835
- (0, import_typeorm79.Column)({
14100
+ (0, import_typeorm83.Column)({
13836
14101
  name: "variations",
13837
14102
  type: "jsonb",
13838
14103
  default: "{}"
13839
14104
  })
13840
14105
  ], SkillCatalog.prototype, "variations", 2);
13841
14106
  __decorateClass([
13842
- (0, import_typeorm79.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
14107
+ (0, import_typeorm83.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
13843
14108
  ], SkillCatalog.prototype, "category", 2);
13844
14109
  __decorateClass([
13845
- (0, import_typeorm79.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14110
+ (0, import_typeorm83.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
13846
14111
  ], SkillCatalog.prototype, "parentSkill", 2);
13847
14112
  __decorateClass([
13848
- (0, import_typeorm79.Column)({
14113
+ (0, import_typeorm83.Column)({
13849
14114
  name: "related_skills",
13850
14115
  type: "text",
13851
14116
  array: true,
@@ -13853,68 +14118,68 @@ __decorateClass([
13853
14118
  })
13854
14119
  ], SkillCatalog.prototype, "relatedSkills", 2);
13855
14120
  __decorateClass([
13856
- (0, import_typeorm79.Column)({ name: "usage_count", type: "integer", default: 0 }),
13857
- (0, import_typeorm79.Index)()
14121
+ (0, import_typeorm83.Column)({ name: "usage_count", type: "integer", default: 0 }),
14122
+ (0, import_typeorm83.Index)()
13858
14123
  ], SkillCatalog.prototype, "usageCount", 2);
13859
14124
  __decorateClass([
13860
- (0, import_typeorm79.Column)({ name: "is_verified", type: "boolean", default: false })
14125
+ (0, import_typeorm83.Column)({ name: "is_verified", type: "boolean", default: false })
13861
14126
  ], SkillCatalog.prototype, "isVerified", 2);
13862
14127
  __decorateClass([
13863
- (0, import_typeorm79.Column)({ name: "first_seen_date", type: "date" })
14128
+ (0, import_typeorm83.Column)({ name: "first_seen_date", type: "date" })
13864
14129
  ], SkillCatalog.prototype, "firstSeenDate", 2);
13865
14130
  __decorateClass([
13866
- (0, import_typeorm79.Column)({ name: "last_updated_date", type: "date" })
14131
+ (0, import_typeorm83.Column)({ name: "last_updated_date", type: "date" })
13867
14132
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
13868
14133
  __decorateClass([
13869
- (0, import_typeorm79.Column)({
14134
+ (0, import_typeorm83.Column)({
13870
14135
  name: "search_vector",
13871
14136
  type: "tsvector",
13872
14137
  nullable: true
13873
14138
  })
13874
14139
  ], SkillCatalog.prototype, "searchVector", 2);
13875
14140
  SkillCatalog = __decorateClass([
13876
- (0, import_typeorm79.Entity)("skill_catalogs")
14141
+ (0, import_typeorm83.Entity)("skill_catalogs")
13877
14142
  ], SkillCatalog);
13878
14143
 
13879
14144
  // src/entities/job-role.entity.ts
13880
- var import_typeorm80 = require("typeorm");
14145
+ var import_typeorm84 = require("typeorm");
13881
14146
  var JobRoles = class extends BaseEntity {
13882
14147
  };
13883
14148
  __decorateClass([
13884
- (0, import_typeorm80.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14149
+ (0, import_typeorm84.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13885
14150
  ], JobRoles.prototype, "slug", 2);
13886
14151
  __decorateClass([
13887
- (0, import_typeorm80.Column)({ name: "name", type: "varchar", nullable: true })
14152
+ (0, import_typeorm84.Column)({ name: "name", type: "varchar", nullable: true })
13888
14153
  ], JobRoles.prototype, "name", 2);
13889
14154
  __decorateClass([
13890
- (0, import_typeorm80.Column)({ name: "is_active", type: "boolean", default: true })
14155
+ (0, import_typeorm84.Column)({ name: "is_active", type: "boolean", default: true })
13891
14156
  ], JobRoles.prototype, "isActive", 2);
13892
14157
  JobRoles = __decorateClass([
13893
- (0, import_typeorm80.Entity)("job_roles")
14158
+ (0, import_typeorm84.Entity)("job_roles")
13894
14159
  ], JobRoles);
13895
14160
 
13896
14161
  // src/entities/cms.entity.ts
13897
- var import_typeorm81 = require("typeorm");
14162
+ var import_typeorm85 = require("typeorm");
13898
14163
  var Cms = class extends BaseEntity {
13899
14164
  };
13900
14165
  __decorateClass([
13901
- (0, import_typeorm81.Column)({ name: "title", type: "varchar", nullable: true })
14166
+ (0, import_typeorm85.Column)({ name: "title", type: "varchar", nullable: true })
13902
14167
  ], Cms.prototype, "title", 2);
13903
14168
  __decorateClass([
13904
- (0, import_typeorm81.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14169
+ (0, import_typeorm85.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13905
14170
  ], Cms.prototype, "slug", 2);
13906
14171
  __decorateClass([
13907
- (0, import_typeorm81.Column)({ name: "content", type: "varchar", nullable: true })
14172
+ (0, import_typeorm85.Column)({ name: "content", type: "varchar", nullable: true })
13908
14173
  ], Cms.prototype, "content", 2);
13909
14174
  __decorateClass([
13910
- (0, import_typeorm81.Column)({ name: "is_active", type: "boolean", default: true })
14175
+ (0, import_typeorm85.Column)({ name: "is_active", type: "boolean", default: true })
13911
14176
  ], Cms.prototype, "isActive", 2);
13912
14177
  Cms = __decorateClass([
13913
- (0, import_typeorm81.Entity)("cms")
14178
+ (0, import_typeorm85.Entity)("cms")
13914
14179
  ], Cms);
13915
14180
 
13916
14181
  // src/entities/lead.entity.ts
13917
- var import_typeorm82 = require("typeorm");
14182
+ var import_typeorm86 = require("typeorm");
13918
14183
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
13919
14184
  CategoryEmum2["BUSINESS"] = "BUSINESS";
13920
14185
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -13923,22 +14188,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
13923
14188
  var Lead = class extends BaseEntity {
13924
14189
  };
13925
14190
  __decorateClass([
13926
- (0, import_typeorm82.Column)({ name: "name", type: "varchar", nullable: true })
14191
+ (0, import_typeorm86.Column)({ name: "name", type: "varchar", nullable: true })
13927
14192
  ], Lead.prototype, "name", 2);
13928
14193
  __decorateClass([
13929
- (0, import_typeorm82.Column)({ name: "mobile_code", type: "varchar", nullable: true })
14194
+ (0, import_typeorm86.Column)({ name: "mobile_code", type: "varchar", nullable: true })
13930
14195
  ], Lead.prototype, "mobileCode", 2);
13931
14196
  __decorateClass([
13932
- (0, import_typeorm82.Column)({ name: "mobile", type: "varchar", nullable: true })
14197
+ (0, import_typeorm86.Column)({ name: "mobile", type: "varchar", nullable: true })
13933
14198
  ], Lead.prototype, "mobile", 2);
13934
14199
  __decorateClass([
13935
- (0, import_typeorm82.Column)({ name: "email", type: "varchar", nullable: true })
14200
+ (0, import_typeorm86.Column)({ name: "email", type: "varchar", nullable: true })
13936
14201
  ], Lead.prototype, "email", 2);
13937
14202
  __decorateClass([
13938
- (0, import_typeorm82.Column)({ name: "description", type: "varchar", nullable: true })
14203
+ (0, import_typeorm86.Column)({ name: "description", type: "varchar", nullable: true })
13939
14204
  ], Lead.prototype, "description", 2);
13940
14205
  __decorateClass([
13941
- (0, import_typeorm82.Column)({
14206
+ (0, import_typeorm86.Column)({
13942
14207
  name: "category",
13943
14208
  type: "enum",
13944
14209
  enum: CategoryEmum,
@@ -13946,129 +14211,129 @@ __decorateClass([
13946
14211
  })
13947
14212
  ], Lead.prototype, "category", 2);
13948
14213
  Lead = __decorateClass([
13949
- (0, import_typeorm82.Entity)("leads")
14214
+ (0, import_typeorm86.Entity)("leads")
13950
14215
  ], Lead);
13951
14216
 
13952
14217
  // src/entities/job-freelancer-recommendation.entity.ts
13953
- var import_typeorm83 = require("typeorm");
14218
+ var import_typeorm87 = require("typeorm");
13954
14219
  var JobFreelancerRecommendation = class {
13955
14220
  };
13956
14221
  __decorateClass([
13957
- (0, import_typeorm83.ViewColumn)({ name: "job_id" })
14222
+ (0, import_typeorm87.ViewColumn)({ name: "job_id" })
13958
14223
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
13959
14224
  __decorateClass([
13960
- (0, import_typeorm83.ViewColumn)({ name: "job_uuid" })
14225
+ (0, import_typeorm87.ViewColumn)({ name: "job_uuid" })
13961
14226
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
13962
14227
  __decorateClass([
13963
- (0, import_typeorm83.ViewColumn)({ name: "job_unique_id" })
14228
+ (0, import_typeorm87.ViewColumn)({ name: "job_unique_id" })
13964
14229
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
13965
14230
  __decorateClass([
13966
- (0, import_typeorm83.ViewColumn)({ name: "job_role" })
14231
+ (0, import_typeorm87.ViewColumn)({ name: "job_role" })
13967
14232
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
13968
14233
  __decorateClass([
13969
- (0, import_typeorm83.ViewColumn)({ name: "job_openings" })
14234
+ (0, import_typeorm87.ViewColumn)({ name: "job_openings" })
13970
14235
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
13971
14236
  __decorateClass([
13972
- (0, import_typeorm83.ViewColumn)({ name: "job_location" })
14237
+ (0, import_typeorm87.ViewColumn)({ name: "job_location" })
13973
14238
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
13974
14239
  __decorateClass([
13975
- (0, import_typeorm83.ViewColumn)({ name: "job_currency" })
14240
+ (0, import_typeorm87.ViewColumn)({ name: "job_currency" })
13976
14241
  ], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
13977
14242
  __decorateClass([
13978
- (0, import_typeorm83.ViewColumn)({ name: "job_salary_from" })
14243
+ (0, import_typeorm87.ViewColumn)({ name: "job_salary_from" })
13979
14244
  ], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
13980
14245
  __decorateClass([
13981
- (0, import_typeorm83.ViewColumn)({ name: "job_salary_to" })
14246
+ (0, import_typeorm87.ViewColumn)({ name: "job_salary_to" })
13982
14247
  ], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
13983
14248
  __decorateClass([
13984
- (0, import_typeorm83.ViewColumn)({ name: "job_employment_type" })
14249
+ (0, import_typeorm87.ViewColumn)({ name: "job_employment_type" })
13985
14250
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
13986
14251
  __decorateClass([
13987
- (0, import_typeorm83.ViewColumn)({ name: "application_received" })
14252
+ (0, import_typeorm87.ViewColumn)({ name: "application_received" })
13988
14253
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
13989
14254
  __decorateClass([
13990
- (0, import_typeorm83.ViewColumn)({ name: "job_posted_at" })
14255
+ (0, import_typeorm87.ViewColumn)({ name: "job_posted_at" })
13991
14256
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
13992
14257
  __decorateClass([
13993
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_id" })
14258
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_id" })
13994
14259
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
13995
14260
  __decorateClass([
13996
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_uuid" })
14261
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_uuid" })
13997
14262
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
13998
14263
  __decorateClass([
13999
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_unique_id" })
14264
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_unique_id" })
14000
14265
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
14001
14266
  __decorateClass([
14002
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_first_name" })
14267
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_first_name" })
14003
14268
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
14004
14269
  __decorateClass([
14005
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_last_name" })
14270
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_last_name" })
14006
14271
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
14007
14272
  __decorateClass([
14008
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_email" })
14273
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_email" })
14009
14274
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
14010
14275
  __decorateClass([
14011
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_profile_picture" })
14276
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_profile_picture" })
14012
14277
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
14013
14278
  __decorateClass([
14014
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_is_social" })
14279
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_is_social" })
14015
14280
  ], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
14016
14281
  __decorateClass([
14017
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_created_at" })
14282
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_created_at" })
14018
14283
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
14019
14284
  __decorateClass([
14020
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_designation" })
14285
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_designation" })
14021
14286
  ], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
14022
14287
  __decorateClass([
14023
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_experience" })
14288
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_experience" })
14024
14289
  ], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
14025
14290
  __decorateClass([
14026
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_expertshub_verified" })
14291
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_expertshub_verified" })
14027
14292
  ], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
14028
14293
  __decorateClass([
14029
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_hourly_compensation" })
14294
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_hourly_compensation" })
14030
14295
  ], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
14031
14296
  __decorateClass([
14032
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_country_name" })
14297
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_country_name" })
14033
14298
  ], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
14034
14299
  __decorateClass([
14035
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_country_iso_code" })
14300
+ (0, import_typeorm87.ViewColumn)({ name: "freelancer_country_iso_code" })
14036
14301
  ], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
14037
14302
  __decorateClass([
14038
- (0, import_typeorm83.ViewColumn)({ name: "client_id" })
14303
+ (0, import_typeorm87.ViewColumn)({ name: "client_id" })
14039
14304
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
14040
14305
  __decorateClass([
14041
- (0, import_typeorm83.ViewColumn)({ name: "client_uuid" })
14306
+ (0, import_typeorm87.ViewColumn)({ name: "client_uuid" })
14042
14307
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
14043
14308
  __decorateClass([
14044
- (0, import_typeorm83.ViewColumn)({ name: "client_first_name" })
14309
+ (0, import_typeorm87.ViewColumn)({ name: "client_first_name" })
14045
14310
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
14046
14311
  __decorateClass([
14047
- (0, import_typeorm83.ViewColumn)({ name: "client_last_name" })
14312
+ (0, import_typeorm87.ViewColumn)({ name: "client_last_name" })
14048
14313
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
14049
14314
  __decorateClass([
14050
- (0, import_typeorm83.ViewColumn)({ name: "client_email" })
14315
+ (0, import_typeorm87.ViewColumn)({ name: "client_email" })
14051
14316
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
14052
14317
  __decorateClass([
14053
- (0, import_typeorm83.ViewColumn)({ name: "client_company_logo" })
14318
+ (0, import_typeorm87.ViewColumn)({ name: "client_company_logo" })
14054
14319
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
14055
14320
  __decorateClass([
14056
- (0, import_typeorm83.ViewColumn)({ name: "client_company_name" })
14321
+ (0, import_typeorm87.ViewColumn)({ name: "client_company_name" })
14057
14322
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
14058
14323
  __decorateClass([
14059
- (0, import_typeorm83.ViewColumn)({ name: "matching_skills" })
14324
+ (0, import_typeorm87.ViewColumn)({ name: "matching_skills" })
14060
14325
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
14061
14326
  __decorateClass([
14062
- (0, import_typeorm83.ViewColumn)({ name: "matching_skills_count" })
14327
+ (0, import_typeorm87.ViewColumn)({ name: "matching_skills_count" })
14063
14328
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
14064
14329
  __decorateClass([
14065
- (0, import_typeorm83.ViewColumn)({ name: "required_skills" })
14330
+ (0, import_typeorm87.ViewColumn)({ name: "required_skills" })
14066
14331
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
14067
14332
  __decorateClass([
14068
- (0, import_typeorm83.ViewColumn)({ name: "required_skills_count" })
14333
+ (0, import_typeorm87.ViewColumn)({ name: "required_skills_count" })
14069
14334
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
14070
14335
  JobFreelancerRecommendation = __decorateClass([
14071
- (0, import_typeorm83.ViewEntity)({
14336
+ (0, import_typeorm87.ViewEntity)({
14072
14337
  name: "job_freelancer_recommendations",
14073
14338
  materialized: true,
14074
14339
  synchronize: false
@@ -14077,32 +14342,32 @@ JobFreelancerRecommendation = __decorateClass([
14077
14342
  ], JobFreelancerRecommendation);
14078
14343
 
14079
14344
  // src/entities/job-freelancer-recommendation-v2.entity.ts
14080
- var import_typeorm84 = require("typeorm");
14345
+ var import_typeorm88 = require("typeorm");
14081
14346
  var JobFreelancerRecommendationV2 = class {
14082
14347
  };
14083
14348
  __decorateClass([
14084
- (0, import_typeorm84.ViewColumn)({ name: "job_id" })
14349
+ (0, import_typeorm88.ViewColumn)({ name: "job_id" })
14085
14350
  ], JobFreelancerRecommendationV2.prototype, "jobId", 2);
14086
14351
  __decorateClass([
14087
- (0, import_typeorm84.ViewColumn)({ name: "job_owner_id" })
14352
+ (0, import_typeorm88.ViewColumn)({ name: "job_owner_id" })
14088
14353
  ], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
14089
14354
  __decorateClass([
14090
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_id" })
14355
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_id" })
14091
14356
  ], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
14092
14357
  __decorateClass([
14093
- (0, import_typeorm84.ViewColumn)({ name: "matching_skills" })
14358
+ (0, import_typeorm88.ViewColumn)({ name: "matching_skills" })
14094
14359
  ], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
14095
14360
  __decorateClass([
14096
- (0, import_typeorm84.ViewColumn)({ name: "matching_skills_count" })
14361
+ (0, import_typeorm88.ViewColumn)({ name: "matching_skills_count" })
14097
14362
  ], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
14098
14363
  __decorateClass([
14099
- (0, import_typeorm84.ViewColumn)({ name: "required_skills" })
14364
+ (0, import_typeorm88.ViewColumn)({ name: "required_skills" })
14100
14365
  ], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
14101
14366
  __decorateClass([
14102
- (0, import_typeorm84.ViewColumn)({ name: "required_skills_count" })
14367
+ (0, import_typeorm88.ViewColumn)({ name: "required_skills_count" })
14103
14368
  ], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
14104
14369
  JobFreelancerRecommendationV2 = __decorateClass([
14105
- (0, import_typeorm84.ViewEntity)({
14370
+ (0, import_typeorm88.ViewEntity)({
14106
14371
  name: "job_freelancer_recommendations_v2",
14107
14372
  materialized: true,
14108
14373
  synchronize: false
@@ -14111,74 +14376,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
14111
14376
  ], JobFreelancerRecommendationV2);
14112
14377
 
14113
14378
  // src/entities/client-freelancer-recommendation.entity.ts
14114
- var import_typeorm85 = require("typeorm");
14379
+ var import_typeorm89 = require("typeorm");
14115
14380
  var ClientFreelancerRecommendation = class {
14116
14381
  };
14117
14382
  __decorateClass([
14118
- (0, import_typeorm85.ViewColumn)({ name: "client_id" })
14383
+ (0, import_typeorm89.ViewColumn)({ name: "client_id" })
14119
14384
  ], ClientFreelancerRecommendation.prototype, "clientId", 2);
14120
14385
  __decorateClass([
14121
- (0, import_typeorm85.ViewColumn)({ name: "client_uuid" })
14386
+ (0, import_typeorm89.ViewColumn)({ name: "client_uuid" })
14122
14387
  ], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
14123
14388
  __decorateClass([
14124
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_id" })
14389
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_id" })
14125
14390
  ], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
14126
14391
  __decorateClass([
14127
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_uuid" })
14392
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_uuid" })
14128
14393
  ], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
14129
14394
  __decorateClass([
14130
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_unique_id" })
14395
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_unique_id" })
14131
14396
  ], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
14132
14397
  __decorateClass([
14133
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_first_name" })
14398
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_first_name" })
14134
14399
  ], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
14135
14400
  __decorateClass([
14136
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_last_name" })
14401
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_last_name" })
14137
14402
  ], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
14138
14403
  __decorateClass([
14139
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_email" })
14404
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_email" })
14140
14405
  ], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
14141
14406
  __decorateClass([
14142
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_profile_picture" })
14407
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_profile_picture" })
14143
14408
  ], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
14144
14409
  __decorateClass([
14145
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_is_social" })
14410
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_is_social" })
14146
14411
  ], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
14147
14412
  __decorateClass([
14148
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_created_at" })
14413
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_created_at" })
14149
14414
  ], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
14150
14415
  __decorateClass([
14151
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_designation" })
14416
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_designation" })
14152
14417
  ], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
14153
14418
  __decorateClass([
14154
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_experience" })
14419
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_experience" })
14155
14420
  ], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
14156
14421
  __decorateClass([
14157
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_expertshub_verified" })
14422
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_expertshub_verified" })
14158
14423
  ], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
14159
14424
  __decorateClass([
14160
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_hourly_compensation" })
14425
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_hourly_compensation" })
14161
14426
  ], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
14162
14427
  __decorateClass([
14163
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_country_name" })
14428
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_country_name" })
14164
14429
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
14165
14430
  __decorateClass([
14166
- (0, import_typeorm85.ViewColumn)({ name: "freelancer_country_iso_code" })
14431
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_country_iso_code" })
14167
14432
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
14168
14433
  __decorateClass([
14169
- (0, import_typeorm85.ViewColumn)({ name: "matching_skills" })
14434
+ (0, import_typeorm89.ViewColumn)({ name: "matching_skills" })
14170
14435
  ], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
14171
14436
  __decorateClass([
14172
- (0, import_typeorm85.ViewColumn)({ name: "matching_skills_count" })
14437
+ (0, import_typeorm89.ViewColumn)({ name: "matching_skills_count" })
14173
14438
  ], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
14174
14439
  __decorateClass([
14175
- (0, import_typeorm85.ViewColumn)({ name: "required_skills" })
14440
+ (0, import_typeorm89.ViewColumn)({ name: "required_skills" })
14176
14441
  ], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
14177
14442
  __decorateClass([
14178
- (0, import_typeorm85.ViewColumn)({ name: "required_skills_count" })
14443
+ (0, import_typeorm89.ViewColumn)({ name: "required_skills_count" })
14179
14444
  ], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
14180
14445
  ClientFreelancerRecommendation = __decorateClass([
14181
- (0, import_typeorm85.ViewEntity)({
14446
+ (0, import_typeorm89.ViewEntity)({
14182
14447
  name: "client_freelancer_recommendations",
14183
14448
  materialized: true,
14184
14449
  synchronize: false
@@ -14187,7 +14452,7 @@ ClientFreelancerRecommendation = __decorateClass([
14187
14452
  ], ClientFreelancerRecommendation);
14188
14453
 
14189
14454
  // src/entities/commission.entity.ts
14190
- var import_typeorm86 = require("typeorm");
14455
+ var import_typeorm90 = require("typeorm");
14191
14456
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14192
14457
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
14193
14458
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -14196,7 +14461,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14196
14461
  var Commission = class extends BaseEntity {
14197
14462
  };
14198
14463
  __decorateClass([
14199
- (0, import_typeorm86.Column)({
14464
+ (0, import_typeorm90.Column)({
14200
14465
  name: "freelancer_commission_type",
14201
14466
  type: "enum",
14202
14467
  enum: CommissionTypeEnum,
@@ -14204,10 +14469,10 @@ __decorateClass([
14204
14469
  })
14205
14470
  ], Commission.prototype, "freelancerCommissionType", 2);
14206
14471
  __decorateClass([
14207
- (0, import_typeorm86.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
14472
+ (0, import_typeorm90.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
14208
14473
  ], Commission.prototype, "freelancerCommission", 2);
14209
14474
  __decorateClass([
14210
- (0, import_typeorm86.Column)({
14475
+ (0, import_typeorm90.Column)({
14211
14476
  name: "client_commission_type",
14212
14477
  type: "enum",
14213
14478
  enum: CommissionTypeEnum,
@@ -14215,50 +14480,50 @@ __decorateClass([
14215
14480
  })
14216
14481
  ], Commission.prototype, "clientCommissionType", 2);
14217
14482
  __decorateClass([
14218
- (0, import_typeorm86.Column)({ name: "client_commission", type: "integer", default: 0 })
14483
+ (0, import_typeorm90.Column)({ name: "client_commission", type: "integer", default: 0 })
14219
14484
  ], Commission.prototype, "clientCommission", 2);
14220
14485
  Commission = __decorateClass([
14221
- (0, import_typeorm86.Entity)("commissions")
14486
+ (0, import_typeorm90.Entity)("commissions")
14222
14487
  ], Commission);
14223
14488
 
14224
14489
  // src/entities/calendly-meeting-log.entity.ts
14225
- var import_typeorm87 = require("typeorm");
14490
+ var import_typeorm91 = require("typeorm");
14226
14491
  var CalendlyMeetingLog = class extends BaseEntity {
14227
14492
  };
14228
14493
  __decorateClass([
14229
- (0, import_typeorm87.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
14230
- (0, import_typeorm87.Index)()
14494
+ (0, import_typeorm91.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
14495
+ (0, import_typeorm91.Index)()
14231
14496
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
14232
14497
  __decorateClass([
14233
- (0, import_typeorm87.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
14498
+ (0, import_typeorm91.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
14234
14499
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
14235
14500
  __decorateClass([
14236
- (0, import_typeorm87.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14501
+ (0, import_typeorm91.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14237
14502
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
14238
14503
  CalendlyMeetingLog = __decorateClass([
14239
- (0, import_typeorm87.Entity)("calendly_meeting_logs")
14504
+ (0, import_typeorm91.Entity)("calendly_meeting_logs")
14240
14505
  ], CalendlyMeetingLog);
14241
14506
 
14242
14507
  // src/entities/zoom-meeting-log.entity.ts
14243
- var import_typeorm88 = require("typeorm");
14508
+ var import_typeorm92 = require("typeorm");
14244
14509
  var ZoomMeetingLog = class extends BaseEntity {
14245
14510
  };
14246
14511
  __decorateClass([
14247
- (0, import_typeorm88.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
14248
- (0, import_typeorm88.Index)()
14512
+ (0, import_typeorm92.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
14513
+ (0, import_typeorm92.Index)()
14249
14514
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
14250
14515
  __decorateClass([
14251
- (0, import_typeorm88.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
14516
+ (0, import_typeorm92.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
14252
14517
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
14253
14518
  __decorateClass([
14254
- (0, import_typeorm88.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14519
+ (0, import_typeorm92.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14255
14520
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
14256
14521
  ZoomMeetingLog = __decorateClass([
14257
- (0, import_typeorm88.Entity)("zoom_meeting_logs")
14522
+ (0, import_typeorm92.Entity)("zoom_meeting_logs")
14258
14523
  ], ZoomMeetingLog);
14259
14524
 
14260
14525
  // src/entities/docuseal.entity.ts
14261
- var import_typeorm89 = require("typeorm");
14526
+ var import_typeorm93 = require("typeorm");
14262
14527
  var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
14263
14528
  DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
14264
14529
  DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
@@ -14268,132 +14533,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
14268
14533
  var DocuSeal = class extends BaseEntity {
14269
14534
  };
14270
14535
  __decorateClass([
14271
- (0, import_typeorm89.Column)({ name: "reference_id", type: "integer", nullable: false }),
14272
- (0, import_typeorm89.Index)()
14536
+ (0, import_typeorm93.Column)({ name: "reference_id", type: "integer", nullable: false }),
14537
+ (0, import_typeorm93.Index)()
14273
14538
  ], DocuSeal.prototype, "referenceId", 2);
14274
14539
  __decorateClass([
14275
- (0, import_typeorm89.Column)({ name: "submitter_id", type: "integer", nullable: true }),
14276
- (0, import_typeorm89.Index)()
14540
+ (0, import_typeorm93.Column)({ name: "submitter_id", type: "integer", nullable: true }),
14541
+ (0, import_typeorm93.Index)()
14277
14542
  ], DocuSeal.prototype, "submitterId", 2);
14278
14543
  __decorateClass([
14279
- (0, import_typeorm89.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
14544
+ (0, import_typeorm93.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
14280
14545
  ], DocuSeal.prototype, "submitterResponse", 2);
14281
14546
  __decorateClass([
14282
- (0, import_typeorm89.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
14547
+ (0, import_typeorm93.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
14283
14548
  ], DocuSeal.prototype, "webhookResponse", 2);
14284
14549
  __decorateClass([
14285
- (0, import_typeorm89.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
14550
+ (0, import_typeorm93.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
14286
14551
  ], DocuSeal.prototype, "type", 2);
14287
14552
  DocuSeal = __decorateClass([
14288
- (0, import_typeorm89.Entity)("docuseal")
14553
+ (0, import_typeorm93.Entity)("docuseal")
14289
14554
  ], DocuSeal);
14290
14555
 
14291
14556
  // src/entities/stripe-logs.entity.ts
14292
- var import_typeorm90 = require("typeorm");
14557
+ var import_typeorm94 = require("typeorm");
14293
14558
  var StripeLog = class extends BaseEntity {
14294
14559
  };
14295
14560
  __decorateClass([
14296
- (0, import_typeorm90.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
14561
+ (0, import_typeorm94.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
14297
14562
  ], StripeLog.prototype, "stripeEventId", 2);
14298
14563
  __decorateClass([
14299
- (0, import_typeorm90.Column)({ name: "event_type", type: "varchar", nullable: true })
14564
+ (0, import_typeorm94.Column)({ name: "event_type", type: "varchar", nullable: true })
14300
14565
  ], StripeLog.prototype, "eventType", 2);
14301
14566
  __decorateClass([
14302
- (0, import_typeorm90.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
14567
+ (0, import_typeorm94.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
14303
14568
  ], StripeLog.prototype, "stripeAccountId", 2);
14304
14569
  __decorateClass([
14305
- (0, import_typeorm90.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14570
+ (0, import_typeorm94.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14306
14571
  ], StripeLog.prototype, "rawWebhookData", 2);
14307
14572
  StripeLog = __decorateClass([
14308
- (0, import_typeorm90.Entity)("stripe_logs")
14573
+ (0, import_typeorm94.Entity)("stripe_logs")
14309
14574
  ], StripeLog);
14310
14575
 
14311
14576
  // src/entities/recommendation-weightage-config.entity.ts
14312
- var import_typeorm91 = require("typeorm");
14577
+ var import_typeorm95 = require("typeorm");
14313
14578
  var RecommendationWeightageConfig = class extends BaseEntity {
14314
14579
  };
14315
14580
  __decorateClass([
14316
- (0, import_typeorm91.Column)({
14581
+ (0, import_typeorm95.Column)({
14317
14582
  type: "varchar",
14318
14583
  length: 100,
14319
14584
  unique: true,
14320
14585
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
14321
14586
  }),
14322
- (0, import_typeorm91.Index)()
14587
+ (0, import_typeorm95.Index)()
14323
14588
  ], RecommendationWeightageConfig.prototype, "key", 2);
14324
14589
  __decorateClass([
14325
- (0, import_typeorm91.Column)({
14590
+ (0, import_typeorm95.Column)({
14326
14591
  type: "jsonb",
14327
14592
  comment: "JSON object containing weight values",
14328
14593
  nullable: true
14329
14594
  })
14330
14595
  ], RecommendationWeightageConfig.prototype, "value", 2);
14331
14596
  __decorateClass([
14332
- (0, import_typeorm91.Column)({ name: "is_active", type: "boolean", default: true })
14597
+ (0, import_typeorm95.Column)({ name: "is_active", type: "boolean", default: true })
14333
14598
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
14334
14599
  RecommendationWeightageConfig = __decorateClass([
14335
- (0, import_typeorm91.Entity)("recommendation_weightage_configs")
14600
+ (0, import_typeorm95.Entity)("recommendation_weightage_configs")
14336
14601
  ], RecommendationWeightageConfig);
14337
14602
 
14338
14603
  // src/entities/global-setting.entity.ts
14339
- var import_typeorm92 = require("typeorm");
14604
+ var import_typeorm96 = require("typeorm");
14340
14605
  var GlobalSetting = class extends BaseEntity {
14341
14606
  };
14342
14607
  __decorateClass([
14343
- (0, import_typeorm92.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
14608
+ (0, import_typeorm96.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
14344
14609
  ], GlobalSetting.prototype, "key", 2);
14345
14610
  __decorateClass([
14346
- (0, import_typeorm92.Column)({ name: "value", type: "text", nullable: false })
14611
+ (0, import_typeorm96.Column)({ name: "value", type: "text", nullable: false })
14347
14612
  ], GlobalSetting.prototype, "value", 2);
14348
14613
  GlobalSetting = __decorateClass([
14349
- (0, import_typeorm92.Entity)("global_settings"),
14350
- (0, import_typeorm92.Index)(["key"], { unique: true })
14614
+ (0, import_typeorm96.Entity)("global_settings"),
14615
+ (0, import_typeorm96.Index)(["key"], { unique: true })
14351
14616
  ], GlobalSetting);
14352
14617
 
14353
14618
  // src/entities/plan.entity.ts
14354
- var import_typeorm95 = require("typeorm");
14619
+ var import_typeorm99 = require("typeorm");
14355
14620
 
14356
14621
  // src/entities/plan-feature.entity.ts
14357
- var import_typeorm93 = require("typeorm");
14622
+ var import_typeorm97 = require("typeorm");
14358
14623
  var PlanFeature = class extends BaseEntity {
14359
14624
  };
14360
14625
  // individual index to find features by plan
14361
14626
  __decorateClass([
14362
- (0, import_typeorm93.Column)({ name: "plan_id", type: "integer", nullable: false }),
14363
- (0, import_typeorm93.Index)()
14627
+ (0, import_typeorm97.Column)({ name: "plan_id", type: "integer", nullable: false }),
14628
+ (0, import_typeorm97.Index)()
14364
14629
  ], PlanFeature.prototype, "planId", 2);
14365
14630
  __decorateClass([
14366
- (0, import_typeorm93.ManyToOne)(() => Plan, (plan) => plan.features, {
14631
+ (0, import_typeorm97.ManyToOne)(() => Plan, (plan) => plan.features, {
14367
14632
  onDelete: "CASCADE",
14368
14633
  nullable: false
14369
14634
  }),
14370
- (0, import_typeorm93.JoinColumn)({ name: "plan_id" })
14635
+ (0, import_typeorm97.JoinColumn)({ name: "plan_id" })
14371
14636
  ], PlanFeature.prototype, "plan", 2);
14372
14637
  __decorateClass([
14373
- (0, import_typeorm93.Column)({ name: "name", type: "varchar", length: 200 })
14638
+ (0, import_typeorm97.Column)({ name: "name", type: "varchar", length: 200 })
14374
14639
  ], PlanFeature.prototype, "name", 2);
14375
14640
  __decorateClass([
14376
- (0, import_typeorm93.Column)({ name: "slug", type: "varchar", length: 100 }),
14377
- (0, import_typeorm93.Index)()
14641
+ (0, import_typeorm97.Column)({ name: "slug", type: "varchar", length: 100 }),
14642
+ (0, import_typeorm97.Index)()
14378
14643
  ], PlanFeature.prototype, "slug", 2);
14379
14644
  __decorateClass([
14380
- (0, import_typeorm93.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14645
+ (0, import_typeorm97.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14381
14646
  ], PlanFeature.prototype, "tooltip", 2);
14382
14647
  __decorateClass([
14383
- (0, import_typeorm93.Column)({ name: "sort_order", type: "smallint", default: 0 })
14648
+ (0, import_typeorm97.Column)({ name: "sort_order", type: "smallint", default: 0 })
14384
14649
  ], PlanFeature.prototype, "sortOrder", 2);
14385
14650
  __decorateClass([
14386
- (0, import_typeorm93.Column)({ name: "is_active", type: "boolean", default: true })
14651
+ (0, import_typeorm97.Column)({ name: "is_active", type: "boolean", default: true })
14387
14652
  ], PlanFeature.prototype, "isActive", 2);
14388
14653
  PlanFeature = __decorateClass([
14389
- (0, import_typeorm93.Entity)("plan_features"),
14390
- (0, import_typeorm93.Index)("idx_plan_features_plan_id", ["planId"]),
14391
- (0, import_typeorm93.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
14392
- (0, import_typeorm93.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
14654
+ (0, import_typeorm97.Entity)("plan_features"),
14655
+ (0, import_typeorm97.Index)("idx_plan_features_plan_id", ["planId"]),
14656
+ (0, import_typeorm97.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
14657
+ (0, import_typeorm97.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
14393
14658
  ], PlanFeature);
14394
14659
 
14395
14660
  // src/entities/plan-pricing.entity.ts
14396
- var import_typeorm94 = require("typeorm");
14661
+ var import_typeorm98 = require("typeorm");
14397
14662
  var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
14398
14663
  PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
14399
14664
  PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
@@ -14448,61 +14713,61 @@ var PlanPricing = class extends BaseEntity {
14448
14713
  };
14449
14714
  // individual index to find pricing by plan
14450
14715
  __decorateClass([
14451
- (0, import_typeorm94.Column)({ name: "plan_id", type: "integer", nullable: false }),
14452
- (0, import_typeorm94.Index)()
14716
+ (0, import_typeorm98.Column)({ name: "plan_id", type: "integer", nullable: false }),
14717
+ (0, import_typeorm98.Index)()
14453
14718
  ], PlanPricing.prototype, "planId", 2);
14454
14719
  __decorateClass([
14455
- (0, import_typeorm94.ManyToOne)(() => Plan, (plan) => plan.pricing, {
14720
+ (0, import_typeorm98.ManyToOne)(() => Plan, (plan) => plan.pricing, {
14456
14721
  onDelete: "CASCADE",
14457
14722
  nullable: false
14458
14723
  }),
14459
- (0, import_typeorm94.JoinColumn)({ name: "plan_id" })
14724
+ (0, import_typeorm98.JoinColumn)({ name: "plan_id" })
14460
14725
  ], PlanPricing.prototype, "plan", 2);
14461
14726
  __decorateClass([
14462
- (0, import_typeorm94.Column)({
14727
+ (0, import_typeorm98.Column)({
14463
14728
  name: "billing_cycle",
14464
14729
  type: "enum",
14465
14730
  enum: PlanPricingBillingCycleEnum
14466
14731
  })
14467
14732
  ], PlanPricing.prototype, "billingCycle", 2);
14468
14733
  __decorateClass([
14469
- (0, import_typeorm94.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
14734
+ (0, import_typeorm98.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
14470
14735
  ], PlanPricing.prototype, "price", 2);
14471
14736
  __decorateClass([
14472
- (0, import_typeorm94.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
14737
+ (0, import_typeorm98.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
14473
14738
  ], PlanPricing.prototype, "originalPrice", 2);
14474
14739
  __decorateClass([
14475
- (0, import_typeorm94.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
14740
+ (0, import_typeorm98.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
14476
14741
  ], PlanPricing.prototype, "discountPct", 2);
14477
14742
  __decorateClass([
14478
- (0, import_typeorm94.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
14743
+ (0, import_typeorm98.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
14479
14744
  ], PlanPricing.prototype, "currency", 2);
14480
14745
  __decorateClass([
14481
- (0, import_typeorm94.Column)({ name: "is_free", type: "boolean", default: false })
14746
+ (0, import_typeorm98.Column)({ name: "is_free", type: "boolean", default: false })
14482
14747
  ], PlanPricing.prototype, "isFree", 2);
14483
14748
  __decorateClass([
14484
- (0, import_typeorm94.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
14749
+ (0, import_typeorm98.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
14485
14750
  ], PlanPricing.prototype, "stripePriceId", 2);
14486
14751
  __decorateClass([
14487
- (0, import_typeorm94.Column)({ name: "trial_days", type: "smallint", default: 0 })
14752
+ (0, import_typeorm98.Column)({ name: "trial_days", type: "smallint", default: 0 })
14488
14753
  ], PlanPricing.prototype, "trialDays", 2);
14489
14754
  __decorateClass([
14490
- (0, import_typeorm94.Column)({ name: "is_active", type: "boolean", default: true })
14755
+ (0, import_typeorm98.Column)({ name: "is_active", type: "boolean", default: true })
14491
14756
  ], PlanPricing.prototype, "isActive", 2);
14492
14757
  __decorateClass([
14493
- (0, import_typeorm94.BeforeInsert)(),
14494
- (0, import_typeorm94.BeforeUpdate)()
14758
+ (0, import_typeorm98.BeforeInsert)(),
14759
+ (0, import_typeorm98.BeforeUpdate)()
14495
14760
  ], PlanPricing.prototype, "sanitize", 1);
14496
14761
  PlanPricing = __decorateClass([
14497
- (0, import_typeorm94.Entity)("plan_pricings"),
14498
- (0, import_typeorm94.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
14499
- (0, import_typeorm94.Index)("idx_plan_pricings_plan_id", ["planId"]),
14500
- (0, import_typeorm94.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
14501
- (0, import_typeorm94.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
14502
- (0, import_typeorm94.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
14503
- (0, import_typeorm94.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
14504
- (0, import_typeorm94.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
14505
- (0, import_typeorm94.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
14762
+ (0, import_typeorm98.Entity)("plan_pricings"),
14763
+ (0, import_typeorm98.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
14764
+ (0, import_typeorm98.Index)("idx_plan_pricings_plan_id", ["planId"]),
14765
+ (0, import_typeorm98.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
14766
+ (0, import_typeorm98.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
14767
+ (0, import_typeorm98.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
14768
+ (0, import_typeorm98.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
14769
+ (0, import_typeorm98.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
14770
+ (0, import_typeorm98.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
14506
14771
  ], PlanPricing);
14507
14772
 
14508
14773
  // src/entities/plan.entity.ts
@@ -14519,22 +14784,22 @@ var Plan = class extends BaseEntity {
14519
14784
  }
14520
14785
  };
14521
14786
  __decorateClass([
14522
- (0, import_typeorm95.Column)({ name: "name", type: "varchar", length: 100 })
14787
+ (0, import_typeorm99.Column)({ name: "name", type: "varchar", length: 100 })
14523
14788
  ], Plan.prototype, "name", 2);
14524
14789
  __decorateClass([
14525
- (0, import_typeorm95.Column)({ name: "slug", type: "varchar", length: 100 })
14790
+ (0, import_typeorm99.Column)({ name: "slug", type: "varchar", length: 100 })
14526
14791
  ], Plan.prototype, "slug", 2);
14527
14792
  __decorateClass([
14528
- (0, import_typeorm95.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
14793
+ (0, import_typeorm99.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
14529
14794
  ], Plan.prototype, "badgeLabel", 2);
14530
14795
  __decorateClass([
14531
- (0, import_typeorm95.Column)({ name: "sort_order", type: "smallint", default: 0 })
14796
+ (0, import_typeorm99.Column)({ name: "sort_order", type: "smallint", default: 0 })
14532
14797
  ], Plan.prototype, "sortOrder", 2);
14533
14798
  __decorateClass([
14534
- (0, import_typeorm95.Column)({ name: "is_active", type: "boolean", default: true })
14799
+ (0, import_typeorm99.Column)({ name: "is_active", type: "boolean", default: true })
14535
14800
  ], Plan.prototype, "isActive", 2);
14536
14801
  __decorateClass([
14537
- (0, import_typeorm95.Column)({
14802
+ (0, import_typeorm99.Column)({
14538
14803
  name: "plan_type",
14539
14804
  type: "enum",
14540
14805
  enum: PlanTypeEnum,
@@ -14542,31 +14807,31 @@ __decorateClass([
14542
14807
  })
14543
14808
  ], Plan.prototype, "planType", 2);
14544
14809
  __decorateClass([
14545
- (0, import_typeorm95.Column)({ name: "metadata", type: "jsonb", default: {} })
14810
+ (0, import_typeorm99.Column)({ name: "metadata", type: "jsonb", default: {} })
14546
14811
  ], Plan.prototype, "metadata", 2);
14547
14812
  __decorateClass([
14548
- (0, import_typeorm95.BeforeInsert)(),
14549
- (0, import_typeorm95.BeforeUpdate)()
14813
+ (0, import_typeorm99.BeforeInsert)(),
14814
+ (0, import_typeorm99.BeforeUpdate)()
14550
14815
  ], Plan.prototype, "createSlug", 1);
14551
14816
  __decorateClass([
14552
- (0, import_typeorm95.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
14817
+ (0, import_typeorm99.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
14553
14818
  cascade: ["insert", "update"]
14554
14819
  })
14555
14820
  ], Plan.prototype, "features", 2);
14556
14821
  __decorateClass([
14557
- (0, import_typeorm95.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
14822
+ (0, import_typeorm99.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
14558
14823
  cascade: ["insert", "update"]
14559
14824
  })
14560
14825
  ], Plan.prototype, "pricing", 2);
14561
14826
  Plan = __decorateClass([
14562
- (0, import_typeorm95.Entity)("plans"),
14563
- (0, import_typeorm95.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14564
- (0, import_typeorm95.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
14565
- (0, import_typeorm95.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
14827
+ (0, import_typeorm99.Entity)("plans"),
14828
+ (0, import_typeorm99.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14829
+ (0, import_typeorm99.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
14830
+ (0, import_typeorm99.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
14566
14831
  ], Plan);
14567
14832
 
14568
14833
  // src/entities/subscription-feature.entity.ts
14569
- var import_typeorm96 = require("typeorm");
14834
+ var import_typeorm100 = require("typeorm");
14570
14835
  var SubscriptionFeature = class extends BaseEntity {
14571
14836
  toSlug(value) {
14572
14837
  return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
@@ -14581,29 +14846,29 @@ var SubscriptionFeature = class extends BaseEntity {
14581
14846
  }
14582
14847
  };
14583
14848
  __decorateClass([
14584
- (0, import_typeorm96.Column)({ name: "name", type: "varchar", length: 200 })
14849
+ (0, import_typeorm100.Column)({ name: "name", type: "varchar", length: 200 })
14585
14850
  ], SubscriptionFeature.prototype, "name", 2);
14586
14851
  __decorateClass([
14587
- (0, import_typeorm96.Column)({ name: "slug", type: "varchar", length: 100 })
14852
+ (0, import_typeorm100.Column)({ name: "slug", type: "varchar", length: 100 })
14588
14853
  ], SubscriptionFeature.prototype, "slug", 2);
14589
14854
  __decorateClass([
14590
- (0, import_typeorm96.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14855
+ (0, import_typeorm100.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14591
14856
  ], SubscriptionFeature.prototype, "tooltip", 2);
14592
14857
  __decorateClass([
14593
- (0, import_typeorm96.Column)({ name: "sort_order", type: "smallint", default: 0 })
14858
+ (0, import_typeorm100.Column)({ name: "sort_order", type: "smallint", default: 0 })
14594
14859
  ], SubscriptionFeature.prototype, "sortOrder", 2);
14595
14860
  __decorateClass([
14596
- (0, import_typeorm96.Column)({ name: "is_active", type: "boolean", default: true })
14861
+ (0, import_typeorm100.Column)({ name: "is_active", type: "boolean", default: true })
14597
14862
  ], SubscriptionFeature.prototype, "isActive", 2);
14598
14863
  __decorateClass([
14599
- (0, import_typeorm96.BeforeInsert)(),
14600
- (0, import_typeorm96.BeforeUpdate)()
14864
+ (0, import_typeorm100.BeforeInsert)(),
14865
+ (0, import_typeorm100.BeforeUpdate)()
14601
14866
  ], SubscriptionFeature.prototype, "createSlug", 1);
14602
14867
  SubscriptionFeature = __decorateClass([
14603
- (0, import_typeorm96.Entity)("subscription_features"),
14604
- (0, import_typeorm96.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14605
- (0, import_typeorm96.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
14606
- (0, import_typeorm96.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
14868
+ (0, import_typeorm100.Entity)("subscription_features"),
14869
+ (0, import_typeorm100.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14870
+ (0, import_typeorm100.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
14871
+ (0, import_typeorm100.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
14607
14872
  ], SubscriptionFeature);
14608
14873
  // Annotate the CommonJS export names for ESM import in node:
14609
14874
  0 && (module.exports = {
@@ -15030,6 +15295,13 @@ SubscriptionFeature = __decorateClass([
15030
15295
  UpdateTaskDto,
15031
15296
  User,
15032
15297
  UserRMQAdapter,
15298
+ UserSubscription,
15299
+ UserSubscriptionPlan,
15300
+ UserSubscriptionPlanFeature,
15301
+ UserSubscriptionPlanPricing,
15302
+ UserSubscriptionPlanPricingBillingCycleEnum,
15303
+ UserSubscriptionPlanTypeEnum,
15304
+ UserSubscriptionStatusEnum,
15033
15305
  UserTCPAdapter,
15034
15306
  ValidateEmailDto,
15035
15307
  ValidateEmailForLoginDto,