@experts_hub/shared 1.0.309 → 1.0.312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/job-skill.entity.d.ts +1 -3
- package/dist/entities/skill.entity.d.ts +0 -2
- package/dist/index.d.mts +8 -10
- package/dist/index.d.ts +8 -10
- package/dist/index.js +444 -454
- package/dist/index.mjs +349 -359
- package/dist/modules/job/dto/job-basic-information.dto.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1109,8 +1109,8 @@ __decorateClass([
|
|
|
1109
1109
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1110
1110
|
(0, import_class_validator31.IsArray)({ message: "Skills must be an array" }),
|
|
1111
1111
|
(0, import_class_validator31.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1112
|
-
(0, import_class_validator31.
|
|
1113
|
-
(0, import_class_transformer.Type)(() =>
|
|
1112
|
+
(0, import_class_validator31.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
1113
|
+
(0, import_class_transformer.Type)(() => String)
|
|
1114
1114
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1115
1115
|
__decorateClass([
|
|
1116
1116
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
@@ -1497,10 +1497,10 @@ var RATING_PATTERN = {
|
|
|
1497
1497
|
var import_class_validator40 = require("class-validator");
|
|
1498
1498
|
|
|
1499
1499
|
// src/entities/rating.entity.ts
|
|
1500
|
-
var
|
|
1500
|
+
var import_typeorm41 = require("typeorm");
|
|
1501
1501
|
|
|
1502
1502
|
// src/entities/user.entity.ts
|
|
1503
|
-
var
|
|
1503
|
+
var import_typeorm40 = require("typeorm");
|
|
1504
1504
|
|
|
1505
1505
|
// src/entities/base.entity.ts
|
|
1506
1506
|
var import_typeorm = require("typeorm");
|
|
@@ -2164,56 +2164,29 @@ CompanyProfile = __decorateClass([
|
|
|
2164
2164
|
], CompanyProfile);
|
|
2165
2165
|
|
|
2166
2166
|
// src/entities/job.entity.ts
|
|
2167
|
-
var
|
|
2167
|
+
var import_typeorm15 = require("typeorm");
|
|
2168
2168
|
|
|
2169
2169
|
// src/entities/job-skill.entity.ts
|
|
2170
|
-
var import_typeorm11 = require("typeorm");
|
|
2171
|
-
|
|
2172
|
-
// src/entities/skill.entity.ts
|
|
2173
2170
|
var import_typeorm10 = require("typeorm");
|
|
2174
|
-
var Skill = class extends BaseEntity {
|
|
2175
|
-
};
|
|
2176
|
-
__decorateClass([
|
|
2177
|
-
(0, import_typeorm10.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2178
|
-
], Skill.prototype, "name", 2);
|
|
2179
|
-
__decorateClass([
|
|
2180
|
-
(0, import_typeorm10.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2181
|
-
], Skill.prototype, "slug", 2);
|
|
2182
|
-
__decorateClass([
|
|
2183
|
-
(0, import_typeorm10.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2184
|
-
], Skill.prototype, "isActive", 2);
|
|
2185
|
-
__decorateClass([
|
|
2186
|
-
(0, import_typeorm10.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.skill)
|
|
2187
|
-
], Skill.prototype, "jobSkills", 2);
|
|
2188
|
-
Skill = __decorateClass([
|
|
2189
|
-
(0, import_typeorm10.Entity)("skills")
|
|
2190
|
-
], Skill);
|
|
2191
|
-
|
|
2192
|
-
// src/entities/job-skill.entity.ts
|
|
2193
2171
|
var JobSkill = class extends BaseEntity {
|
|
2194
2172
|
};
|
|
2195
2173
|
__decorateClass([
|
|
2196
|
-
(0,
|
|
2197
|
-
(0,
|
|
2174
|
+
(0, import_typeorm10.Column)({ name: "job_id", type: "integer" }),
|
|
2175
|
+
(0, import_typeorm10.Index)()
|
|
2198
2176
|
], JobSkill.prototype, "jobId", 2);
|
|
2199
2177
|
__decorateClass([
|
|
2200
|
-
(0,
|
|
2201
|
-
(0,
|
|
2178
|
+
(0, import_typeorm10.ManyToOne)(() => Job, (job) => job.jobSkills, { onDelete: "CASCADE" }),
|
|
2179
|
+
(0, import_typeorm10.JoinColumn)({ name: "job_id" })
|
|
2202
2180
|
], JobSkill.prototype, "job", 2);
|
|
2203
2181
|
__decorateClass([
|
|
2204
|
-
(0,
|
|
2205
|
-
|
|
2206
|
-
], JobSkill.prototype, "skillId", 2);
|
|
2207
|
-
__decorateClass([
|
|
2208
|
-
(0, import_typeorm11.ManyToOne)(() => Skill, (skill) => skill.jobSkills, { onDelete: "CASCADE" }),
|
|
2209
|
-
(0, import_typeorm11.JoinColumn)({ name: "skill_id" })
|
|
2210
|
-
], JobSkill.prototype, "skill", 2);
|
|
2182
|
+
(0, import_typeorm10.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2183
|
+
], JobSkill.prototype, "skillName", 2);
|
|
2211
2184
|
JobSkill = __decorateClass([
|
|
2212
|
-
(0,
|
|
2185
|
+
(0, import_typeorm10.Entity)("job_skills")
|
|
2213
2186
|
], JobSkill);
|
|
2214
2187
|
|
|
2215
2188
|
// src/entities/job-application.entity.ts
|
|
2216
|
-
var
|
|
2189
|
+
var import_typeorm11 = require("typeorm");
|
|
2217
2190
|
var ApplicationStatusEnum = /* @__PURE__ */ ((ApplicationStatusEnum2) => {
|
|
2218
2191
|
ApplicationStatusEnum2["PENDING"] = "PENDING";
|
|
2219
2192
|
ApplicationStatusEnum2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -2231,7 +2204,7 @@ var ApplicationStatusEnum = /* @__PURE__ */ ((ApplicationStatusEnum2) => {
|
|
|
2231
2204
|
var JobApplication = class extends BaseEntity {
|
|
2232
2205
|
};
|
|
2233
2206
|
__decorateClass([
|
|
2234
|
-
(0,
|
|
2207
|
+
(0, import_typeorm11.Column)({
|
|
2235
2208
|
name: "job_application_id",
|
|
2236
2209
|
type: "varchar",
|
|
2237
2210
|
unique: true,
|
|
@@ -2239,23 +2212,23 @@ __decorateClass([
|
|
|
2239
2212
|
})
|
|
2240
2213
|
], JobApplication.prototype, "jobApplicationId", 2);
|
|
2241
2214
|
__decorateClass([
|
|
2242
|
-
(0,
|
|
2243
|
-
(0,
|
|
2215
|
+
(0, import_typeorm11.Column)({ name: "job_id", type: "integer" }),
|
|
2216
|
+
(0, import_typeorm11.Index)()
|
|
2244
2217
|
], JobApplication.prototype, "jobId", 2);
|
|
2245
2218
|
__decorateClass([
|
|
2246
|
-
(0,
|
|
2247
|
-
(0,
|
|
2219
|
+
(0, import_typeorm11.ManyToOne)(() => Job, (job) => job.jobApplications, { onDelete: "CASCADE" }),
|
|
2220
|
+
(0, import_typeorm11.JoinColumn)({ name: "job_id" })
|
|
2248
2221
|
], JobApplication.prototype, "job", 2);
|
|
2249
2222
|
__decorateClass([
|
|
2250
|
-
(0,
|
|
2251
|
-
(0,
|
|
2223
|
+
(0, import_typeorm11.Column)({ name: "user_id", type: "integer" }),
|
|
2224
|
+
(0, import_typeorm11.Index)()
|
|
2252
2225
|
], JobApplication.prototype, "userId", 2);
|
|
2253
2226
|
__decorateClass([
|
|
2254
|
-
(0,
|
|
2255
|
-
(0,
|
|
2227
|
+
(0, import_typeorm11.ManyToOne)(() => User, (user) => user.jobApplications),
|
|
2228
|
+
(0, import_typeorm11.JoinColumn)({ name: "user_id" })
|
|
2256
2229
|
], JobApplication.prototype, "user", 2);
|
|
2257
2230
|
__decorateClass([
|
|
2258
|
-
(0,
|
|
2231
|
+
(0, import_typeorm11.Column)({
|
|
2259
2232
|
name: "status",
|
|
2260
2233
|
type: "enum",
|
|
2261
2234
|
enum: ApplicationStatusEnum,
|
|
@@ -2263,123 +2236,123 @@ __decorateClass([
|
|
|
2263
2236
|
})
|
|
2264
2237
|
], JobApplication.prototype, "status", 2);
|
|
2265
2238
|
__decorateClass([
|
|
2266
|
-
(0,
|
|
2239
|
+
(0, import_typeorm11.Column)({
|
|
2267
2240
|
name: "applied_at",
|
|
2268
2241
|
type: "timestamp with time zone",
|
|
2269
2242
|
default: () => "CURRENT_TIMESTAMP"
|
|
2270
2243
|
})
|
|
2271
2244
|
], JobApplication.prototype, "appliedAt", 2);
|
|
2272
2245
|
__decorateClass([
|
|
2273
|
-
(0,
|
|
2246
|
+
(0, import_typeorm11.Column)({
|
|
2274
2247
|
name: "shortlisted_at",
|
|
2275
2248
|
type: "timestamp with time zone",
|
|
2276
2249
|
nullable: true
|
|
2277
2250
|
})
|
|
2278
2251
|
], JobApplication.prototype, "shortlistedAt", 2);
|
|
2279
2252
|
__decorateClass([
|
|
2280
|
-
(0,
|
|
2253
|
+
(0, import_typeorm11.Column)({
|
|
2281
2254
|
name: "interview_started_at",
|
|
2282
2255
|
type: "timestamp with time zone",
|
|
2283
2256
|
nullable: true
|
|
2284
2257
|
})
|
|
2285
2258
|
], JobApplication.prototype, "interviewStartedAt", 2);
|
|
2286
2259
|
__decorateClass([
|
|
2287
|
-
(0,
|
|
2260
|
+
(0, import_typeorm11.Column)({
|
|
2288
2261
|
name: "interview_completed_at",
|
|
2289
2262
|
type: "timestamp with time zone",
|
|
2290
2263
|
nullable: true
|
|
2291
2264
|
})
|
|
2292
2265
|
], JobApplication.prototype, "interviewCompletedAt", 2);
|
|
2293
2266
|
__decorateClass([
|
|
2294
|
-
(0,
|
|
2267
|
+
(0, import_typeorm11.Column)({
|
|
2295
2268
|
name: "offered_at",
|
|
2296
2269
|
type: "timestamp with time zone",
|
|
2297
2270
|
nullable: true
|
|
2298
2271
|
})
|
|
2299
2272
|
], JobApplication.prototype, "offeredAt", 2);
|
|
2300
2273
|
__decorateClass([
|
|
2301
|
-
(0,
|
|
2274
|
+
(0, import_typeorm11.Column)({
|
|
2302
2275
|
name: "hired_at",
|
|
2303
2276
|
type: "timestamp with time zone",
|
|
2304
2277
|
nullable: true
|
|
2305
2278
|
})
|
|
2306
2279
|
], JobApplication.prototype, "hiredAt", 2);
|
|
2307
2280
|
__decorateClass([
|
|
2308
|
-
(0,
|
|
2281
|
+
(0, import_typeorm11.Column)({
|
|
2309
2282
|
name: "rejected_at",
|
|
2310
2283
|
type: "timestamp with time zone",
|
|
2311
2284
|
nullable: true
|
|
2312
2285
|
})
|
|
2313
2286
|
], JobApplication.prototype, "rejectedAt", 2);
|
|
2314
2287
|
__decorateClass([
|
|
2315
|
-
(0,
|
|
2288
|
+
(0, import_typeorm11.Column)({ name: "rejection_reason", type: "varchar", nullable: true })
|
|
2316
2289
|
], JobApplication.prototype, "rejectionReason", 2);
|
|
2317
2290
|
__decorateClass([
|
|
2318
|
-
(0,
|
|
2291
|
+
(0, import_typeorm11.Column)({
|
|
2319
2292
|
name: "withdrawn_at",
|
|
2320
2293
|
type: "timestamp with time zone",
|
|
2321
2294
|
nullable: true
|
|
2322
2295
|
})
|
|
2323
2296
|
], JobApplication.prototype, "withdrawnAt", 2);
|
|
2324
2297
|
__decorateClass([
|
|
2325
|
-
(0,
|
|
2298
|
+
(0, import_typeorm11.Column)({ name: "withdrawn_reason", type: "varchar", nullable: true })
|
|
2326
2299
|
], JobApplication.prototype, "withdrawnReason", 2);
|
|
2327
2300
|
JobApplication = __decorateClass([
|
|
2328
|
-
(0,
|
|
2301
|
+
(0, import_typeorm11.Entity)("job_applications")
|
|
2329
2302
|
], JobApplication);
|
|
2330
2303
|
|
|
2331
2304
|
// src/entities/interview.entity.ts
|
|
2332
|
-
var
|
|
2305
|
+
var import_typeorm14 = require("typeorm");
|
|
2333
2306
|
|
|
2334
2307
|
// src/entities/interview-skill.entity.ts
|
|
2335
|
-
var
|
|
2308
|
+
var import_typeorm12 = require("typeorm");
|
|
2336
2309
|
var InterviewSkill = class extends BaseEntity {
|
|
2337
2310
|
};
|
|
2338
2311
|
__decorateClass([
|
|
2339
|
-
(0,
|
|
2340
|
-
(0,
|
|
2312
|
+
(0, import_typeorm12.Column)({ name: "interview_id", type: "integer" }),
|
|
2313
|
+
(0, import_typeorm12.Index)()
|
|
2341
2314
|
], InterviewSkill.prototype, "interviewId", 2);
|
|
2342
2315
|
__decorateClass([
|
|
2343
|
-
(0,
|
|
2316
|
+
(0, import_typeorm12.ManyToOne)(() => Interview, (interview) => interview.interviewSkills, {
|
|
2344
2317
|
onDelete: "CASCADE"
|
|
2345
2318
|
}),
|
|
2346
|
-
(0,
|
|
2319
|
+
(0, import_typeorm12.JoinColumn)({ name: "interview_id" })
|
|
2347
2320
|
], InterviewSkill.prototype, "interview", 2);
|
|
2348
2321
|
__decorateClass([
|
|
2349
|
-
(0,
|
|
2322
|
+
(0, import_typeorm12.Column)({ name: "skill", type: "varchar", nullable: true })
|
|
2350
2323
|
], InterviewSkill.prototype, "skill", 2);
|
|
2351
2324
|
__decorateClass([
|
|
2352
|
-
(0,
|
|
2325
|
+
(0, import_typeorm12.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2353
2326
|
], InterviewSkill.prototype, "description", 2);
|
|
2354
2327
|
__decorateClass([
|
|
2355
|
-
(0,
|
|
2328
|
+
(0, import_typeorm12.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2356
2329
|
], InterviewSkill.prototype, "isActive", 2);
|
|
2357
2330
|
InterviewSkill = __decorateClass([
|
|
2358
|
-
(0,
|
|
2331
|
+
(0, import_typeorm12.Entity)("interview_skills")
|
|
2359
2332
|
], InterviewSkill);
|
|
2360
2333
|
|
|
2361
2334
|
// src/entities/interview-question.entity.ts
|
|
2362
|
-
var
|
|
2335
|
+
var import_typeorm13 = require("typeorm");
|
|
2363
2336
|
var InterviewQuestion = class extends BaseEntity {
|
|
2364
2337
|
};
|
|
2365
2338
|
__decorateClass([
|
|
2366
|
-
(0,
|
|
2367
|
-
(0,
|
|
2339
|
+
(0, import_typeorm13.Column)({ name: "interview_id", type: "integer" }),
|
|
2340
|
+
(0, import_typeorm13.Index)()
|
|
2368
2341
|
], InterviewQuestion.prototype, "interviewId", 2);
|
|
2369
2342
|
__decorateClass([
|
|
2370
|
-
(0,
|
|
2343
|
+
(0, import_typeorm13.ManyToOne)(() => Interview, (interview) => interview.interviewSkills, {
|
|
2371
2344
|
onDelete: "CASCADE"
|
|
2372
2345
|
}),
|
|
2373
|
-
(0,
|
|
2346
|
+
(0, import_typeorm13.JoinColumn)({ name: "interview_id" })
|
|
2374
2347
|
], InterviewQuestion.prototype, "interview", 2);
|
|
2375
2348
|
__decorateClass([
|
|
2376
|
-
(0,
|
|
2349
|
+
(0, import_typeorm13.Column)({ name: "question", type: "varchar", nullable: true })
|
|
2377
2350
|
], InterviewQuestion.prototype, "question", 2);
|
|
2378
2351
|
__decorateClass([
|
|
2379
|
-
(0,
|
|
2352
|
+
(0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2380
2353
|
], InterviewQuestion.prototype, "isActive", 2);
|
|
2381
2354
|
InterviewQuestion = __decorateClass([
|
|
2382
|
-
(0,
|
|
2355
|
+
(0, import_typeorm13.Entity)("interview_questions")
|
|
2383
2356
|
], InterviewQuestion);
|
|
2384
2357
|
|
|
2385
2358
|
// src/entities/interview.entity.ts
|
|
@@ -2394,38 +2367,38 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2394
2367
|
var Interview = class extends BaseEntity {
|
|
2395
2368
|
};
|
|
2396
2369
|
__decorateClass([
|
|
2397
|
-
(0,
|
|
2370
|
+
(0, import_typeorm14.Column)({
|
|
2398
2371
|
name: "interview_id",
|
|
2399
2372
|
type: "varchar",
|
|
2400
2373
|
unique: true,
|
|
2401
2374
|
nullable: true
|
|
2402
2375
|
}),
|
|
2403
|
-
(0,
|
|
2376
|
+
(0, import_typeorm14.Index)()
|
|
2404
2377
|
], Interview.prototype, "interviewId", 2);
|
|
2405
2378
|
__decorateClass([
|
|
2406
|
-
(0,
|
|
2407
|
-
(0,
|
|
2379
|
+
(0, import_typeorm14.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2380
|
+
(0, import_typeorm14.Index)()
|
|
2408
2381
|
], Interview.prototype, "userId", 2);
|
|
2409
2382
|
__decorateClass([
|
|
2410
|
-
(0,
|
|
2411
|
-
(0,
|
|
2383
|
+
(0, import_typeorm14.ManyToOne)(() => User, (user) => user.interviews),
|
|
2384
|
+
(0, import_typeorm14.JoinColumn)({ name: "user_id" })
|
|
2412
2385
|
], Interview.prototype, "user", 2);
|
|
2413
2386
|
__decorateClass([
|
|
2414
|
-
(0,
|
|
2387
|
+
(0, import_typeorm14.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
2415
2388
|
], Interview.prototype, "interviewName", 2);
|
|
2416
2389
|
__decorateClass([
|
|
2417
|
-
(0,
|
|
2418
|
-
(0,
|
|
2390
|
+
(0, import_typeorm14.Column)({ name: "job_id", type: "integer" }),
|
|
2391
|
+
(0, import_typeorm14.Index)()
|
|
2419
2392
|
], Interview.prototype, "jobId", 2);
|
|
2420
2393
|
__decorateClass([
|
|
2421
|
-
(0,
|
|
2422
|
-
(0,
|
|
2394
|
+
(0, import_typeorm14.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2395
|
+
(0, import_typeorm14.JoinColumn)({ name: "job_id" })
|
|
2423
2396
|
], Interview.prototype, "job", 2);
|
|
2424
2397
|
__decorateClass([
|
|
2425
|
-
(0,
|
|
2398
|
+
(0, import_typeorm14.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
2426
2399
|
], Interview.prototype, "interviewType", 2);
|
|
2427
2400
|
__decorateClass([
|
|
2428
|
-
(0,
|
|
2401
|
+
(0, import_typeorm14.Column)({
|
|
2429
2402
|
name: "status",
|
|
2430
2403
|
type: "enum",
|
|
2431
2404
|
enum: InterviewStatusEnum,
|
|
@@ -2433,21 +2406,21 @@ __decorateClass([
|
|
|
2433
2406
|
})
|
|
2434
2407
|
], Interview.prototype, "status", 2);
|
|
2435
2408
|
__decorateClass([
|
|
2436
|
-
(0,
|
|
2409
|
+
(0, import_typeorm14.OneToMany)(
|
|
2437
2410
|
() => InterviewSkill,
|
|
2438
2411
|
(interviewSkill) => interviewSkill.interview,
|
|
2439
2412
|
{ cascade: true }
|
|
2440
2413
|
)
|
|
2441
2414
|
], Interview.prototype, "interviewSkills", 2);
|
|
2442
2415
|
__decorateClass([
|
|
2443
|
-
(0,
|
|
2416
|
+
(0, import_typeorm14.OneToMany)(
|
|
2444
2417
|
() => InterviewQuestion,
|
|
2445
2418
|
(interviewQuestion) => interviewQuestion.interview,
|
|
2446
2419
|
{ cascade: true }
|
|
2447
2420
|
)
|
|
2448
2421
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2449
2422
|
Interview = __decorateClass([
|
|
2450
|
-
(0,
|
|
2423
|
+
(0, import_typeorm14.Entity)("interviews")
|
|
2451
2424
|
], Interview);
|
|
2452
2425
|
|
|
2453
2426
|
// src/entities/job.entity.ts
|
|
@@ -2487,49 +2460,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2487
2460
|
var Job = class extends BaseEntity {
|
|
2488
2461
|
};
|
|
2489
2462
|
__decorateClass([
|
|
2490
|
-
(0,
|
|
2463
|
+
(0, import_typeorm15.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2491
2464
|
], Job.prototype, "jobId", 2);
|
|
2492
2465
|
// individual index to find jobs by user
|
|
2493
2466
|
__decorateClass([
|
|
2494
|
-
(0,
|
|
2495
|
-
(0,
|
|
2467
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2468
|
+
(0, import_typeorm15.Index)()
|
|
2496
2469
|
], Job.prototype, "userId", 2);
|
|
2497
2470
|
__decorateClass([
|
|
2498
|
-
(0,
|
|
2499
|
-
(0,
|
|
2471
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.jobs),
|
|
2472
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
2500
2473
|
], Job.prototype, "user", 2);
|
|
2501
2474
|
__decorateClass([
|
|
2502
|
-
(0,
|
|
2475
|
+
(0, import_typeorm15.Column)({ name: "country_id", type: "int", nullable: true })
|
|
2503
2476
|
], Job.prototype, "countryId", 2);
|
|
2504
2477
|
__decorateClass([
|
|
2505
|
-
(0,
|
|
2506
|
-
(0,
|
|
2478
|
+
(0, import_typeorm15.ManyToOne)(() => Country),
|
|
2479
|
+
(0, import_typeorm15.JoinColumn)({ name: "country_id" })
|
|
2507
2480
|
], Job.prototype, "country", 2);
|
|
2508
2481
|
__decorateClass([
|
|
2509
|
-
(0,
|
|
2482
|
+
(0, import_typeorm15.Column)({ name: "state_id", type: "int", nullable: true })
|
|
2510
2483
|
], Job.prototype, "stateId", 2);
|
|
2511
2484
|
__decorateClass([
|
|
2512
|
-
(0,
|
|
2513
|
-
(0,
|
|
2485
|
+
(0, import_typeorm15.ManyToOne)(() => State),
|
|
2486
|
+
(0, import_typeorm15.JoinColumn)({ name: "state_id" })
|
|
2514
2487
|
], Job.prototype, "state", 2);
|
|
2515
2488
|
__decorateClass([
|
|
2516
|
-
(0,
|
|
2489
|
+
(0, import_typeorm15.Column)({ name: "city_id", type: "int", nullable: true })
|
|
2517
2490
|
], Job.prototype, "cityId", 2);
|
|
2518
2491
|
__decorateClass([
|
|
2519
|
-
(0,
|
|
2520
|
-
(0,
|
|
2492
|
+
(0, import_typeorm15.ManyToOne)(() => City),
|
|
2493
|
+
(0, import_typeorm15.JoinColumn)({ name: "city_id" })
|
|
2521
2494
|
], Job.prototype, "city", 2);
|
|
2522
2495
|
__decorateClass([
|
|
2523
|
-
(0,
|
|
2496
|
+
(0, import_typeorm15.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
2524
2497
|
], Job.prototype, "jobRole", 2);
|
|
2525
2498
|
__decorateClass([
|
|
2526
|
-
(0,
|
|
2499
|
+
(0, import_typeorm15.Column)({ name: "note", type: "varchar", nullable: true })
|
|
2527
2500
|
], Job.prototype, "note", 2);
|
|
2528
2501
|
__decorateClass([
|
|
2529
|
-
(0,
|
|
2502
|
+
(0, import_typeorm15.Column)({ name: "openings", type: "integer", default: 0 })
|
|
2530
2503
|
], Job.prototype, "openings", 2);
|
|
2531
2504
|
__decorateClass([
|
|
2532
|
-
(0,
|
|
2505
|
+
(0, import_typeorm15.Column)({
|
|
2533
2506
|
name: "location",
|
|
2534
2507
|
type: "enum",
|
|
2535
2508
|
enum: JobLocationEnum,
|
|
@@ -2537,7 +2510,7 @@ __decorateClass([
|
|
|
2537
2510
|
})
|
|
2538
2511
|
], Job.prototype, "location", 2);
|
|
2539
2512
|
__decorateClass([
|
|
2540
|
-
(0,
|
|
2513
|
+
(0, import_typeorm15.Column)({
|
|
2541
2514
|
name: "type_of_employment",
|
|
2542
2515
|
type: "enum",
|
|
2543
2516
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2545,19 +2518,19 @@ __decorateClass([
|
|
|
2545
2518
|
})
|
|
2546
2519
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2547
2520
|
__decorateClass([
|
|
2548
|
-
(0,
|
|
2521
|
+
(0, import_typeorm15.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2549
2522
|
], Job.prototype, "academicQualification", 2);
|
|
2550
2523
|
__decorateClass([
|
|
2551
|
-
(0,
|
|
2524
|
+
(0, import_typeorm15.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2552
2525
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2553
2526
|
__decorateClass([
|
|
2554
|
-
(0,
|
|
2527
|
+
(0, import_typeorm15.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
2555
2528
|
], Job.prototype, "businessIndustry", 2);
|
|
2556
2529
|
__decorateClass([
|
|
2557
|
-
(0,
|
|
2530
|
+
(0, import_typeorm15.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
2558
2531
|
], Job.prototype, "currency", 2);
|
|
2559
2532
|
__decorateClass([
|
|
2560
|
-
(0,
|
|
2533
|
+
(0, import_typeorm15.Column)({
|
|
2561
2534
|
name: "expected_salary_from",
|
|
2562
2535
|
type: "decimal",
|
|
2563
2536
|
precision: 10,
|
|
@@ -2566,7 +2539,7 @@ __decorateClass([
|
|
|
2566
2539
|
})
|
|
2567
2540
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2568
2541
|
__decorateClass([
|
|
2569
|
-
(0,
|
|
2542
|
+
(0, import_typeorm15.Column)({
|
|
2570
2543
|
name: "expected_salary_to",
|
|
2571
2544
|
type: "decimal",
|
|
2572
2545
|
precision: 10,
|
|
@@ -2575,16 +2548,16 @@ __decorateClass([
|
|
|
2575
2548
|
})
|
|
2576
2549
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2577
2550
|
__decorateClass([
|
|
2578
|
-
(0,
|
|
2551
|
+
(0, import_typeorm15.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2579
2552
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2580
2553
|
__decorateClass([
|
|
2581
|
-
(0,
|
|
2554
|
+
(0, import_typeorm15.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2582
2555
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2583
2556
|
__decorateClass([
|
|
2584
|
-
(0,
|
|
2557
|
+
(0, import_typeorm15.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
2585
2558
|
], Job.prototype, "duration", 2);
|
|
2586
2559
|
__decorateClass([
|
|
2587
|
-
(0,
|
|
2560
|
+
(0, import_typeorm15.Column)({
|
|
2588
2561
|
name: "duration_type",
|
|
2589
2562
|
type: "enum",
|
|
2590
2563
|
enum: DurationTypeEnum,
|
|
@@ -2592,13 +2565,13 @@ __decorateClass([
|
|
|
2592
2565
|
})
|
|
2593
2566
|
], Job.prototype, "durationType", 2);
|
|
2594
2567
|
__decorateClass([
|
|
2595
|
-
(0,
|
|
2568
|
+
(0, import_typeorm15.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2596
2569
|
], Job.prototype, "description", 2);
|
|
2597
2570
|
__decorateClass([
|
|
2598
|
-
(0,
|
|
2571
|
+
(0, import_typeorm15.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2599
2572
|
], Job.prototype, "additionalComment", 2);
|
|
2600
2573
|
__decorateClass([
|
|
2601
|
-
(0,
|
|
2574
|
+
(0, import_typeorm15.Column)({
|
|
2602
2575
|
name: "onboarding_tat",
|
|
2603
2576
|
type: "varchar",
|
|
2604
2577
|
length: 50,
|
|
@@ -2606,14 +2579,14 @@ __decorateClass([
|
|
|
2606
2579
|
})
|
|
2607
2580
|
], Job.prototype, "onboardingTat", 2);
|
|
2608
2581
|
__decorateClass([
|
|
2609
|
-
(0,
|
|
2582
|
+
(0, import_typeorm15.Column)({
|
|
2610
2583
|
name: "candidate_communication_skills",
|
|
2611
2584
|
type: "varchar",
|
|
2612
2585
|
nullable: true
|
|
2613
2586
|
})
|
|
2614
2587
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2615
2588
|
__decorateClass([
|
|
2616
|
-
(0,
|
|
2589
|
+
(0, import_typeorm15.Column)({
|
|
2617
2590
|
name: "step_completed",
|
|
2618
2591
|
type: "enum",
|
|
2619
2592
|
enum: Step,
|
|
@@ -2621,7 +2594,7 @@ __decorateClass([
|
|
|
2621
2594
|
})
|
|
2622
2595
|
], Job.prototype, "stepCompleted", 2);
|
|
2623
2596
|
__decorateClass([
|
|
2624
|
-
(0,
|
|
2597
|
+
(0, import_typeorm15.Column)({
|
|
2625
2598
|
name: "status",
|
|
2626
2599
|
type: "enum",
|
|
2627
2600
|
enum: JobStatusEnum,
|
|
@@ -2629,30 +2602,30 @@ __decorateClass([
|
|
|
2629
2602
|
})
|
|
2630
2603
|
], Job.prototype, "status", 2);
|
|
2631
2604
|
__decorateClass([
|
|
2632
|
-
(0,
|
|
2605
|
+
(0, import_typeorm15.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
2633
2606
|
], Job.prototype, "viewedCount", 2);
|
|
2634
2607
|
__decorateClass([
|
|
2635
|
-
(0,
|
|
2608
|
+
(0, import_typeorm15.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
2636
2609
|
], Job.prototype, "applicationCount", 2);
|
|
2637
2610
|
__decorateClass([
|
|
2638
|
-
(0,
|
|
2611
|
+
(0, import_typeorm15.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2639
2612
|
], Job.prototype, "jobSkills", 2);
|
|
2640
2613
|
__decorateClass([
|
|
2641
|
-
(0,
|
|
2614
|
+
(0, import_typeorm15.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2642
2615
|
cascade: true
|
|
2643
2616
|
})
|
|
2644
2617
|
], Job.prototype, "jobApplications", 2);
|
|
2645
2618
|
__decorateClass([
|
|
2646
|
-
(0,
|
|
2619
|
+
(0, import_typeorm15.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
2647
2620
|
cascade: true
|
|
2648
2621
|
})
|
|
2649
2622
|
], Job.prototype, "interviews", 2);
|
|
2650
2623
|
Job = __decorateClass([
|
|
2651
|
-
(0,
|
|
2624
|
+
(0, import_typeorm15.Entity)("jobs")
|
|
2652
2625
|
], Job);
|
|
2653
2626
|
|
|
2654
2627
|
// src/entities/bank-details.entity.ts
|
|
2655
|
-
var
|
|
2628
|
+
var import_typeorm16 = require("typeorm");
|
|
2656
2629
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2657
2630
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
2658
2631
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -2667,48 +2640,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2667
2640
|
};
|
|
2668
2641
|
// individual index to find bank details by user
|
|
2669
2642
|
__decorateClass([
|
|
2670
|
-
(0,
|
|
2671
|
-
(0,
|
|
2643
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2644
|
+
(0, import_typeorm16.Index)()
|
|
2672
2645
|
], BankDetail.prototype, "userId", 2);
|
|
2673
2646
|
__decorateClass([
|
|
2674
|
-
(0,
|
|
2675
|
-
(0,
|
|
2647
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
2648
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
2676
2649
|
], BankDetail.prototype, "user", 2);
|
|
2677
2650
|
__decorateClass([
|
|
2678
|
-
(0,
|
|
2651
|
+
(0, import_typeorm16.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2679
2652
|
], BankDetail.prototype, "name", 2);
|
|
2680
2653
|
__decorateClass([
|
|
2681
|
-
(0,
|
|
2654
|
+
(0, import_typeorm16.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2682
2655
|
], BankDetail.prototype, "mobile", 2);
|
|
2683
2656
|
__decorateClass([
|
|
2684
|
-
(0,
|
|
2657
|
+
(0, import_typeorm16.Column)({ name: "email", type: "varchar", unique: true })
|
|
2685
2658
|
], BankDetail.prototype, "email", 2);
|
|
2686
2659
|
__decorateClass([
|
|
2687
|
-
(0,
|
|
2660
|
+
(0, import_typeorm16.Column)({ name: "address", type: "varchar", nullable: true })
|
|
2688
2661
|
], BankDetail.prototype, "address", 2);
|
|
2689
2662
|
__decorateClass([
|
|
2690
|
-
(0,
|
|
2663
|
+
(0, import_typeorm16.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2691
2664
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2692
2665
|
__decorateClass([
|
|
2693
|
-
(0,
|
|
2666
|
+
(0, import_typeorm16.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
2694
2667
|
], BankDetail.prototype, "bankName", 2);
|
|
2695
2668
|
__decorateClass([
|
|
2696
|
-
(0,
|
|
2669
|
+
(0, import_typeorm16.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2697
2670
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2698
2671
|
__decorateClass([
|
|
2699
|
-
(0,
|
|
2672
|
+
(0, import_typeorm16.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
2700
2673
|
], BankDetail.prototype, "branchName", 2);
|
|
2701
2674
|
__decorateClass([
|
|
2702
|
-
(0,
|
|
2675
|
+
(0, import_typeorm16.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
2703
2676
|
], BankDetail.prototype, "routingNo", 2);
|
|
2704
2677
|
__decorateClass([
|
|
2705
|
-
(0,
|
|
2678
|
+
(0, import_typeorm16.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
2706
2679
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2707
2680
|
__decorateClass([
|
|
2708
|
-
(0,
|
|
2681
|
+
(0, import_typeorm16.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
2709
2682
|
], BankDetail.prototype, "iban", 2);
|
|
2710
2683
|
__decorateClass([
|
|
2711
|
-
(0,
|
|
2684
|
+
(0, import_typeorm16.Column)({
|
|
2712
2685
|
name: "account_type",
|
|
2713
2686
|
type: "enum",
|
|
2714
2687
|
enum: BankAccountTypeEnum,
|
|
@@ -2716,7 +2689,7 @@ __decorateClass([
|
|
|
2716
2689
|
})
|
|
2717
2690
|
], BankDetail.prototype, "accountType", 2);
|
|
2718
2691
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2692
|
+
(0, import_typeorm16.Column)({
|
|
2720
2693
|
name: "account_scope",
|
|
2721
2694
|
type: "enum",
|
|
2722
2695
|
enum: BankAccountScopeEnum,
|
|
@@ -2724,210 +2697,210 @@ __decorateClass([
|
|
|
2724
2697
|
})
|
|
2725
2698
|
], BankDetail.prototype, "accountScope", 2);
|
|
2726
2699
|
BankDetail = __decorateClass([
|
|
2727
|
-
(0,
|
|
2700
|
+
(0, import_typeorm16.Entity)("bank_details")
|
|
2728
2701
|
], BankDetail);
|
|
2729
2702
|
|
|
2730
2703
|
// src/entities/system-preference.entity.ts
|
|
2731
|
-
var
|
|
2704
|
+
var import_typeorm17 = require("typeorm");
|
|
2732
2705
|
var SystemPreference = class extends BaseEntity {
|
|
2733
2706
|
};
|
|
2734
2707
|
// individual index to find system preference by user
|
|
2735
2708
|
__decorateClass([
|
|
2736
|
-
(0,
|
|
2737
|
-
(0,
|
|
2709
|
+
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2710
|
+
(0, import_typeorm17.Index)()
|
|
2738
2711
|
], SystemPreference.prototype, "userId", 2);
|
|
2739
2712
|
__decorateClass([
|
|
2740
|
-
(0,
|
|
2741
|
-
(0,
|
|
2713
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
2714
|
+
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
2742
2715
|
], SystemPreference.prototype, "user", 2);
|
|
2743
2716
|
__decorateClass([
|
|
2744
|
-
(0,
|
|
2717
|
+
(0, import_typeorm17.Column)({ name: "key", type: "varchar", nullable: false })
|
|
2745
2718
|
], SystemPreference.prototype, "key", 2);
|
|
2746
2719
|
__decorateClass([
|
|
2747
|
-
(0,
|
|
2720
|
+
(0, import_typeorm17.Column)({ name: "value", type: "boolean", default: false })
|
|
2748
2721
|
], SystemPreference.prototype, "value", 2);
|
|
2749
2722
|
SystemPreference = __decorateClass([
|
|
2750
|
-
(0,
|
|
2723
|
+
(0, import_typeorm17.Entity)("system_preferences")
|
|
2751
2724
|
], SystemPreference);
|
|
2752
2725
|
|
|
2753
2726
|
// src/entities/freelancer-experience.entity.ts
|
|
2754
|
-
var
|
|
2727
|
+
var import_typeorm18 = require("typeorm");
|
|
2755
2728
|
var FreelancerExperience = class extends BaseEntity {
|
|
2756
2729
|
};
|
|
2757
2730
|
// individual index to find experence by user
|
|
2758
2731
|
__decorateClass([
|
|
2759
|
-
(0,
|
|
2760
|
-
(0,
|
|
2732
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2733
|
+
(0, import_typeorm18.Index)()
|
|
2761
2734
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2762
2735
|
__decorateClass([
|
|
2763
|
-
(0,
|
|
2764
|
-
(0,
|
|
2736
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2737
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2765
2738
|
], FreelancerExperience.prototype, "user", 2);
|
|
2766
2739
|
__decorateClass([
|
|
2767
|
-
(0,
|
|
2740
|
+
(0, import_typeorm18.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2768
2741
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2769
2742
|
__decorateClass([
|
|
2770
|
-
(0,
|
|
2743
|
+
(0, import_typeorm18.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2771
2744
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2772
2745
|
__decorateClass([
|
|
2773
|
-
(0,
|
|
2746
|
+
(0, import_typeorm18.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2774
2747
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2775
2748
|
__decorateClass([
|
|
2776
|
-
(0,
|
|
2749
|
+
(0, import_typeorm18.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2777
2750
|
], FreelancerExperience.prototype, "description", 2);
|
|
2778
2751
|
FreelancerExperience = __decorateClass([
|
|
2779
|
-
(0,
|
|
2752
|
+
(0, import_typeorm18.Entity)("freelancer_experiences")
|
|
2780
2753
|
], FreelancerExperience);
|
|
2781
2754
|
|
|
2782
2755
|
// src/entities/freelancer-education.entity.ts
|
|
2783
|
-
var
|
|
2756
|
+
var import_typeorm19 = require("typeorm");
|
|
2784
2757
|
var FreelancerEducation = class extends BaseEntity {
|
|
2785
2758
|
};
|
|
2786
2759
|
// individual index to find education by user
|
|
2787
2760
|
__decorateClass([
|
|
2788
|
-
(0,
|
|
2789
|
-
(0,
|
|
2761
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2762
|
+
(0, import_typeorm19.Index)()
|
|
2790
2763
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2791
2764
|
__decorateClass([
|
|
2792
|
-
(0,
|
|
2793
|
-
(0,
|
|
2765
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2766
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2794
2767
|
], FreelancerEducation.prototype, "user", 2);
|
|
2795
2768
|
__decorateClass([
|
|
2796
|
-
(0,
|
|
2769
|
+
(0, import_typeorm19.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2797
2770
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2798
2771
|
__decorateClass([
|
|
2799
|
-
(0,
|
|
2772
|
+
(0, import_typeorm19.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2800
2773
|
], FreelancerEducation.prototype, "university", 2);
|
|
2801
2774
|
__decorateClass([
|
|
2802
|
-
(0,
|
|
2775
|
+
(0, import_typeorm19.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2803
2776
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2804
2777
|
FreelancerEducation = __decorateClass([
|
|
2805
|
-
(0,
|
|
2778
|
+
(0, import_typeorm19.Entity)("freelancer_educations")
|
|
2806
2779
|
], FreelancerEducation);
|
|
2807
2780
|
|
|
2808
2781
|
// src/entities/freelancer-project.entity.ts
|
|
2809
|
-
var
|
|
2782
|
+
var import_typeorm20 = require("typeorm");
|
|
2810
2783
|
var FreelancerProject = class extends BaseEntity {
|
|
2811
2784
|
};
|
|
2812
2785
|
// individual index to find project by user
|
|
2813
2786
|
__decorateClass([
|
|
2814
|
-
(0,
|
|
2815
|
-
(0,
|
|
2787
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2788
|
+
(0, import_typeorm20.Index)()
|
|
2816
2789
|
], FreelancerProject.prototype, "userId", 2);
|
|
2817
2790
|
__decorateClass([
|
|
2818
|
-
(0,
|
|
2819
|
-
(0,
|
|
2791
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2792
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2820
2793
|
], FreelancerProject.prototype, "user", 2);
|
|
2821
2794
|
__decorateClass([
|
|
2822
|
-
(0,
|
|
2795
|
+
(0, import_typeorm20.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2823
2796
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2824
2797
|
__decorateClass([
|
|
2825
|
-
(0,
|
|
2798
|
+
(0, import_typeorm20.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2826
2799
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2827
2800
|
__decorateClass([
|
|
2828
|
-
(0,
|
|
2801
|
+
(0, import_typeorm20.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2829
2802
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2830
2803
|
__decorateClass([
|
|
2831
|
-
(0,
|
|
2804
|
+
(0, import_typeorm20.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2832
2805
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2833
2806
|
__decorateClass([
|
|
2834
|
-
(0,
|
|
2807
|
+
(0, import_typeorm20.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2835
2808
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2836
2809
|
__decorateClass([
|
|
2837
|
-
(0,
|
|
2810
|
+
(0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2838
2811
|
], FreelancerProject.prototype, "description", 2);
|
|
2839
2812
|
FreelancerProject = __decorateClass([
|
|
2840
|
-
(0,
|
|
2813
|
+
(0, import_typeorm20.Entity)("freelancer_projects")
|
|
2841
2814
|
], FreelancerProject);
|
|
2842
2815
|
|
|
2843
2816
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2844
|
-
var
|
|
2817
|
+
var import_typeorm21 = require("typeorm");
|
|
2845
2818
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2846
2819
|
};
|
|
2847
2820
|
// individual index to find case study by user
|
|
2848
2821
|
__decorateClass([
|
|
2849
|
-
(0,
|
|
2850
|
-
(0,
|
|
2822
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2823
|
+
(0, import_typeorm21.Index)()
|
|
2851
2824
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2852
2825
|
__decorateClass([
|
|
2853
|
-
(0,
|
|
2854
|
-
(0,
|
|
2826
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2827
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2855
2828
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2856
2829
|
__decorateClass([
|
|
2857
|
-
(0,
|
|
2830
|
+
(0, import_typeorm21.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2858
2831
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2859
2832
|
__decorateClass([
|
|
2860
|
-
(0,
|
|
2833
|
+
(0, import_typeorm21.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2861
2834
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2862
2835
|
__decorateClass([
|
|
2863
|
-
(0,
|
|
2836
|
+
(0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2864
2837
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2865
2838
|
FreelancerCaseStudy = __decorateClass([
|
|
2866
|
-
(0,
|
|
2839
|
+
(0, import_typeorm21.Entity)("freelancer_case_studies")
|
|
2867
2840
|
], FreelancerCaseStudy);
|
|
2868
2841
|
|
|
2869
2842
|
// src/entities/freelancer-skill.entity.ts
|
|
2870
|
-
var
|
|
2843
|
+
var import_typeorm22 = require("typeorm");
|
|
2871
2844
|
var FreelancerSkill = class extends BaseEntity {
|
|
2872
2845
|
};
|
|
2873
2846
|
// individual index to find core skills by user
|
|
2874
2847
|
__decorateClass([
|
|
2875
|
-
(0,
|
|
2876
|
-
(0,
|
|
2848
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2849
|
+
(0, import_typeorm22.Index)()
|
|
2877
2850
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2878
2851
|
__decorateClass([
|
|
2879
|
-
(0,
|
|
2880
|
-
(0,
|
|
2852
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
2853
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2881
2854
|
], FreelancerSkill.prototype, "user", 2);
|
|
2882
2855
|
__decorateClass([
|
|
2883
|
-
(0,
|
|
2856
|
+
(0, import_typeorm22.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2884
2857
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
2885
2858
|
FreelancerSkill = __decorateClass([
|
|
2886
|
-
(0,
|
|
2859
|
+
(0, import_typeorm22.Entity)("freelancer_skills")
|
|
2887
2860
|
], FreelancerSkill);
|
|
2888
2861
|
|
|
2889
2862
|
// src/entities/freelancer-tool.entity.ts
|
|
2890
|
-
var
|
|
2863
|
+
var import_typeorm23 = require("typeorm");
|
|
2891
2864
|
var FreelancerTool = class extends BaseEntity {
|
|
2892
2865
|
};
|
|
2893
2866
|
// individual index to find tool by user
|
|
2894
2867
|
__decorateClass([
|
|
2895
|
-
(0,
|
|
2896
|
-
(0,
|
|
2868
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2869
|
+
(0, import_typeorm23.Index)()
|
|
2897
2870
|
], FreelancerTool.prototype, "userId", 2);
|
|
2898
2871
|
__decorateClass([
|
|
2899
|
-
(0,
|
|
2900
|
-
(0,
|
|
2872
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
2873
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2901
2874
|
], FreelancerTool.prototype, "user", 2);
|
|
2902
2875
|
__decorateClass([
|
|
2903
|
-
(0,
|
|
2876
|
+
(0, import_typeorm23.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2904
2877
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2905
2878
|
FreelancerTool = __decorateClass([
|
|
2906
|
-
(0,
|
|
2879
|
+
(0, import_typeorm23.Entity)("freelancer_tools")
|
|
2907
2880
|
], FreelancerTool);
|
|
2908
2881
|
|
|
2909
2882
|
// src/entities/freelancer-framework.entity.ts
|
|
2910
|
-
var
|
|
2883
|
+
var import_typeorm24 = require("typeorm");
|
|
2911
2884
|
var FreelancerFramework = class extends BaseEntity {
|
|
2912
2885
|
};
|
|
2913
2886
|
// individual index to find framework by user
|
|
2914
2887
|
__decorateClass([
|
|
2915
|
-
(0,
|
|
2916
|
-
(0,
|
|
2888
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2889
|
+
(0, import_typeorm24.Index)()
|
|
2917
2890
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2918
2891
|
__decorateClass([
|
|
2919
|
-
(0,
|
|
2920
|
-
(0,
|
|
2892
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
2893
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
2921
2894
|
], FreelancerFramework.prototype, "user", 2);
|
|
2922
2895
|
__decorateClass([
|
|
2923
|
-
(0,
|
|
2896
|
+
(0, import_typeorm24.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
2924
2897
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2925
2898
|
FreelancerFramework = __decorateClass([
|
|
2926
|
-
(0,
|
|
2899
|
+
(0, import_typeorm24.Entity)("freelancer_frameworks")
|
|
2927
2900
|
], FreelancerFramework);
|
|
2928
2901
|
|
|
2929
2902
|
// src/entities/freelancer-assessment.entity.ts
|
|
2930
|
-
var
|
|
2903
|
+
var import_typeorm25 = require("typeorm");
|
|
2931
2904
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2932
2905
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2933
2906
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -2943,30 +2916,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2943
2916
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2944
2917
|
};
|
|
2945
2918
|
__decorateClass([
|
|
2946
|
-
(0,
|
|
2947
|
-
(0,
|
|
2919
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2920
|
+
(0, import_typeorm25.Index)()
|
|
2948
2921
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2949
2922
|
__decorateClass([
|
|
2950
|
-
(0,
|
|
2951
|
-
(0,
|
|
2923
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.assessments),
|
|
2924
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
2952
2925
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2953
2926
|
__decorateClass([
|
|
2954
|
-
(0,
|
|
2927
|
+
(0, import_typeorm25.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
2955
2928
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2956
2929
|
__decorateClass([
|
|
2957
|
-
(0,
|
|
2930
|
+
(0, import_typeorm25.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2958
2931
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2959
2932
|
__decorateClass([
|
|
2960
|
-
(0,
|
|
2933
|
+
(0, import_typeorm25.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
2961
2934
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
2962
2935
|
__decorateClass([
|
|
2963
|
-
(0,
|
|
2936
|
+
(0, import_typeorm25.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
2964
2937
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
2965
2938
|
__decorateClass([
|
|
2966
|
-
(0,
|
|
2939
|
+
(0, import_typeorm25.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2967
2940
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2968
2941
|
__decorateClass([
|
|
2969
|
-
(0,
|
|
2942
|
+
(0, import_typeorm25.Column)({
|
|
2970
2943
|
name: "status",
|
|
2971
2944
|
type: "enum",
|
|
2972
2945
|
enum: AssessmentStatusEnum,
|
|
@@ -2974,11 +2947,11 @@ __decorateClass([
|
|
|
2974
2947
|
})
|
|
2975
2948
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2976
2949
|
FreelancerAssessment = __decorateClass([
|
|
2977
|
-
(0,
|
|
2950
|
+
(0, import_typeorm25.Entity)("freelancer_assessments")
|
|
2978
2951
|
], FreelancerAssessment);
|
|
2979
2952
|
|
|
2980
2953
|
// src/entities/freelancer-declaration.entity.ts
|
|
2981
|
-
var
|
|
2954
|
+
var import_typeorm26 = require("typeorm");
|
|
2982
2955
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2983
2956
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2984
2957
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -2990,15 +2963,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2990
2963
|
};
|
|
2991
2964
|
// individual index to find declaration by user
|
|
2992
2965
|
__decorateClass([
|
|
2993
|
-
(0,
|
|
2994
|
-
(0,
|
|
2966
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2967
|
+
(0, import_typeorm26.Index)()
|
|
2995
2968
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2996
2969
|
__decorateClass([
|
|
2997
|
-
(0,
|
|
2998
|
-
(0,
|
|
2970
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
2971
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
2999
2972
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3000
2973
|
__decorateClass([
|
|
3001
|
-
(0,
|
|
2974
|
+
(0, import_typeorm26.Column)({
|
|
3002
2975
|
name: "document_type",
|
|
3003
2976
|
type: "enum",
|
|
3004
2977
|
enum: DocumentType,
|
|
@@ -3006,144 +2979,144 @@ __decorateClass([
|
|
|
3006
2979
|
})
|
|
3007
2980
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3008
2981
|
__decorateClass([
|
|
3009
|
-
(0,
|
|
2982
|
+
(0, import_typeorm26.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3010
2983
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3011
2984
|
__decorateClass([
|
|
3012
|
-
(0,
|
|
2985
|
+
(0, import_typeorm26.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3013
2986
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3014
2987
|
__decorateClass([
|
|
3015
|
-
(0,
|
|
2988
|
+
(0, import_typeorm26.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3016
2989
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3017
2990
|
__decorateClass([
|
|
3018
|
-
(0,
|
|
2991
|
+
(0, import_typeorm26.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3019
2992
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3020
2993
|
FreelancerDeclaration = __decorateClass([
|
|
3021
|
-
(0,
|
|
2994
|
+
(0, import_typeorm26.Entity)("freelancer_declaration")
|
|
3022
2995
|
], FreelancerDeclaration);
|
|
3023
2996
|
|
|
3024
2997
|
// src/entities/company-members-roles.entity.ts
|
|
3025
|
-
var
|
|
2998
|
+
var import_typeorm30 = require("typeorm");
|
|
3026
2999
|
|
|
3027
3000
|
// src/entities/company-role.entity.ts
|
|
3028
|
-
var
|
|
3001
|
+
var import_typeorm29 = require("typeorm");
|
|
3029
3002
|
|
|
3030
3003
|
// src/entities/company-role-permission.entity.ts
|
|
3031
|
-
var
|
|
3004
|
+
var import_typeorm28 = require("typeorm");
|
|
3032
3005
|
|
|
3033
3006
|
// src/entities/permission.entity.ts
|
|
3034
|
-
var
|
|
3007
|
+
var import_typeorm27 = require("typeorm");
|
|
3035
3008
|
var Permission = class extends BaseEntity {
|
|
3036
3009
|
};
|
|
3037
3010
|
__decorateClass([
|
|
3038
|
-
(0,
|
|
3011
|
+
(0, import_typeorm27.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3039
3012
|
], Permission.prototype, "name", 2);
|
|
3040
3013
|
__decorateClass([
|
|
3041
|
-
(0,
|
|
3042
|
-
(0,
|
|
3014
|
+
(0, import_typeorm27.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3015
|
+
(0, import_typeorm27.Index)()
|
|
3043
3016
|
], Permission.prototype, "slug", 2);
|
|
3044
3017
|
__decorateClass([
|
|
3045
|
-
(0,
|
|
3018
|
+
(0, import_typeorm27.Column)({ name: "description", type: "text", nullable: true })
|
|
3046
3019
|
], Permission.prototype, "description", 2);
|
|
3047
3020
|
__decorateClass([
|
|
3048
|
-
(0,
|
|
3021
|
+
(0, import_typeorm27.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3049
3022
|
], Permission.prototype, "isActive", 2);
|
|
3050
3023
|
Permission = __decorateClass([
|
|
3051
|
-
(0,
|
|
3024
|
+
(0, import_typeorm27.Entity)("permissions")
|
|
3052
3025
|
], Permission);
|
|
3053
3026
|
|
|
3054
3027
|
// src/entities/company-role-permission.entity.ts
|
|
3055
3028
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3056
3029
|
};
|
|
3057
3030
|
__decorateClass([
|
|
3058
|
-
(0,
|
|
3059
|
-
(0,
|
|
3031
|
+
(0, import_typeorm28.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3032
|
+
(0, import_typeorm28.Index)()
|
|
3060
3033
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3061
3034
|
__decorateClass([
|
|
3062
|
-
(0,
|
|
3035
|
+
(0, import_typeorm28.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3063
3036
|
onDelete: "CASCADE"
|
|
3064
3037
|
}),
|
|
3065
|
-
(0,
|
|
3038
|
+
(0, import_typeorm28.JoinColumn)({ name: "company_role_id" })
|
|
3066
3039
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3067
3040
|
__decorateClass([
|
|
3068
|
-
(0,
|
|
3069
|
-
(0,
|
|
3041
|
+
(0, import_typeorm28.Column)({ name: "permission_id", type: "integer" }),
|
|
3042
|
+
(0, import_typeorm28.Index)()
|
|
3070
3043
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3071
3044
|
__decorateClass([
|
|
3072
|
-
(0,
|
|
3073
|
-
(0,
|
|
3045
|
+
(0, import_typeorm28.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
3046
|
+
(0, import_typeorm28.JoinColumn)({ name: "permission_id" })
|
|
3074
3047
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3075
3048
|
__decorateClass([
|
|
3076
|
-
(0,
|
|
3049
|
+
(0, import_typeorm28.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3077
3050
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3078
3051
|
CompanyRolePermission = __decorateClass([
|
|
3079
|
-
(0,
|
|
3052
|
+
(0, import_typeorm28.Entity)("company_role_permissions")
|
|
3080
3053
|
], CompanyRolePermission);
|
|
3081
3054
|
|
|
3082
3055
|
// src/entities/company-role.entity.ts
|
|
3083
3056
|
var CompanyRole = class extends BaseEntity {
|
|
3084
3057
|
};
|
|
3085
3058
|
__decorateClass([
|
|
3086
|
-
(0,
|
|
3087
|
-
(0,
|
|
3059
|
+
(0, import_typeorm29.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3060
|
+
(0, import_typeorm29.Index)()
|
|
3088
3061
|
], CompanyRole.prototype, "userId", 2);
|
|
3089
3062
|
__decorateClass([
|
|
3090
|
-
(0,
|
|
3091
|
-
(0,
|
|
3063
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.otps),
|
|
3064
|
+
(0, import_typeorm29.JoinColumn)({ name: "user_id" })
|
|
3092
3065
|
], CompanyRole.prototype, "user", 2);
|
|
3093
3066
|
__decorateClass([
|
|
3094
|
-
(0,
|
|
3067
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar" })
|
|
3095
3068
|
], CompanyRole.prototype, "name", 2);
|
|
3096
3069
|
__decorateClass([
|
|
3097
|
-
(0,
|
|
3098
|
-
(0,
|
|
3070
|
+
(0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3071
|
+
(0, import_typeorm29.Index)()
|
|
3099
3072
|
], CompanyRole.prototype, "slug", 2);
|
|
3100
3073
|
__decorateClass([
|
|
3101
|
-
(0,
|
|
3074
|
+
(0, import_typeorm29.Column)({ name: "description", type: "text", nullable: true })
|
|
3102
3075
|
], CompanyRole.prototype, "description", 2);
|
|
3103
3076
|
__decorateClass([
|
|
3104
|
-
(0,
|
|
3077
|
+
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3105
3078
|
], CompanyRole.prototype, "isActive", 2);
|
|
3106
3079
|
__decorateClass([
|
|
3107
|
-
(0,
|
|
3080
|
+
(0, import_typeorm29.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3108
3081
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3109
3082
|
CompanyRole = __decorateClass([
|
|
3110
|
-
(0,
|
|
3083
|
+
(0, import_typeorm29.Entity)("company_roles")
|
|
3111
3084
|
], CompanyRole);
|
|
3112
3085
|
|
|
3113
3086
|
// src/entities/company-members-roles.entity.ts
|
|
3114
3087
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3115
3088
|
};
|
|
3116
3089
|
__decorateClass([
|
|
3117
|
-
(0,
|
|
3118
|
-
(0,
|
|
3090
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3091
|
+
(0, import_typeorm30.Index)()
|
|
3119
3092
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3120
3093
|
__decorateClass([
|
|
3121
|
-
(0,
|
|
3122
|
-
(0,
|
|
3094
|
+
(0, import_typeorm30.ManyToOne)(() => User),
|
|
3095
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
3123
3096
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3124
3097
|
__decorateClass([
|
|
3125
|
-
(0,
|
|
3126
|
-
(0,
|
|
3098
|
+
(0, import_typeorm30.ManyToOne)(() => CompanyRole),
|
|
3099
|
+
(0, import_typeorm30.JoinColumn)({ name: "company_role_id" })
|
|
3127
3100
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3128
3101
|
__decorateClass([
|
|
3129
|
-
(0,
|
|
3130
|
-
(0,
|
|
3102
|
+
(0, import_typeorm30.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3103
|
+
(0, import_typeorm30.Index)()
|
|
3131
3104
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3132
3105
|
__decorateClass([
|
|
3133
|
-
(0,
|
|
3106
|
+
(0, import_typeorm30.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3134
3107
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3135
3108
|
CompanyMemberRole = __decorateClass([
|
|
3136
|
-
(0,
|
|
3109
|
+
(0, import_typeorm30.Entity)("company_member_roles")
|
|
3137
3110
|
], CompanyMemberRole);
|
|
3138
3111
|
|
|
3139
3112
|
// src/entities/assessment-answer.entity.ts
|
|
3140
|
-
var
|
|
3113
|
+
var import_typeorm33 = require("typeorm");
|
|
3141
3114
|
|
|
3142
3115
|
// src/entities/assessment-question.entity.ts
|
|
3143
|
-
var
|
|
3116
|
+
var import_typeorm32 = require("typeorm");
|
|
3144
3117
|
|
|
3145
3118
|
// src/entities/assessment-question-option.entity.ts
|
|
3146
|
-
var
|
|
3119
|
+
var import_typeorm31 = require("typeorm");
|
|
3147
3120
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3148
3121
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
3149
3122
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -3153,21 +3126,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3153
3126
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3154
3127
|
};
|
|
3155
3128
|
__decorateClass([
|
|
3156
|
-
(0,
|
|
3157
|
-
(0,
|
|
3129
|
+
(0, import_typeorm31.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
3130
|
+
(0, import_typeorm31.Index)()
|
|
3158
3131
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3159
3132
|
__decorateClass([
|
|
3160
|
-
(0,
|
|
3133
|
+
(0, import_typeorm31.ManyToOne)(
|
|
3161
3134
|
() => AssessmetQuestion,
|
|
3162
3135
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3163
3136
|
),
|
|
3164
|
-
(0,
|
|
3137
|
+
(0, import_typeorm31.JoinColumn)({ name: "question_id" })
|
|
3165
3138
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3166
3139
|
__decorateClass([
|
|
3167
|
-
(0,
|
|
3140
|
+
(0, import_typeorm31.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3168
3141
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3169
3142
|
__decorateClass([
|
|
3170
|
-
(0,
|
|
3143
|
+
(0, import_typeorm31.Column)({
|
|
3171
3144
|
name: "answer_type",
|
|
3172
3145
|
type: "enum",
|
|
3173
3146
|
enum: AnswerTypeEnum,
|
|
@@ -3175,13 +3148,13 @@ __decorateClass([
|
|
|
3175
3148
|
})
|
|
3176
3149
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3177
3150
|
__decorateClass([
|
|
3178
|
-
(0,
|
|
3151
|
+
(0, import_typeorm31.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3179
3152
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3180
3153
|
__decorateClass([
|
|
3181
|
-
(0,
|
|
3154
|
+
(0, import_typeorm31.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3182
3155
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3183
3156
|
AssessmetQuestionOption = __decorateClass([
|
|
3184
|
-
(0,
|
|
3157
|
+
(0, import_typeorm31.Entity)("assessment_question_options")
|
|
3185
3158
|
], AssessmetQuestionOption);
|
|
3186
3159
|
|
|
3187
3160
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3193,10 +3166,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3193
3166
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3194
3167
|
};
|
|
3195
3168
|
__decorateClass([
|
|
3196
|
-
(0,
|
|
3169
|
+
(0, import_typeorm32.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3197
3170
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3198
3171
|
__decorateClass([
|
|
3199
|
-
(0,
|
|
3172
|
+
(0, import_typeorm32.Column)({
|
|
3200
3173
|
name: "question_for",
|
|
3201
3174
|
type: "enum",
|
|
3202
3175
|
enum: QuestionForEnum,
|
|
@@ -3204,16 +3177,16 @@ __decorateClass([
|
|
|
3204
3177
|
})
|
|
3205
3178
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3206
3179
|
__decorateClass([
|
|
3207
|
-
(0,
|
|
3180
|
+
(0, import_typeorm32.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3208
3181
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3209
3182
|
__decorateClass([
|
|
3210
|
-
(0,
|
|
3183
|
+
(0, import_typeorm32.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3211
3184
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3212
3185
|
__decorateClass([
|
|
3213
|
-
(0,
|
|
3186
|
+
(0, import_typeorm32.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3214
3187
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3215
3188
|
AssessmetQuestion = __decorateClass([
|
|
3216
|
-
(0,
|
|
3189
|
+
(0, import_typeorm32.Entity)("assessment_questions")
|
|
3217
3190
|
], AssessmetQuestion);
|
|
3218
3191
|
|
|
3219
3192
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3226,118 +3199,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3226
3199
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3227
3200
|
};
|
|
3228
3201
|
__decorateClass([
|
|
3229
|
-
(0,
|
|
3230
|
-
(0,
|
|
3202
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer" }),
|
|
3203
|
+
(0, import_typeorm33.Index)()
|
|
3231
3204
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3232
3205
|
__decorateClass([
|
|
3233
|
-
(0,
|
|
3234
|
-
(0,
|
|
3206
|
+
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
3207
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
3235
3208
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3236
3209
|
__decorateClass([
|
|
3237
|
-
(0,
|
|
3238
|
-
(0,
|
|
3210
|
+
(0, import_typeorm33.Column)({ name: "question_id", type: "integer" }),
|
|
3211
|
+
(0, import_typeorm33.Index)()
|
|
3239
3212
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3240
3213
|
__decorateClass([
|
|
3241
|
-
(0,
|
|
3214
|
+
(0, import_typeorm33.ManyToOne)(
|
|
3242
3215
|
() => AssessmetQuestion,
|
|
3243
3216
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3244
3217
|
),
|
|
3245
|
-
(0,
|
|
3218
|
+
(0, import_typeorm33.JoinColumn)({ name: "question_id" })
|
|
3246
3219
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3247
3220
|
__decorateClass([
|
|
3248
|
-
(0,
|
|
3249
|
-
(0,
|
|
3221
|
+
(0, import_typeorm33.Column)({ name: "selected_option_id", type: "integer" }),
|
|
3222
|
+
(0, import_typeorm33.Index)()
|
|
3250
3223
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3251
3224
|
__decorateClass([
|
|
3252
|
-
(0,
|
|
3225
|
+
(0, import_typeorm33.ManyToOne)(
|
|
3253
3226
|
() => AssessmetQuestionOption,
|
|
3254
3227
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3255
3228
|
),
|
|
3256
|
-
(0,
|
|
3229
|
+
(0, import_typeorm33.JoinColumn)({ name: "selected_option_id" })
|
|
3257
3230
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3258
3231
|
__decorateClass([
|
|
3259
|
-
(0,
|
|
3232
|
+
(0, import_typeorm33.Column)({
|
|
3260
3233
|
name: "selected_answer_type",
|
|
3261
3234
|
type: "enum",
|
|
3262
3235
|
enum: SelectedAnswerTypeEnum
|
|
3263
3236
|
})
|
|
3264
3237
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3265
3238
|
__decorateClass([
|
|
3266
|
-
(0,
|
|
3239
|
+
(0, import_typeorm33.Column)({ name: "score", type: "float" })
|
|
3267
3240
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3268
3241
|
AssessmentAnswer = __decorateClass([
|
|
3269
|
-
(0,
|
|
3242
|
+
(0, import_typeorm33.Entity)("assessment_answers")
|
|
3270
3243
|
], AssessmentAnswer);
|
|
3271
3244
|
|
|
3272
3245
|
// src/entities/company-skill.entity.ts
|
|
3273
|
-
var
|
|
3246
|
+
var import_typeorm34 = require("typeorm");
|
|
3274
3247
|
var CompanySkill = class extends BaseEntity {
|
|
3275
3248
|
};
|
|
3276
3249
|
// individual index to find core skills by user
|
|
3277
3250
|
__decorateClass([
|
|
3278
|
-
(0,
|
|
3279
|
-
(0,
|
|
3251
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3252
|
+
(0, import_typeorm34.Index)()
|
|
3280
3253
|
], CompanySkill.prototype, "userId", 2);
|
|
3281
3254
|
__decorateClass([
|
|
3282
|
-
(0,
|
|
3283
|
-
(0,
|
|
3255
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3256
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
3284
3257
|
], CompanySkill.prototype, "user", 2);
|
|
3285
3258
|
__decorateClass([
|
|
3286
|
-
(0,
|
|
3259
|
+
(0, import_typeorm34.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3287
3260
|
], CompanySkill.prototype, "skillName", 2);
|
|
3288
3261
|
CompanySkill = __decorateClass([
|
|
3289
|
-
(0,
|
|
3262
|
+
(0, import_typeorm34.Entity)("company_skills")
|
|
3290
3263
|
], CompanySkill);
|
|
3291
3264
|
|
|
3292
3265
|
// src/entities/admin-user-role.entity.ts
|
|
3293
|
-
var
|
|
3266
|
+
var import_typeorm38 = require("typeorm");
|
|
3294
3267
|
|
|
3295
3268
|
// src/entities/admin-role.entity.ts
|
|
3296
|
-
var
|
|
3269
|
+
var import_typeorm37 = require("typeorm");
|
|
3297
3270
|
|
|
3298
3271
|
// src/entities/admin-role-permission.entity.ts
|
|
3299
|
-
var
|
|
3272
|
+
var import_typeorm36 = require("typeorm");
|
|
3300
3273
|
|
|
3301
3274
|
// src/entities/admin-permission.entity.ts
|
|
3302
|
-
var
|
|
3275
|
+
var import_typeorm35 = require("typeorm");
|
|
3303
3276
|
var AdminPermission = class extends BaseEntity {
|
|
3304
3277
|
};
|
|
3305
3278
|
__decorateClass([
|
|
3306
|
-
(0,
|
|
3279
|
+
(0, import_typeorm35.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
3307
3280
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3308
3281
|
__decorateClass([
|
|
3309
|
-
(0,
|
|
3282
|
+
(0, import_typeorm35.Column)({
|
|
3310
3283
|
name: "permission_slug",
|
|
3311
3284
|
type: "varchar",
|
|
3312
3285
|
unique: true,
|
|
3313
3286
|
nullable: true
|
|
3314
3287
|
}),
|
|
3315
|
-
(0,
|
|
3288
|
+
(0, import_typeorm35.Index)()
|
|
3316
3289
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3317
3290
|
__decorateClass([
|
|
3318
|
-
(0,
|
|
3291
|
+
(0, import_typeorm35.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
3319
3292
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3320
3293
|
__decorateClass([
|
|
3321
|
-
(0,
|
|
3294
|
+
(0, import_typeorm35.Column)({ name: "module", type: "varchar", nullable: true })
|
|
3322
3295
|
], AdminPermission.prototype, "module", 2);
|
|
3323
3296
|
__decorateClass([
|
|
3324
|
-
(0,
|
|
3297
|
+
(0, import_typeorm35.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3325
3298
|
], AdminPermission.prototype, "isActive", 2);
|
|
3326
3299
|
__decorateClass([
|
|
3327
|
-
(0,
|
|
3300
|
+
(0, import_typeorm35.OneToMany)(
|
|
3328
3301
|
() => AdminRolePermission,
|
|
3329
3302
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3330
3303
|
)
|
|
3331
3304
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3332
3305
|
AdminPermission = __decorateClass([
|
|
3333
|
-
(0,
|
|
3306
|
+
(0, import_typeorm35.Entity)("admin_permissions")
|
|
3334
3307
|
], AdminPermission);
|
|
3335
3308
|
|
|
3336
3309
|
// src/entities/admin-role-permission.entity.ts
|
|
3337
3310
|
var AdminRolePermission = class extends BaseEntity {
|
|
3338
3311
|
};
|
|
3339
3312
|
__decorateClass([
|
|
3340
|
-
(0,
|
|
3313
|
+
(0, import_typeorm36.Column)({
|
|
3341
3314
|
name: "role_id",
|
|
3342
3315
|
type: "int",
|
|
3343
3316
|
nullable: true,
|
|
@@ -3345,11 +3318,11 @@ __decorateClass([
|
|
|
3345
3318
|
})
|
|
3346
3319
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3347
3320
|
__decorateClass([
|
|
3348
|
-
(0,
|
|
3349
|
-
(0,
|
|
3321
|
+
(0, import_typeorm36.ManyToOne)(() => AdminRole),
|
|
3322
|
+
(0, import_typeorm36.JoinColumn)({ name: "role_id" })
|
|
3350
3323
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3351
3324
|
__decorateClass([
|
|
3352
|
-
(0,
|
|
3325
|
+
(0, import_typeorm36.Column)({
|
|
3353
3326
|
name: "permission_id",
|
|
3354
3327
|
type: "int",
|
|
3355
3328
|
nullable: true,
|
|
@@ -3357,47 +3330,47 @@ __decorateClass([
|
|
|
3357
3330
|
})
|
|
3358
3331
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3359
3332
|
__decorateClass([
|
|
3360
|
-
(0,
|
|
3361
|
-
(0,
|
|
3333
|
+
(0, import_typeorm36.ManyToOne)(() => AdminPermission),
|
|
3334
|
+
(0, import_typeorm36.JoinColumn)({ name: "permission_id" })
|
|
3362
3335
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3363
3336
|
AdminRolePermission = __decorateClass([
|
|
3364
|
-
(0,
|
|
3337
|
+
(0, import_typeorm36.Entity)("admin_role_permissions")
|
|
3365
3338
|
], AdminRolePermission);
|
|
3366
3339
|
|
|
3367
3340
|
// src/entities/admin-role.entity.ts
|
|
3368
3341
|
var AdminRole = class extends BaseEntity {
|
|
3369
3342
|
};
|
|
3370
3343
|
__decorateClass([
|
|
3371
|
-
(0,
|
|
3344
|
+
(0, import_typeorm37.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
3372
3345
|
], AdminRole.prototype, "roleName", 2);
|
|
3373
3346
|
__decorateClass([
|
|
3374
|
-
(0,
|
|
3375
|
-
(0,
|
|
3347
|
+
(0, import_typeorm37.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3348
|
+
(0, import_typeorm37.Index)()
|
|
3376
3349
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3377
3350
|
__decorateClass([
|
|
3378
|
-
(0,
|
|
3351
|
+
(0, import_typeorm37.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
3379
3352
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3380
3353
|
__decorateClass([
|
|
3381
|
-
(0,
|
|
3354
|
+
(0, import_typeorm37.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3382
3355
|
], AdminRole.prototype, "isActive", 2);
|
|
3383
3356
|
__decorateClass([
|
|
3384
|
-
(0,
|
|
3357
|
+
(0, import_typeorm37.OneToMany)(
|
|
3385
3358
|
() => AdminRolePermission,
|
|
3386
3359
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3387
3360
|
)
|
|
3388
3361
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3389
3362
|
__decorateClass([
|
|
3390
|
-
(0,
|
|
3363
|
+
(0, import_typeorm37.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3391
3364
|
], AdminRole.prototype, "userRoles", 2);
|
|
3392
3365
|
AdminRole = __decorateClass([
|
|
3393
|
-
(0,
|
|
3366
|
+
(0, import_typeorm37.Entity)("admin_roles")
|
|
3394
3367
|
], AdminRole);
|
|
3395
3368
|
|
|
3396
3369
|
// src/entities/admin-user-role.entity.ts
|
|
3397
3370
|
var AdminUserRole = class extends BaseEntity {
|
|
3398
3371
|
};
|
|
3399
3372
|
__decorateClass([
|
|
3400
|
-
(0,
|
|
3373
|
+
(0, import_typeorm38.Column)({
|
|
3401
3374
|
name: "user_id",
|
|
3402
3375
|
type: "int",
|
|
3403
3376
|
nullable: true,
|
|
@@ -3405,11 +3378,11 @@ __decorateClass([
|
|
|
3405
3378
|
})
|
|
3406
3379
|
], AdminUserRole.prototype, "userId", 2);
|
|
3407
3380
|
__decorateClass([
|
|
3408
|
-
(0,
|
|
3409
|
-
(0,
|
|
3381
|
+
(0, import_typeorm38.ManyToOne)(() => User),
|
|
3382
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
3410
3383
|
], AdminUserRole.prototype, "user", 2);
|
|
3411
3384
|
__decorateClass([
|
|
3412
|
-
(0,
|
|
3385
|
+
(0, import_typeorm38.Column)({
|
|
3413
3386
|
name: "role_id",
|
|
3414
3387
|
type: "int",
|
|
3415
3388
|
nullable: true,
|
|
@@ -3417,34 +3390,34 @@ __decorateClass([
|
|
|
3417
3390
|
})
|
|
3418
3391
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3419
3392
|
__decorateClass([
|
|
3420
|
-
(0,
|
|
3421
|
-
(0,
|
|
3393
|
+
(0, import_typeorm38.ManyToOne)(() => AdminRole),
|
|
3394
|
+
(0, import_typeorm38.JoinColumn)({ name: "role_id" })
|
|
3422
3395
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3423
3396
|
AdminUserRole = __decorateClass([
|
|
3424
|
-
(0,
|
|
3397
|
+
(0, import_typeorm38.Entity)("admin_user_roles")
|
|
3425
3398
|
], AdminUserRole);
|
|
3426
3399
|
|
|
3427
3400
|
// src/entities/freelancer-resume.entity.ts
|
|
3428
|
-
var
|
|
3401
|
+
var import_typeorm39 = require("typeorm");
|
|
3429
3402
|
var FreelancerResume = class extends BaseEntity {
|
|
3430
3403
|
};
|
|
3431
3404
|
// individual index to find profile by user
|
|
3432
3405
|
__decorateClass([
|
|
3433
|
-
(0,
|
|
3434
|
-
(0,
|
|
3406
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3407
|
+
(0, import_typeorm39.Index)()
|
|
3435
3408
|
], FreelancerResume.prototype, "userId", 2);
|
|
3436
3409
|
__decorateClass([
|
|
3437
|
-
(0,
|
|
3438
|
-
(0,
|
|
3410
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
3411
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
3439
3412
|
], FreelancerResume.prototype, "user", 2);
|
|
3440
3413
|
__decorateClass([
|
|
3441
|
-
(0,
|
|
3414
|
+
(0, import_typeorm39.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3442
3415
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3443
3416
|
__decorateClass([
|
|
3444
|
-
(0,
|
|
3417
|
+
(0, import_typeorm39.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3445
3418
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3446
3419
|
FreelancerResume = __decorateClass([
|
|
3447
|
-
(0,
|
|
3420
|
+
(0, import_typeorm39.Entity)("freelancer_resumes")
|
|
3448
3421
|
], FreelancerResume);
|
|
3449
3422
|
|
|
3450
3423
|
// src/entities/user.entity.ts
|
|
@@ -3472,51 +3445,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3472
3445
|
var User = class extends BaseEntity {
|
|
3473
3446
|
};
|
|
3474
3447
|
__decorateClass([
|
|
3475
|
-
(0,
|
|
3448
|
+
(0, import_typeorm40.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
3476
3449
|
], User.prototype, "uniqueId", 2);
|
|
3477
3450
|
__decorateClass([
|
|
3478
|
-
(0,
|
|
3479
|
-
(0,
|
|
3451
|
+
(0, import_typeorm40.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
3452
|
+
(0, import_typeorm40.Index)()
|
|
3480
3453
|
], User.prototype, "parentId", 2);
|
|
3481
3454
|
__decorateClass([
|
|
3482
|
-
(0,
|
|
3483
|
-
(0,
|
|
3455
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
3456
|
+
(0, import_typeorm40.JoinColumn)({ name: "parent_id" })
|
|
3484
3457
|
], User.prototype, "parent", 2);
|
|
3485
3458
|
__decorateClass([
|
|
3486
|
-
(0,
|
|
3459
|
+
(0, import_typeorm40.OneToMany)(() => User, (user) => user.parent)
|
|
3487
3460
|
], User.prototype, "children", 2);
|
|
3488
3461
|
__decorateClass([
|
|
3489
|
-
(0,
|
|
3462
|
+
(0, import_typeorm40.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3490
3463
|
], User.prototype, "username", 2);
|
|
3491
3464
|
__decorateClass([
|
|
3492
|
-
(0,
|
|
3465
|
+
(0, import_typeorm40.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3493
3466
|
], User.prototype, "firstName", 2);
|
|
3494
3467
|
__decorateClass([
|
|
3495
|
-
(0,
|
|
3468
|
+
(0, import_typeorm40.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3496
3469
|
], User.prototype, "lastName", 2);
|
|
3497
3470
|
__decorateClass([
|
|
3498
|
-
(0,
|
|
3471
|
+
(0, import_typeorm40.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
3499
3472
|
], User.prototype, "dateOfBirth", 2);
|
|
3500
3473
|
__decorateClass([
|
|
3501
|
-
(0,
|
|
3474
|
+
(0, import_typeorm40.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3502
3475
|
], User.prototype, "gender", 2);
|
|
3503
3476
|
__decorateClass([
|
|
3504
|
-
(0,
|
|
3477
|
+
(0, import_typeorm40.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3505
3478
|
], User.prototype, "profilePictureUrl", 2);
|
|
3506
3479
|
__decorateClass([
|
|
3507
|
-
(0,
|
|
3480
|
+
(0, import_typeorm40.Column)({ name: "email", type: "varchar", unique: true })
|
|
3508
3481
|
], User.prototype, "email", 2);
|
|
3509
3482
|
__decorateClass([
|
|
3510
|
-
(0,
|
|
3483
|
+
(0, import_typeorm40.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3511
3484
|
], User.prototype, "mobileCode", 2);
|
|
3512
3485
|
__decorateClass([
|
|
3513
|
-
(0,
|
|
3486
|
+
(0, import_typeorm40.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
3514
3487
|
], User.prototype, "mobile", 2);
|
|
3515
3488
|
__decorateClass([
|
|
3516
|
-
(0,
|
|
3489
|
+
(0, import_typeorm40.Column)({ name: "password", type: "varchar", nullable: true })
|
|
3517
3490
|
], User.prototype, "password", 2);
|
|
3518
3491
|
__decorateClass([
|
|
3519
|
-
(0,
|
|
3492
|
+
(0, import_typeorm40.Column)({
|
|
3520
3493
|
name: "account_type",
|
|
3521
3494
|
type: "enum",
|
|
3522
3495
|
enum: AccountType,
|
|
@@ -3524,7 +3497,7 @@ __decorateClass([
|
|
|
3524
3497
|
})
|
|
3525
3498
|
], User.prototype, "accountType", 2);
|
|
3526
3499
|
__decorateClass([
|
|
3527
|
-
(0,
|
|
3500
|
+
(0, import_typeorm40.Column)({
|
|
3528
3501
|
name: "account_status",
|
|
3529
3502
|
type: "enum",
|
|
3530
3503
|
enum: AccountStatus,
|
|
@@ -3532,39 +3505,39 @@ __decorateClass([
|
|
|
3532
3505
|
})
|
|
3533
3506
|
], User.prototype, "accountStatus", 2);
|
|
3534
3507
|
__decorateClass([
|
|
3535
|
-
(0,
|
|
3508
|
+
(0, import_typeorm40.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
3536
3509
|
], User.prototype, "isEmailVerified", 2);
|
|
3537
3510
|
__decorateClass([
|
|
3538
|
-
(0,
|
|
3511
|
+
(0, import_typeorm40.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3539
3512
|
], User.prototype, "isMobileVerified", 2);
|
|
3540
3513
|
__decorateClass([
|
|
3541
|
-
(0,
|
|
3514
|
+
(0, import_typeorm40.Column)({ name: "is_social", type: "boolean", default: false })
|
|
3542
3515
|
], User.prototype, "isSocial", 2);
|
|
3543
3516
|
__decorateClass([
|
|
3544
|
-
(0,
|
|
3517
|
+
(0, import_typeorm40.Column)({
|
|
3545
3518
|
name: "last_login_at",
|
|
3546
3519
|
type: "timestamp with time zone",
|
|
3547
3520
|
nullable: true
|
|
3548
3521
|
})
|
|
3549
3522
|
], User.prototype, "lastLoginAt", 2);
|
|
3550
3523
|
__decorateClass([
|
|
3551
|
-
(0,
|
|
3524
|
+
(0, import_typeorm40.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3552
3525
|
], User.prototype, "lastLoginIp", 2);
|
|
3553
3526
|
__decorateClass([
|
|
3554
|
-
(0,
|
|
3527
|
+
(0, import_typeorm40.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
3555
3528
|
], User.prototype, "resetToken", 2);
|
|
3556
3529
|
__decorateClass([
|
|
3557
|
-
(0,
|
|
3530
|
+
(0, import_typeorm40.Column)({
|
|
3558
3531
|
name: "reset_token_expire_at",
|
|
3559
3532
|
type: "timestamp with time zone",
|
|
3560
3533
|
nullable: true
|
|
3561
3534
|
})
|
|
3562
3535
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3563
3536
|
__decorateClass([
|
|
3564
|
-
(0,
|
|
3537
|
+
(0, import_typeorm40.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
3565
3538
|
], User.prototype, "refreshTokens", 2);
|
|
3566
3539
|
__decorateClass([
|
|
3567
|
-
(0,
|
|
3540
|
+
(0, import_typeorm40.Column)({
|
|
3568
3541
|
name: "provider",
|
|
3569
3542
|
type: "enum",
|
|
3570
3543
|
enum: Provider,
|
|
@@ -3573,94 +3546,94 @@ __decorateClass([
|
|
|
3573
3546
|
})
|
|
3574
3547
|
], User.prototype, "provider", 2);
|
|
3575
3548
|
__decorateClass([
|
|
3576
|
-
(0,
|
|
3549
|
+
(0, import_typeorm40.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
3577
3550
|
], User.prototype, "providerToken", 2);
|
|
3578
3551
|
__decorateClass([
|
|
3579
|
-
(0,
|
|
3552
|
+
(0, import_typeorm40.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3580
3553
|
], User.prototype, "linkedInId", 2);
|
|
3581
3554
|
__decorateClass([
|
|
3582
|
-
(0,
|
|
3555
|
+
(0, import_typeorm40.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
3583
3556
|
], User.prototype, "googleId", 2);
|
|
3584
3557
|
__decorateClass([
|
|
3585
|
-
(0,
|
|
3558
|
+
(0, import_typeorm40.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3586
3559
|
], User.prototype, "gitLabsId", 2);
|
|
3587
3560
|
__decorateClass([
|
|
3588
|
-
(0,
|
|
3561
|
+
(0, import_typeorm40.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3589
3562
|
], User.prototype, "otps", 2);
|
|
3590
3563
|
__decorateClass([
|
|
3591
|
-
(0,
|
|
3564
|
+
(0, import_typeorm40.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3592
3565
|
], User.prototype, "senseloafLogs", 2);
|
|
3593
3566
|
__decorateClass([
|
|
3594
|
-
(0,
|
|
3567
|
+
(0, import_typeorm40.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3595
3568
|
], User.prototype, "companyProfile", 2);
|
|
3596
3569
|
__decorateClass([
|
|
3597
|
-
(0,
|
|
3570
|
+
(0, import_typeorm40.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3598
3571
|
], User.prototype, "companySkills", 2);
|
|
3599
3572
|
__decorateClass([
|
|
3600
|
-
(0,
|
|
3573
|
+
(0, import_typeorm40.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3601
3574
|
], User.prototype, "companyMemberRoles", 2);
|
|
3602
3575
|
__decorateClass([
|
|
3603
|
-
(0,
|
|
3576
|
+
(0, import_typeorm40.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3604
3577
|
], User.prototype, "freelancerProfile", 2);
|
|
3605
3578
|
__decorateClass([
|
|
3606
|
-
(0,
|
|
3579
|
+
(0, import_typeorm40.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3607
3580
|
], User.prototype, "freelancerResume", 2);
|
|
3608
3581
|
__decorateClass([
|
|
3609
|
-
(0,
|
|
3582
|
+
(0, import_typeorm40.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3610
3583
|
], User.prototype, "assessments", 2);
|
|
3611
3584
|
__decorateClass([
|
|
3612
|
-
(0,
|
|
3585
|
+
(0, import_typeorm40.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3613
3586
|
], User.prototype, "assessmentAnswers", 2);
|
|
3614
3587
|
__decorateClass([
|
|
3615
|
-
(0,
|
|
3588
|
+
(0, import_typeorm40.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3616
3589
|
], User.prototype, "freelancerSkills", 2);
|
|
3617
3590
|
__decorateClass([
|
|
3618
|
-
(0,
|
|
3591
|
+
(0, import_typeorm40.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3619
3592
|
], User.prototype, "freelancerExperience", 2);
|
|
3620
3593
|
__decorateClass([
|
|
3621
|
-
(0,
|
|
3594
|
+
(0, import_typeorm40.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3622
3595
|
], User.prototype, "freelancerEducation", 2);
|
|
3623
3596
|
__decorateClass([
|
|
3624
|
-
(0,
|
|
3597
|
+
(0, import_typeorm40.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3625
3598
|
], User.prototype, "freelancerProject", 2);
|
|
3626
3599
|
__decorateClass([
|
|
3627
|
-
(0,
|
|
3600
|
+
(0, import_typeorm40.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3628
3601
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3629
3602
|
__decorateClass([
|
|
3630
|
-
(0,
|
|
3603
|
+
(0, import_typeorm40.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3631
3604
|
], User.prototype, "freelancerTool", 2);
|
|
3632
3605
|
__decorateClass([
|
|
3633
|
-
(0,
|
|
3606
|
+
(0, import_typeorm40.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3634
3607
|
], User.prototype, "freelancerFramework", 2);
|
|
3635
3608
|
__decorateClass([
|
|
3636
|
-
(0,
|
|
3609
|
+
(0, import_typeorm40.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3637
3610
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3638
3611
|
__decorateClass([
|
|
3639
|
-
(0,
|
|
3612
|
+
(0, import_typeorm40.OneToMany)(() => Job, (job) => job.user)
|
|
3640
3613
|
], User.prototype, "jobs", 2);
|
|
3641
3614
|
__decorateClass([
|
|
3642
|
-
(0,
|
|
3615
|
+
(0, import_typeorm40.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3643
3616
|
], User.prototype, "jobApplications", 2);
|
|
3644
3617
|
__decorateClass([
|
|
3645
|
-
(0,
|
|
3618
|
+
(0, import_typeorm40.OneToMany)(() => Interview, (interview) => interview.user)
|
|
3646
3619
|
], User.prototype, "interviews", 2);
|
|
3647
3620
|
__decorateClass([
|
|
3648
|
-
(0,
|
|
3621
|
+
(0, import_typeorm40.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3649
3622
|
], User.prototype, "bankDetail", 2);
|
|
3650
3623
|
__decorateClass([
|
|
3651
|
-
(0,
|
|
3624
|
+
(0, import_typeorm40.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3652
3625
|
], User.prototype, "systemPreference", 2);
|
|
3653
3626
|
__decorateClass([
|
|
3654
|
-
(0,
|
|
3627
|
+
(0, import_typeorm40.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
3655
3628
|
], User.prototype, "givenRatings", 2);
|
|
3656
3629
|
__decorateClass([
|
|
3657
|
-
(0,
|
|
3630
|
+
(0, import_typeorm40.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
3658
3631
|
], User.prototype, "receivedRatings", 2);
|
|
3659
3632
|
__decorateClass([
|
|
3660
|
-
(0,
|
|
3633
|
+
(0, import_typeorm40.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3661
3634
|
], User.prototype, "adminUserRoles", 2);
|
|
3662
3635
|
User = __decorateClass([
|
|
3663
|
-
(0,
|
|
3636
|
+
(0, import_typeorm40.Entity)("users")
|
|
3664
3637
|
], User);
|
|
3665
3638
|
|
|
3666
3639
|
// src/entities/rating.entity.ts
|
|
@@ -3672,36 +3645,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3672
3645
|
var Rating = class extends BaseEntity {
|
|
3673
3646
|
};
|
|
3674
3647
|
__decorateClass([
|
|
3675
|
-
(0,
|
|
3676
|
-
(0,
|
|
3648
|
+
(0, import_typeorm41.Column)({ name: "reviewer_id", type: "integer" }),
|
|
3649
|
+
(0, import_typeorm41.Index)()
|
|
3677
3650
|
], Rating.prototype, "reviewer_id", 2);
|
|
3678
3651
|
__decorateClass([
|
|
3679
|
-
(0,
|
|
3680
|
-
(0,
|
|
3652
|
+
(0, import_typeorm41.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3653
|
+
(0, import_typeorm41.JoinColumn)({ name: "reviewer_id" })
|
|
3681
3654
|
], Rating.prototype, "reviewer", 2);
|
|
3682
3655
|
__decorateClass([
|
|
3683
|
-
(0,
|
|
3684
|
-
(0,
|
|
3656
|
+
(0, import_typeorm41.Column)({ name: "reviewee_id", type: "integer" }),
|
|
3657
|
+
(0, import_typeorm41.Index)()
|
|
3685
3658
|
], Rating.prototype, "reviewee_id", 2);
|
|
3686
3659
|
__decorateClass([
|
|
3687
|
-
(0,
|
|
3688
|
-
(0,
|
|
3660
|
+
(0, import_typeorm41.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3661
|
+
(0, import_typeorm41.JoinColumn)({ name: "reviewee_id" })
|
|
3689
3662
|
], Rating.prototype, "reviewee", 2);
|
|
3690
3663
|
__decorateClass([
|
|
3691
|
-
(0,
|
|
3664
|
+
(0, import_typeorm41.Column)({
|
|
3692
3665
|
type: "enum",
|
|
3693
3666
|
enum: RatingTypeEnum,
|
|
3694
3667
|
nullable: true
|
|
3695
3668
|
})
|
|
3696
3669
|
], Rating.prototype, "ratingType", 2);
|
|
3697
3670
|
__decorateClass([
|
|
3698
|
-
(0,
|
|
3671
|
+
(0, import_typeorm41.Column)({ type: "integer", nullable: true })
|
|
3699
3672
|
], Rating.prototype, "rating", 2);
|
|
3700
3673
|
__decorateClass([
|
|
3701
|
-
(0,
|
|
3674
|
+
(0, import_typeorm41.Column)({ type: "text", nullable: true })
|
|
3702
3675
|
], Rating.prototype, "review", 2);
|
|
3703
3676
|
Rating = __decorateClass([
|
|
3704
|
-
(0,
|
|
3677
|
+
(0, import_typeorm41.Entity)("ratings")
|
|
3705
3678
|
], Rating);
|
|
3706
3679
|
|
|
3707
3680
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -4979,11 +4952,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
4979
4952
|
};
|
|
4980
4953
|
|
|
4981
4954
|
// src/entities/sequence-generator.entity.ts
|
|
4982
|
-
var
|
|
4955
|
+
var import_typeorm42 = require("typeorm");
|
|
4983
4956
|
var SequenceGenerator = class extends BaseEntity {
|
|
4984
4957
|
};
|
|
4985
4958
|
__decorateClass([
|
|
4986
|
-
(0,
|
|
4959
|
+
(0, import_typeorm42.Column)({
|
|
4987
4960
|
name: "module",
|
|
4988
4961
|
type: "varchar",
|
|
4989
4962
|
length: 50,
|
|
@@ -4992,7 +4965,7 @@ __decorateClass([
|
|
|
4992
4965
|
})
|
|
4993
4966
|
], SequenceGenerator.prototype, "module", 2);
|
|
4994
4967
|
__decorateClass([
|
|
4995
|
-
(0,
|
|
4968
|
+
(0, import_typeorm42.Column)({
|
|
4996
4969
|
name: "prefix",
|
|
4997
4970
|
type: "varchar",
|
|
4998
4971
|
length: 10,
|
|
@@ -5001,7 +4974,7 @@ __decorateClass([
|
|
|
5001
4974
|
})
|
|
5002
4975
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5003
4976
|
__decorateClass([
|
|
5004
|
-
(0,
|
|
4977
|
+
(0, import_typeorm42.Column)({
|
|
5005
4978
|
name: "last_sequence",
|
|
5006
4979
|
type: "int",
|
|
5007
4980
|
nullable: false,
|
|
@@ -5009,7 +4982,7 @@ __decorateClass([
|
|
|
5009
4982
|
})
|
|
5010
4983
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5011
4984
|
__decorateClass([
|
|
5012
|
-
(0,
|
|
4985
|
+
(0, import_typeorm42.Column)({
|
|
5013
4986
|
name: "year",
|
|
5014
4987
|
type: "int",
|
|
5015
4988
|
nullable: true,
|
|
@@ -5017,11 +4990,11 @@ __decorateClass([
|
|
|
5017
4990
|
})
|
|
5018
4991
|
], SequenceGenerator.prototype, "year", 2);
|
|
5019
4992
|
SequenceGenerator = __decorateClass([
|
|
5020
|
-
(0,
|
|
4993
|
+
(0, import_typeorm42.Entity)("sequence_generators")
|
|
5021
4994
|
], SequenceGenerator);
|
|
5022
4995
|
|
|
5023
4996
|
// src/entities/question.entity.ts
|
|
5024
|
-
var
|
|
4997
|
+
var import_typeorm43 = require("typeorm");
|
|
5025
4998
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5026
4999
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5027
5000
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5030,16 +5003,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5030
5003
|
var Question = class extends BaseEntity {
|
|
5031
5004
|
};
|
|
5032
5005
|
__decorateClass([
|
|
5033
|
-
(0,
|
|
5006
|
+
(0, import_typeorm43.Column)({ name: "question", type: "varchar" })
|
|
5034
5007
|
], Question.prototype, "question", 2);
|
|
5035
5008
|
__decorateClass([
|
|
5036
|
-
(0,
|
|
5009
|
+
(0, import_typeorm43.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
5037
5010
|
], Question.prototype, "hint", 2);
|
|
5038
5011
|
__decorateClass([
|
|
5039
|
-
(0,
|
|
5012
|
+
(0, import_typeorm43.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5040
5013
|
], Question.prototype, "slug", 2);
|
|
5041
5014
|
__decorateClass([
|
|
5042
|
-
(0,
|
|
5015
|
+
(0, import_typeorm43.Column)({
|
|
5043
5016
|
name: "question_for",
|
|
5044
5017
|
type: "enum",
|
|
5045
5018
|
enum: QuestionFor,
|
|
@@ -5047,18 +5020,35 @@ __decorateClass([
|
|
|
5047
5020
|
})
|
|
5048
5021
|
], Question.prototype, "questionFor", 2);
|
|
5049
5022
|
__decorateClass([
|
|
5050
|
-
(0,
|
|
5023
|
+
(0, import_typeorm43.Column)({ name: "type", type: "varchar", nullable: true })
|
|
5051
5024
|
], Question.prototype, "type", 2);
|
|
5052
5025
|
__decorateClass([
|
|
5053
|
-
(0,
|
|
5026
|
+
(0, import_typeorm43.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
5054
5027
|
], Question.prototype, "options", 2);
|
|
5055
5028
|
__decorateClass([
|
|
5056
|
-
(0,
|
|
5029
|
+
(0, import_typeorm43.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5057
5030
|
], Question.prototype, "isActive", 2);
|
|
5058
5031
|
Question = __decorateClass([
|
|
5059
|
-
(0,
|
|
5032
|
+
(0, import_typeorm43.Entity)("questions")
|
|
5060
5033
|
], Question);
|
|
5061
5034
|
|
|
5035
|
+
// src/entities/skill.entity.ts
|
|
5036
|
+
var import_typeorm44 = require("typeorm");
|
|
5037
|
+
var Skill = class extends BaseEntity {
|
|
5038
|
+
};
|
|
5039
|
+
__decorateClass([
|
|
5040
|
+
(0, import_typeorm44.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5041
|
+
], Skill.prototype, "name", 2);
|
|
5042
|
+
__decorateClass([
|
|
5043
|
+
(0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5044
|
+
], Skill.prototype, "slug", 2);
|
|
5045
|
+
__decorateClass([
|
|
5046
|
+
(0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5047
|
+
], Skill.prototype, "isActive", 2);
|
|
5048
|
+
Skill = __decorateClass([
|
|
5049
|
+
(0, import_typeorm44.Entity)("skills")
|
|
5050
|
+
], Skill);
|
|
5051
|
+
|
|
5062
5052
|
// src/entities/job-role.entity.ts
|
|
5063
5053
|
var import_typeorm45 = require("typeorm");
|
|
5064
5054
|
var JobRoles = class extends BaseEntity {
|