@experts_hub/shared 1.0.691 → 1.0.692

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.mjs CHANGED
@@ -1871,12 +1871,12 @@ FreelancerProfile = __decorateClass([
1871
1871
 
1872
1872
  // src/entities/job.entity.ts
1873
1873
  import {
1874
- Entity as Entity40,
1875
- Column as Column41,
1876
- Index as Index33,
1877
- ManyToOne as ManyToOne39,
1878
- JoinColumn as JoinColumn39,
1879
- OneToMany as OneToMany15
1874
+ Entity as Entity42,
1875
+ Column as Column43,
1876
+ Index as Index35,
1877
+ ManyToOne as ManyToOne41,
1878
+ JoinColumn as JoinColumn41,
1879
+ OneToMany as OneToMany16
1880
1880
  } from "typeorm";
1881
1881
 
1882
1882
  // src/entities/job-skill.entity.ts
@@ -3779,10 +3779,10 @@ Contract = __decorateClass([
3779
3779
  ], Contract);
3780
3780
 
3781
3781
  // src/entities/timesheets.entity.ts
3782
- import { Entity as Entity37, Column as Column38, Index as Index30, JoinColumn as JoinColumn36, ManyToOne as ManyToOne36 } from "typeorm";
3782
+ import { Entity as Entity39, Column as Column40, Index as Index32, JoinColumn as JoinColumn38, ManyToOne as ManyToOne38 } from "typeorm";
3783
3783
 
3784
3784
  // src/entities/task.entity.ts
3785
- import { Entity as Entity36, Column as Column37, Index as Index29, ManyToOne as ManyToOne35, JoinColumn as JoinColumn35, OneToMany as OneToMany14 } from "typeorm";
3785
+ import { Entity as Entity38, Column as Column39, Index as Index31, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37, OneToMany as OneToMany15 } from "typeorm";
3786
3786
 
3787
3787
  // src/entities/task-deliverable.entity.ts
3788
3788
  import { Entity as Entity31, Column as Column32, Index as Index24, ManyToOne as ManyToOne30, JoinColumn as JoinColumn30 } from "typeorm";
@@ -3954,6 +3954,169 @@ TaskLogTime = __decorateClass([
3954
3954
  Entity35("task_log_times")
3955
3955
  ], TaskLogTime);
3956
3956
 
3957
+ // src/entities/task-query.entity.ts
3958
+ import { Entity as Entity37, Column as Column38, Index as Index30, JoinColumn as JoinColumn36, ManyToOne as ManyToOne36, OneToMany as OneToMany14 } from "typeorm";
3959
+
3960
+ // src/entities/task-query-message.entity.ts
3961
+ import { Entity as Entity36, Column as Column37, Index as Index29, JoinColumn as JoinColumn35, ManyToOne as ManyToOne35 } from "typeorm";
3962
+ var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnum2) => {
3963
+ TaskQueryMessageUserTypeEnum2["CLIENT"] = "CLIENT";
3964
+ TaskQueryMessageUserTypeEnum2["FREELANCER"] = "FREELANCER";
3965
+ return TaskQueryMessageUserTypeEnum2;
3966
+ })(TaskQueryMessageUserTypeEnum || {});
3967
+ var TaskQueryMessage = class extends BaseEntity {
3968
+ };
3969
+ __decorateClass([
3970
+ Column37({ name: "task_query_id", type: "integer" }),
3971
+ Index29()
3972
+ ], TaskQueryMessage.prototype, "taskQueryId", 2);
3973
+ __decorateClass([
3974
+ ManyToOne35(() => TaskQuery, (taskQuery) => taskQuery.messages),
3975
+ JoinColumn35({ name: "task_query_id" })
3976
+ ], TaskQueryMessage.prototype, "taskQuery", 2);
3977
+ __decorateClass([
3978
+ Column37({ name: "sender_user_id", type: "integer" }),
3979
+ Index29()
3980
+ ], TaskQueryMessage.prototype, "senderUserId", 2);
3981
+ __decorateClass([
3982
+ ManyToOne35(() => User, (user) => user.taskQueryMessages),
3983
+ JoinColumn35({ name: "sender_user_id" })
3984
+ ], TaskQueryMessage.prototype, "senderUser", 2);
3985
+ __decorateClass([
3986
+ Column37({
3987
+ name: "sender_type",
3988
+ type: "enum",
3989
+ enum: TaskQueryMessageUserTypeEnum
3990
+ })
3991
+ ], TaskQueryMessage.prototype, "senderType", 2);
3992
+ __decorateClass([
3993
+ Column37({ name: "message", type: "varchar", nullable: true })
3994
+ ], TaskQueryMessage.prototype, "message", 2);
3995
+ __decorateClass([
3996
+ Column37({ name: "attachment_url", type: "varchar", nullable: true })
3997
+ ], TaskQueryMessage.prototype, "attachmentUrl", 2);
3998
+ __decorateClass([
3999
+ Column37({ name: "attachment_type", type: "varchar", nullable: true })
4000
+ ], TaskQueryMessage.prototype, "attachmentType", 2);
4001
+ __decorateClass([
4002
+ Column37({ name: "meta", type: "jsonb", nullable: true })
4003
+ ], TaskQueryMessage.prototype, "meta", 2);
4004
+ __decorateClass([
4005
+ Column37({ name: "is_read", type: "boolean", default: false })
4006
+ ], TaskQueryMessage.prototype, "isRead", 2);
4007
+ __decorateClass([
4008
+ Column37({
4009
+ name: "read_at",
4010
+ type: "timestamp with time zone",
4011
+ nullable: true
4012
+ })
4013
+ ], TaskQueryMessage.prototype, "readAt", 2);
4014
+ TaskQueryMessage = __decorateClass([
4015
+ Entity36("task_query_messages")
4016
+ ], TaskQueryMessage);
4017
+
4018
+ // src/entities/task-query.entity.ts
4019
+ var TaskQueryUserTypeEnum = /* @__PURE__ */ ((TaskQueryUserTypeEnum2) => {
4020
+ TaskQueryUserTypeEnum2["CLIENT"] = "CLIENT";
4021
+ TaskQueryUserTypeEnum2["FREELANCER"] = "FREELANCER";
4022
+ return TaskQueryUserTypeEnum2;
4023
+ })(TaskQueryUserTypeEnum || {});
4024
+ var TaskQueryCategoryEnum = /* @__PURE__ */ ((TaskQueryCategoryEnum2) => {
4025
+ TaskQueryCategoryEnum2["DEVELOPMENT_ISSUE"] = "DEVELOPMENT_ISSUE";
4026
+ TaskQueryCategoryEnum2["TESTING_ISSUE"] = "TESTING_ISSUE";
4027
+ TaskQueryCategoryEnum2["OTHER"] = "OTHER";
4028
+ return TaskQueryCategoryEnum2;
4029
+ })(TaskQueryCategoryEnum || {});
4030
+ var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
4031
+ TaskQueryStatusEnum2["OPEN"] = "OPEN";
4032
+ TaskQueryStatusEnum2["ANSWERED"] = "ANSWERED";
4033
+ TaskQueryStatusEnum2["CLOSED"] = "CLOSED";
4034
+ return TaskQueryStatusEnum2;
4035
+ })(TaskQueryStatusEnum || {});
4036
+ var TaskQuery = class extends BaseEntity {
4037
+ };
4038
+ __decorateClass([
4039
+ Column38({ name: "task_id", type: "integer" }),
4040
+ Index30()
4041
+ ], TaskQuery.prototype, "taskId", 2);
4042
+ __decorateClass([
4043
+ ManyToOne36(() => Task, (task) => task.taskQueries),
4044
+ JoinColumn36({ name: "task_id" })
4045
+ ], TaskQuery.prototype, "task", 2);
4046
+ __decorateClass([
4047
+ Column38({ name: "raised_by_user_id", type: "integer" }),
4048
+ Index30()
4049
+ ], TaskQuery.prototype, "raisedByUserId", 2);
4050
+ __decorateClass([
4051
+ ManyToOne36(() => User, (user) => user.raisedTaskQueries),
4052
+ JoinColumn36({ name: "raised_by_user_id" })
4053
+ ], TaskQuery.prototype, "raisedByUser", 2);
4054
+ __decorateClass([
4055
+ Column38({
4056
+ name: "raised_by_type",
4057
+ type: "enum",
4058
+ enum: TaskQueryUserTypeEnum
4059
+ })
4060
+ ], TaskQuery.prototype, "raisedByType", 2);
4061
+ __decorateClass([
4062
+ Column38({ name: "assigned_to_user_id", type: "integer" }),
4063
+ Index30()
4064
+ ], TaskQuery.prototype, "assignedToUserId", 2);
4065
+ __decorateClass([
4066
+ ManyToOne36(() => User, (user) => user.assignedTaskQueries),
4067
+ JoinColumn36({ name: "assigned_to_user_id" })
4068
+ ], TaskQuery.prototype, "assignedToUser", 2);
4069
+ __decorateClass([
4070
+ Column38({
4071
+ name: "assigned_to_type",
4072
+ type: "enum",
4073
+ enum: TaskQueryUserTypeEnum
4074
+ })
4075
+ ], TaskQuery.prototype, "assignedToType", 2);
4076
+ __decorateClass([
4077
+ Column38({
4078
+ name: "query_category",
4079
+ type: "enum",
4080
+ enum: TaskQueryCategoryEnum
4081
+ })
4082
+ ], TaskQuery.prototype, "queryCategory", 2);
4083
+ __decorateClass([
4084
+ Column38({ name: "subject", type: "varchar", nullable: true })
4085
+ ], TaskQuery.prototype, "subject", 2);
4086
+ __decorateClass([
4087
+ Column38({ name: "description", type: "varchar", nullable: true })
4088
+ ], TaskQuery.prototype, "description", 2);
4089
+ __decorateClass([
4090
+ Column38({
4091
+ name: "status",
4092
+ type: "enum",
4093
+ enum: TaskQueryStatusEnum,
4094
+ default: "OPEN" /* OPEN */
4095
+ })
4096
+ ], TaskQuery.prototype, "status", 2);
4097
+ __decorateClass([
4098
+ Column38({
4099
+ name: "last_message_at",
4100
+ type: "timestamp with time zone",
4101
+ nullable: true
4102
+ })
4103
+ ], TaskQuery.prototype, "lastMessageAt", 2);
4104
+ __decorateClass([
4105
+ Column38({ name: "last_message_preview", type: "varchar", nullable: true })
4106
+ ], TaskQuery.prototype, "lastMessagePreview", 2);
4107
+ __decorateClass([
4108
+ Column38({ name: "unread_count_client", type: "integer", default: 0 })
4109
+ ], TaskQuery.prototype, "unreadCountClient", 2);
4110
+ __decorateClass([
4111
+ Column38({ name: "unread_count_freelancer", type: "integer", default: 0 })
4112
+ ], TaskQuery.prototype, "unreadCountFreelancer", 2);
4113
+ __decorateClass([
4114
+ OneToMany14(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
4115
+ ], TaskQuery.prototype, "messages", 2);
4116
+ TaskQuery = __decorateClass([
4117
+ Entity37("task_queries")
4118
+ ], TaskQuery);
4119
+
3957
4120
  // src/entities/task.entity.ts
3958
4121
  var TaskPriorityEnum = /* @__PURE__ */ ((TaskPriorityEnum2) => {
3959
4122
  TaskPriorityEnum2["LOW"] = "LOW";
@@ -3973,37 +4136,37 @@ var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
3973
4136
  var Task = class extends BaseEntity {
3974
4137
  };
3975
4138
  __decorateClass([
3976
- Column37({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
4139
+ Column39({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
3977
4140
  ], Task.prototype, "taskUniqueId", 2);
3978
4141
  __decorateClass([
3979
- Column37({ name: "job_id", type: "integer", nullable: true }),
3980
- Index29()
4142
+ Column39({ name: "job_id", type: "integer", nullable: true }),
4143
+ Index31()
3981
4144
  ], Task.prototype, "jobId", 2);
3982
4145
  __decorateClass([
3983
- ManyToOne35(() => Job, (job) => job.tasks),
3984
- JoinColumn35({ name: "job_id" })
4146
+ ManyToOne37(() => Job, (job) => job.tasks),
4147
+ JoinColumn37({ name: "job_id" })
3985
4148
  ], Task.prototype, "job", 2);
3986
4149
  __decorateClass([
3987
- Column37({ name: "client_id", type: "integer", nullable: true }),
3988
- Index29()
4150
+ Column39({ name: "client_id", type: "integer", nullable: true }),
4151
+ Index31()
3989
4152
  ], Task.prototype, "clientId", 2);
3990
4153
  __decorateClass([
3991
- ManyToOne35(() => User, (user) => user.clientTasks),
3992
- JoinColumn35({ name: "client_id" })
4154
+ ManyToOne37(() => User, (user) => user.clientTasks),
4155
+ JoinColumn37({ name: "client_id" })
3993
4156
  ], Task.prototype, "client", 2);
3994
4157
  __decorateClass([
3995
- Column37({ name: "freelancer_id", type: "integer", nullable: true }),
3996
- Index29()
4158
+ Column39({ name: "freelancer_id", type: "integer", nullable: true }),
4159
+ Index31()
3997
4160
  ], Task.prototype, "freelancerId", 2);
3998
4161
  __decorateClass([
3999
- ManyToOne35(() => User, (user) => user.freelancerTasks),
4000
- JoinColumn35({ name: "freelancer_id" })
4162
+ ManyToOne37(() => User, (user) => user.freelancerTasks),
4163
+ JoinColumn37({ name: "freelancer_id" })
4001
4164
  ], Task.prototype, "freelancer", 2);
4002
4165
  __decorateClass([
4003
- Column37({ name: "task_name", type: "varchar", nullable: true })
4166
+ Column39({ name: "task_name", type: "varchar", nullable: true })
4004
4167
  ], Task.prototype, "taskName", 2);
4005
4168
  __decorateClass([
4006
- Column37({
4169
+ Column39({
4007
4170
  name: "status",
4008
4171
  type: "enum",
4009
4172
  enum: TaskStatusEnum,
@@ -4011,7 +4174,7 @@ __decorateClass([
4011
4174
  })
4012
4175
  ], Task.prototype, "status", 2);
4013
4176
  __decorateClass([
4014
- Column37({
4177
+ Column39({
4015
4178
  name: "priority",
4016
4179
  type: "enum",
4017
4180
  enum: TaskPriorityEnum,
@@ -4019,55 +4182,58 @@ __decorateClass([
4019
4182
  })
4020
4183
  ], Task.prototype, "priority", 2);
4021
4184
  __decorateClass([
4022
- Column37({ name: "description", type: "varchar", nullable: true })
4185
+ Column39({ name: "description", type: "varchar", nullable: true })
4023
4186
  ], Task.prototype, "description", 2);
4024
4187
  __decorateClass([
4025
- Column37({
4188
+ Column39({
4026
4189
  name: "due_date",
4027
4190
  type: "timestamp with time zone",
4028
4191
  nullable: true
4029
4192
  })
4030
4193
  ], Task.prototype, "dueDate", 2);
4031
4194
  __decorateClass([
4032
- Column37({
4195
+ Column39({
4033
4196
  name: "created_on",
4034
4197
  type: "timestamp with time zone",
4035
4198
  nullable: true
4036
4199
  })
4037
4200
  ], Task.prototype, "createdOn", 2);
4038
4201
  __decorateClass([
4039
- Column37({
4202
+ Column39({
4040
4203
  name: "estimate_hours",
4041
4204
  type: "integer",
4042
4205
  nullable: true
4043
4206
  })
4044
4207
  ], Task.prototype, "estimateHours", 2);
4045
4208
  __decorateClass([
4046
- Column37({ name: "client_remarks", type: "varchar", nullable: true })
4209
+ Column39({ name: "client_remarks", type: "varchar", nullable: true })
4047
4210
  ], Task.prototype, "clientRemarks", 2);
4048
4211
  __decorateClass([
4049
- Column37({ name: "freelancer_work_note", type: "varchar", nullable: true })
4212
+ Column39({ name: "freelancer_work_note", type: "varchar", nullable: true })
4050
4213
  ], Task.prototype, "freelancerWorkNote", 2);
4051
4214
  __decorateClass([
4052
- OneToMany14(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
4215
+ OneToMany15(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
4053
4216
  ], Task.prototype, "deliverables", 2);
4054
4217
  __decorateClass([
4055
- OneToMany14(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
4218
+ OneToMany15(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
4056
4219
  ], Task.prototype, "resources", 2);
4057
4220
  __decorateClass([
4058
- OneToMany14(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
4221
+ OneToMany15(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
4059
4222
  ], Task.prototype, "checklistItems", 2);
4060
4223
  __decorateClass([
4061
- OneToMany14(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
4224
+ OneToMany15(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
4062
4225
  ], Task.prototype, "subtasks", 2);
4063
4226
  __decorateClass([
4064
- OneToMany14(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
4227
+ OneToMany15(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
4065
4228
  ], Task.prototype, "timesheets", 2);
4066
4229
  __decorateClass([
4067
- OneToMany14(() => TaskLogTime, (taskLogTime) => taskLogTime.task, { cascade: true })
4230
+ OneToMany15(() => TaskLogTime, (taskLogTime) => taskLogTime.task, { cascade: true })
4068
4231
  ], Task.prototype, "taskLogTimes", 2);
4232
+ __decorateClass([
4233
+ OneToMany15(() => TaskQuery, (taskQuery) => taskQuery.task, { cascade: true })
4234
+ ], Task.prototype, "taskQueries", 2);
4069
4235
  Task = __decorateClass([
4070
- Entity36("tasks")
4236
+ Entity38("tasks")
4071
4237
  ], Task);
4072
4238
 
4073
4239
  // src/entities/timesheets.entity.ts
@@ -4083,150 +4249,150 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
4083
4249
  var Timesheet = class extends BaseEntity {
4084
4250
  };
4085
4251
  __decorateClass([
4086
- Column38({ name: "job_id", type: "integer", nullable: true }),
4087
- Index30()
4252
+ Column40({ name: "job_id", type: "integer", nullable: true }),
4253
+ Index32()
4088
4254
  ], Timesheet.prototype, "jobId", 2);
4089
4255
  __decorateClass([
4090
- ManyToOne36(() => Job, (job) => job.timesheets),
4091
- JoinColumn36({ name: "job_id" })
4256
+ ManyToOne38(() => Job, (job) => job.timesheets),
4257
+ JoinColumn38({ name: "job_id" })
4092
4258
  ], Timesheet.prototype, "job", 2);
4093
4259
  __decorateClass([
4094
- Column38({ name: "client_id", type: "integer", nullable: true }),
4095
- Index30()
4260
+ Column40({ name: "client_id", type: "integer", nullable: true }),
4261
+ Index32()
4096
4262
  ], Timesheet.prototype, "clientId", 2);
4097
4263
  __decorateClass([
4098
- ManyToOne36(() => User, (user) => user.clientTimesheets),
4099
- JoinColumn36({ name: "client_id" })
4264
+ ManyToOne38(() => User, (user) => user.clientTimesheets),
4265
+ JoinColumn38({ name: "client_id" })
4100
4266
  ], Timesheet.prototype, "client", 2);
4101
4267
  __decorateClass([
4102
- Column38({ name: "freelancer_id", type: "integer", nullable: true }),
4103
- Index30()
4268
+ Column40({ name: "freelancer_id", type: "integer", nullable: true }),
4269
+ Index32()
4104
4270
  ], Timesheet.prototype, "freelancerId", 2);
4105
4271
  __decorateClass([
4106
- ManyToOne36(() => User, (user) => user.freelancerTimesheets),
4107
- JoinColumn36({ name: "freelancer_id" })
4272
+ ManyToOne38(() => User, (user) => user.freelancerTimesheets),
4273
+ JoinColumn38({ name: "freelancer_id" })
4108
4274
  ], Timesheet.prototype, "freelancer", 2);
4109
4275
  __decorateClass([
4110
- Column38({
4276
+ Column40({
4111
4277
  name: "start_date",
4112
4278
  type: "date",
4113
4279
  nullable: true
4114
4280
  })
4115
4281
  ], Timesheet.prototype, "startDate", 2);
4116
4282
  __decorateClass([
4117
- Column38({
4283
+ Column40({
4118
4284
  name: "end_date",
4119
4285
  type: "date",
4120
4286
  nullable: true
4121
4287
  })
4122
4288
  ], Timesheet.prototype, "endDate", 2);
4123
4289
  __decorateClass([
4124
- Column38({ name: "start_time", type: "varchar", nullable: true })
4290
+ Column40({ name: "start_time", type: "varchar", nullable: true })
4125
4291
  ], Timesheet.prototype, "startTime", 2);
4126
4292
  __decorateClass([
4127
- Column38({ name: "end_time", type: "varchar", nullable: true })
4293
+ Column40({ name: "end_time", type: "varchar", nullable: true })
4128
4294
  ], Timesheet.prototype, "endTime", 2);
4129
4295
  __decorateClass([
4130
- Column38({ name: "worked_hours", type: "varchar", nullable: true })
4296
+ Column40({ name: "worked_hours", type: "varchar", nullable: true })
4131
4297
  ], Timesheet.prototype, "workedHours", 2);
4132
4298
  __decorateClass([
4133
- Column38({ name: "task_id", type: "integer", nullable: true })
4299
+ Column40({ name: "task_id", type: "integer", nullable: true })
4134
4300
  ], Timesheet.prototype, "taskId", 2);
4135
4301
  __decorateClass([
4136
- ManyToOne36(() => Task, (task) => task.timesheets),
4137
- JoinColumn36({ name: "task_id" })
4302
+ ManyToOne38(() => Task, (task) => task.timesheets),
4303
+ JoinColumn38({ name: "task_id" })
4138
4304
  ], Timesheet.prototype, "task", 2);
4139
4305
  __decorateClass([
4140
- Column38({ name: "task_name", type: "varchar", nullable: true })
4306
+ Column40({ name: "task_name", type: "varchar", nullable: true })
4141
4307
  ], Timesheet.prototype, "taskName", 2);
4142
4308
  __decorateClass([
4143
- Column38({ name: "description", type: "varchar", nullable: true })
4309
+ Column40({ name: "description", type: "varchar", nullable: true })
4144
4310
  ], Timesheet.prototype, "description", 2);
4145
4311
  __decorateClass([
4146
- Column38({ name: "week_start_date", type: "date", nullable: true })
4312
+ Column40({ name: "week_start_date", type: "date", nullable: true })
4147
4313
  ], Timesheet.prototype, "weekStartDate", 2);
4148
4314
  __decorateClass([
4149
- Column38({ name: "week_end_date", type: "date", nullable: true })
4315
+ Column40({ name: "week_end_date", type: "date", nullable: true })
4150
4316
  ], Timesheet.prototype, "weekEndDate", 2);
4151
4317
  __decorateClass([
4152
- Column38({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4318
+ Column40({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4153
4319
  ], Timesheet.prototype, "rejectedAt", 2);
4154
4320
  __decorateClass([
4155
- Column38({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4321
+ Column40({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4156
4322
  ], Timesheet.prototype, "submittedAt", 2);
4157
4323
  __decorateClass([
4158
- Column38({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4324
+ Column40({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4159
4325
  ], Timesheet.prototype, "resubmittedAt", 2);
4160
4326
  __decorateClass([
4161
- Column38({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4327
+ Column40({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4162
4328
  ], Timesheet.prototype, "approvedAt", 2);
4163
4329
  __decorateClass([
4164
- Column38({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4330
+ Column40({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4165
4331
  ], Timesheet.prototype, "status", 2);
4166
4332
  __decorateClass([
4167
- Column38({ name: "client_send_back_reason", type: "varchar", nullable: true })
4333
+ Column40({ name: "client_send_back_reason", type: "varchar", nullable: true })
4168
4334
  ], Timesheet.prototype, "clientSendBackReason", 2);
4169
4335
  Timesheet = __decorateClass([
4170
- Entity37("timesheets")
4336
+ Entity39("timesheets")
4171
4337
  ], Timesheet);
4172
4338
 
4173
4339
  // src/entities/job-location.entity.ts
4174
4340
  import {
4175
- Entity as Entity38,
4176
- Column as Column39,
4177
- ManyToOne as ManyToOne37,
4178
- JoinColumn as JoinColumn37,
4179
- Index as Index31
4341
+ Entity as Entity40,
4342
+ Column as Column41,
4343
+ ManyToOne as ManyToOne39,
4344
+ JoinColumn as JoinColumn39,
4345
+ Index as Index33
4180
4346
  } from "typeorm";
4181
4347
  var JobLocation = class extends BaseEntity {
4182
4348
  };
4183
4349
  __decorateClass([
4184
- Column39({ name: "job_id", type: "integer", nullable: false }),
4185
- Index31()
4350
+ Column41({ name: "job_id", type: "integer", nullable: false }),
4351
+ Index33()
4186
4352
  ], JobLocation.prototype, "jobId", 2);
4187
4353
  __decorateClass([
4188
- ManyToOne37(() => Job, (job) => job.jobLocations),
4189
- JoinColumn37({ name: "job_id" })
4354
+ ManyToOne39(() => Job, (job) => job.jobLocations),
4355
+ JoinColumn39({ name: "job_id" })
4190
4356
  ], JobLocation.prototype, "job", 2);
4191
4357
  __decorateClass([
4192
- Column39({ name: "country_id", type: "int", nullable: false })
4358
+ Column41({ name: "country_id", type: "int", nullable: false })
4193
4359
  ], JobLocation.prototype, "countryId", 2);
4194
4360
  __decorateClass([
4195
- Column39({ name: "country_name", type: "varchar", nullable: true })
4361
+ Column41({ name: "country_name", type: "varchar", nullable: true })
4196
4362
  ], JobLocation.prototype, "countryName", 2);
4197
4363
  __decorateClass([
4198
- ManyToOne37(() => Country),
4199
- JoinColumn37({ name: "country_id" })
4364
+ ManyToOne39(() => Country),
4365
+ JoinColumn39({ name: "country_id" })
4200
4366
  ], JobLocation.prototype, "country", 2);
4201
4367
  __decorateClass([
4202
- Column39({ name: "state_id", type: "int", nullable: false })
4368
+ Column41({ name: "state_id", type: "int", nullable: false })
4203
4369
  ], JobLocation.prototype, "stateId", 2);
4204
4370
  __decorateClass([
4205
- Column39({ name: "state_name", type: "varchar", nullable: true })
4371
+ Column41({ name: "state_name", type: "varchar", nullable: true })
4206
4372
  ], JobLocation.prototype, "stateName", 2);
4207
4373
  __decorateClass([
4208
- ManyToOne37(() => State),
4209
- JoinColumn37({ name: "state_id" })
4374
+ ManyToOne39(() => State),
4375
+ JoinColumn39({ name: "state_id" })
4210
4376
  ], JobLocation.prototype, "state", 2);
4211
4377
  __decorateClass([
4212
- Column39({ name: "city_id", type: "int", nullable: false })
4378
+ Column41({ name: "city_id", type: "int", nullable: false })
4213
4379
  ], JobLocation.prototype, "cityId", 2);
4214
4380
  __decorateClass([
4215
- Column39({ name: "city_name", type: "varchar", nullable: true })
4381
+ Column41({ name: "city_name", type: "varchar", nullable: true })
4216
4382
  ], JobLocation.prototype, "cityName", 2);
4217
4383
  __decorateClass([
4218
- ManyToOne37(() => City),
4219
- JoinColumn37({ name: "city_id" })
4384
+ ManyToOne39(() => City),
4385
+ JoinColumn39({ name: "city_id" })
4220
4386
  ], JobLocation.prototype, "city", 2);
4221
4387
  __decorateClass([
4222
- Column39({ name: "location_wise_openings", type: "int", default: 0 })
4388
+ Column41({ name: "location_wise_openings", type: "int", default: 0 })
4223
4389
  ], JobLocation.prototype, "locationWiseOpenings", 2);
4224
4390
  JobLocation = __decorateClass([
4225
- Entity38("job_locations")
4391
+ Entity40("job_locations")
4226
4392
  ], JobLocation);
4227
4393
 
4228
4394
  // src/entities/rating.entity.ts
4229
- import { Entity as Entity39, Column as Column40, ManyToOne as ManyToOne38, JoinColumn as JoinColumn38, Index as Index32 } from "typeorm";
4395
+ import { Entity as Entity41, Column as Column42, ManyToOne as ManyToOne40, JoinColumn as JoinColumn40, Index as Index34 } from "typeorm";
4230
4396
  var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
4231
4397
  RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
4232
4398
  RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
@@ -4235,31 +4401,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
4235
4401
  var Rating = class extends BaseEntity {
4236
4402
  };
4237
4403
  __decorateClass([
4238
- Column40({ name: "reviewer_id", type: "integer" }),
4239
- Index32()
4404
+ Column42({ name: "reviewer_id", type: "integer" }),
4405
+ Index34()
4240
4406
  ], Rating.prototype, "reviewerId", 2);
4241
4407
  __decorateClass([
4242
- ManyToOne38(() => User, { onDelete: "CASCADE" }),
4243
- JoinColumn38({ name: "reviewer_id" })
4408
+ ManyToOne40(() => User, { onDelete: "CASCADE" }),
4409
+ JoinColumn40({ name: "reviewer_id" })
4244
4410
  ], Rating.prototype, "reviewer", 2);
4245
4411
  __decorateClass([
4246
- Column40({ name: "reviewee_id", type: "integer" }),
4247
- Index32()
4412
+ Column42({ name: "reviewee_id", type: "integer" }),
4413
+ Index34()
4248
4414
  ], Rating.prototype, "revieweeId", 2);
4249
4415
  __decorateClass([
4250
- ManyToOne38(() => User, { onDelete: "CASCADE" }),
4251
- JoinColumn38({ name: "reviewee_id" })
4416
+ ManyToOne40(() => User, { onDelete: "CASCADE" }),
4417
+ JoinColumn40({ name: "reviewee_id" })
4252
4418
  ], Rating.prototype, "reviewee", 2);
4253
4419
  __decorateClass([
4254
- Column40({ name: "job_id", type: "integer" }),
4255
- Index32()
4420
+ Column42({ name: "job_id", type: "integer" }),
4421
+ Index34()
4256
4422
  ], Rating.prototype, "jobId", 2);
4257
4423
  __decorateClass([
4258
- ManyToOne38(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
4259
- JoinColumn38({ name: "job_id" })
4424
+ ManyToOne40(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
4425
+ JoinColumn40({ name: "job_id" })
4260
4426
  ], Rating.prototype, "job", 2);
4261
4427
  __decorateClass([
4262
- Column40({
4428
+ Column42({
4263
4429
  name: "rating_type",
4264
4430
  type: "enum",
4265
4431
  enum: RatingTypeEnum,
@@ -4267,67 +4433,67 @@ __decorateClass([
4267
4433
  })
4268
4434
  ], Rating.prototype, "ratingType", 2);
4269
4435
  __decorateClass([
4270
- Column40({ name: "reviewer_comment", type: "text", nullable: true })
4436
+ Column42({ name: "reviewer_comment", type: "text", nullable: true })
4271
4437
  ], Rating.prototype, "reviewerComment", 2);
4272
4438
  __decorateClass([
4273
- Column40({
4439
+ Column42({
4274
4440
  name: "overall_experience",
4275
4441
  type: "float",
4276
4442
  default: 0
4277
4443
  })
4278
4444
  ], Rating.prototype, "overAllExperience", 2);
4279
4445
  __decorateClass([
4280
- Column40({
4446
+ Column42({
4281
4447
  name: "work_quality",
4282
4448
  type: "float",
4283
4449
  default: 0
4284
4450
  })
4285
4451
  ], Rating.prototype, "workQuality", 2);
4286
4452
  __decorateClass([
4287
- Column40({
4453
+ Column42({
4288
4454
  name: "one_time_delivery",
4289
4455
  type: "float",
4290
4456
  default: 0
4291
4457
  })
4292
4458
  ], Rating.prototype, "oneTimeDelivery", 2);
4293
4459
  __decorateClass([
4294
- Column40({
4460
+ Column42({
4295
4461
  name: "understaning",
4296
4462
  type: "float",
4297
4463
  default: 0
4298
4464
  })
4299
4465
  ], Rating.prototype, "understaning", 2);
4300
4466
  __decorateClass([
4301
- Column40({
4467
+ Column42({
4302
4468
  name: "communication",
4303
4469
  type: "float",
4304
4470
  default: 0
4305
4471
  })
4306
4472
  ], Rating.prototype, "communication", 2);
4307
4473
  __decorateClass([
4308
- Column40({
4474
+ Column42({
4309
4475
  name: "skill_utilized",
4310
4476
  type: "float",
4311
4477
  default: 0
4312
4478
  })
4313
4479
  ], Rating.prototype, "skillUtilized", 2);
4314
4480
  __decorateClass([
4315
- Column40({ name: "communication_clarity", type: "float", default: 0 })
4481
+ Column42({ name: "communication_clarity", type: "float", default: 0 })
4316
4482
  ], Rating.prototype, "communicationClarity", 2);
4317
4483
  __decorateClass([
4318
- Column40({ name: "requirements_clarity", type: "float", default: 0 })
4484
+ Column42({ name: "requirements_clarity", type: "float", default: 0 })
4319
4485
  ], Rating.prototype, "requirementsClarity", 2);
4320
4486
  __decorateClass([
4321
- Column40({ name: "responsiveness", type: "float", default: 0 })
4487
+ Column42({ name: "responsiveness", type: "float", default: 0 })
4322
4488
  ], Rating.prototype, "responsiveness", 2);
4323
4489
  __decorateClass([
4324
- Column40({ name: "payment_promptness", type: "float", default: 0 })
4490
+ Column42({ name: "payment_promptness", type: "float", default: 0 })
4325
4491
  ], Rating.prototype, "paymentPromptness", 2);
4326
4492
  __decorateClass([
4327
- Column40({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4493
+ Column42({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4328
4494
  ], Rating.prototype, "responsibilitiesAndExpectations", 2);
4329
4495
  Rating = __decorateClass([
4330
- Entity39("ratings")
4496
+ Entity41("ratings")
4331
4497
  ], Rating);
4332
4498
 
4333
4499
  // src/entities/job.entity.ts
@@ -4382,58 +4548,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
4382
4548
  var Job = class extends BaseEntity {
4383
4549
  };
4384
4550
  __decorateClass([
4385
- Column41({ name: "job_id", type: "varchar", unique: true, nullable: true })
4551
+ Column43({ name: "job_id", type: "varchar", unique: true, nullable: true })
4386
4552
  ], Job.prototype, "jobId", 2);
4387
4553
  // individual index to find jobs by user
4388
4554
  __decorateClass([
4389
- Column41({ name: "user_id", type: "integer", nullable: true }),
4390
- Index33()
4555
+ Column43({ name: "user_id", type: "integer", nullable: true }),
4556
+ Index35()
4391
4557
  ], Job.prototype, "userId", 2);
4392
4558
  __decorateClass([
4393
- ManyToOne39(() => User, (user) => user.jobs),
4394
- JoinColumn39({ name: "user_id" })
4559
+ ManyToOne41(() => User, (user) => user.jobs),
4560
+ JoinColumn41({ name: "user_id" })
4395
4561
  ], Job.prototype, "user", 2);
4396
4562
  __decorateClass([
4397
- Column41({ name: "country_id", type: "int", nullable: true })
4563
+ Column43({ name: "country_id", type: "int", nullable: true })
4398
4564
  ], Job.prototype, "countryId", 2);
4399
4565
  __decorateClass([
4400
- ManyToOne39(() => Country),
4401
- JoinColumn39({ name: "country_id" })
4566
+ ManyToOne41(() => Country),
4567
+ JoinColumn41({ name: "country_id" })
4402
4568
  ], Job.prototype, "country", 2);
4403
4569
  __decorateClass([
4404
- Column41({ name: "state_id", type: "int", nullable: true })
4570
+ Column43({ name: "state_id", type: "int", nullable: true })
4405
4571
  ], Job.prototype, "stateId", 2);
4406
4572
  __decorateClass([
4407
- ManyToOne39(() => State),
4408
- JoinColumn39({ name: "state_id" })
4573
+ ManyToOne41(() => State),
4574
+ JoinColumn41({ name: "state_id" })
4409
4575
  ], Job.prototype, "state", 2);
4410
4576
  __decorateClass([
4411
- Column41({ name: "city_id", type: "int", nullable: true })
4577
+ Column43({ name: "city_id", type: "int", nullable: true })
4412
4578
  ], Job.prototype, "cityId", 2);
4413
4579
  __decorateClass([
4414
- ManyToOne39(() => City),
4415
- JoinColumn39({ name: "city_id" })
4580
+ ManyToOne41(() => City),
4581
+ JoinColumn41({ name: "city_id" })
4416
4582
  ], Job.prototype, "city", 2);
4417
4583
  __decorateClass([
4418
- Column41({ name: "job_role", type: "varchar", nullable: true })
4584
+ Column43({ name: "job_role", type: "varchar", nullable: true })
4419
4585
  ], Job.prototype, "jobRole", 2);
4420
4586
  __decorateClass([
4421
- Column41({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4587
+ Column43({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4422
4588
  ], Job.prototype, "jobRoleCanonicalName", 2);
4423
4589
  __decorateClass([
4424
- Column41({ name: "project_name", type: "varchar", nullable: true })
4590
+ Column43({ name: "project_name", type: "varchar", nullable: true })
4425
4591
  ], Job.prototype, "projectName", 2);
4426
4592
  __decorateClass([
4427
- Column41({ name: "note", type: "varchar", nullable: true })
4593
+ Column43({ name: "note", type: "varchar", nullable: true })
4428
4594
  ], Job.prototype, "note", 2);
4429
4595
  __decorateClass([
4430
- Column41({ name: "openings", type: "integer", default: 0 })
4596
+ Column43({ name: "openings", type: "integer", default: 0 })
4431
4597
  ], Job.prototype, "openings", 2);
4432
4598
  __decorateClass([
4433
- Column41({ name: "utilised_openings", type: "integer", default: 0 })
4599
+ Column43({ name: "utilised_openings", type: "integer", default: 0 })
4434
4600
  ], Job.prototype, "utilisedOpenings", 2);
4435
4601
  __decorateClass([
4436
- Column41({
4602
+ Column43({
4437
4603
  name: "location",
4438
4604
  type: "enum",
4439
4605
  enum: JobLocationEnum,
@@ -4441,7 +4607,7 @@ __decorateClass([
4441
4607
  })
4442
4608
  ], Job.prototype, "location", 2);
4443
4609
  __decorateClass([
4444
- Column41({
4610
+ Column43({
4445
4611
  name: "type_of_employment",
4446
4612
  type: "enum",
4447
4613
  enum: TypeOfEmploymentEnum,
@@ -4449,7 +4615,7 @@ __decorateClass([
4449
4615
  })
4450
4616
  ], Job.prototype, "typeOfEmployment", 2);
4451
4617
  __decorateClass([
4452
- Column41({
4618
+ Column43({
4453
4619
  name: "billing_cycle",
4454
4620
  type: "enum",
4455
4621
  enum: BillingCycleEnum,
@@ -4457,10 +4623,10 @@ __decorateClass([
4457
4623
  })
4458
4624
  ], Job.prototype, "billingCycle", 2);
4459
4625
  __decorateClass([
4460
- Column41({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4626
+ Column43({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4461
4627
  ], Job.prototype, "academicQualification", 2);
4462
4628
  __decorateClass([
4463
- Column41({
4629
+ Column43({
4464
4630
  name: "type_of_experience",
4465
4631
  type: "enum",
4466
4632
  enum: typeOfExperienceEnum,
@@ -4468,22 +4634,22 @@ __decorateClass([
4468
4634
  })
4469
4635
  ], Job.prototype, "typeOfExperience", 2);
4470
4636
  __decorateClass([
4471
- Column41({ name: "years_of_experience", type: "varchar", nullable: true })
4637
+ Column43({ name: "years_of_experience", type: "varchar", nullable: true })
4472
4638
  ], Job.prototype, "yearsOfExperience", 2);
4473
4639
  __decorateClass([
4474
- Column41({ name: "years_of_experience_from", type: "varchar", nullable: true })
4640
+ Column43({ name: "years_of_experience_from", type: "varchar", nullable: true })
4475
4641
  ], Job.prototype, "yearsOfExperienceFrom", 2);
4476
4642
  __decorateClass([
4477
- Column41({ name: "years_of_experience_to", type: "varchar", nullable: true })
4643
+ Column43({ name: "years_of_experience_to", type: "varchar", nullable: true })
4478
4644
  ], Job.prototype, "yearsOfExperienceTo", 2);
4479
4645
  __decorateClass([
4480
- Column41({ name: "business_industry", type: "varchar", nullable: true })
4646
+ Column43({ name: "business_industry", type: "varchar", nullable: true })
4481
4647
  ], Job.prototype, "businessIndustry", 2);
4482
4648
  __decorateClass([
4483
- Column41({ name: "currency", type: "varchar", default: "USD" })
4649
+ Column43({ name: "currency", type: "varchar", default: "USD" })
4484
4650
  ], Job.prototype, "currency", 2);
4485
4651
  __decorateClass([
4486
- Column41({
4652
+ Column43({
4487
4653
  name: "expected_salary_from",
4488
4654
  type: "decimal",
4489
4655
  precision: 10,
@@ -4492,14 +4658,14 @@ __decorateClass([
4492
4658
  })
4493
4659
  ], Job.prototype, "expectedSalaryFrom", 2);
4494
4660
  __decorateClass([
4495
- Column41({
4661
+ Column43({
4496
4662
  name: "hide_expected_salary_from",
4497
4663
  type: "boolean",
4498
4664
  default: false
4499
4665
  })
4500
4666
  ], Job.prototype, "hideExpectedSalaryFrom", 2);
4501
4667
  __decorateClass([
4502
- Column41({
4668
+ Column43({
4503
4669
  name: "expected_salary_to",
4504
4670
  type: "decimal",
4505
4671
  precision: 10,
@@ -4508,14 +4674,14 @@ __decorateClass([
4508
4674
  })
4509
4675
  ], Job.prototype, "expectedSalaryTo", 2);
4510
4676
  __decorateClass([
4511
- Column41({
4677
+ Column43({
4512
4678
  name: "hide_expected_salary_to",
4513
4679
  type: "boolean",
4514
4680
  default: false
4515
4681
  })
4516
4682
  ], Job.prototype, "hideExpectedSalaryTo", 2);
4517
4683
  __decorateClass([
4518
- Column41({
4684
+ Column43({
4519
4685
  name: "expected_annual_budget_from",
4520
4686
  type: "decimal",
4521
4687
  precision: 10,
@@ -4524,14 +4690,14 @@ __decorateClass([
4524
4690
  })
4525
4691
  ], Job.prototype, "expectedAnnualBudgetFrom", 2);
4526
4692
  __decorateClass([
4527
- Column41({
4693
+ Column43({
4528
4694
  name: "hide_expected_annual_budget_from",
4529
4695
  type: "boolean",
4530
4696
  default: false
4531
4697
  })
4532
4698
  ], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
4533
4699
  __decorateClass([
4534
- Column41({
4700
+ Column43({
4535
4701
  name: "expected_annual_budget_to",
4536
4702
  type: "decimal",
4537
4703
  precision: 10,
@@ -4540,32 +4706,32 @@ __decorateClass([
4540
4706
  })
4541
4707
  ], Job.prototype, "expectedAnnualBudgetTo", 2);
4542
4708
  __decorateClass([
4543
- Column41({
4709
+ Column43({
4544
4710
  name: "hide_expected_annual_budget_to",
4545
4711
  type: "boolean",
4546
4712
  default: false
4547
4713
  })
4548
4714
  ], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
4549
4715
  __decorateClass([
4550
- Column41({ name: "years", type: "varchar", nullable: true })
4716
+ Column43({ name: "years", type: "varchar", nullable: true })
4551
4717
  ], Job.prototype, "years", 2);
4552
4718
  __decorateClass([
4553
- Column41({ name: "months", type: "varchar", nullable: true })
4719
+ Column43({ name: "months", type: "varchar", nullable: true })
4554
4720
  ], Job.prototype, "months", 2);
4555
4721
  __decorateClass([
4556
- Column41({ name: "weeks", type: "varchar", nullable: true })
4722
+ Column43({ name: "weeks", type: "varchar", nullable: true })
4557
4723
  ], Job.prototype, "weeks", 2);
4558
4724
  __decorateClass([
4559
- Column41({ name: "days", type: "varchar", nullable: true })
4725
+ Column43({ name: "days", type: "varchar", nullable: true })
4560
4726
  ], Job.prototype, "days", 2);
4561
4727
  __decorateClass([
4562
- Column41({ name: "tentative_start_date", type: "date", nullable: true })
4728
+ Column43({ name: "tentative_start_date", type: "date", nullable: true })
4563
4729
  ], Job.prototype, "tentativeStartDate", 2);
4564
4730
  __decorateClass([
4565
- Column41({ name: "tentative_end_date", type: "date", nullable: true })
4731
+ Column43({ name: "tentative_end_date", type: "date", nullable: true })
4566
4732
  ], Job.prototype, "tentativeEndDate", 2);
4567
4733
  __decorateClass([
4568
- Column41({
4734
+ Column43({
4569
4735
  name: "duration_type",
4570
4736
  type: "enum",
4571
4737
  enum: DurationTypeEnum,
@@ -4573,10 +4739,10 @@ __decorateClass([
4573
4739
  })
4574
4740
  ], Job.prototype, "durationType", 2);
4575
4741
  __decorateClass([
4576
- Column41({ name: "duration", type: "varchar", nullable: true })
4742
+ Column43({ name: "duration", type: "varchar", nullable: true })
4577
4743
  ], Job.prototype, "duration", 2);
4578
4744
  __decorateClass([
4579
- Column41({
4745
+ Column43({
4580
4746
  name: "number_of_hours",
4581
4747
  type: "decimal",
4582
4748
  precision: 4,
@@ -4585,13 +4751,13 @@ __decorateClass([
4585
4751
  })
4586
4752
  ], Job.prototype, "numberOfHours", 2);
4587
4753
  __decorateClass([
4588
- Column41({ name: "description", type: "varchar", nullable: true })
4754
+ Column43({ name: "description", type: "varchar", nullable: true })
4589
4755
  ], Job.prototype, "description", 2);
4590
4756
  __decorateClass([
4591
- Column41({ name: "additional_comment", type: "varchar", nullable: true })
4757
+ Column43({ name: "additional_comment", type: "varchar", nullable: true })
4592
4758
  ], Job.prototype, "additionalComment", 2);
4593
4759
  __decorateClass([
4594
- Column41({
4760
+ Column43({
4595
4761
  name: "onboarding_tat",
4596
4762
  type: "varchar",
4597
4763
  length: 50,
@@ -4599,17 +4765,17 @@ __decorateClass([
4599
4765
  })
4600
4766
  ], Job.prototype, "onboardingTat", 2);
4601
4767
  __decorateClass([
4602
- Column41({
4768
+ Column43({
4603
4769
  name: "candidate_communication_skills",
4604
4770
  type: "varchar",
4605
4771
  nullable: true
4606
4772
  })
4607
4773
  ], Job.prototype, "candidateCommunicationSkills", 2);
4608
4774
  __decorateClass([
4609
- Column41({ name: "deal_breakers", type: "jsonb", nullable: true })
4775
+ Column43({ name: "deal_breakers", type: "jsonb", nullable: true })
4610
4776
  ], Job.prototype, "dealBreakers", 2);
4611
4777
  __decorateClass([
4612
- Column41({
4778
+ Column43({
4613
4779
  name: "step_completed",
4614
4780
  type: "enum",
4615
4781
  enum: Step,
@@ -4617,7 +4783,7 @@ __decorateClass([
4617
4783
  })
4618
4784
  ], Job.prototype, "stepCompleted", 2);
4619
4785
  __decorateClass([
4620
- Column41({
4786
+ Column43({
4621
4787
  name: "status",
4622
4788
  type: "enum",
4623
4789
  enum: JobStatusEnum,
@@ -4625,43 +4791,43 @@ __decorateClass([
4625
4791
  })
4626
4792
  ], Job.prototype, "status", 2);
4627
4793
  __decorateClass([
4628
- Column41({ name: "viewed_count", type: "integer", default: 0 })
4794
+ Column43({ name: "viewed_count", type: "integer", default: 0 })
4629
4795
  ], Job.prototype, "viewedCount", 2);
4630
4796
  __decorateClass([
4631
- Column41({ name: "application_count", type: "integer", default: 0 })
4797
+ Column43({ name: "application_count", type: "integer", default: 0 })
4632
4798
  ], Job.prototype, "applicationCount", 2);
4633
4799
  __decorateClass([
4634
- Column41({ name: "is_contract_signed", type: "boolean", default: false })
4800
+ Column43({ name: "is_contract_signed", type: "boolean", default: false })
4635
4801
  ], Job.prototype, "isContractSigned", 2);
4636
4802
  __decorateClass([
4637
- Column41({ name: "is_interview_created", type: "boolean", default: false })
4803
+ Column43({ name: "is_interview_created", type: "boolean", default: false })
4638
4804
  ], Job.prototype, "isInterviewCreated", 2);
4639
4805
  __decorateClass([
4640
- Column41({ name: "is_job_created_via_ai", type: "boolean", default: false })
4806
+ Column43({ name: "is_job_created_via_ai", type: "boolean", default: false })
4641
4807
  ], Job.prototype, "isJobCreatedViaAI", 2);
4642
4808
  __decorateClass([
4643
- OneToMany15(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4809
+ OneToMany16(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4644
4810
  ], Job.prototype, "interviewInvites", 2);
4645
4811
  __decorateClass([
4646
- OneToMany15(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4812
+ OneToMany16(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4647
4813
  ], Job.prototype, "jobSkills", 2);
4648
4814
  __decorateClass([
4649
- OneToMany15(() => JobApplication, (jobApplication) => jobApplication.job, {
4815
+ OneToMany16(() => JobApplication, (jobApplication) => jobApplication.job, {
4650
4816
  cascade: true
4651
4817
  })
4652
4818
  ], Job.prototype, "jobApplications", 2);
4653
4819
  __decorateClass([
4654
- OneToMany15(() => Interview, (interview) => interview.job, {
4820
+ OneToMany16(() => Interview, (interview) => interview.job, {
4655
4821
  cascade: true
4656
4822
  })
4657
4823
  ], Job.prototype, "interviews", 2);
4658
4824
  __decorateClass([
4659
- OneToMany15(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4825
+ OneToMany16(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4660
4826
  cascade: true
4661
4827
  })
4662
4828
  ], Job.prototype, "f2fInterviews", 2);
4663
4829
  __decorateClass([
4664
- OneToMany15(
4830
+ OneToMany16(
4665
4831
  () => JobRecommendation,
4666
4832
  (jobRecommendation) => jobRecommendation.job,
4667
4833
  {
@@ -4670,69 +4836,69 @@ __decorateClass([
4670
4836
  )
4671
4837
  ], Job.prototype, "recommendations", 2);
4672
4838
  __decorateClass([
4673
- OneToMany15(() => ContractSummary, (contractSummary) => contractSummary.job, {
4839
+ OneToMany16(() => ContractSummary, (contractSummary) => contractSummary.job, {
4674
4840
  cascade: true
4675
4841
  })
4676
4842
  ], Job.prototype, "contractSummaries", 2);
4677
4843
  __decorateClass([
4678
- OneToMany15(() => Contract, (contract) => contract.job, {
4844
+ OneToMany16(() => Contract, (contract) => contract.job, {
4679
4845
  cascade: true
4680
4846
  })
4681
4847
  ], Job.prototype, "contracts", 2);
4682
4848
  __decorateClass([
4683
- OneToMany15(() => Hiring, (hiring) => hiring.job, {
4849
+ OneToMany16(() => Hiring, (hiring) => hiring.job, {
4684
4850
  cascade: true
4685
4851
  })
4686
4852
  ], Job.prototype, "hirings", 2);
4687
4853
  __decorateClass([
4688
- OneToMany15(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4854
+ OneToMany16(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4689
4855
  cascade: true
4690
4856
  })
4691
4857
  ], Job.prototype, "escrowWallets", 2);
4692
4858
  __decorateClass([
4693
- OneToMany15(() => Timesheet, (timesheet) => timesheet.job, {
4859
+ OneToMany16(() => Timesheet, (timesheet) => timesheet.job, {
4694
4860
  cascade: true
4695
4861
  })
4696
4862
  ], Job.prototype, "timesheets", 2);
4697
4863
  __decorateClass([
4698
- OneToMany15(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4864
+ OneToMany16(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4699
4865
  cascade: true
4700
4866
  })
4701
4867
  ], Job.prototype, "timesheetLine", 2);
4702
4868
  __decorateClass([
4703
- OneToMany15(() => Invoice, (invoice) => invoice.job, {
4869
+ OneToMany16(() => Invoice, (invoice) => invoice.job, {
4704
4870
  cascade: true
4705
4871
  })
4706
4872
  ], Job.prototype, "invoice", 2);
4707
4873
  __decorateClass([
4708
- OneToMany15(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4874
+ OneToMany16(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4709
4875
  ], Job.prototype, "clientCandidatePreferences", 2);
4710
4876
  __decorateClass([
4711
- OneToMany15(() => JobLocation, (jobLocation) => jobLocation.job, {
4877
+ OneToMany16(() => JobLocation, (jobLocation) => jobLocation.job, {
4712
4878
  cascade: true
4713
4879
  })
4714
4880
  ], Job.prototype, "jobLocations", 2);
4715
4881
  __decorateClass([
4716
- OneToMany15(() => Rating, (rating) => rating.job, {
4882
+ OneToMany16(() => Rating, (rating) => rating.job, {
4717
4883
  cascade: true
4718
4884
  })
4719
4885
  ], Job.prototype, "ratings", 2);
4720
4886
  __decorateClass([
4721
- OneToMany15(() => Task, (task) => task.job, {
4887
+ OneToMany16(() => Task, (task) => task.job, {
4722
4888
  cascade: true
4723
4889
  })
4724
4890
  ], Job.prototype, "tasks", 2);
4725
4891
  Job = __decorateClass([
4726
- Entity40("jobs")
4892
+ Entity42("jobs")
4727
4893
  ], Job);
4728
4894
 
4729
4895
  // src/entities/bank-details.entity.ts
4730
4896
  import {
4731
- Entity as Entity41,
4732
- Column as Column42,
4733
- Index as Index34,
4734
- ManyToOne as ManyToOne40,
4735
- JoinColumn as JoinColumn40
4897
+ Entity as Entity43,
4898
+ Column as Column44,
4899
+ Index as Index36,
4900
+ ManyToOne as ManyToOne42,
4901
+ JoinColumn as JoinColumn42
4736
4902
  } from "typeorm";
4737
4903
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
4738
4904
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
@@ -4748,51 +4914,51 @@ var BankDetail = class extends BaseEntity {
4748
4914
  };
4749
4915
  // individual index to find bank details by user
4750
4916
  __decorateClass([
4751
- Column42({ name: "user_id", type: "integer", nullable: true }),
4752
- Index34()
4917
+ Column44({ name: "user_id", type: "integer", nullable: true }),
4918
+ Index36()
4753
4919
  ], BankDetail.prototype, "userId", 2);
4754
4920
  __decorateClass([
4755
- ManyToOne40(() => User, (user) => user.bankDetail),
4756
- JoinColumn40({ name: "user_id" })
4921
+ ManyToOne42(() => User, (user) => user.bankDetail),
4922
+ JoinColumn42({ name: "user_id" })
4757
4923
  ], BankDetail.prototype, "user", 2);
4758
4924
  __decorateClass([
4759
- Column42({ name: "name", type: "varchar", nullable: true })
4925
+ Column44({ name: "name", type: "varchar", nullable: true })
4760
4926
  ], BankDetail.prototype, "name", 2);
4761
4927
  __decorateClass([
4762
- Column42({ name: "mobile_code", type: "varchar", nullable: true })
4928
+ Column44({ name: "mobile_code", type: "varchar", nullable: true })
4763
4929
  ], BankDetail.prototype, "mobileCode", 2);
4764
4930
  __decorateClass([
4765
- Column42({ name: "mobile", type: "varchar", nullable: true })
4931
+ Column44({ name: "mobile", type: "varchar", nullable: true })
4766
4932
  ], BankDetail.prototype, "mobile", 2);
4767
4933
  __decorateClass([
4768
- Column42({ name: "email", type: "varchar" })
4934
+ Column44({ name: "email", type: "varchar" })
4769
4935
  ], BankDetail.prototype, "email", 2);
4770
4936
  __decorateClass([
4771
- Column42({ name: "address", type: "varchar", nullable: true })
4937
+ Column44({ name: "address", type: "varchar", nullable: true })
4772
4938
  ], BankDetail.prototype, "address", 2);
4773
4939
  __decorateClass([
4774
- Column42({ name: "account_number", type: "varchar", unique: true, nullable: true })
4940
+ Column44({ name: "account_number", type: "varchar", unique: true, nullable: true })
4775
4941
  ], BankDetail.prototype, "accountNumber", 2);
4776
4942
  __decorateClass([
4777
- Column42({ name: "bank_name", type: "varchar", nullable: true })
4943
+ Column44({ name: "bank_name", type: "varchar", nullable: true })
4778
4944
  ], BankDetail.prototype, "bankName", 2);
4779
4945
  __decorateClass([
4780
- Column42({ name: "ifsc_code", type: "varchar", nullable: true })
4946
+ Column44({ name: "ifsc_code", type: "varchar", nullable: true })
4781
4947
  ], BankDetail.prototype, "ifscCode", 2);
4782
4948
  __decorateClass([
4783
- Column42({ name: "branch_name", type: "varchar", nullable: true })
4949
+ Column44({ name: "branch_name", type: "varchar", nullable: true })
4784
4950
  ], BankDetail.prototype, "branchName", 2);
4785
4951
  __decorateClass([
4786
- Column42({ name: "routing_no", type: "varchar", nullable: true })
4952
+ Column44({ name: "routing_no", type: "varchar", nullable: true })
4787
4953
  ], BankDetail.prototype, "routingNo", 2);
4788
4954
  __decorateClass([
4789
- Column42({ name: "aba_no", type: "varchar", nullable: true })
4955
+ Column44({ name: "aba_no", type: "varchar", nullable: true })
4790
4956
  ], BankDetail.prototype, "abaNumber", 2);
4791
4957
  __decorateClass([
4792
- Column42({ name: "iban", type: "varchar", nullable: true })
4958
+ Column44({ name: "iban", type: "varchar", nullable: true })
4793
4959
  ], BankDetail.prototype, "iban", 2);
4794
4960
  __decorateClass([
4795
- Column42({
4961
+ Column44({
4796
4962
  name: "account_type",
4797
4963
  type: "enum",
4798
4964
  enum: BankAccountTypeEnum,
@@ -4800,7 +4966,7 @@ __decorateClass([
4800
4966
  })
4801
4967
  ], BankDetail.prototype, "accountType", 2);
4802
4968
  __decorateClass([
4803
- Column42({
4969
+ Column44({
4804
4970
  name: "account_scope",
4805
4971
  type: "enum",
4806
4972
  enum: BankAccountScopeEnum,
@@ -4808,185 +4974,185 @@ __decorateClass([
4808
4974
  })
4809
4975
  ], BankDetail.prototype, "accountScope", 2);
4810
4976
  BankDetail = __decorateClass([
4811
- Entity41("bank_details")
4977
+ Entity43("bank_details")
4812
4978
  ], BankDetail);
4813
4979
 
4814
4980
  // src/entities/system-preference.entity.ts
4815
4981
  import {
4816
- Entity as Entity42,
4817
- Column as Column43,
4818
- Index as Index35,
4819
- ManyToOne as ManyToOne41,
4820
- JoinColumn as JoinColumn41
4982
+ Entity as Entity44,
4983
+ Column as Column45,
4984
+ Index as Index37,
4985
+ ManyToOne as ManyToOne43,
4986
+ JoinColumn as JoinColumn43
4821
4987
  } from "typeorm";
4822
4988
  var SystemPreference = class extends BaseEntity {
4823
4989
  };
4824
4990
  // individual index to find system preference by user
4825
4991
  __decorateClass([
4826
- Column43({ name: "user_id", type: "integer", nullable: true }),
4827
- Index35()
4992
+ Column45({ name: "user_id", type: "integer", nullable: true }),
4993
+ Index37()
4828
4994
  ], SystemPreference.prototype, "userId", 2);
4829
4995
  __decorateClass([
4830
- ManyToOne41(() => User, (user) => user.systemPreference),
4831
- JoinColumn41({ name: "user_id" })
4996
+ ManyToOne43(() => User, (user) => user.systemPreference),
4997
+ JoinColumn43({ name: "user_id" })
4832
4998
  ], SystemPreference.prototype, "user", 2);
4833
4999
  __decorateClass([
4834
- Column43({ name: "key", type: "varchar", nullable: false })
5000
+ Column45({ name: "key", type: "varchar", nullable: false })
4835
5001
  ], SystemPreference.prototype, "key", 2);
4836
5002
  __decorateClass([
4837
- Column43({ name: "value", type: "boolean", default: false })
5003
+ Column45({ name: "value", type: "boolean", default: false })
4838
5004
  ], SystemPreference.prototype, "value", 2);
4839
5005
  SystemPreference = __decorateClass([
4840
- Entity42("system_preferences")
5006
+ Entity44("system_preferences")
4841
5007
  ], SystemPreference);
4842
5008
 
4843
5009
  // src/entities/freelancer-experience.entity.ts
4844
5010
  import {
4845
- Entity as Entity43,
4846
- Column as Column44,
4847
- Index as Index36,
4848
- ManyToOne as ManyToOne42,
4849
- JoinColumn as JoinColumn42
5011
+ Entity as Entity45,
5012
+ Column as Column46,
5013
+ Index as Index38,
5014
+ ManyToOne as ManyToOne44,
5015
+ JoinColumn as JoinColumn44
4850
5016
  } from "typeorm";
4851
5017
  var FreelancerExperience = class extends BaseEntity {
4852
5018
  };
4853
5019
  // individual index to find experence by user
4854
5020
  __decorateClass([
4855
- Column44({ name: "user_id", type: "integer", nullable: true }),
4856
- Index36()
5021
+ Column46({ name: "user_id", type: "integer", nullable: true }),
5022
+ Index38()
4857
5023
  ], FreelancerExperience.prototype, "userId", 2);
4858
5024
  __decorateClass([
4859
- ManyToOne42(() => User, (user) => user.freelancerExperience),
4860
- JoinColumn42({ name: "user_id" })
5025
+ ManyToOne44(() => User, (user) => user.freelancerExperience),
5026
+ JoinColumn44({ name: "user_id" })
4861
5027
  ], FreelancerExperience.prototype, "user", 2);
4862
5028
  __decorateClass([
4863
- Column44({ name: "company_name", type: "varchar", nullable: true })
5029
+ Column46({ name: "company_name", type: "varchar", nullable: true })
4864
5030
  ], FreelancerExperience.prototype, "companyName", 2);
4865
5031
  __decorateClass([
4866
- Column44({ name: "designation", type: "varchar", nullable: true })
5032
+ Column46({ name: "designation", type: "varchar", nullable: true })
4867
5033
  ], FreelancerExperience.prototype, "designation", 2);
4868
5034
  __decorateClass([
4869
- Column44({ name: "job_duration", type: "varchar", nullable: true })
5035
+ Column46({ name: "job_duration", type: "varchar", nullable: true })
4870
5036
  ], FreelancerExperience.prototype, "jobDuration", 2);
4871
5037
  __decorateClass([
4872
- Column44({ name: "description", type: "varchar", nullable: true })
5038
+ Column46({ name: "description", type: "varchar", nullable: true })
4873
5039
  ], FreelancerExperience.prototype, "description", 2);
4874
5040
  FreelancerExperience = __decorateClass([
4875
- Entity43("freelancer_experiences")
5041
+ Entity45("freelancer_experiences")
4876
5042
  ], FreelancerExperience);
4877
5043
 
4878
5044
  // src/entities/freelancer-education.entity.ts
4879
5045
  import {
4880
- Entity as Entity44,
4881
- Column as Column45,
4882
- Index as Index37,
4883
- ManyToOne as ManyToOne43,
4884
- JoinColumn as JoinColumn43
5046
+ Entity as Entity46,
5047
+ Column as Column47,
5048
+ Index as Index39,
5049
+ ManyToOne as ManyToOne45,
5050
+ JoinColumn as JoinColumn45
4885
5051
  } from "typeorm";
4886
5052
  var FreelancerEducation = class extends BaseEntity {
4887
5053
  };
4888
5054
  // individual index to find education by user
4889
5055
  __decorateClass([
4890
- Column45({ name: "user_id", type: "integer", nullable: true }),
4891
- Index37()
5056
+ Column47({ name: "user_id", type: "integer", nullable: true }),
5057
+ Index39()
4892
5058
  ], FreelancerEducation.prototype, "userId", 2);
4893
5059
  __decorateClass([
4894
- ManyToOne43(() => User, (user) => user.freelancerEducation),
4895
- JoinColumn43({ name: "user_id" })
5060
+ ManyToOne45(() => User, (user) => user.freelancerEducation),
5061
+ JoinColumn45({ name: "user_id" })
4896
5062
  ], FreelancerEducation.prototype, "user", 2);
4897
5063
  __decorateClass([
4898
- Column45({ name: "degree", type: "varchar", nullable: true })
5064
+ Column47({ name: "degree", type: "varchar", nullable: true })
4899
5065
  ], FreelancerEducation.prototype, "degree", 2);
4900
5066
  __decorateClass([
4901
- Column45({ name: "university", type: "varchar", nullable: true })
5067
+ Column47({ name: "university", type: "varchar", nullable: true })
4902
5068
  ], FreelancerEducation.prototype, "university", 2);
4903
5069
  __decorateClass([
4904
- Column45({ name: "year_of_graduation", type: "varchar", nullable: true })
5070
+ Column47({ name: "year_of_graduation", type: "varchar", nullable: true })
4905
5071
  ], FreelancerEducation.prototype, "yearOfGraduation", 2);
4906
5072
  FreelancerEducation = __decorateClass([
4907
- Entity44("freelancer_educations")
5073
+ Entity46("freelancer_educations")
4908
5074
  ], FreelancerEducation);
4909
5075
 
4910
5076
  // src/entities/freelancer-project.entity.ts
4911
5077
  import {
4912
- Entity as Entity45,
4913
- Column as Column46,
4914
- Index as Index38,
4915
- ManyToOne as ManyToOne44,
4916
- JoinColumn as JoinColumn44
5078
+ Entity as Entity47,
5079
+ Column as Column48,
5080
+ Index as Index40,
5081
+ ManyToOne as ManyToOne46,
5082
+ JoinColumn as JoinColumn46
4917
5083
  } from "typeorm";
4918
5084
  var FreelancerProject = class extends BaseEntity {
4919
5085
  };
4920
5086
  // individual index to find project by user
4921
5087
  __decorateClass([
4922
- Column46({ name: "user_id", type: "integer", nullable: true }),
4923
- Index38()
5088
+ Column48({ name: "user_id", type: "integer", nullable: true }),
5089
+ Index40()
4924
5090
  ], FreelancerProject.prototype, "userId", 2);
4925
5091
  __decorateClass([
4926
- ManyToOne44(() => User, (user) => user.freelancerProject),
4927
- JoinColumn44({ name: "user_id" })
5092
+ ManyToOne46(() => User, (user) => user.freelancerProject),
5093
+ JoinColumn46({ name: "user_id" })
4928
5094
  ], FreelancerProject.prototype, "user", 2);
4929
5095
  __decorateClass([
4930
- Column46({ name: "project_name", type: "varchar", nullable: true })
5096
+ Column48({ name: "project_name", type: "varchar", nullable: true })
4931
5097
  ], FreelancerProject.prototype, "projectName", 2);
4932
5098
  __decorateClass([
4933
- Column46({ name: "start_date", type: "date", nullable: true })
5099
+ Column48({ name: "start_date", type: "date", nullable: true })
4934
5100
  ], FreelancerProject.prototype, "startDate", 2);
4935
5101
  __decorateClass([
4936
- Column46({ name: "end_date", type: "date", nullable: true })
5102
+ Column48({ name: "end_date", type: "date", nullable: true })
4937
5103
  ], FreelancerProject.prototype, "endDate", 2);
4938
5104
  __decorateClass([
4939
- Column46({ name: "client_name", type: "varchar", nullable: true })
5105
+ Column48({ name: "client_name", type: "varchar", nullable: true })
4940
5106
  ], FreelancerProject.prototype, "clientName", 2);
4941
5107
  __decorateClass([
4942
- Column46({ name: "git_link", type: "varchar", nullable: true })
5108
+ Column48({ name: "git_link", type: "varchar", nullable: true })
4943
5109
  ], FreelancerProject.prototype, "gitLink", 2);
4944
5110
  __decorateClass([
4945
- Column46({ name: "description", type: "varchar", nullable: true })
5111
+ Column48({ name: "description", type: "varchar", nullable: true })
4946
5112
  ], FreelancerProject.prototype, "description", 2);
4947
5113
  FreelancerProject = __decorateClass([
4948
- Entity45("freelancer_projects")
5114
+ Entity47("freelancer_projects")
4949
5115
  ], FreelancerProject);
4950
5116
 
4951
5117
  // src/entities/freelancer-casestudy.entity.ts
4952
5118
  import {
4953
- Entity as Entity46,
4954
- Column as Column47,
4955
- Index as Index39,
4956
- ManyToOne as ManyToOne45,
4957
- JoinColumn as JoinColumn45
5119
+ Entity as Entity48,
5120
+ Column as Column49,
5121
+ Index as Index41,
5122
+ ManyToOne as ManyToOne47,
5123
+ JoinColumn as JoinColumn47
4958
5124
  } from "typeorm";
4959
5125
  var FreelancerCaseStudy = class extends BaseEntity {
4960
5126
  };
4961
5127
  // individual index to find case study by user
4962
5128
  __decorateClass([
4963
- Column47({ name: "user_id", type: "integer", nullable: true }),
4964
- Index39()
5129
+ Column49({ name: "user_id", type: "integer", nullable: true }),
5130
+ Index41()
4965
5131
  ], FreelancerCaseStudy.prototype, "userId", 2);
4966
5132
  __decorateClass([
4967
- ManyToOne45(() => User, (user) => user.freelancerCaseStudy),
4968
- JoinColumn45({ name: "user_id" })
5133
+ ManyToOne47(() => User, (user) => user.freelancerCaseStudy),
5134
+ JoinColumn47({ name: "user_id" })
4969
5135
  ], FreelancerCaseStudy.prototype, "user", 2);
4970
5136
  __decorateClass([
4971
- Column47({ name: "project_name", type: "varchar", nullable: true })
5137
+ Column49({ name: "project_name", type: "varchar", nullable: true })
4972
5138
  ], FreelancerCaseStudy.prototype, "projectName", 2);
4973
5139
  __decorateClass([
4974
- Column47({ name: "case_study_link", type: "varchar", nullable: true })
5140
+ Column49({ name: "case_study_link", type: "varchar", nullable: true })
4975
5141
  ], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
4976
5142
  __decorateClass([
4977
- Column47({ name: "description", type: "varchar", nullable: true })
5143
+ Column49({ name: "description", type: "varchar", nullable: true })
4978
5144
  ], FreelancerCaseStudy.prototype, "description", 2);
4979
5145
  FreelancerCaseStudy = __decorateClass([
4980
- Entity46("freelancer_case_studies")
5146
+ Entity48("freelancer_case_studies")
4981
5147
  ], FreelancerCaseStudy);
4982
5148
 
4983
5149
  // src/entities/freelancer-skill.entity.ts
4984
5150
  import {
4985
- Entity as Entity47,
4986
- Column as Column48,
4987
- Index as Index40,
4988
- ManyToOne as ManyToOne46,
4989
- JoinColumn as JoinColumn46
5151
+ Entity as Entity49,
5152
+ Column as Column50,
5153
+ Index as Index42,
5154
+ ManyToOne as ManyToOne48,
5155
+ JoinColumn as JoinColumn48
4990
5156
  } from "typeorm";
4991
5157
  var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
4992
5158
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
@@ -4997,18 +5163,18 @@ var FreelancerSkill = class extends BaseEntity {
4997
5163
  };
4998
5164
  // individual index to find core skills by user
4999
5165
  __decorateClass([
5000
- Column48({ name: "user_id", type: "integer", nullable: true }),
5001
- Index40()
5166
+ Column50({ name: "user_id", type: "integer", nullable: true }),
5167
+ Index42()
5002
5168
  ], FreelancerSkill.prototype, "userId", 2);
5003
5169
  __decorateClass([
5004
- ManyToOne46(() => User, (user) => user.freelancerSkills),
5005
- JoinColumn46({ name: "user_id" })
5170
+ ManyToOne48(() => User, (user) => user.freelancerSkills),
5171
+ JoinColumn48({ name: "user_id" })
5006
5172
  ], FreelancerSkill.prototype, "user", 2);
5007
5173
  __decorateClass([
5008
- Column48({ name: "skill_name", type: "varchar", nullable: true })
5174
+ Column50({ name: "skill_name", type: "varchar", nullable: true })
5009
5175
  ], FreelancerSkill.prototype, "skillName", 2);
5010
5176
  __decorateClass([
5011
- Column48({
5177
+ Column50({
5012
5178
  name: "skill_category",
5013
5179
  type: "smallint",
5014
5180
  default: 1,
@@ -5016,68 +5182,68 @@ __decorateClass([
5016
5182
  })
5017
5183
  ], FreelancerSkill.prototype, "skillCategory", 2);
5018
5184
  FreelancerSkill = __decorateClass([
5019
- Entity47("freelancer_skills")
5185
+ Entity49("freelancer_skills")
5020
5186
  ], FreelancerSkill);
5021
5187
 
5022
5188
  // src/entities/freelancer-tool.entity.ts
5023
5189
  import {
5024
- Entity as Entity48,
5025
- Column as Column49,
5026
- Index as Index41,
5027
- ManyToOne as ManyToOne47,
5028
- JoinColumn as JoinColumn47
5190
+ Entity as Entity50,
5191
+ Column as Column51,
5192
+ Index as Index43,
5193
+ ManyToOne as ManyToOne49,
5194
+ JoinColumn as JoinColumn49
5029
5195
  } from "typeorm";
5030
5196
  var FreelancerTool = class extends BaseEntity {
5031
5197
  };
5032
5198
  // individual index to find tool by user
5033
5199
  __decorateClass([
5034
- Column49({ name: "user_id", type: "integer", nullable: true }),
5035
- Index41()
5200
+ Column51({ name: "user_id", type: "integer", nullable: true }),
5201
+ Index43()
5036
5202
  ], FreelancerTool.prototype, "userId", 2);
5037
5203
  __decorateClass([
5038
- ManyToOne47(() => User, (user) => user.freelancerTool),
5039
- JoinColumn47({ name: "user_id" })
5204
+ ManyToOne49(() => User, (user) => user.freelancerTool),
5205
+ JoinColumn49({ name: "user_id" })
5040
5206
  ], FreelancerTool.prototype, "user", 2);
5041
5207
  __decorateClass([
5042
- Column49({ name: "tool_name", type: "varchar", nullable: true })
5208
+ Column51({ name: "tool_name", type: "varchar", nullable: true })
5043
5209
  ], FreelancerTool.prototype, "toolName", 2);
5044
5210
  FreelancerTool = __decorateClass([
5045
- Entity48("freelancer_tools")
5211
+ Entity50("freelancer_tools")
5046
5212
  ], FreelancerTool);
5047
5213
 
5048
5214
  // src/entities/freelancer-framework.entity.ts
5049
5215
  import {
5050
- Entity as Entity49,
5051
- Column as Column50,
5052
- Index as Index42,
5053
- ManyToOne as ManyToOne48,
5054
- JoinColumn as JoinColumn48
5216
+ Entity as Entity51,
5217
+ Column as Column52,
5218
+ Index as Index44,
5219
+ ManyToOne as ManyToOne50,
5220
+ JoinColumn as JoinColumn50
5055
5221
  } from "typeorm";
5056
5222
  var FreelancerFramework = class extends BaseEntity {
5057
5223
  };
5058
5224
  // individual index to find framework by user
5059
5225
  __decorateClass([
5060
- Column50({ name: "user_id", type: "integer", nullable: true }),
5061
- Index42()
5226
+ Column52({ name: "user_id", type: "integer", nullable: true }),
5227
+ Index44()
5062
5228
  ], FreelancerFramework.prototype, "userId", 2);
5063
5229
  __decorateClass([
5064
- ManyToOne48(() => User, (user) => user.freelancerFramework),
5065
- JoinColumn48({ name: "user_id" })
5230
+ ManyToOne50(() => User, (user) => user.freelancerFramework),
5231
+ JoinColumn50({ name: "user_id" })
5066
5232
  ], FreelancerFramework.prototype, "user", 2);
5067
5233
  __decorateClass([
5068
- Column50({ name: "framework_name", type: "varchar", nullable: true })
5234
+ Column52({ name: "framework_name", type: "varchar", nullable: true })
5069
5235
  ], FreelancerFramework.prototype, "frameworkName", 2);
5070
5236
  FreelancerFramework = __decorateClass([
5071
- Entity49("freelancer_frameworks")
5237
+ Entity51("freelancer_frameworks")
5072
5238
  ], FreelancerFramework);
5073
5239
 
5074
5240
  // src/entities/freelancer-assessment.entity.ts
5075
5241
  import {
5076
- Entity as Entity50,
5077
- Column as Column51,
5078
- Index as Index43,
5079
- ManyToOne as ManyToOne49,
5080
- JoinColumn as JoinColumn49
5242
+ Entity as Entity52,
5243
+ Column as Column53,
5244
+ Index as Index45,
5245
+ ManyToOne as ManyToOne51,
5246
+ JoinColumn as JoinColumn51
5081
5247
  } from "typeorm";
5082
5248
  var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
5083
5249
  AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
@@ -5095,33 +5261,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
5095
5261
  var FreelancerAssessment = class extends BaseEntity {
5096
5262
  };
5097
5263
  __decorateClass([
5098
- Column51({ name: "user_id", type: "integer", nullable: true }),
5099
- Index43()
5264
+ Column53({ name: "user_id", type: "integer", nullable: true }),
5265
+ Index45()
5100
5266
  ], FreelancerAssessment.prototype, "userId", 2);
5101
5267
  __decorateClass([
5102
- ManyToOne49(() => User, (user) => user.assessments),
5103
- JoinColumn49({ name: "user_id" })
5268
+ ManyToOne51(() => User, (user) => user.assessments),
5269
+ JoinColumn51({ name: "user_id" })
5104
5270
  ], FreelancerAssessment.prototype, "user", 2);
5105
5271
  __decorateClass([
5106
- Column51({ name: "interview_id", type: "varchar", nullable: true })
5272
+ Column53({ name: "interview_id", type: "varchar", nullable: true })
5107
5273
  ], FreelancerAssessment.prototype, "interviewId", 2);
5108
5274
  __decorateClass([
5109
- Column51({ name: "interview_link", type: "text", nullable: true })
5275
+ Column53({ name: "interview_link", type: "text", nullable: true })
5110
5276
  ], FreelancerAssessment.prototype, "interviewLink", 2);
5111
5277
  __decorateClass([
5112
- Column51({ name: "recording_link", type: "text", nullable: true })
5278
+ Column53({ name: "recording_link", type: "text", nullable: true })
5113
5279
  ], FreelancerAssessment.prototype, "recordingLink", 2);
5114
5280
  __decorateClass([
5115
- Column51({ name: "iframe_response", type: "jsonb", nullable: true })
5281
+ Column53({ name: "iframe_response", type: "jsonb", nullable: true })
5116
5282
  ], FreelancerAssessment.prototype, "iframeResponse", 2);
5117
5283
  __decorateClass([
5118
- Column51({ name: "interview_summary", type: "jsonb", nullable: true })
5284
+ Column53({ name: "interview_summary", type: "jsonb", nullable: true })
5119
5285
  ], FreelancerAssessment.prototype, "interviewSummary", 2);
5120
5286
  __decorateClass([
5121
- Column51({ name: "score", type: "float", nullable: true })
5287
+ Column53({ name: "score", type: "float", nullable: true })
5122
5288
  ], FreelancerAssessment.prototype, "score", 2);
5123
5289
  __decorateClass([
5124
- Column51({
5290
+ Column53({
5125
5291
  name: "status",
5126
5292
  type: "enum",
5127
5293
  enum: AssessmentStatusEnum,
@@ -5129,17 +5295,17 @@ __decorateClass([
5129
5295
  })
5130
5296
  ], FreelancerAssessment.prototype, "status", 2);
5131
5297
  __decorateClass([
5132
- Column51({ name: "task_id", type: "varchar", nullable: true })
5298
+ Column53({ name: "task_id", type: "varchar", nullable: true })
5133
5299
  ], FreelancerAssessment.prototype, "taskId", 2);
5134
5300
  __decorateClass([
5135
- Column51({ name: "meta_data", type: "jsonb", nullable: true })
5301
+ Column53({ name: "meta_data", type: "jsonb", nullable: true })
5136
5302
  ], FreelancerAssessment.prototype, "metaData", 2);
5137
5303
  FreelancerAssessment = __decorateClass([
5138
- Entity50("freelancer_assessments")
5304
+ Entity52("freelancer_assessments")
5139
5305
  ], FreelancerAssessment);
5140
5306
 
5141
5307
  // src/entities/freelancer-declaration.entity.ts
5142
- import { Entity as Entity51, Column as Column52, Index as Index44, ManyToOne as ManyToOne50, JoinColumn as JoinColumn50 } from "typeorm";
5308
+ import { Entity as Entity53, Column as Column54, Index as Index46, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
5143
5309
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
5144
5310
  DocumentType2["AADHAAR"] = "AADHAAR_CARD";
5145
5311
  DocumentType2["PASSPORT"] = "PASSPORT";
@@ -5151,15 +5317,15 @@ var FreelancerDeclaration = class extends BaseEntity {
5151
5317
  };
5152
5318
  // individual index to find declaration by user
5153
5319
  __decorateClass([
5154
- Column52({ name: "user_id", type: "integer", nullable: true }),
5155
- Index44()
5320
+ Column54({ name: "user_id", type: "integer", nullable: true }),
5321
+ Index46()
5156
5322
  ], FreelancerDeclaration.prototype, "userId", 2);
5157
5323
  __decorateClass([
5158
- ManyToOne50(() => User, (user) => user.freelancerDeclaration),
5159
- JoinColumn50({ name: "user_id" })
5324
+ ManyToOne52(() => User, (user) => user.freelancerDeclaration),
5325
+ JoinColumn52({ name: "user_id" })
5160
5326
  ], FreelancerDeclaration.prototype, "user", 2);
5161
5327
  __decorateClass([
5162
- Column52({
5328
+ Column54({
5163
5329
  name: "document_type",
5164
5330
  type: "enum",
5165
5331
  enum: DocumentType,
@@ -5167,178 +5333,178 @@ __decorateClass([
5167
5333
  })
5168
5334
  ], FreelancerDeclaration.prototype, "documentType", 2);
5169
5335
  __decorateClass([
5170
- Column52({ name: "front_document_url", type: "varchar", nullable: true })
5336
+ Column54({ name: "front_document_url", type: "varchar", nullable: true })
5171
5337
  ], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
5172
5338
  __decorateClass([
5173
- Column52({ name: "back_document_url", type: "varchar", nullable: true })
5339
+ Column54({ name: "back_document_url", type: "varchar", nullable: true })
5174
5340
  ], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
5175
5341
  __decorateClass([
5176
- Column52({ name: "declaration_accepted", type: "boolean", default: false })
5342
+ Column54({ name: "declaration_accepted", type: "boolean", default: false })
5177
5343
  ], FreelancerDeclaration.prototype, "declarationAccepted", 2);
5178
5344
  __decorateClass([
5179
- Column52({ name: "digital_signature_url", type: "varchar", nullable: true })
5345
+ Column54({ name: "digital_signature_url", type: "varchar", nullable: true })
5180
5346
  ], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
5181
5347
  FreelancerDeclaration = __decorateClass([
5182
- Entity51("freelancer_declaration")
5348
+ Entity53("freelancer_declaration")
5183
5349
  ], FreelancerDeclaration);
5184
5350
 
5185
5351
  // src/entities/company-members-roles.entity.ts
5186
5352
  import {
5187
- Column as Column56,
5188
- Entity as Entity55,
5189
- ManyToOne as ManyToOne53,
5190
- JoinColumn as JoinColumn53,
5191
- Index as Index48
5353
+ Column as Column58,
5354
+ Entity as Entity57,
5355
+ ManyToOne as ManyToOne55,
5356
+ JoinColumn as JoinColumn55,
5357
+ Index as Index50
5192
5358
  } from "typeorm";
5193
5359
 
5194
5360
  // src/entities/company-role.entity.ts
5195
5361
  import {
5196
- Column as Column55,
5197
- Entity as Entity54,
5198
- Index as Index47,
5199
- JoinColumn as JoinColumn52,
5200
- ManyToOne as ManyToOne52,
5201
- OneToMany as OneToMany17
5362
+ Column as Column57,
5363
+ Entity as Entity56,
5364
+ Index as Index49,
5365
+ JoinColumn as JoinColumn54,
5366
+ ManyToOne as ManyToOne54,
5367
+ OneToMany as OneToMany18
5202
5368
  } from "typeorm";
5203
5369
 
5204
5370
  // src/entities/company-role-permission.entity.ts
5205
5371
  import {
5206
- Column as Column54,
5207
- Entity as Entity53,
5208
- ManyToOne as ManyToOne51,
5209
- JoinColumn as JoinColumn51,
5210
- Index as Index46
5372
+ Column as Column56,
5373
+ Entity as Entity55,
5374
+ ManyToOne as ManyToOne53,
5375
+ JoinColumn as JoinColumn53,
5376
+ Index as Index48
5211
5377
  } from "typeorm";
5212
5378
 
5213
5379
  // src/entities/permission.entity.ts
5214
- import { Column as Column53, Entity as Entity52, Index as Index45 } from "typeorm";
5380
+ import { Column as Column55, Entity as Entity54, Index as Index47 } from "typeorm";
5215
5381
  var Permission = class extends BaseEntity {
5216
5382
  };
5217
5383
  __decorateClass([
5218
- Column53({ name: "name", type: "varchar", nullable: true })
5384
+ Column55({ name: "name", type: "varchar", nullable: true })
5219
5385
  ], Permission.prototype, "name", 2);
5220
5386
  __decorateClass([
5221
- Column53({ name: "slug", type: "varchar", nullable: true, unique: true }),
5222
- Index45()
5387
+ Column55({ name: "slug", type: "varchar", nullable: true, unique: true }),
5388
+ Index47()
5223
5389
  ], Permission.prototype, "slug", 2);
5224
5390
  __decorateClass([
5225
- Column53({ name: "description", type: "text", nullable: true })
5391
+ Column55({ name: "description", type: "text", nullable: true })
5226
5392
  ], Permission.prototype, "description", 2);
5227
5393
  __decorateClass([
5228
- Column53({ name: "module", type: "varchar", nullable: true })
5394
+ Column55({ name: "module", type: "varchar", nullable: true })
5229
5395
  ], Permission.prototype, "module", 2);
5230
5396
  __decorateClass([
5231
- Column53({ name: "is_active", type: "boolean", default: true })
5397
+ Column55({ name: "is_active", type: "boolean", default: true })
5232
5398
  ], Permission.prototype, "isActive", 2);
5233
5399
  Permission = __decorateClass([
5234
- Entity52("permissions")
5400
+ Entity54("permissions")
5235
5401
  ], Permission);
5236
5402
 
5237
5403
  // src/entities/company-role-permission.entity.ts
5238
5404
  var CompanyRolePermission = class extends BaseEntity {
5239
5405
  };
5240
5406
  __decorateClass([
5241
- Column54({ name: "company_role_id", type: "integer", nullable: true }),
5242
- Index46()
5407
+ Column56({ name: "company_role_id", type: "integer", nullable: true }),
5408
+ Index48()
5243
5409
  ], CompanyRolePermission.prototype, "companyRoleId", 2);
5244
5410
  __decorateClass([
5245
- ManyToOne51(() => CompanyRole, (role) => role.rolePermissions, {
5411
+ ManyToOne53(() => CompanyRole, (role) => role.rolePermissions, {
5246
5412
  onDelete: "CASCADE"
5247
5413
  }),
5248
- JoinColumn51({ name: "company_role_id" })
5414
+ JoinColumn53({ name: "company_role_id" })
5249
5415
  ], CompanyRolePermission.prototype, "companyRole", 2);
5250
5416
  __decorateClass([
5251
- Column54({ name: "permission_id", type: "integer" }),
5252
- Index46()
5417
+ Column56({ name: "permission_id", type: "integer" }),
5418
+ Index48()
5253
5419
  ], CompanyRolePermission.prototype, "permissionId", 2);
5254
5420
  __decorateClass([
5255
- ManyToOne51(() => Permission, { onDelete: "CASCADE" }),
5256
- JoinColumn51({ name: "permission_id" })
5421
+ ManyToOne53(() => Permission, { onDelete: "CASCADE" }),
5422
+ JoinColumn53({ name: "permission_id" })
5257
5423
  ], CompanyRolePermission.prototype, "permission", 2);
5258
5424
  __decorateClass([
5259
- Column54({ name: "assigned_by", type: "integer", nullable: true })
5425
+ Column56({ name: "assigned_by", type: "integer", nullable: true })
5260
5426
  ], CompanyRolePermission.prototype, "assignedBy", 2);
5261
5427
  CompanyRolePermission = __decorateClass([
5262
- Entity53("company_role_permissions")
5428
+ Entity55("company_role_permissions")
5263
5429
  ], CompanyRolePermission);
5264
5430
 
5265
5431
  // src/entities/company-role.entity.ts
5266
5432
  var CompanyRole = class extends BaseEntity {
5267
5433
  };
5268
5434
  __decorateClass([
5269
- Column55({ name: "user_id", type: "integer", nullable: true }),
5270
- Index47()
5435
+ Column57({ name: "user_id", type: "integer", nullable: true }),
5436
+ Index49()
5271
5437
  ], CompanyRole.prototype, "userId", 2);
5272
5438
  __decorateClass([
5273
- ManyToOne52(() => User, (user) => user.otps),
5274
- JoinColumn52({ name: "user_id" })
5439
+ ManyToOne54(() => User, (user) => user.otps),
5440
+ JoinColumn54({ name: "user_id" })
5275
5441
  ], CompanyRole.prototype, "user", 2);
5276
5442
  __decorateClass([
5277
- Column55({ name: "name", type: "varchar" })
5443
+ Column57({ name: "name", type: "varchar" })
5278
5444
  ], CompanyRole.prototype, "name", 2);
5279
5445
  __decorateClass([
5280
- Column55({ name: "slug", type: "varchar", nullable: true, unique: true }),
5281
- Index47()
5446
+ Column57({ name: "slug", type: "varchar", nullable: true, unique: true }),
5447
+ Index49()
5282
5448
  ], CompanyRole.prototype, "slug", 2);
5283
5449
  __decorateClass([
5284
- Column55({ name: "description", type: "text", nullable: true })
5450
+ Column57({ name: "description", type: "text", nullable: true })
5285
5451
  ], CompanyRole.prototype, "description", 2);
5286
5452
  __decorateClass([
5287
- Column55({ name: "is_active", type: "boolean", default: true })
5453
+ Column57({ name: "is_active", type: "boolean", default: true })
5288
5454
  ], CompanyRole.prototype, "isActive", 2);
5289
5455
  __decorateClass([
5290
- OneToMany17(() => CompanyRolePermission, (rp) => rp.companyRole)
5456
+ OneToMany18(() => CompanyRolePermission, (rp) => rp.companyRole)
5291
5457
  ], CompanyRole.prototype, "rolePermissions", 2);
5292
5458
  CompanyRole = __decorateClass([
5293
- Entity54("company_roles")
5459
+ Entity56("company_roles")
5294
5460
  ], CompanyRole);
5295
5461
 
5296
5462
  // src/entities/company-members-roles.entity.ts
5297
5463
  var CompanyMemberRole = class extends BaseEntity {
5298
5464
  };
5299
5465
  __decorateClass([
5300
- Column56({ name: "user_id", type: "integer", nullable: true }),
5301
- Index48()
5466
+ Column58({ name: "user_id", type: "integer", nullable: true }),
5467
+ Index50()
5302
5468
  ], CompanyMemberRole.prototype, "userId", 2);
5303
5469
  __decorateClass([
5304
- ManyToOne53(() => User),
5305
- JoinColumn53({ name: "user_id" })
5470
+ ManyToOne55(() => User),
5471
+ JoinColumn55({ name: "user_id" })
5306
5472
  ], CompanyMemberRole.prototype, "user", 2);
5307
5473
  __decorateClass([
5308
- ManyToOne53(() => CompanyRole),
5309
- JoinColumn53({ name: "company_role_id" })
5474
+ ManyToOne55(() => CompanyRole),
5475
+ JoinColumn55({ name: "company_role_id" })
5310
5476
  ], CompanyMemberRole.prototype, "role", 2);
5311
5477
  __decorateClass([
5312
- Column56({ name: "company_role_id", type: "integer", nullable: true }),
5313
- Index48()
5478
+ Column58({ name: "company_role_id", type: "integer", nullable: true }),
5479
+ Index50()
5314
5480
  ], CompanyMemberRole.prototype, "companyRoleId", 2);
5315
5481
  __decorateClass([
5316
- Column56({ name: "assigned_by", type: "integer", nullable: true })
5482
+ Column58({ name: "assigned_by", type: "integer", nullable: true })
5317
5483
  ], CompanyMemberRole.prototype, "assignedBy", 2);
5318
5484
  CompanyMemberRole = __decorateClass([
5319
- Entity55("company_member_roles")
5485
+ Entity57("company_member_roles")
5320
5486
  ], CompanyMemberRole);
5321
5487
 
5322
5488
  // src/entities/assessment-answer.entity.ts
5323
5489
  import {
5324
- Entity as Entity58,
5325
- Column as Column59,
5326
- ManyToOne as ManyToOne56,
5327
- Index as Index51,
5328
- JoinColumn as JoinColumn56
5490
+ Entity as Entity60,
5491
+ Column as Column61,
5492
+ ManyToOne as ManyToOne58,
5493
+ Index as Index53,
5494
+ JoinColumn as JoinColumn58
5329
5495
  } from "typeorm";
5330
5496
 
5331
5497
  // src/entities/assessment-question.entity.ts
5332
- import { Entity as Entity57, Column as Column58, OneToMany as OneToMany19, Index as Index50, ManyToOne as ManyToOne55, JoinColumn as JoinColumn55 } from "typeorm";
5498
+ import { Entity as Entity59, Column as Column60, OneToMany as OneToMany20, Index as Index52, ManyToOne as ManyToOne57, JoinColumn as JoinColumn57 } from "typeorm";
5333
5499
 
5334
5500
  // src/entities/assessment-question-option.entity.ts
5335
5501
  import {
5336
- Entity as Entity56,
5337
- Column as Column57,
5338
- OneToMany as OneToMany18,
5339
- ManyToOne as ManyToOne54,
5340
- Index as Index49,
5341
- JoinColumn as JoinColumn54
5502
+ Entity as Entity58,
5503
+ Column as Column59,
5504
+ OneToMany as OneToMany19,
5505
+ ManyToOne as ManyToOne56,
5506
+ Index as Index51,
5507
+ JoinColumn as JoinColumn56
5342
5508
  } from "typeorm";
5343
5509
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5344
5510
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
@@ -5349,21 +5515,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5349
5515
  var AssessmetQuestionOption = class extends BaseEntity {
5350
5516
  };
5351
5517
  __decorateClass([
5352
- Column57({ name: "question_id", type: "integer", nullable: true }),
5353
- Index49()
5518
+ Column59({ name: "question_id", type: "integer", nullable: true }),
5519
+ Index51()
5354
5520
  ], AssessmetQuestionOption.prototype, "questionId", 2);
5355
5521
  __decorateClass([
5356
- ManyToOne54(
5522
+ ManyToOne56(
5357
5523
  () => AssessmetQuestion,
5358
5524
  (assessmentQuestion) => assessmentQuestion.options
5359
5525
  ),
5360
- JoinColumn54({ name: "question_id" })
5526
+ JoinColumn56({ name: "question_id" })
5361
5527
  ], AssessmetQuestionOption.prototype, "question", 2);
5362
5528
  __decorateClass([
5363
- Column57({ name: "text", type: "varchar", nullable: true })
5529
+ Column59({ name: "text", type: "varchar", nullable: true })
5364
5530
  ], AssessmetQuestionOption.prototype, "text", 2);
5365
5531
  __decorateClass([
5366
- Column57({
5532
+ Column59({
5367
5533
  name: "answer_type",
5368
5534
  type: "enum",
5369
5535
  enum: AnswerTypeEnum,
@@ -5371,13 +5537,13 @@ __decorateClass([
5371
5537
  })
5372
5538
  ], AssessmetQuestionOption.prototype, "answerType", 2);
5373
5539
  __decorateClass([
5374
- Column57({ name: "is_active", type: "boolean", default: true })
5540
+ Column59({ name: "is_active", type: "boolean", default: true })
5375
5541
  ], AssessmetQuestionOption.prototype, "isActive", 2);
5376
5542
  __decorateClass([
5377
- OneToMany18(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5543
+ OneToMany19(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5378
5544
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
5379
5545
  AssessmetQuestionOption = __decorateClass([
5380
- Entity56("assessment_question_options")
5546
+ Entity58("assessment_question_options")
5381
5547
  ], AssessmetQuestionOption);
5382
5548
 
5383
5549
  // src/entities/assessment-question.entity.ts
@@ -5389,10 +5555,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
5389
5555
  var AssessmetQuestion = class extends BaseEntity {
5390
5556
  };
5391
5557
  __decorateClass([
5392
- Column58({ name: "text", type: "varchar", nullable: true })
5558
+ Column60({ name: "text", type: "varchar", nullable: true })
5393
5559
  ], AssessmetQuestion.prototype, "text", 2);
5394
5560
  __decorateClass([
5395
- Column58({
5561
+ Column60({
5396
5562
  name: "question_for",
5397
5563
  type: "enum",
5398
5564
  enum: QuestionForEnum,
@@ -5400,24 +5566,24 @@ __decorateClass([
5400
5566
  })
5401
5567
  ], AssessmetQuestion.prototype, "questionFor", 2);
5402
5568
  __decorateClass([
5403
- Column58({ name: "is_active", type: "boolean", default: true })
5569
+ Column60({ name: "is_active", type: "boolean", default: true })
5404
5570
  ], AssessmetQuestion.prototype, "isActive", 2);
5405
5571
  __decorateClass([
5406
- Column58({ name: "candidate_id", type: "integer", nullable: true }),
5407
- Index50()
5572
+ Column60({ name: "candidate_id", type: "integer", nullable: true }),
5573
+ Index52()
5408
5574
  ], AssessmetQuestion.prototype, "candidateId", 2);
5409
5575
  __decorateClass([
5410
- ManyToOne55(() => User, (user) => user.freelancerMcq, { nullable: true }),
5411
- JoinColumn55({ name: "candidate_id" })
5576
+ ManyToOne57(() => User, (user) => user.freelancerMcq, { nullable: true }),
5577
+ JoinColumn57({ name: "candidate_id" })
5412
5578
  ], AssessmetQuestion.prototype, "candidate", 2);
5413
5579
  __decorateClass([
5414
- OneToMany19(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5580
+ OneToMany20(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5415
5581
  ], AssessmetQuestion.prototype, "options", 2);
5416
5582
  __decorateClass([
5417
- OneToMany19(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5583
+ OneToMany20(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5418
5584
  ], AssessmetQuestion.prototype, "answers", 2);
5419
5585
  AssessmetQuestion = __decorateClass([
5420
- Entity57("assessment_questions")
5586
+ Entity59("assessment_questions")
5421
5587
  ], AssessmetQuestion);
5422
5588
 
5423
5589
  // src/entities/assessment-answer.entity.ts
@@ -5430,118 +5596,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
5430
5596
  var AssessmentAnswer = class extends BaseEntity {
5431
5597
  };
5432
5598
  __decorateClass([
5433
- Column59({ name: "user_id", type: "integer" }),
5434
- Index51()
5599
+ Column61({ name: "user_id", type: "integer" }),
5600
+ Index53()
5435
5601
  ], AssessmentAnswer.prototype, "userId", 2);
5436
5602
  __decorateClass([
5437
- ManyToOne56(() => User, (user) => user.assessmentAnswers),
5438
- JoinColumn56({ name: "user_id" })
5603
+ ManyToOne58(() => User, (user) => user.assessmentAnswers),
5604
+ JoinColumn58({ name: "user_id" })
5439
5605
  ], AssessmentAnswer.prototype, "user", 2);
5440
5606
  __decorateClass([
5441
- Column59({ name: "question_id", type: "integer" }),
5442
- Index51()
5607
+ Column61({ name: "question_id", type: "integer" }),
5608
+ Index53()
5443
5609
  ], AssessmentAnswer.prototype, "questionId", 2);
5444
5610
  __decorateClass([
5445
- ManyToOne56(
5611
+ ManyToOne58(
5446
5612
  () => AssessmetQuestion,
5447
5613
  (assessmentQuestion) => assessmentQuestion.answers
5448
5614
  ),
5449
- JoinColumn56({ name: "question_id" })
5615
+ JoinColumn58({ name: "question_id" })
5450
5616
  ], AssessmentAnswer.prototype, "question", 2);
5451
5617
  __decorateClass([
5452
- Column59({ name: "selected_option_id", type: "integer" }),
5453
- Index51()
5618
+ Column61({ name: "selected_option_id", type: "integer" }),
5619
+ Index53()
5454
5620
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
5455
5621
  __decorateClass([
5456
- ManyToOne56(
5622
+ ManyToOne58(
5457
5623
  () => AssessmetQuestionOption,
5458
5624
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
5459
5625
  ),
5460
- JoinColumn56({ name: "selected_option_id" })
5626
+ JoinColumn58({ name: "selected_option_id" })
5461
5627
  ], AssessmentAnswer.prototype, "option", 2);
5462
5628
  __decorateClass([
5463
- Column59({
5629
+ Column61({
5464
5630
  name: "selected_answer_type",
5465
5631
  type: "enum",
5466
5632
  enum: SelectedAnswerTypeEnum
5467
5633
  })
5468
5634
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
5469
5635
  __decorateClass([
5470
- Column59({ name: "score", type: "float" })
5636
+ Column61({ name: "score", type: "float" })
5471
5637
  ], AssessmentAnswer.prototype, "score", 2);
5472
5638
  AssessmentAnswer = __decorateClass([
5473
- Entity58("assessment_answers")
5639
+ Entity60("assessment_answers")
5474
5640
  ], AssessmentAnswer);
5475
5641
 
5476
5642
  // src/entities/company-skill.entity.ts
5477
- import { Entity as Entity59, Column as Column60, Index as Index52, ManyToOne as ManyToOne57, JoinColumn as JoinColumn57 } from "typeorm";
5643
+ import { Entity as Entity61, Column as Column62, Index as Index54, ManyToOne as ManyToOne59, JoinColumn as JoinColumn59 } from "typeorm";
5478
5644
  var CompanySkill = class extends BaseEntity {
5479
5645
  };
5480
5646
  // individual index to find core skills by user
5481
5647
  __decorateClass([
5482
- Column60({ name: "user_id", type: "integer", nullable: true }),
5483
- Index52()
5648
+ Column62({ name: "user_id", type: "integer", nullable: true }),
5649
+ Index54()
5484
5650
  ], CompanySkill.prototype, "userId", 2);
5485
5651
  __decorateClass([
5486
- ManyToOne57(() => User, (user) => user.companySkills),
5487
- JoinColumn57({ name: "user_id" })
5652
+ ManyToOne59(() => User, (user) => user.companySkills),
5653
+ JoinColumn59({ name: "user_id" })
5488
5654
  ], CompanySkill.prototype, "user", 2);
5489
5655
  __decorateClass([
5490
- Column60({ name: "skill_name", type: "varchar", nullable: true })
5656
+ Column62({ name: "skill_name", type: "varchar", nullable: true })
5491
5657
  ], CompanySkill.prototype, "skillName", 2);
5492
5658
  CompanySkill = __decorateClass([
5493
- Entity59("company_skills")
5659
+ Entity61("company_skills")
5494
5660
  ], CompanySkill);
5495
5661
 
5496
5662
  // src/entities/admin-user-role.entity.ts
5497
- import { Entity as Entity63, Column as Column64, ManyToOne as ManyToOne59, JoinColumn as JoinColumn59 } from "typeorm";
5663
+ import { Entity as Entity65, Column as Column66, ManyToOne as ManyToOne61, JoinColumn as JoinColumn61 } from "typeorm";
5498
5664
 
5499
5665
  // src/entities/admin-role.entity.ts
5500
- import { Entity as Entity62, Column as Column63, Index as Index55, OneToMany as OneToMany22 } from "typeorm";
5666
+ import { Entity as Entity64, Column as Column65, Index as Index57, OneToMany as OneToMany23 } from "typeorm";
5501
5667
 
5502
5668
  // src/entities/admin-role-permission.entity.ts
5503
- import { Entity as Entity61, Column as Column62, ManyToOne as ManyToOne58, JoinColumn as JoinColumn58 } from "typeorm";
5669
+ import { Entity as Entity63, Column as Column64, ManyToOne as ManyToOne60, JoinColumn as JoinColumn60 } from "typeorm";
5504
5670
 
5505
5671
  // src/entities/admin-permission.entity.ts
5506
- import { Entity as Entity60, Column as Column61, Index as Index53, OneToMany as OneToMany21 } from "typeorm";
5672
+ import { Entity as Entity62, Column as Column63, Index as Index55, OneToMany as OneToMany22 } from "typeorm";
5507
5673
  var AdminPermission = class extends BaseEntity {
5508
5674
  };
5509
5675
  __decorateClass([
5510
- Column61({ name: "permission_name", type: "varchar", nullable: true })
5676
+ Column63({ name: "permission_name", type: "varchar", nullable: true })
5511
5677
  ], AdminPermission.prototype, "permissionName", 2);
5512
5678
  __decorateClass([
5513
- Column61({
5679
+ Column63({
5514
5680
  name: "permission_slug",
5515
5681
  type: "varchar",
5516
5682
  unique: true,
5517
5683
  nullable: true
5518
5684
  }),
5519
- Index53()
5685
+ Index55()
5520
5686
  ], AdminPermission.prototype, "permissionSlug", 2);
5521
5687
  __decorateClass([
5522
- Column61({ name: "permission_description", type: "varchar", nullable: true })
5688
+ Column63({ name: "permission_description", type: "varchar", nullable: true })
5523
5689
  ], AdminPermission.prototype, "permissionDescription", 2);
5524
5690
  __decorateClass([
5525
- Column61({ name: "module", type: "varchar", nullable: true })
5691
+ Column63({ name: "module", type: "varchar", nullable: true })
5526
5692
  ], AdminPermission.prototype, "module", 2);
5527
5693
  __decorateClass([
5528
- Column61({ name: "is_active", type: "boolean", default: true })
5694
+ Column63({ name: "is_active", type: "boolean", default: true })
5529
5695
  ], AdminPermission.prototype, "isActive", 2);
5530
5696
  __decorateClass([
5531
- OneToMany21(
5697
+ OneToMany22(
5532
5698
  () => AdminRolePermission,
5533
5699
  (adminRolePermission) => adminRolePermission.adminPermissions
5534
5700
  )
5535
5701
  ], AdminPermission.prototype, "adminRole", 2);
5536
5702
  AdminPermission = __decorateClass([
5537
- Entity60("admin_permissions")
5703
+ Entity62("admin_permissions")
5538
5704
  ], AdminPermission);
5539
5705
 
5540
5706
  // src/entities/admin-role-permission.entity.ts
5541
5707
  var AdminRolePermission = class extends BaseEntity {
5542
5708
  };
5543
5709
  __decorateClass([
5544
- Column62({
5710
+ Column64({
5545
5711
  name: "role_id",
5546
5712
  type: "int",
5547
5713
  nullable: true,
@@ -5549,11 +5715,11 @@ __decorateClass([
5549
5715
  })
5550
5716
  ], AdminRolePermission.prototype, "roleId", 2);
5551
5717
  __decorateClass([
5552
- ManyToOne58(() => AdminRole),
5553
- JoinColumn58({ name: "role_id" })
5718
+ ManyToOne60(() => AdminRole),
5719
+ JoinColumn60({ name: "role_id" })
5554
5720
  ], AdminRolePermission.prototype, "adminRole", 2);
5555
5721
  __decorateClass([
5556
- Column62({
5722
+ Column64({
5557
5723
  name: "permission_id",
5558
5724
  type: "int",
5559
5725
  nullable: true,
@@ -5561,47 +5727,47 @@ __decorateClass([
5561
5727
  })
5562
5728
  ], AdminRolePermission.prototype, "permissionId", 2);
5563
5729
  __decorateClass([
5564
- ManyToOne58(() => AdminPermission),
5565
- JoinColumn58({ name: "permission_id" })
5730
+ ManyToOne60(() => AdminPermission),
5731
+ JoinColumn60({ name: "permission_id" })
5566
5732
  ], AdminRolePermission.prototype, "adminPermissions", 2);
5567
5733
  AdminRolePermission = __decorateClass([
5568
- Entity61("admin_role_permissions")
5734
+ Entity63("admin_role_permissions")
5569
5735
  ], AdminRolePermission);
5570
5736
 
5571
5737
  // src/entities/admin-role.entity.ts
5572
5738
  var AdminRole = class extends BaseEntity {
5573
5739
  };
5574
5740
  __decorateClass([
5575
- Column63({ name: "role_name", type: "varchar", nullable: true })
5741
+ Column65({ name: "role_name", type: "varchar", nullable: true })
5576
5742
  ], AdminRole.prototype, "roleName", 2);
5577
5743
  __decorateClass([
5578
- Column63({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5579
- Index55()
5744
+ Column65({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5745
+ Index57()
5580
5746
  ], AdminRole.prototype, "roleSlug", 2);
5581
5747
  __decorateClass([
5582
- Column63({ name: "role_description", type: "varchar", nullable: true })
5748
+ Column65({ name: "role_description", type: "varchar", nullable: true })
5583
5749
  ], AdminRole.prototype, "roleDescription", 2);
5584
5750
  __decorateClass([
5585
- Column63({ name: "is_active", type: "boolean", default: true })
5751
+ Column65({ name: "is_active", type: "boolean", default: true })
5586
5752
  ], AdminRole.prototype, "isActive", 2);
5587
5753
  __decorateClass([
5588
- OneToMany22(
5754
+ OneToMany23(
5589
5755
  () => AdminRolePermission,
5590
5756
  (addminRolePermission) => addminRolePermission.adminRole
5591
5757
  )
5592
5758
  ], AdminRole.prototype, "adminRolePermission", 2);
5593
5759
  __decorateClass([
5594
- OneToMany22(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5760
+ OneToMany23(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5595
5761
  ], AdminRole.prototype, "userRoles", 2);
5596
5762
  AdminRole = __decorateClass([
5597
- Entity62("admin_roles")
5763
+ Entity64("admin_roles")
5598
5764
  ], AdminRole);
5599
5765
 
5600
5766
  // src/entities/admin-user-role.entity.ts
5601
5767
  var AdminUserRole = class extends BaseEntity {
5602
5768
  };
5603
5769
  __decorateClass([
5604
- Column64({
5770
+ Column66({
5605
5771
  name: "user_id",
5606
5772
  type: "int",
5607
5773
  nullable: true,
@@ -5609,11 +5775,11 @@ __decorateClass([
5609
5775
  })
5610
5776
  ], AdminUserRole.prototype, "userId", 2);
5611
5777
  __decorateClass([
5612
- ManyToOne59(() => User),
5613
- JoinColumn59({ name: "user_id" })
5778
+ ManyToOne61(() => User),
5779
+ JoinColumn61({ name: "user_id" })
5614
5780
  ], AdminUserRole.prototype, "user", 2);
5615
5781
  __decorateClass([
5616
- Column64({
5782
+ Column66({
5617
5783
  name: "role_id",
5618
5784
  type: "int",
5619
5785
  nullable: true,
@@ -5621,70 +5787,70 @@ __decorateClass([
5621
5787
  })
5622
5788
  ], AdminUserRole.prototype, "roleId", 2);
5623
5789
  __decorateClass([
5624
- ManyToOne59(() => AdminRole),
5625
- JoinColumn59({ name: "role_id" })
5790
+ ManyToOne61(() => AdminRole),
5791
+ JoinColumn61({ name: "role_id" })
5626
5792
  ], AdminUserRole.prototype, "adminRole", 2);
5627
5793
  AdminUserRole = __decorateClass([
5628
- Entity63("admin_user_roles")
5794
+ Entity65("admin_user_roles")
5629
5795
  ], AdminUserRole);
5630
5796
 
5631
5797
  // src/entities/freelancer-resume.entity.ts
5632
5798
  import {
5633
- Entity as Entity64,
5634
- Column as Column65,
5635
- Index as Index57,
5636
- ManyToOne as ManyToOne60,
5637
- JoinColumn as JoinColumn60
5799
+ Entity as Entity66,
5800
+ Column as Column67,
5801
+ Index as Index59,
5802
+ ManyToOne as ManyToOne62,
5803
+ JoinColumn as JoinColumn62
5638
5804
  } from "typeorm";
5639
5805
  var FreelancerResume = class extends BaseEntity {
5640
5806
  };
5641
5807
  // individual index to find profile by user
5642
5808
  __decorateClass([
5643
- Column65({ name: "user_id", type: "integer", nullable: true }),
5644
- Index57()
5809
+ Column67({ name: "user_id", type: "integer", nullable: true }),
5810
+ Index59()
5645
5811
  ], FreelancerResume.prototype, "userId", 2);
5646
5812
  __decorateClass([
5647
- ManyToOne60(() => User, (user) => user.freelancerProfile),
5648
- JoinColumn60({ name: "user_id" })
5813
+ ManyToOne62(() => User, (user) => user.freelancerProfile),
5814
+ JoinColumn62({ name: "user_id" })
5649
5815
  ], FreelancerResume.prototype, "user", 2);
5650
5816
  __decorateClass([
5651
- Column65({ name: "resume_data", type: "jsonb", nullable: true })
5817
+ Column67({ name: "resume_data", type: "jsonb", nullable: true })
5652
5818
  ], FreelancerResume.prototype, "resumeData", 2);
5653
5819
  __decorateClass([
5654
- Column65({ name: "processed_resume_data", type: "jsonb", nullable: true })
5820
+ Column67({ name: "processed_resume_data", type: "jsonb", nullable: true })
5655
5821
  ], FreelancerResume.prototype, "processedResumeData", 2);
5656
5822
  FreelancerResume = __decorateClass([
5657
- Entity64("freelancer_resumes")
5823
+ Entity66("freelancer_resumes")
5658
5824
  ], FreelancerResume);
5659
5825
 
5660
5826
  // src/entities/signature.entity.ts
5661
5827
  import {
5662
- Entity as Entity65,
5663
- Column as Column66,
5664
- Index as Index58,
5665
- ManyToOne as ManyToOne61,
5666
- JoinColumn as JoinColumn61
5828
+ Entity as Entity67,
5829
+ Column as Column68,
5830
+ Index as Index60,
5831
+ ManyToOne as ManyToOne63,
5832
+ JoinColumn as JoinColumn63
5667
5833
  } from "typeorm";
5668
5834
  var Signature = class extends BaseEntity {
5669
5835
  };
5670
5836
  // individual index to find profile by user
5671
5837
  __decorateClass([
5672
- Column66({ name: "user_id", type: "integer", nullable: true }),
5673
- Index58()
5838
+ Column68({ name: "user_id", type: "integer", nullable: true }),
5839
+ Index60()
5674
5840
  ], Signature.prototype, "userId", 2);
5675
5841
  __decorateClass([
5676
- ManyToOne61(() => User, (user) => user.signatures),
5677
- JoinColumn61({ name: "user_id" })
5842
+ ManyToOne63(() => User, (user) => user.signatures),
5843
+ JoinColumn63({ name: "user_id" })
5678
5844
  ], Signature.prototype, "user", 2);
5679
5845
  __decorateClass([
5680
- Column66({ name: "signature_url", type: "text", nullable: true })
5846
+ Column68({ name: "signature_url", type: "text", nullable: true })
5681
5847
  ], Signature.prototype, "signatureUrl", 2);
5682
5848
  Signature = __decorateClass([
5683
- Entity65("signatures")
5849
+ Entity67("signatures")
5684
5850
  ], Signature);
5685
5851
 
5686
5852
  // src/entities/dispute.entity.ts
5687
- import { Entity as Entity66, Column as Column67, Index as Index59, JoinColumn as JoinColumn62, ManyToOne as ManyToOne62 } from "typeorm";
5853
+ import { Entity as Entity68, Column as Column69, Index as Index61, JoinColumn as JoinColumn64, ManyToOne as ManyToOne64 } from "typeorm";
5688
5854
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5689
5855
  DisputeStatusEnum2["OPEN"] = "OPEN";
5690
5856
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5705,36 +5871,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
5705
5871
  var Dispute = class extends BaseEntity {
5706
5872
  };
5707
5873
  __decorateClass([
5708
- Column67({ name: "client_id", type: "integer", nullable: true }),
5709
- Index59()
5874
+ Column69({ name: "client_id", type: "integer", nullable: true }),
5875
+ Index61()
5710
5876
  ], Dispute.prototype, "clientId", 2);
5711
5877
  __decorateClass([
5712
- ManyToOne62(() => User, (user) => user.clientDisputes),
5713
- JoinColumn62({ name: "client_id" })
5878
+ ManyToOne64(() => User, (user) => user.clientDisputes),
5879
+ JoinColumn64({ name: "client_id" })
5714
5880
  ], Dispute.prototype, "client", 2);
5715
5881
  __decorateClass([
5716
- Column67({ name: "freelancer_id", type: "integer", nullable: true }),
5717
- Index59()
5882
+ Column69({ name: "freelancer_id", type: "integer", nullable: true }),
5883
+ Index61()
5718
5884
  ], Dispute.prototype, "freelancerId", 2);
5719
5885
  __decorateClass([
5720
- ManyToOne62(() => User, (user) => user.freelancerDisputes),
5721
- JoinColumn62({ name: "freelancer_id" })
5886
+ ManyToOne64(() => User, (user) => user.freelancerDisputes),
5887
+ JoinColumn64({ name: "freelancer_id" })
5722
5888
  ], Dispute.prototype, "freelancer", 2);
5723
5889
  __decorateClass([
5724
- Column67({ name: "dispute_unique_id", type: "varchar", unique: true })
5890
+ Column69({ name: "dispute_unique_id", type: "varchar", unique: true })
5725
5891
  ], Dispute.prototype, "disputeUniqueId", 2);
5726
5892
  __decorateClass([
5727
- Column67({ name: "dispute_type", type: "varchar", nullable: true }),
5728
- Index59()
5893
+ Column69({ name: "dispute_type", type: "varchar", nullable: true }),
5894
+ Index61()
5729
5895
  ], Dispute.prototype, "disputeType", 2);
5730
5896
  __decorateClass([
5731
- Column67({ name: "description", type: "varchar", nullable: true })
5897
+ Column69({ name: "description", type: "varchar", nullable: true })
5732
5898
  ], Dispute.prototype, "description", 2);
5733
5899
  __decorateClass([
5734
- Column67({ name: "comment", type: "varchar", nullable: true })
5900
+ Column69({ name: "comment", type: "varchar", nullable: true })
5735
5901
  ], Dispute.prototype, "comment", 2);
5736
5902
  __decorateClass([
5737
- Column67({
5903
+ Column69({
5738
5904
  name: "status",
5739
5905
  type: "enum",
5740
5906
  enum: DisputeStatusEnum,
@@ -5742,7 +5908,7 @@ __decorateClass([
5742
5908
  })
5743
5909
  ], Dispute.prototype, "status", 2);
5744
5910
  __decorateClass([
5745
- Column67({
5911
+ Column69({
5746
5912
  name: "initiator_type",
5747
5913
  type: "enum",
5748
5914
  enum: InitiatorTypeEnum,
@@ -5751,33 +5917,33 @@ __decorateClass([
5751
5917
  })
5752
5918
  ], Dispute.prototype, "initiatorType", 2);
5753
5919
  __decorateClass([
5754
- Column67({ name: "initiator_id", type: "integer" }),
5755
- Index59()
5920
+ Column69({ name: "initiator_id", type: "integer" }),
5921
+ Index61()
5756
5922
  ], Dispute.prototype, "initiatorId", 2);
5757
5923
  __decorateClass([
5758
- ManyToOne62(() => User, (user) => user.initiatedDisputes),
5759
- JoinColumn62({ name: "initiator_id" })
5924
+ ManyToOne64(() => User, (user) => user.initiatedDisputes),
5925
+ JoinColumn64({ name: "initiator_id" })
5760
5926
  ], Dispute.prototype, "initiator", 2);
5761
5927
  __decorateClass([
5762
- Column67({ name: "respondent_id", type: "integer", nullable: true }),
5763
- Index59()
5928
+ Column69({ name: "respondent_id", type: "integer", nullable: true }),
5929
+ Index61()
5764
5930
  ], Dispute.prototype, "respondentId", 2);
5765
5931
  __decorateClass([
5766
- ManyToOne62(() => User, (user) => user.respondentDisputes, { nullable: true }),
5767
- JoinColumn62({ name: "respondent_id" })
5932
+ ManyToOne64(() => User, (user) => user.respondentDisputes, { nullable: true }),
5933
+ JoinColumn64({ name: "respondent_id" })
5768
5934
  ], Dispute.prototype, "respondent", 2);
5769
5935
  __decorateClass([
5770
- Column67({ name: "attachments", type: "jsonb", nullable: true })
5936
+ Column69({ name: "attachments", type: "jsonb", nullable: true })
5771
5937
  ], Dispute.prototype, "attachments", 2);
5772
5938
  __decorateClass([
5773
- Column67({ name: "dynamic_fields", type: "jsonb", nullable: true })
5939
+ Column69({ name: "dynamic_fields", type: "jsonb", nullable: true })
5774
5940
  ], Dispute.prototype, "dynamicFields", 2);
5775
5941
  Dispute = __decorateClass([
5776
- Entity66("disputes")
5942
+ Entity68("disputes")
5777
5943
  ], Dispute);
5778
5944
 
5779
5945
  // src/entities/stripe-transaction.entity.ts
5780
- import { Entity as Entity67, Column as Column68, Index as Index60, ManyToOne as ManyToOne63, JoinColumn as JoinColumn63 } from "typeorm";
5946
+ import { Entity as Entity69, Column as Column70, Index as Index62, ManyToOne as ManyToOne65, JoinColumn as JoinColumn65 } from "typeorm";
5781
5947
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5782
5948
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5783
5949
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5799,97 +5965,97 @@ var StripeTransaction = class extends BaseEntity {
5799
5965
  // Full Stripe session response
5800
5966
  };
5801
5967
  __decorateClass([
5802
- Column68({ name: "user_id", type: "integer", nullable: true }),
5803
- Index60()
5968
+ Column70({ name: "user_id", type: "integer", nullable: true }),
5969
+ Index62()
5804
5970
  ], StripeTransaction.prototype, "userId", 2);
5805
5971
  __decorateClass([
5806
- ManyToOne63(() => User, (user) => user.stripeTransactions),
5807
- JoinColumn63({ name: "user_id" })
5972
+ ManyToOne65(() => User, (user) => user.stripeTransactions),
5973
+ JoinColumn65({ name: "user_id" })
5808
5974
  ], StripeTransaction.prototype, "user", 2);
5809
5975
  __decorateClass([
5810
- Column68({ name: "stripe_session_id", type: "varchar", nullable: true })
5976
+ Column70({ name: "stripe_session_id", type: "varchar", nullable: true })
5811
5977
  ], StripeTransaction.prototype, "stripeSessionId", 2);
5812
5978
  __decorateClass([
5813
- Column68({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5979
+ Column70({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5814
5980
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
5815
5981
  __decorateClass([
5816
- Column68({ name: "stripe_charge_id", type: "varchar", nullable: true })
5982
+ Column70({ name: "stripe_charge_id", type: "varchar", nullable: true })
5817
5983
  ], StripeTransaction.prototype, "stripeChargeId", 2);
5818
5984
  __decorateClass([
5819
- Column68({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5985
+ Column70({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5820
5986
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
5821
5987
  __decorateClass([
5822
- Column68({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5988
+ Column70({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5823
5989
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
5824
5990
  __decorateClass([
5825
- Column68({ name: "stripe_payment_method", type: "varchar", nullable: true })
5991
+ Column70({ name: "stripe_payment_method", type: "varchar", nullable: true })
5826
5992
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
5827
5993
  __decorateClass([
5828
- Column68({ name: "stripe_payment_status", type: "varchar", nullable: true })
5994
+ Column70({ name: "stripe_payment_status", type: "varchar", nullable: true })
5829
5995
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
5830
5996
  __decorateClass([
5831
- Column68({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5997
+ Column70({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5832
5998
  ], StripeTransaction.prototype, "type", 2);
5833
5999
  __decorateClass([
5834
- Column68({ name: "currency", type: "varchar", nullable: true })
6000
+ Column70({ name: "currency", type: "varchar", nullable: true })
5835
6001
  ], StripeTransaction.prototype, "currency", 2);
5836
6002
  __decorateClass([
5837
- Column68({ 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" })
6003
+ Column70({ 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" })
5838
6004
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
5839
6005
  __decorateClass([
5840
- Column68({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
6006
+ Column70({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5841
6007
  ], StripeTransaction.prototype, "platformFeeCents", 2);
5842
6008
  __decorateClass([
5843
- Column68({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
6009
+ Column70({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5844
6010
  ], StripeTransaction.prototype, "taxCents", 2);
5845
6011
  __decorateClass([
5846
- Column68({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
6012
+ Column70({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5847
6013
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
5848
6014
  __decorateClass([
5849
- Column68({ 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" })
6015
+ Column70({ 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" })
5850
6016
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
5851
6017
  __decorateClass([
5852
- Column68({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
6018
+ Column70({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5853
6019
  ], StripeTransaction.prototype, "actualStripeFee", 2);
5854
6020
  __decorateClass([
5855
- Column68({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
6021
+ Column70({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5856
6022
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
5857
6023
  __decorateClass([
5858
- Column68({ 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" })
6024
+ Column70({ 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" })
5859
6025
  ], StripeTransaction.prototype, "netReceivedCents", 2);
5860
6026
  __decorateClass([
5861
- Column68({ name: "description", type: "text", nullable: true })
6027
+ Column70({ name: "description", type: "text", nullable: true })
5862
6028
  ], StripeTransaction.prototype, "description", 2);
5863
6029
  __decorateClass([
5864
- Column68({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6030
+ Column70({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5865
6031
  ], StripeTransaction.prototype, "status", 2);
5866
6032
  __decorateClass([
5867
- Column68({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
6033
+ Column70({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5868
6034
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
5869
6035
  __decorateClass([
5870
- Column68({ name: "completed_at", type: "timestamptz", nullable: true })
6036
+ Column70({ name: "completed_at", type: "timestamptz", nullable: true })
5871
6037
  ], StripeTransaction.prototype, "completedAt", 2);
5872
6038
  __decorateClass([
5873
- Column68({ name: "billing_details", type: "jsonb", nullable: true })
6039
+ Column70({ name: "billing_details", type: "jsonb", nullable: true })
5874
6040
  ], StripeTransaction.prototype, "billingDetails", 2);
5875
6041
  __decorateClass([
5876
- Column68({ name: "payment_method_details", type: "jsonb", nullable: true })
6042
+ Column70({ name: "payment_method_details", type: "jsonb", nullable: true })
5877
6043
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
5878
6044
  __decorateClass([
5879
- Column68({ name: "raw_session_payload", type: "jsonb", nullable: true })
6045
+ Column70({ name: "raw_session_payload", type: "jsonb", nullable: true })
5880
6046
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
5881
6047
  __decorateClass([
5882
- Column68({ name: "raw_session_response", type: "jsonb", nullable: true })
6048
+ Column70({ name: "raw_session_response", type: "jsonb", nullable: true })
5883
6049
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
5884
6050
  StripeTransaction = __decorateClass([
5885
- Entity67("stripe_transactions")
6051
+ Entity69("stripe_transactions")
5886
6052
  ], StripeTransaction);
5887
6053
 
5888
6054
  // src/entities/wallet.entity.ts
5889
- import { Entity as Entity69, Column as Column70, Index as Index62, JoinColumn as JoinColumn65, OneToOne as OneToOne11, OneToMany as OneToMany23 } from "typeorm";
6055
+ import { Entity as Entity71, Column as Column72, Index as Index64, JoinColumn as JoinColumn67, OneToOne as OneToOne11, OneToMany as OneToMany24 } from "typeorm";
5890
6056
 
5891
6057
  // src/entities/wallet-transaction.entity.ts
5892
- import { Entity as Entity68, Column as Column69, Index as Index61, ManyToOne as ManyToOne64, JoinColumn as JoinColumn64 } from "typeorm";
6058
+ import { Entity as Entity70, Column as Column71, Index as Index63, ManyToOne as ManyToOne66, JoinColumn as JoinColumn66 } from "typeorm";
5893
6059
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
5894
6060
  WalletTransactionTypeEnum2["CR"] = "CR";
5895
6061
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -5906,46 +6072,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
5906
6072
  var WalletTransaction = class extends BaseEntity {
5907
6073
  };
5908
6074
  __decorateClass([
5909
- Column69({ name: "wallet_id", type: "integer", nullable: true }),
5910
- Index61()
6075
+ Column71({ name: "wallet_id", type: "integer", nullable: true }),
6076
+ Index63()
5911
6077
  ], WalletTransaction.prototype, "walletId", 2);
5912
6078
  __decorateClass([
5913
- ManyToOne64(() => Wallet, (wallet) => wallet.walletTransactions),
5914
- JoinColumn64({ name: "wallet_id" })
6079
+ ManyToOne66(() => Wallet, (wallet) => wallet.walletTransactions),
6080
+ JoinColumn66({ name: "wallet_id" })
5915
6081
  ], WalletTransaction.prototype, "wallet", 2);
5916
6082
  __decorateClass([
5917
- Column69({ name: "amount", type: "bigint", nullable: true })
6083
+ Column71({ name: "amount", type: "bigint", nullable: true })
5918
6084
  ], WalletTransaction.prototype, "amount", 2);
5919
6085
  __decorateClass([
5920
- Column69({ name: "balance_before", type: "bigint", nullable: true })
6086
+ Column71({ name: "balance_before", type: "bigint", nullable: true })
5921
6087
  ], WalletTransaction.prototype, "balanceBefore", 2);
5922
6088
  __decorateClass([
5923
- Column69({ name: "balance_after", type: "bigint", nullable: true })
6089
+ Column71({ name: "balance_after", type: "bigint", nullable: true })
5924
6090
  ], WalletTransaction.prototype, "balanceAfter", 2);
5925
6091
  __decorateClass([
5926
- Column69({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6092
+ Column71({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5927
6093
  ], WalletTransaction.prototype, "type", 2);
5928
6094
  __decorateClass([
5929
- Column69({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6095
+ Column71({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5930
6096
  ], WalletTransaction.prototype, "status", 2);
5931
6097
  __decorateClass([
5932
- Column69({ name: "description", type: "text", nullable: true })
6098
+ Column71({ name: "description", type: "text", nullable: true })
5933
6099
  ], WalletTransaction.prototype, "description", 2);
5934
6100
  __decorateClass([
5935
- Column69({ name: "completed_at", type: "timestamptz", nullable: true })
6101
+ Column71({ name: "completed_at", type: "timestamptz", nullable: true })
5936
6102
  ], WalletTransaction.prototype, "completedAt", 2);
5937
6103
  __decorateClass([
5938
- Column69({ name: "transaction_for", type: "varchar", nullable: true })
6104
+ Column71({ name: "transaction_for", type: "varchar", nullable: true })
5939
6105
  ], WalletTransaction.prototype, "transactionFor", 2);
5940
6106
  __decorateClass([
5941
- Column69({ name: "meta_data", type: "varchar", nullable: true })
6107
+ Column71({ name: "meta_data", type: "varchar", nullable: true })
5942
6108
  ], WalletTransaction.prototype, "metaData", 2);
5943
6109
  __decorateClass([
5944
- Column69({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5945
- Index61()
6110
+ Column71({ name: "stripe_transaction_id", type: "integer", nullable: true }),
6111
+ Index63()
5946
6112
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
5947
6113
  WalletTransaction = __decorateClass([
5948
- Entity68("wallet_transactions")
6114
+ Entity70("wallet_transactions")
5949
6115
  ], WalletTransaction);
5950
6116
 
5951
6117
  // src/entities/wallet.entity.ts
@@ -5963,48 +6129,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
5963
6129
  var Wallet = class extends BaseEntity {
5964
6130
  };
5965
6131
  __decorateClass([
5966
- Column70({ name: "user_id", type: "integer", nullable: true }),
5967
- Index62()
6132
+ Column72({ name: "user_id", type: "integer", nullable: true }),
6133
+ Index64()
5968
6134
  ], Wallet.prototype, "userId", 2);
5969
6135
  __decorateClass([
5970
6136
  OneToOne11(() => User, (user) => user.wallet),
5971
- JoinColumn65({ name: "user_id" })
6137
+ JoinColumn67({ name: "user_id" })
5972
6138
  ], Wallet.prototype, "user", 2);
5973
6139
  __decorateClass([
5974
- Column70({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
6140
+ Column72({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5975
6141
  ], Wallet.prototype, "accountType", 2);
5976
6142
  __decorateClass([
5977
- Column70({ name: "stripe_account_id", type: "varchar", nullable: true })
6143
+ Column72({ name: "stripe_account_id", type: "varchar", nullable: true })
5978
6144
  ], Wallet.prototype, "stripeAccountId", 2);
5979
6145
  __decorateClass([
5980
- Column70({ name: "stripe_customer_id", type: "varchar", nullable: true })
6146
+ Column72({ name: "stripe_customer_id", type: "varchar", nullable: true })
5981
6147
  ], Wallet.prototype, "stripeCustomerId", 2);
5982
6148
  __decorateClass([
5983
- Column70({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
6149
+ Column72({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5984
6150
  ], Wallet.prototype, "walletBalance", 2);
5985
6151
  __decorateClass([
5986
- Column70({ 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" })
6152
+ Column72({ 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" })
5987
6153
  ], Wallet.prototype, "walletBalanceCents", 2);
5988
6154
  __decorateClass([
5989
- Column70({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
6155
+ Column72({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5990
6156
  ], Wallet.prototype, "onboardingStatus", 2);
5991
6157
  __decorateClass([
5992
- Column70({ name: "stripe_metadata", type: "jsonb", nullable: true })
6158
+ Column72({ name: "stripe_metadata", type: "jsonb", nullable: true })
5993
6159
  ], Wallet.prototype, "stripeMetadata", 2);
5994
6160
  __decorateClass([
5995
- OneToMany23(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
6161
+ OneToMany24(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5996
6162
  ], Wallet.prototype, "walletTransactions", 2);
5997
6163
  Wallet = __decorateClass([
5998
- Entity69("wallets")
6164
+ Entity71("wallets")
5999
6165
  ], Wallet);
6000
6166
 
6001
6167
  // src/entities/freelancer-assessment-request.entity.ts
6002
6168
  import {
6003
- Entity as Entity70,
6004
- Column as Column71,
6005
- ManyToOne as ManyToOne65,
6006
- Index as Index63,
6007
- JoinColumn as JoinColumn66
6169
+ Entity as Entity72,
6170
+ Column as Column73,
6171
+ ManyToOne as ManyToOne67,
6172
+ Index as Index65,
6173
+ JoinColumn as JoinColumn68
6008
6174
  } from "typeorm";
6009
6175
  var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
6010
6176
  AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
@@ -6015,23 +6181,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
6015
6181
  var FreelancerAssessmentRequest = class extends BaseEntity {
6016
6182
  };
6017
6183
  __decorateClass([
6018
- Column71({ name: "freelancer_id", type: "integer", nullable: true }),
6019
- Index63()
6184
+ Column73({ name: "freelancer_id", type: "integer", nullable: true }),
6185
+ Index65()
6020
6186
  ], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
6021
6187
  __decorateClass([
6022
- ManyToOne65(() => User, (user) => user.freelancerAssessmentRequests),
6023
- JoinColumn66({ name: "freelancer_id" })
6188
+ ManyToOne67(() => User, (user) => user.freelancerAssessmentRequests),
6189
+ JoinColumn68({ name: "freelancer_id" })
6024
6190
  ], FreelancerAssessmentRequest.prototype, "freelancer", 2);
6025
6191
  __decorateClass([
6026
- Column71({ name: "approved_by_id", type: "integer", nullable: true }),
6027
- Index63()
6192
+ Column73({ name: "approved_by_id", type: "integer", nullable: true }),
6193
+ Index65()
6028
6194
  ], FreelancerAssessmentRequest.prototype, "approvedById", 2);
6029
6195
  __decorateClass([
6030
- ManyToOne65(() => User, (user) => user.assessmentRequests),
6031
- JoinColumn66({ name: "approved_by_id" })
6196
+ ManyToOne67(() => User, (user) => user.assessmentRequests),
6197
+ JoinColumn68({ name: "approved_by_id" })
6032
6198
  ], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
6033
6199
  __decorateClass([
6034
- Column71({
6200
+ Column73({
6035
6201
  name: "status",
6036
6202
  type: "enum",
6037
6203
  enum: AssessmentRequestStatusEnum,
@@ -6039,209 +6205,46 @@ __decorateClass([
6039
6205
  })
6040
6206
  ], FreelancerAssessmentRequest.prototype, "status", 2);
6041
6207
  __decorateClass([
6042
- Column71({ name: "assessment_link", type: "text", nullable: true })
6208
+ Column73({ name: "assessment_link", type: "text", nullable: true })
6043
6209
  ], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
6044
6210
  FreelancerAssessmentRequest = __decorateClass([
6045
- Entity70({ name: "freelancer_assessment_requests" })
6211
+ Entity72({ name: "freelancer_assessment_requests" })
6046
6212
  ], FreelancerAssessmentRequest);
6047
6213
 
6048
6214
  // src/entities/in-app-notification.entity.ts
6049
- import { Entity as Entity71, Column as Column72, Index as Index64, ManyToOne as ManyToOne66, JoinColumn as JoinColumn67 } from "typeorm";
6215
+ import { Entity as Entity73, Column as Column74, Index as Index66, ManyToOne as ManyToOne68, JoinColumn as JoinColumn69 } from "typeorm";
6050
6216
  var InAppNotification = class extends BaseEntity {
6051
6217
  };
6052
6218
  __decorateClass([
6053
- Column72({ name: "user_id", type: "integer", nullable: true }),
6054
- Index64()
6219
+ Column74({ name: "user_id", type: "integer", nullable: true }),
6220
+ Index66()
6055
6221
  ], InAppNotification.prototype, "userId", 2);
6056
6222
  __decorateClass([
6057
- ManyToOne66(() => User, (user) => user.inAppNotifications),
6058
- JoinColumn67({ name: "user_id" })
6223
+ ManyToOne68(() => User, (user) => user.inAppNotifications),
6224
+ JoinColumn69({ name: "user_id" })
6059
6225
  ], InAppNotification.prototype, "user", 2);
6060
6226
  __decorateClass([
6061
- Column72({ name: "event", type: "varchar", nullable: true })
6227
+ Column74({ name: "event", type: "varchar", nullable: true })
6062
6228
  ], InAppNotification.prototype, "event", 2);
6063
6229
  __decorateClass([
6064
- Column72({ name: "title", type: "varchar", nullable: true })
6230
+ Column74({ name: "title", type: "varchar", nullable: true })
6065
6231
  ], InAppNotification.prototype, "title", 2);
6066
6232
  __decorateClass([
6067
- Column72({ name: "message", type: "varchar", nullable: true })
6233
+ Column74({ name: "message", type: "varchar", nullable: true })
6068
6234
  ], InAppNotification.prototype, "message", 2);
6069
6235
  __decorateClass([
6070
- Column72({ name: "redirect_url", type: "varchar", nullable: true })
6236
+ Column74({ name: "redirect_url", type: "varchar", nullable: true })
6071
6237
  ], InAppNotification.prototype, "redirectUrl", 2);
6072
6238
  __decorateClass([
6073
- Column72({ name: "is_read", type: "boolean", default: false })
6239
+ Column74({ name: "is_read", type: "boolean", default: false })
6074
6240
  ], InAppNotification.prototype, "isRead", 2);
6075
6241
  __decorateClass([
6076
- Column72({ name: "meta_data", type: "jsonb", nullable: true })
6242
+ Column74({ name: "meta_data", type: "jsonb", nullable: true })
6077
6243
  ], InAppNotification.prototype, "metaData", 2);
6078
6244
  InAppNotification = __decorateClass([
6079
- Entity71("in_app_notifications")
6245
+ Entity73("in_app_notifications")
6080
6246
  ], InAppNotification);
6081
6247
 
6082
- // src/entities/task-query.entity.ts
6083
- import { Entity as Entity73, Column as Column74, Index as Index66, JoinColumn as JoinColumn69, ManyToOne as ManyToOne68, OneToMany as OneToMany24 } from "typeorm";
6084
-
6085
- // src/entities/task-query-message.entity.ts
6086
- import { Entity as Entity72, Column as Column73, Index as Index65, JoinColumn as JoinColumn68, ManyToOne as ManyToOne67 } from "typeorm";
6087
- var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnum2) => {
6088
- TaskQueryMessageUserTypeEnum2["CLIENT"] = "CLIENT";
6089
- TaskQueryMessageUserTypeEnum2["FREELANCER"] = "FREELANCER";
6090
- return TaskQueryMessageUserTypeEnum2;
6091
- })(TaskQueryMessageUserTypeEnum || {});
6092
- var TaskQueryMessage = class extends BaseEntity {
6093
- };
6094
- __decorateClass([
6095
- Column73({ name: "task_query_id", type: "integer" }),
6096
- Index65()
6097
- ], TaskQueryMessage.prototype, "taskQueryId", 2);
6098
- __decorateClass([
6099
- ManyToOne67(() => TaskQuery, (taskQuery) => taskQuery.messages),
6100
- JoinColumn68({ name: "task_query_id" })
6101
- ], TaskQueryMessage.prototype, "taskQuery", 2);
6102
- __decorateClass([
6103
- Column73({ name: "sender_user_id", type: "integer" }),
6104
- Index65()
6105
- ], TaskQueryMessage.prototype, "senderUserId", 2);
6106
- __decorateClass([
6107
- ManyToOne67(() => User, (user) => user.taskQueryMessages),
6108
- JoinColumn68({ name: "sender_user_id" })
6109
- ], TaskQueryMessage.prototype, "senderUser", 2);
6110
- __decorateClass([
6111
- Column73({
6112
- name: "sender_type",
6113
- type: "enum",
6114
- enum: TaskQueryMessageUserTypeEnum
6115
- })
6116
- ], TaskQueryMessage.prototype, "senderType", 2);
6117
- __decorateClass([
6118
- Column73({ name: "message", type: "varchar", nullable: true })
6119
- ], TaskQueryMessage.prototype, "message", 2);
6120
- __decorateClass([
6121
- Column73({ name: "attachment_url", type: "varchar", nullable: true })
6122
- ], TaskQueryMessage.prototype, "attachmentUrl", 2);
6123
- __decorateClass([
6124
- Column73({ name: "attachment_type", type: "varchar", nullable: true })
6125
- ], TaskQueryMessage.prototype, "attachmentType", 2);
6126
- __decorateClass([
6127
- Column73({ name: "meta", type: "jsonb", nullable: true })
6128
- ], TaskQueryMessage.prototype, "meta", 2);
6129
- __decorateClass([
6130
- Column73({ name: "is_read", type: "boolean", default: false })
6131
- ], TaskQueryMessage.prototype, "isRead", 2);
6132
- __decorateClass([
6133
- Column73({
6134
- name: "read_at",
6135
- type: "timestamp with time zone",
6136
- nullable: true
6137
- })
6138
- ], TaskQueryMessage.prototype, "readAt", 2);
6139
- TaskQueryMessage = __decorateClass([
6140
- Entity72("task_query_messages")
6141
- ], TaskQueryMessage);
6142
-
6143
- // src/entities/task-query.entity.ts
6144
- var TaskQueryUserTypeEnum = /* @__PURE__ */ ((TaskQueryUserTypeEnum2) => {
6145
- TaskQueryUserTypeEnum2["CLIENT"] = "CLIENT";
6146
- TaskQueryUserTypeEnum2["FREELANCER"] = "FREELANCER";
6147
- return TaskQueryUserTypeEnum2;
6148
- })(TaskQueryUserTypeEnum || {});
6149
- var TaskQueryCategoryEnum = /* @__PURE__ */ ((TaskQueryCategoryEnum2) => {
6150
- TaskQueryCategoryEnum2["DEVELOPMENT_ISSUE"] = "DEVELOPMENT_ISSUE";
6151
- TaskQueryCategoryEnum2["TESTING_ISSUE"] = "TESTING_ISSUE";
6152
- TaskQueryCategoryEnum2["OTHER"] = "OTHER";
6153
- return TaskQueryCategoryEnum2;
6154
- })(TaskQueryCategoryEnum || {});
6155
- var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
6156
- TaskQueryStatusEnum2["OPEN"] = "OPEN";
6157
- TaskQueryStatusEnum2["ANSWERED"] = "ANSWERED";
6158
- TaskQueryStatusEnum2["CLOSED"] = "CLOSED";
6159
- return TaskQueryStatusEnum2;
6160
- })(TaskQueryStatusEnum || {});
6161
- var TaskQuery = class extends BaseEntity {
6162
- };
6163
- __decorateClass([
6164
- Column74({ name: "task_id", type: "integer" }),
6165
- Index66()
6166
- ], TaskQuery.prototype, "taskId", 2);
6167
- __decorateClass([
6168
- ManyToOne68(() => Task),
6169
- JoinColumn69({ name: "task_id" })
6170
- ], TaskQuery.prototype, "task", 2);
6171
- __decorateClass([
6172
- Column74({ name: "raised_by_user_id", type: "integer" }),
6173
- Index66()
6174
- ], TaskQuery.prototype, "raisedByUserId", 2);
6175
- __decorateClass([
6176
- ManyToOne68(() => User, (user) => user.raisedTaskQueries),
6177
- JoinColumn69({ name: "raised_by_user_id" })
6178
- ], TaskQuery.prototype, "raisedByUser", 2);
6179
- __decorateClass([
6180
- Column74({
6181
- name: "raised_by_type",
6182
- type: "enum",
6183
- enum: TaskQueryUserTypeEnum
6184
- })
6185
- ], TaskQuery.prototype, "raisedByType", 2);
6186
- __decorateClass([
6187
- Column74({ name: "assigned_to_user_id", type: "integer" }),
6188
- Index66()
6189
- ], TaskQuery.prototype, "assignedToUserId", 2);
6190
- __decorateClass([
6191
- ManyToOne68(() => User, (user) => user.assignedTaskQueries),
6192
- JoinColumn69({ name: "assigned_to_user_id" })
6193
- ], TaskQuery.prototype, "assignedToUser", 2);
6194
- __decorateClass([
6195
- Column74({
6196
- name: "assigned_to_type",
6197
- type: "enum",
6198
- enum: TaskQueryUserTypeEnum
6199
- })
6200
- ], TaskQuery.prototype, "assignedToType", 2);
6201
- __decorateClass([
6202
- Column74({
6203
- name: "query_category",
6204
- type: "enum",
6205
- enum: TaskQueryCategoryEnum
6206
- })
6207
- ], TaskQuery.prototype, "queryCategory", 2);
6208
- __decorateClass([
6209
- Column74({ name: "subject", type: "varchar", nullable: true })
6210
- ], TaskQuery.prototype, "subject", 2);
6211
- __decorateClass([
6212
- Column74({ name: "description", type: "varchar", nullable: true })
6213
- ], TaskQuery.prototype, "description", 2);
6214
- __decorateClass([
6215
- Column74({
6216
- name: "status",
6217
- type: "enum",
6218
- enum: TaskQueryStatusEnum,
6219
- default: "OPEN" /* OPEN */
6220
- })
6221
- ], TaskQuery.prototype, "status", 2);
6222
- __decorateClass([
6223
- Column74({
6224
- name: "last_message_at",
6225
- type: "timestamp with time zone",
6226
- nullable: true
6227
- })
6228
- ], TaskQuery.prototype, "lastMessageAt", 2);
6229
- __decorateClass([
6230
- Column74({ name: "last_message_preview", type: "varchar", nullable: true })
6231
- ], TaskQuery.prototype, "lastMessagePreview", 2);
6232
- __decorateClass([
6233
- Column74({ name: "unread_count_client", type: "integer", default: 0 })
6234
- ], TaskQuery.prototype, "unreadCountClient", 2);
6235
- __decorateClass([
6236
- Column74({ name: "unread_count_freelancer", type: "integer", default: 0 })
6237
- ], TaskQuery.prototype, "unreadCountFreelancer", 2);
6238
- __decorateClass([
6239
- OneToMany24(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
6240
- ], TaskQuery.prototype, "messages", 2);
6241
- TaskQuery = __decorateClass([
6242
- Entity73("task_queries")
6243
- ], TaskQuery);
6244
-
6245
6248
  // src/entities/user.entity.ts
6246
6249
  var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
6247
6250
  AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";