@experts_hub/shared 1.0.717 → 1.0.718

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
@@ -1063,13 +1063,13 @@ import { IsEnum as IsEnum14 } from "class-validator";
1063
1063
 
1064
1064
  // src/entities/user.entity.ts
1065
1065
  import {
1066
- Entity as Entity78,
1067
- Column as Column79,
1066
+ Entity as Entity79,
1067
+ Column as Column80,
1068
1068
  OneToMany as OneToMany27,
1069
1069
  OneToOne as OneToOne12,
1070
- Index as Index69,
1071
- ManyToOne as ManyToOne73,
1072
- JoinColumn as JoinColumn74
1070
+ Index as Index70,
1071
+ ManyToOne as ManyToOne74,
1072
+ JoinColumn as JoinColumn75
1073
1073
  } from "typeorm";
1074
1074
 
1075
1075
  // src/entities/base.entity.ts
@@ -5625,26 +5625,57 @@ CompanyMemberRole = __decorateClass([
5625
5625
  Entity57("company_member_roles")
5626
5626
  ], CompanyMemberRole);
5627
5627
 
5628
+ // src/entities/company-member.entity.ts
5629
+ import { Column as Column59, Entity as Entity58, Index as Index51, JoinColumn as JoinColumn56, ManyToOne as ManyToOne56 } from "typeorm";
5630
+ var CompanyMember = class extends BaseEntity {
5631
+ };
5632
+ __decorateClass([
5633
+ Column59({ name: "user_id", type: "integer", unique: true })
5634
+ ], CompanyMember.prototype, "userId", 2);
5635
+ __decorateClass([
5636
+ ManyToOne56(() => User, (user) => user.companyMember),
5637
+ JoinColumn56({ name: "user_id" })
5638
+ ], CompanyMember.prototype, "user", 2);
5639
+ __decorateClass([
5640
+ Column59({ name: "first_name", type: "varchar", length: 100, nullable: true })
5641
+ ], CompanyMember.prototype, "firstName", 2);
5642
+ __decorateClass([
5643
+ Column59({ name: "last_name", type: "varchar", length: 100, nullable: true })
5644
+ ], CompanyMember.prototype, "lastName", 2);
5645
+ __decorateClass([
5646
+ Column59({ name: "email", type: "varchar", nullable: true }),
5647
+ Index51()
5648
+ ], CompanyMember.prototype, "email", 2);
5649
+ __decorateClass([
5650
+ Column59({ name: "is_eligibl_for_recruiter_acknowledgement", type: "boolean", default: false })
5651
+ ], CompanyMember.prototype, "isEligibleForRecruiterAcknowledgement", 2);
5652
+ __decorateClass([
5653
+ Column59({ name: "is_recruiter_platform_acknowledgement_accepted", type: "boolean", default: false })
5654
+ ], CompanyMember.prototype, "isRecruiterPlatformAcknowledgementAccepted", 2);
5655
+ CompanyMember = __decorateClass([
5656
+ Entity58("company_members")
5657
+ ], CompanyMember);
5658
+
5628
5659
  // src/entities/assessment-answer.entity.ts
5629
5660
  import {
5630
- Entity as Entity60,
5631
- Column as Column61,
5632
- ManyToOne as ManyToOne58,
5633
- Index as Index53,
5634
- JoinColumn as JoinColumn58
5661
+ Entity as Entity61,
5662
+ Column as Column62,
5663
+ ManyToOne as ManyToOne59,
5664
+ Index as Index54,
5665
+ JoinColumn as JoinColumn59
5635
5666
  } from "typeorm";
5636
5667
 
5637
5668
  // src/entities/assessment-question.entity.ts
5638
- import { Entity as Entity59, Column as Column60, OneToMany as OneToMany20, Index as Index52, ManyToOne as ManyToOne57, JoinColumn as JoinColumn57 } from "typeorm";
5669
+ import { Entity as Entity60, Column as Column61, OneToMany as OneToMany20, Index as Index53, ManyToOne as ManyToOne58, JoinColumn as JoinColumn58 } from "typeorm";
5639
5670
 
5640
5671
  // src/entities/assessment-question-option.entity.ts
5641
5672
  import {
5642
- Entity as Entity58,
5643
- Column as Column59,
5673
+ Entity as Entity59,
5674
+ Column as Column60,
5644
5675
  OneToMany as OneToMany19,
5645
- ManyToOne as ManyToOne56,
5646
- Index as Index51,
5647
- JoinColumn as JoinColumn56
5676
+ ManyToOne as ManyToOne57,
5677
+ Index as Index52,
5678
+ JoinColumn as JoinColumn57
5648
5679
  } from "typeorm";
5649
5680
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5650
5681
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
@@ -5655,23 +5686,23 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5655
5686
  var AssessmetQuestionOption = class extends BaseEntity {
5656
5687
  };
5657
5688
  __decorateClass([
5658
- Column59({ name: "question_id", type: "integer", nullable: true }),
5659
- Index51()
5689
+ Column60({ name: "question_id", type: "integer", nullable: true }),
5690
+ Index52()
5660
5691
  ], AssessmetQuestionOption.prototype, "questionId", 2);
5661
5692
  __decorateClass([
5662
- ManyToOne56(
5693
+ ManyToOne57(
5663
5694
  () => AssessmetQuestion,
5664
5695
  (assessmentQuestion) => assessmentQuestion.options,
5665
5696
  { onDelete: "CASCADE" }
5666
5697
  // ✅ IMPORTANT
5667
5698
  ),
5668
- JoinColumn56({ name: "question_id" })
5699
+ JoinColumn57({ name: "question_id" })
5669
5700
  ], AssessmetQuestionOption.prototype, "question", 2);
5670
5701
  __decorateClass([
5671
- Column59({ name: "text", type: "varchar", nullable: true })
5702
+ Column60({ name: "text", type: "varchar", nullable: true })
5672
5703
  ], AssessmetQuestionOption.prototype, "text", 2);
5673
5704
  __decorateClass([
5674
- Column59({
5705
+ Column60({
5675
5706
  name: "answer_type",
5676
5707
  type: "enum",
5677
5708
  enum: AnswerTypeEnum,
@@ -5679,13 +5710,13 @@ __decorateClass([
5679
5710
  })
5680
5711
  ], AssessmetQuestionOption.prototype, "answerType", 2);
5681
5712
  __decorateClass([
5682
- Column59({ name: "is_active", type: "boolean", default: true })
5713
+ Column60({ name: "is_active", type: "boolean", default: true })
5683
5714
  ], AssessmetQuestionOption.prototype, "isActive", 2);
5684
5715
  __decorateClass([
5685
5716
  OneToMany19(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5686
5717
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
5687
5718
  AssessmetQuestionOption = __decorateClass([
5688
- Entity58("assessment_question_options")
5719
+ Entity59("assessment_question_options")
5689
5720
  ], AssessmetQuestionOption);
5690
5721
 
5691
5722
  // src/entities/assessment-question.entity.ts
@@ -5697,10 +5728,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
5697
5728
  var AssessmetQuestion = class extends BaseEntity {
5698
5729
  };
5699
5730
  __decorateClass([
5700
- Column60({ name: "text", type: "varchar", nullable: true })
5731
+ Column61({ name: "text", type: "varchar", nullable: true })
5701
5732
  ], AssessmetQuestion.prototype, "text", 2);
5702
5733
  __decorateClass([
5703
- Column60({
5734
+ Column61({
5704
5735
  name: "question_for",
5705
5736
  type: "enum",
5706
5737
  enum: QuestionForEnum,
@@ -5708,15 +5739,15 @@ __decorateClass([
5708
5739
  })
5709
5740
  ], AssessmetQuestion.prototype, "questionFor", 2);
5710
5741
  __decorateClass([
5711
- Column60({ name: "is_active", type: "boolean", default: true })
5742
+ Column61({ name: "is_active", type: "boolean", default: true })
5712
5743
  ], AssessmetQuestion.prototype, "isActive", 2);
5713
5744
  __decorateClass([
5714
- Column60({ name: "candidate_id", type: "integer", nullable: true }),
5715
- Index52()
5745
+ Column61({ name: "candidate_id", type: "integer", nullable: true }),
5746
+ Index53()
5716
5747
  ], AssessmetQuestion.prototype, "candidateId", 2);
5717
5748
  __decorateClass([
5718
- ManyToOne57(() => User, (user) => user.freelancerMcq, { nullable: true }),
5719
- JoinColumn57({ name: "candidate_id" })
5749
+ ManyToOne58(() => User, (user) => user.freelancerMcq, { nullable: true }),
5750
+ JoinColumn58({ name: "candidate_id" })
5720
5751
  ], AssessmetQuestion.prototype, "candidate", 2);
5721
5752
  __decorateClass([
5722
5753
  OneToMany20(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
@@ -5725,7 +5756,7 @@ __decorateClass([
5725
5756
  OneToMany20(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5726
5757
  ], AssessmetQuestion.prototype, "answers", 2);
5727
5758
  AssessmetQuestion = __decorateClass([
5728
- Entity59("assessment_questions")
5759
+ Entity60("assessment_questions")
5729
5760
  ], AssessmetQuestion);
5730
5761
 
5731
5762
  // src/entities/assessment-answer.entity.ts
@@ -5738,106 +5769,106 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
5738
5769
  var AssessmentAnswer = class extends BaseEntity {
5739
5770
  };
5740
5771
  __decorateClass([
5741
- Column61({ name: "user_id", type: "integer" }),
5742
- Index53()
5772
+ Column62({ name: "user_id", type: "integer" }),
5773
+ Index54()
5743
5774
  ], AssessmentAnswer.prototype, "userId", 2);
5744
5775
  __decorateClass([
5745
- ManyToOne58(() => User, (user) => user.assessmentAnswers),
5746
- JoinColumn58({ name: "user_id" })
5776
+ ManyToOne59(() => User, (user) => user.assessmentAnswers),
5777
+ JoinColumn59({ name: "user_id" })
5747
5778
  ], AssessmentAnswer.prototype, "user", 2);
5748
5779
  __decorateClass([
5749
- Column61({ name: "question_id", type: "integer" }),
5750
- Index53()
5780
+ Column62({ name: "question_id", type: "integer" }),
5781
+ Index54()
5751
5782
  ], AssessmentAnswer.prototype, "questionId", 2);
5752
5783
  __decorateClass([
5753
- ManyToOne58(
5784
+ ManyToOne59(
5754
5785
  () => AssessmetQuestion,
5755
5786
  (assessmentQuestion) => assessmentQuestion.answers,
5756
5787
  { onDelete: "CASCADE" }
5757
5788
  // ✅ IMPORTANT
5758
5789
  ),
5759
- JoinColumn58({ name: "question_id" })
5790
+ JoinColumn59({ name: "question_id" })
5760
5791
  ], AssessmentAnswer.prototype, "question", 2);
5761
5792
  __decorateClass([
5762
- Column61({ name: "selected_option_id", type: "integer" }),
5763
- Index53()
5793
+ Column62({ name: "selected_option_id", type: "integer" }),
5794
+ Index54()
5764
5795
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
5765
5796
  __decorateClass([
5766
- ManyToOne58(
5797
+ ManyToOne59(
5767
5798
  () => AssessmetQuestionOption,
5768
5799
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions,
5769
5800
  { onDelete: "CASCADE" }
5770
5801
  // ✅ IMPORTANT
5771
5802
  ),
5772
- JoinColumn58({ name: "selected_option_id" })
5803
+ JoinColumn59({ name: "selected_option_id" })
5773
5804
  ], AssessmentAnswer.prototype, "option", 2);
5774
5805
  __decorateClass([
5775
- Column61({
5806
+ Column62({
5776
5807
  name: "selected_answer_type",
5777
5808
  type: "enum",
5778
5809
  enum: SelectedAnswerTypeEnum
5779
5810
  })
5780
5811
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
5781
5812
  __decorateClass([
5782
- Column61({ name: "score", type: "float" })
5813
+ Column62({ name: "score", type: "float" })
5783
5814
  ], AssessmentAnswer.prototype, "score", 2);
5784
5815
  AssessmentAnswer = __decorateClass([
5785
- Entity60("assessment_answers")
5816
+ Entity61("assessment_answers")
5786
5817
  ], AssessmentAnswer);
5787
5818
 
5788
5819
  // src/entities/company-skill.entity.ts
5789
- import { Entity as Entity61, Column as Column62, Index as Index54, ManyToOne as ManyToOne59, JoinColumn as JoinColumn59 } from "typeorm";
5820
+ import { Entity as Entity62, Column as Column63, Index as Index55, ManyToOne as ManyToOne60, JoinColumn as JoinColumn60 } from "typeorm";
5790
5821
  var CompanySkill = class extends BaseEntity {
5791
5822
  };
5792
5823
  // individual index to find core skills by user
5793
5824
  __decorateClass([
5794
- Column62({ name: "user_id", type: "integer", nullable: true }),
5795
- Index54()
5825
+ Column63({ name: "user_id", type: "integer", nullable: true }),
5826
+ Index55()
5796
5827
  ], CompanySkill.prototype, "userId", 2);
5797
5828
  __decorateClass([
5798
- ManyToOne59(() => User, (user) => user.companySkills),
5799
- JoinColumn59({ name: "user_id" })
5829
+ ManyToOne60(() => User, (user) => user.companySkills),
5830
+ JoinColumn60({ name: "user_id" })
5800
5831
  ], CompanySkill.prototype, "user", 2);
5801
5832
  __decorateClass([
5802
- Column62({ name: "skill_name", type: "varchar", nullable: true })
5833
+ Column63({ name: "skill_name", type: "varchar", nullable: true })
5803
5834
  ], CompanySkill.prototype, "skillName", 2);
5804
5835
  CompanySkill = __decorateClass([
5805
- Entity61("company_skills")
5836
+ Entity62("company_skills")
5806
5837
  ], CompanySkill);
5807
5838
 
5808
5839
  // src/entities/admin-user-role.entity.ts
5809
- import { Entity as Entity65, Column as Column66, ManyToOne as ManyToOne61, JoinColumn as JoinColumn61 } from "typeorm";
5840
+ import { Entity as Entity66, Column as Column67, ManyToOne as ManyToOne62, JoinColumn as JoinColumn62 } from "typeorm";
5810
5841
 
5811
5842
  // src/entities/admin-role.entity.ts
5812
- import { Entity as Entity64, Column as Column65, Index as Index57, OneToMany as OneToMany23 } from "typeorm";
5843
+ import { Entity as Entity65, Column as Column66, Index as Index58, OneToMany as OneToMany23 } from "typeorm";
5813
5844
 
5814
5845
  // src/entities/admin-role-permission.entity.ts
5815
- import { Entity as Entity63, Column as Column64, ManyToOne as ManyToOne60, JoinColumn as JoinColumn60 } from "typeorm";
5846
+ import { Entity as Entity64, Column as Column65, ManyToOne as ManyToOne61, JoinColumn as JoinColumn61 } from "typeorm";
5816
5847
 
5817
5848
  // src/entities/admin-permission.entity.ts
5818
- import { Entity as Entity62, Column as Column63, Index as Index55, OneToMany as OneToMany22 } from "typeorm";
5849
+ import { Entity as Entity63, Column as Column64, Index as Index56, OneToMany as OneToMany22 } from "typeorm";
5819
5850
  var AdminPermission = class extends BaseEntity {
5820
5851
  };
5821
5852
  __decorateClass([
5822
- Column63({ name: "permission_name", type: "varchar", nullable: true })
5853
+ Column64({ name: "permission_name", type: "varchar", nullable: true })
5823
5854
  ], AdminPermission.prototype, "permissionName", 2);
5824
5855
  __decorateClass([
5825
- Column63({
5856
+ Column64({
5826
5857
  name: "permission_slug",
5827
5858
  type: "varchar",
5828
5859
  unique: true,
5829
5860
  nullable: true
5830
5861
  }),
5831
- Index55()
5862
+ Index56()
5832
5863
  ], AdminPermission.prototype, "permissionSlug", 2);
5833
5864
  __decorateClass([
5834
- Column63({ name: "permission_description", type: "varchar", nullable: true })
5865
+ Column64({ name: "permission_description", type: "varchar", nullable: true })
5835
5866
  ], AdminPermission.prototype, "permissionDescription", 2);
5836
5867
  __decorateClass([
5837
- Column63({ name: "module", type: "varchar", nullable: true })
5868
+ Column64({ name: "module", type: "varchar", nullable: true })
5838
5869
  ], AdminPermission.prototype, "module", 2);
5839
5870
  __decorateClass([
5840
- Column63({ name: "is_active", type: "boolean", default: true })
5871
+ Column64({ name: "is_active", type: "boolean", default: true })
5841
5872
  ], AdminPermission.prototype, "isActive", 2);
5842
5873
  __decorateClass([
5843
5874
  OneToMany22(
@@ -5846,14 +5877,14 @@ __decorateClass([
5846
5877
  )
5847
5878
  ], AdminPermission.prototype, "adminRole", 2);
5848
5879
  AdminPermission = __decorateClass([
5849
- Entity62("admin_permissions")
5880
+ Entity63("admin_permissions")
5850
5881
  ], AdminPermission);
5851
5882
 
5852
5883
  // src/entities/admin-role-permission.entity.ts
5853
5884
  var AdminRolePermission = class extends BaseEntity {
5854
5885
  };
5855
5886
  __decorateClass([
5856
- Column64({
5887
+ Column65({
5857
5888
  name: "role_id",
5858
5889
  type: "int",
5859
5890
  nullable: true,
@@ -5861,11 +5892,11 @@ __decorateClass([
5861
5892
  })
5862
5893
  ], AdminRolePermission.prototype, "roleId", 2);
5863
5894
  __decorateClass([
5864
- ManyToOne60(() => AdminRole),
5865
- JoinColumn60({ name: "role_id" })
5895
+ ManyToOne61(() => AdminRole),
5896
+ JoinColumn61({ name: "role_id" })
5866
5897
  ], AdminRolePermission.prototype, "adminRole", 2);
5867
5898
  __decorateClass([
5868
- Column64({
5899
+ Column65({
5869
5900
  name: "permission_id",
5870
5901
  type: "int",
5871
5902
  nullable: true,
@@ -5873,28 +5904,28 @@ __decorateClass([
5873
5904
  })
5874
5905
  ], AdminRolePermission.prototype, "permissionId", 2);
5875
5906
  __decorateClass([
5876
- ManyToOne60(() => AdminPermission),
5877
- JoinColumn60({ name: "permission_id" })
5907
+ ManyToOne61(() => AdminPermission),
5908
+ JoinColumn61({ name: "permission_id" })
5878
5909
  ], AdminRolePermission.prototype, "adminPermissions", 2);
5879
5910
  AdminRolePermission = __decorateClass([
5880
- Entity63("admin_role_permissions")
5911
+ Entity64("admin_role_permissions")
5881
5912
  ], AdminRolePermission);
5882
5913
 
5883
5914
  // src/entities/admin-role.entity.ts
5884
5915
  var AdminRole = class extends BaseEntity {
5885
5916
  };
5886
5917
  __decorateClass([
5887
- Column65({ name: "role_name", type: "varchar", nullable: true })
5918
+ Column66({ name: "role_name", type: "varchar", nullable: true })
5888
5919
  ], AdminRole.prototype, "roleName", 2);
5889
5920
  __decorateClass([
5890
- Column65({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5891
- Index57()
5921
+ Column66({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5922
+ Index58()
5892
5923
  ], AdminRole.prototype, "roleSlug", 2);
5893
5924
  __decorateClass([
5894
- Column65({ name: "role_description", type: "varchar", nullable: true })
5925
+ Column66({ name: "role_description", type: "varchar", nullable: true })
5895
5926
  ], AdminRole.prototype, "roleDescription", 2);
5896
5927
  __decorateClass([
5897
- Column65({ name: "is_active", type: "boolean", default: true })
5928
+ Column66({ name: "is_active", type: "boolean", default: true })
5898
5929
  ], AdminRole.prototype, "isActive", 2);
5899
5930
  __decorateClass([
5900
5931
  OneToMany23(
@@ -5906,14 +5937,14 @@ __decorateClass([
5906
5937
  OneToMany23(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5907
5938
  ], AdminRole.prototype, "userRoles", 2);
5908
5939
  AdminRole = __decorateClass([
5909
- Entity64("admin_roles")
5940
+ Entity65("admin_roles")
5910
5941
  ], AdminRole);
5911
5942
 
5912
5943
  // src/entities/admin-user-role.entity.ts
5913
5944
  var AdminUserRole = class extends BaseEntity {
5914
5945
  };
5915
5946
  __decorateClass([
5916
- Column66({
5947
+ Column67({
5917
5948
  name: "user_id",
5918
5949
  type: "int",
5919
5950
  nullable: true,
@@ -5921,11 +5952,11 @@ __decorateClass([
5921
5952
  })
5922
5953
  ], AdminUserRole.prototype, "userId", 2);
5923
5954
  __decorateClass([
5924
- ManyToOne61(() => User),
5925
- JoinColumn61({ name: "user_id" })
5955
+ ManyToOne62(() => User),
5956
+ JoinColumn62({ name: "user_id" })
5926
5957
  ], AdminUserRole.prototype, "user", 2);
5927
5958
  __decorateClass([
5928
- Column66({
5959
+ Column67({
5929
5960
  name: "role_id",
5930
5961
  type: "int",
5931
5962
  nullable: true,
@@ -5933,70 +5964,70 @@ __decorateClass([
5933
5964
  })
5934
5965
  ], AdminUserRole.prototype, "roleId", 2);
5935
5966
  __decorateClass([
5936
- ManyToOne61(() => AdminRole),
5937
- JoinColumn61({ name: "role_id" })
5967
+ ManyToOne62(() => AdminRole),
5968
+ JoinColumn62({ name: "role_id" })
5938
5969
  ], AdminUserRole.prototype, "adminRole", 2);
5939
5970
  AdminUserRole = __decorateClass([
5940
- Entity65("admin_user_roles")
5971
+ Entity66("admin_user_roles")
5941
5972
  ], AdminUserRole);
5942
5973
 
5943
5974
  // src/entities/freelancer-resume.entity.ts
5944
5975
  import {
5945
- Entity as Entity66,
5946
- Column as Column67,
5947
- Index as Index59,
5948
- ManyToOne as ManyToOne62,
5949
- JoinColumn as JoinColumn62
5976
+ Entity as Entity67,
5977
+ Column as Column68,
5978
+ Index as Index60,
5979
+ ManyToOne as ManyToOne63,
5980
+ JoinColumn as JoinColumn63
5950
5981
  } from "typeorm";
5951
5982
  var FreelancerResume = class extends BaseEntity {
5952
5983
  };
5953
5984
  // individual index to find profile by user
5954
5985
  __decorateClass([
5955
- Column67({ name: "user_id", type: "integer", nullable: true }),
5956
- Index59()
5986
+ Column68({ name: "user_id", type: "integer", nullable: true }),
5987
+ Index60()
5957
5988
  ], FreelancerResume.prototype, "userId", 2);
5958
5989
  __decorateClass([
5959
- ManyToOne62(() => User, (user) => user.freelancerProfile),
5960
- JoinColumn62({ name: "user_id" })
5990
+ ManyToOne63(() => User, (user) => user.freelancerProfile),
5991
+ JoinColumn63({ name: "user_id" })
5961
5992
  ], FreelancerResume.prototype, "user", 2);
5962
5993
  __decorateClass([
5963
- Column67({ name: "resume_data", type: "jsonb", nullable: true })
5994
+ Column68({ name: "resume_data", type: "jsonb", nullable: true })
5964
5995
  ], FreelancerResume.prototype, "resumeData", 2);
5965
5996
  __decorateClass([
5966
- Column67({ name: "processed_resume_data", type: "jsonb", nullable: true })
5997
+ Column68({ name: "processed_resume_data", type: "jsonb", nullable: true })
5967
5998
  ], FreelancerResume.prototype, "processedResumeData", 2);
5968
5999
  FreelancerResume = __decorateClass([
5969
- Entity66("freelancer_resumes")
6000
+ Entity67("freelancer_resumes")
5970
6001
  ], FreelancerResume);
5971
6002
 
5972
6003
  // src/entities/signature.entity.ts
5973
6004
  import {
5974
- Entity as Entity67,
5975
- Column as Column68,
5976
- Index as Index60,
5977
- ManyToOne as ManyToOne63,
5978
- JoinColumn as JoinColumn63
6005
+ Entity as Entity68,
6006
+ Column as Column69,
6007
+ Index as Index61,
6008
+ ManyToOne as ManyToOne64,
6009
+ JoinColumn as JoinColumn64
5979
6010
  } from "typeorm";
5980
6011
  var Signature = class extends BaseEntity {
5981
6012
  };
5982
6013
  // individual index to find profile by user
5983
6014
  __decorateClass([
5984
- Column68({ name: "user_id", type: "integer", nullable: true }),
5985
- Index60()
6015
+ Column69({ name: "user_id", type: "integer", nullable: true }),
6016
+ Index61()
5986
6017
  ], Signature.prototype, "userId", 2);
5987
6018
  __decorateClass([
5988
- ManyToOne63(() => User, (user) => user.signatures),
5989
- JoinColumn63({ name: "user_id" })
6019
+ ManyToOne64(() => User, (user) => user.signatures),
6020
+ JoinColumn64({ name: "user_id" })
5990
6021
  ], Signature.prototype, "user", 2);
5991
6022
  __decorateClass([
5992
- Column68({ name: "signature_url", type: "text", nullable: true })
6023
+ Column69({ name: "signature_url", type: "text", nullable: true })
5993
6024
  ], Signature.prototype, "signatureUrl", 2);
5994
6025
  Signature = __decorateClass([
5995
- Entity67("signatures")
6026
+ Entity68("signatures")
5996
6027
  ], Signature);
5997
6028
 
5998
6029
  // src/entities/dispute.entity.ts
5999
- import { Entity as Entity68, Column as Column69, Index as Index61, JoinColumn as JoinColumn64, ManyToOne as ManyToOne64 } from "typeorm";
6030
+ import { Entity as Entity69, Column as Column70, Index as Index62, JoinColumn as JoinColumn65, ManyToOne as ManyToOne65 } from "typeorm";
6000
6031
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
6001
6032
  DisputeStatusEnum2["OPEN"] = "OPEN";
6002
6033
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -6017,36 +6048,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
6017
6048
  var Dispute = class extends BaseEntity {
6018
6049
  };
6019
6050
  __decorateClass([
6020
- Column69({ name: "client_id", type: "integer", nullable: true }),
6021
- Index61()
6051
+ Column70({ name: "client_id", type: "integer", nullable: true }),
6052
+ Index62()
6022
6053
  ], Dispute.prototype, "clientId", 2);
6023
6054
  __decorateClass([
6024
- ManyToOne64(() => User, (user) => user.clientDisputes),
6025
- JoinColumn64({ name: "client_id" })
6055
+ ManyToOne65(() => User, (user) => user.clientDisputes),
6056
+ JoinColumn65({ name: "client_id" })
6026
6057
  ], Dispute.prototype, "client", 2);
6027
6058
  __decorateClass([
6028
- Column69({ name: "freelancer_id", type: "integer", nullable: true }),
6029
- Index61()
6059
+ Column70({ name: "freelancer_id", type: "integer", nullable: true }),
6060
+ Index62()
6030
6061
  ], Dispute.prototype, "freelancerId", 2);
6031
6062
  __decorateClass([
6032
- ManyToOne64(() => User, (user) => user.freelancerDisputes),
6033
- JoinColumn64({ name: "freelancer_id" })
6063
+ ManyToOne65(() => User, (user) => user.freelancerDisputes),
6064
+ JoinColumn65({ name: "freelancer_id" })
6034
6065
  ], Dispute.prototype, "freelancer", 2);
6035
6066
  __decorateClass([
6036
- Column69({ name: "dispute_unique_id", type: "varchar", unique: true })
6067
+ Column70({ name: "dispute_unique_id", type: "varchar", unique: true })
6037
6068
  ], Dispute.prototype, "disputeUniqueId", 2);
6038
6069
  __decorateClass([
6039
- Column69({ name: "dispute_type", type: "varchar", nullable: true }),
6040
- Index61()
6070
+ Column70({ name: "dispute_type", type: "varchar", nullable: true }),
6071
+ Index62()
6041
6072
  ], Dispute.prototype, "disputeType", 2);
6042
6073
  __decorateClass([
6043
- Column69({ name: "description", type: "varchar", nullable: true })
6074
+ Column70({ name: "description", type: "varchar", nullable: true })
6044
6075
  ], Dispute.prototype, "description", 2);
6045
6076
  __decorateClass([
6046
- Column69({ name: "comment", type: "varchar", nullable: true })
6077
+ Column70({ name: "comment", type: "varchar", nullable: true })
6047
6078
  ], Dispute.prototype, "comment", 2);
6048
6079
  __decorateClass([
6049
- Column69({
6080
+ Column70({
6050
6081
  name: "status",
6051
6082
  type: "enum",
6052
6083
  enum: DisputeStatusEnum,
@@ -6054,7 +6085,7 @@ __decorateClass([
6054
6085
  })
6055
6086
  ], Dispute.prototype, "status", 2);
6056
6087
  __decorateClass([
6057
- Column69({
6088
+ Column70({
6058
6089
  name: "initiator_type",
6059
6090
  type: "enum",
6060
6091
  enum: InitiatorTypeEnum,
@@ -6063,33 +6094,33 @@ __decorateClass([
6063
6094
  })
6064
6095
  ], Dispute.prototype, "initiatorType", 2);
6065
6096
  __decorateClass([
6066
- Column69({ name: "initiator_id", type: "integer" }),
6067
- Index61()
6097
+ Column70({ name: "initiator_id", type: "integer" }),
6098
+ Index62()
6068
6099
  ], Dispute.prototype, "initiatorId", 2);
6069
6100
  __decorateClass([
6070
- ManyToOne64(() => User, (user) => user.initiatedDisputes),
6071
- JoinColumn64({ name: "initiator_id" })
6101
+ ManyToOne65(() => User, (user) => user.initiatedDisputes),
6102
+ JoinColumn65({ name: "initiator_id" })
6072
6103
  ], Dispute.prototype, "initiator", 2);
6073
6104
  __decorateClass([
6074
- Column69({ name: "respondent_id", type: "integer", nullable: true }),
6075
- Index61()
6105
+ Column70({ name: "respondent_id", type: "integer", nullable: true }),
6106
+ Index62()
6076
6107
  ], Dispute.prototype, "respondentId", 2);
6077
6108
  __decorateClass([
6078
- ManyToOne64(() => User, (user) => user.respondentDisputes, { nullable: true }),
6079
- JoinColumn64({ name: "respondent_id" })
6109
+ ManyToOne65(() => User, (user) => user.respondentDisputes, { nullable: true }),
6110
+ JoinColumn65({ name: "respondent_id" })
6080
6111
  ], Dispute.prototype, "respondent", 2);
6081
6112
  __decorateClass([
6082
- Column69({ name: "attachments", type: "jsonb", nullable: true })
6113
+ Column70({ name: "attachments", type: "jsonb", nullable: true })
6083
6114
  ], Dispute.prototype, "attachments", 2);
6084
6115
  __decorateClass([
6085
- Column69({ name: "dynamic_fields", type: "jsonb", nullable: true })
6116
+ Column70({ name: "dynamic_fields", type: "jsonb", nullable: true })
6086
6117
  ], Dispute.prototype, "dynamicFields", 2);
6087
6118
  Dispute = __decorateClass([
6088
- Entity68("disputes")
6119
+ Entity69("disputes")
6089
6120
  ], Dispute);
6090
6121
 
6091
6122
  // src/entities/stripe-transaction.entity.ts
6092
- import { Entity as Entity69, Column as Column70, Index as Index62, ManyToOne as ManyToOne65, JoinColumn as JoinColumn65 } from "typeorm";
6123
+ import { Entity as Entity70, Column as Column71, Index as Index63, ManyToOne as ManyToOne66, JoinColumn as JoinColumn66 } from "typeorm";
6093
6124
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
6094
6125
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
6095
6126
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -6111,97 +6142,97 @@ var StripeTransaction = class extends BaseEntity {
6111
6142
  // Full Stripe session response
6112
6143
  };
6113
6144
  __decorateClass([
6114
- Column70({ name: "user_id", type: "integer", nullable: true }),
6115
- Index62()
6145
+ Column71({ name: "user_id", type: "integer", nullable: true }),
6146
+ Index63()
6116
6147
  ], StripeTransaction.prototype, "userId", 2);
6117
6148
  __decorateClass([
6118
- ManyToOne65(() => User, (user) => user.stripeTransactions),
6119
- JoinColumn65({ name: "user_id" })
6149
+ ManyToOne66(() => User, (user) => user.stripeTransactions),
6150
+ JoinColumn66({ name: "user_id" })
6120
6151
  ], StripeTransaction.prototype, "user", 2);
6121
6152
  __decorateClass([
6122
- Column70({ name: "stripe_session_id", type: "varchar", nullable: true })
6153
+ Column71({ name: "stripe_session_id", type: "varchar", nullable: true })
6123
6154
  ], StripeTransaction.prototype, "stripeSessionId", 2);
6124
6155
  __decorateClass([
6125
- Column70({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
6156
+ Column71({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
6126
6157
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
6127
6158
  __decorateClass([
6128
- Column70({ name: "stripe_charge_id", type: "varchar", nullable: true })
6159
+ Column71({ name: "stripe_charge_id", type: "varchar", nullable: true })
6129
6160
  ], StripeTransaction.prototype, "stripeChargeId", 2);
6130
6161
  __decorateClass([
6131
- Column70({ name: "stripe_receipt_url", type: "varchar", nullable: true })
6162
+ Column71({ name: "stripe_receipt_url", type: "varchar", nullable: true })
6132
6163
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
6133
6164
  __decorateClass([
6134
- Column70({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
6165
+ Column71({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
6135
6166
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
6136
6167
  __decorateClass([
6137
- Column70({ name: "stripe_payment_method", type: "varchar", nullable: true })
6168
+ Column71({ name: "stripe_payment_method", type: "varchar", nullable: true })
6138
6169
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
6139
6170
  __decorateClass([
6140
- Column70({ name: "stripe_payment_status", type: "varchar", nullable: true })
6171
+ Column71({ name: "stripe_payment_status", type: "varchar", nullable: true })
6141
6172
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
6142
6173
  __decorateClass([
6143
- Column70({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
6174
+ Column71({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
6144
6175
  ], StripeTransaction.prototype, "type", 2);
6145
6176
  __decorateClass([
6146
- Column70({ name: "currency", type: "varchar", nullable: true })
6177
+ Column71({ name: "currency", type: "varchar", nullable: true })
6147
6178
  ], StripeTransaction.prototype, "currency", 2);
6148
6179
  __decorateClass([
6149
- 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" })
6180
+ Column71({ 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" })
6150
6181
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
6151
6182
  __decorateClass([
6152
- Column70({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
6183
+ Column71({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
6153
6184
  ], StripeTransaction.prototype, "platformFeeCents", 2);
6154
6185
  __decorateClass([
6155
- Column70({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
6186
+ Column71({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
6156
6187
  ], StripeTransaction.prototype, "taxCents", 2);
6157
6188
  __decorateClass([
6158
- Column70({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
6189
+ Column71({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
6159
6190
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
6160
6191
  __decorateClass([
6161
- 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" })
6192
+ Column71({ 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" })
6162
6193
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
6163
6194
  __decorateClass([
6164
- Column70({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
6195
+ Column71({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
6165
6196
  ], StripeTransaction.prototype, "actualStripeFee", 2);
6166
6197
  __decorateClass([
6167
- Column70({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
6198
+ Column71({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
6168
6199
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
6169
6200
  __decorateClass([
6170
- 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" })
6201
+ Column71({ 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" })
6171
6202
  ], StripeTransaction.prototype, "netReceivedCents", 2);
6172
6203
  __decorateClass([
6173
- Column70({ name: "description", type: "text", nullable: true })
6204
+ Column71({ name: "description", type: "text", nullable: true })
6174
6205
  ], StripeTransaction.prototype, "description", 2);
6175
6206
  __decorateClass([
6176
- Column70({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6207
+ Column71({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6177
6208
  ], StripeTransaction.prototype, "status", 2);
6178
6209
  __decorateClass([
6179
- Column70({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
6210
+ Column71({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
6180
6211
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
6181
6212
  __decorateClass([
6182
- Column70({ name: "completed_at", type: "timestamptz", nullable: true })
6213
+ Column71({ name: "completed_at", type: "timestamptz", nullable: true })
6183
6214
  ], StripeTransaction.prototype, "completedAt", 2);
6184
6215
  __decorateClass([
6185
- Column70({ name: "billing_details", type: "jsonb", nullable: true })
6216
+ Column71({ name: "billing_details", type: "jsonb", nullable: true })
6186
6217
  ], StripeTransaction.prototype, "billingDetails", 2);
6187
6218
  __decorateClass([
6188
- Column70({ name: "payment_method_details", type: "jsonb", nullable: true })
6219
+ Column71({ name: "payment_method_details", type: "jsonb", nullable: true })
6189
6220
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
6190
6221
  __decorateClass([
6191
- Column70({ name: "raw_session_payload", type: "jsonb", nullable: true })
6222
+ Column71({ name: "raw_session_payload", type: "jsonb", nullable: true })
6192
6223
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
6193
6224
  __decorateClass([
6194
- Column70({ name: "raw_session_response", type: "jsonb", nullable: true })
6225
+ Column71({ name: "raw_session_response", type: "jsonb", nullable: true })
6195
6226
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
6196
6227
  StripeTransaction = __decorateClass([
6197
- Entity69("stripe_transactions")
6228
+ Entity70("stripe_transactions")
6198
6229
  ], StripeTransaction);
6199
6230
 
6200
6231
  // src/entities/wallet.entity.ts
6201
- import { Entity as Entity71, Column as Column72, Index as Index64, JoinColumn as JoinColumn67, OneToOne as OneToOne11, OneToMany as OneToMany24 } from "typeorm";
6232
+ import { Entity as Entity72, Column as Column73, Index as Index65, JoinColumn as JoinColumn68, OneToOne as OneToOne11, OneToMany as OneToMany24 } from "typeorm";
6202
6233
 
6203
6234
  // src/entities/wallet-transaction.entity.ts
6204
- import { Entity as Entity70, Column as Column71, Index as Index63, ManyToOne as ManyToOne66, JoinColumn as JoinColumn66 } from "typeorm";
6235
+ import { Entity as Entity71, Column as Column72, Index as Index64, ManyToOne as ManyToOne67, JoinColumn as JoinColumn67 } from "typeorm";
6205
6236
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
6206
6237
  WalletTransactionTypeEnum2["CR"] = "CR";
6207
6238
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -6218,46 +6249,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
6218
6249
  var WalletTransaction = class extends BaseEntity {
6219
6250
  };
6220
6251
  __decorateClass([
6221
- Column71({ name: "wallet_id", type: "integer", nullable: true }),
6222
- Index63()
6252
+ Column72({ name: "wallet_id", type: "integer", nullable: true }),
6253
+ Index64()
6223
6254
  ], WalletTransaction.prototype, "walletId", 2);
6224
6255
  __decorateClass([
6225
- ManyToOne66(() => Wallet, (wallet) => wallet.walletTransactions),
6226
- JoinColumn66({ name: "wallet_id" })
6256
+ ManyToOne67(() => Wallet, (wallet) => wallet.walletTransactions),
6257
+ JoinColumn67({ name: "wallet_id" })
6227
6258
  ], WalletTransaction.prototype, "wallet", 2);
6228
6259
  __decorateClass([
6229
- Column71({ name: "amount", type: "bigint", nullable: true })
6260
+ Column72({ name: "amount", type: "bigint", nullable: true })
6230
6261
  ], WalletTransaction.prototype, "amount", 2);
6231
6262
  __decorateClass([
6232
- Column71({ name: "balance_before", type: "bigint", nullable: true })
6263
+ Column72({ name: "balance_before", type: "bigint", nullable: true })
6233
6264
  ], WalletTransaction.prototype, "balanceBefore", 2);
6234
6265
  __decorateClass([
6235
- Column71({ name: "balance_after", type: "bigint", nullable: true })
6266
+ Column72({ name: "balance_after", type: "bigint", nullable: true })
6236
6267
  ], WalletTransaction.prototype, "balanceAfter", 2);
6237
6268
  __decorateClass([
6238
- Column71({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6269
+ Column72({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6239
6270
  ], WalletTransaction.prototype, "type", 2);
6240
6271
  __decorateClass([
6241
- Column71({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6272
+ Column72({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6242
6273
  ], WalletTransaction.prototype, "status", 2);
6243
6274
  __decorateClass([
6244
- Column71({ name: "description", type: "text", nullable: true })
6275
+ Column72({ name: "description", type: "text", nullable: true })
6245
6276
  ], WalletTransaction.prototype, "description", 2);
6246
6277
  __decorateClass([
6247
- Column71({ name: "completed_at", type: "timestamptz", nullable: true })
6278
+ Column72({ name: "completed_at", type: "timestamptz", nullable: true })
6248
6279
  ], WalletTransaction.prototype, "completedAt", 2);
6249
6280
  __decorateClass([
6250
- Column71({ name: "transaction_for", type: "varchar", nullable: true })
6281
+ Column72({ name: "transaction_for", type: "varchar", nullable: true })
6251
6282
  ], WalletTransaction.prototype, "transactionFor", 2);
6252
6283
  __decorateClass([
6253
- Column71({ name: "meta_data", type: "varchar", nullable: true })
6284
+ Column72({ name: "meta_data", type: "varchar", nullable: true })
6254
6285
  ], WalletTransaction.prototype, "metaData", 2);
6255
6286
  __decorateClass([
6256
- Column71({ name: "stripe_transaction_id", type: "integer", nullable: true }),
6257
- Index63()
6287
+ Column72({ name: "stripe_transaction_id", type: "integer", nullable: true }),
6288
+ Index64()
6258
6289
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
6259
6290
  WalletTransaction = __decorateClass([
6260
- Entity70("wallet_transactions")
6291
+ Entity71("wallet_transactions")
6261
6292
  ], WalletTransaction);
6262
6293
 
6263
6294
  // src/entities/wallet.entity.ts
@@ -6275,48 +6306,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
6275
6306
  var Wallet = class extends BaseEntity {
6276
6307
  };
6277
6308
  __decorateClass([
6278
- Column72({ name: "user_id", type: "integer", nullable: true }),
6279
- Index64()
6309
+ Column73({ name: "user_id", type: "integer", nullable: true }),
6310
+ Index65()
6280
6311
  ], Wallet.prototype, "userId", 2);
6281
6312
  __decorateClass([
6282
6313
  OneToOne11(() => User, (user) => user.wallet),
6283
- JoinColumn67({ name: "user_id" })
6314
+ JoinColumn68({ name: "user_id" })
6284
6315
  ], Wallet.prototype, "user", 2);
6285
6316
  __decorateClass([
6286
- Column72({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
6317
+ Column73({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
6287
6318
  ], Wallet.prototype, "accountType", 2);
6288
6319
  __decorateClass([
6289
- Column72({ name: "stripe_account_id", type: "varchar", nullable: true })
6320
+ Column73({ name: "stripe_account_id", type: "varchar", nullable: true })
6290
6321
  ], Wallet.prototype, "stripeAccountId", 2);
6291
6322
  __decorateClass([
6292
- Column72({ name: "stripe_customer_id", type: "varchar", nullable: true })
6323
+ Column73({ name: "stripe_customer_id", type: "varchar", nullable: true })
6293
6324
  ], Wallet.prototype, "stripeCustomerId", 2);
6294
6325
  __decorateClass([
6295
- 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" })
6326
+ Column73({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
6296
6327
  ], Wallet.prototype, "walletBalance", 2);
6297
6328
  __decorateClass([
6298
- 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" })
6329
+ Column73({ 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" })
6299
6330
  ], Wallet.prototype, "walletBalanceCents", 2);
6300
6331
  __decorateClass([
6301
- Column72({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
6332
+ Column73({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
6302
6333
  ], Wallet.prototype, "onboardingStatus", 2);
6303
6334
  __decorateClass([
6304
- Column72({ name: "stripe_metadata", type: "jsonb", nullable: true })
6335
+ Column73({ name: "stripe_metadata", type: "jsonb", nullable: true })
6305
6336
  ], Wallet.prototype, "stripeMetadata", 2);
6306
6337
  __decorateClass([
6307
6338
  OneToMany24(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
6308
6339
  ], Wallet.prototype, "walletTransactions", 2);
6309
6340
  Wallet = __decorateClass([
6310
- Entity71("wallets")
6341
+ Entity72("wallets")
6311
6342
  ], Wallet);
6312
6343
 
6313
6344
  // src/entities/freelancer-assessment-request.entity.ts
6314
6345
  import {
6315
- Entity as Entity72,
6316
- Column as Column73,
6317
- ManyToOne as ManyToOne67,
6318
- Index as Index65,
6319
- JoinColumn as JoinColumn68
6346
+ Entity as Entity73,
6347
+ Column as Column74,
6348
+ ManyToOne as ManyToOne68,
6349
+ Index as Index66,
6350
+ JoinColumn as JoinColumn69
6320
6351
  } from "typeorm";
6321
6352
  var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
6322
6353
  AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
@@ -6327,23 +6358,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
6327
6358
  var FreelancerAssessmentRequest = class extends BaseEntity {
6328
6359
  };
6329
6360
  __decorateClass([
6330
- Column73({ name: "freelancer_id", type: "integer", nullable: true }),
6331
- Index65()
6361
+ Column74({ name: "freelancer_id", type: "integer", nullable: true }),
6362
+ Index66()
6332
6363
  ], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
6333
6364
  __decorateClass([
6334
- ManyToOne67(() => User, (user) => user.freelancerAssessmentRequests),
6335
- JoinColumn68({ name: "freelancer_id" })
6365
+ ManyToOne68(() => User, (user) => user.freelancerAssessmentRequests),
6366
+ JoinColumn69({ name: "freelancer_id" })
6336
6367
  ], FreelancerAssessmentRequest.prototype, "freelancer", 2);
6337
6368
  __decorateClass([
6338
- Column73({ name: "approved_by_id", type: "integer", nullable: true }),
6339
- Index65()
6369
+ Column74({ name: "approved_by_id", type: "integer", nullable: true }),
6370
+ Index66()
6340
6371
  ], FreelancerAssessmentRequest.prototype, "approvedById", 2);
6341
6372
  __decorateClass([
6342
- ManyToOne67(() => User, (user) => user.assessmentRequests),
6343
- JoinColumn68({ name: "approved_by_id" })
6373
+ ManyToOne68(() => User, (user) => user.assessmentRequests),
6374
+ JoinColumn69({ name: "approved_by_id" })
6344
6375
  ], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
6345
6376
  __decorateClass([
6346
- Column73({
6377
+ Column74({
6347
6378
  name: "status",
6348
6379
  type: "enum",
6349
6380
  enum: AssessmentRequestStatusEnum,
@@ -6351,89 +6382,89 @@ __decorateClass([
6351
6382
  })
6352
6383
  ], FreelancerAssessmentRequest.prototype, "status", 2);
6353
6384
  __decorateClass([
6354
- Column73({ name: "assessment_link", type: "text", nullable: true })
6385
+ Column74({ name: "assessment_link", type: "text", nullable: true })
6355
6386
  ], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
6356
6387
  FreelancerAssessmentRequest = __decorateClass([
6357
- Entity72({ name: "freelancer_assessment_requests" })
6388
+ Entity73({ name: "freelancer_assessment_requests" })
6358
6389
  ], FreelancerAssessmentRequest);
6359
6390
 
6360
6391
  // src/entities/in-app-notification.entity.ts
6361
- import { Entity as Entity73, Column as Column74, Index as Index66, ManyToOne as ManyToOne68, JoinColumn as JoinColumn69 } from "typeorm";
6392
+ import { Entity as Entity74, Column as Column75, Index as Index67, ManyToOne as ManyToOne69, JoinColumn as JoinColumn70 } from "typeorm";
6362
6393
  var InAppNotification = class extends BaseEntity {
6363
6394
  };
6364
6395
  __decorateClass([
6365
- Column74({ name: "user_id", type: "integer", nullable: true }),
6366
- Index66()
6396
+ Column75({ name: "user_id", type: "integer", nullable: true }),
6397
+ Index67()
6367
6398
  ], InAppNotification.prototype, "userId", 2);
6368
6399
  __decorateClass([
6369
- ManyToOne68(() => User, (user) => user.inAppNotifications),
6370
- JoinColumn69({ name: "user_id" })
6400
+ ManyToOne69(() => User, (user) => user.inAppNotifications),
6401
+ JoinColumn70({ name: "user_id" })
6371
6402
  ], InAppNotification.prototype, "user", 2);
6372
6403
  __decorateClass([
6373
- Column74({ name: "event", type: "varchar", nullable: true })
6404
+ Column75({ name: "event", type: "varchar", nullable: true })
6374
6405
  ], InAppNotification.prototype, "event", 2);
6375
6406
  __decorateClass([
6376
- Column74({ name: "title", type: "varchar", nullable: true })
6407
+ Column75({ name: "title", type: "varchar", nullable: true })
6377
6408
  ], InAppNotification.prototype, "title", 2);
6378
6409
  __decorateClass([
6379
- Column74({ name: "message", type: "varchar", nullable: true })
6410
+ Column75({ name: "message", type: "varchar", nullable: true })
6380
6411
  ], InAppNotification.prototype, "message", 2);
6381
6412
  __decorateClass([
6382
- Column74({ name: "redirect_url", type: "varchar", nullable: true })
6413
+ Column75({ name: "redirect_url", type: "varchar", nullable: true })
6383
6414
  ], InAppNotification.prototype, "redirectUrl", 2);
6384
6415
  __decorateClass([
6385
- Column74({ name: "is_read", type: "boolean", default: false })
6416
+ Column75({ name: "is_read", type: "boolean", default: false })
6386
6417
  ], InAppNotification.prototype, "isRead", 2);
6387
6418
  __decorateClass([
6388
- Column74({ name: "meta_data", type: "jsonb", nullable: true })
6419
+ Column75({ name: "meta_data", type: "jsonb", nullable: true })
6389
6420
  ], InAppNotification.prototype, "metaData", 2);
6390
6421
  InAppNotification = __decorateClass([
6391
- Entity73("in_app_notifications")
6422
+ Entity74("in_app_notifications")
6392
6423
  ], InAppNotification);
6393
6424
 
6394
6425
  // src/entities/user-subscription.entity.ts
6395
- import { Entity as Entity77, Column as Column78, ManyToOne as ManyToOne72, OneToMany as OneToMany26, JoinColumn as JoinColumn73 } from "typeorm";
6426
+ import { Entity as Entity78, Column as Column79, ManyToOne as ManyToOne73, OneToMany as OneToMany26, JoinColumn as JoinColumn74 } from "typeorm";
6396
6427
 
6397
6428
  // src/entities/user-subscription-plan.entity.ts
6398
- import { Entity as Entity76, Column as Column77, JoinColumn as JoinColumn72, ManyToOne as ManyToOne71, OneToMany as OneToMany25 } from "typeorm";
6429
+ import { Entity as Entity77, Column as Column78, JoinColumn as JoinColumn73, ManyToOne as ManyToOne72, OneToMany as OneToMany25 } from "typeorm";
6399
6430
 
6400
6431
  // src/entities/user-subscription-plan-feature.entity.ts
6401
- import { Entity as Entity74, Column as Column75, ManyToOne as ManyToOne69, JoinColumn as JoinColumn70, Index as Index67 } from "typeorm";
6432
+ import { Entity as Entity75, Column as Column76, ManyToOne as ManyToOne70, JoinColumn as JoinColumn71, Index as Index68 } from "typeorm";
6402
6433
  var UserSubscriptionPlanFeature = class extends BaseEntity {
6403
6434
  };
6404
6435
  __decorateClass([
6405
- Column75({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6406
- Index67()
6436
+ Column76({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6437
+ Index68()
6407
6438
  ], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlanId", 2);
6408
6439
  __decorateClass([
6409
- ManyToOne69(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanFeatures, { onDelete: "CASCADE", nullable: false }),
6410
- JoinColumn70({ name: "user_subscription_plan_id" })
6440
+ ManyToOne70(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanFeatures, { onDelete: "CASCADE", nullable: false }),
6441
+ JoinColumn71({ name: "user_subscription_plan_id" })
6411
6442
  ], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlan", 2);
6412
6443
  __decorateClass([
6413
- Column75({ name: "plan_feature_id", type: "integer", nullable: false })
6444
+ Column76({ name: "plan_feature_id", type: "integer", nullable: false })
6414
6445
  ], UserSubscriptionPlanFeature.prototype, "planFeatureId", 2);
6415
6446
  __decorateClass([
6416
- Column75({ name: "name", type: "varchar", length: 200 })
6447
+ Column76({ name: "name", type: "varchar", length: 200 })
6417
6448
  ], UserSubscriptionPlanFeature.prototype, "name", 2);
6418
6449
  __decorateClass([
6419
- Column75({ name: "slug", type: "varchar", length: 100 }),
6420
- Index67()
6450
+ Column76({ name: "slug", type: "varchar", length: 100 }),
6451
+ Index68()
6421
6452
  ], UserSubscriptionPlanFeature.prototype, "slug", 2);
6422
6453
  __decorateClass([
6423
- Column75({ name: "tooltip", type: "varchar", length: 300, nullable: true })
6454
+ Column76({ name: "tooltip", type: "varchar", length: 300, nullable: true })
6424
6455
  ], UserSubscriptionPlanFeature.prototype, "tooltip", 2);
6425
6456
  __decorateClass([
6426
- Column75({ name: "sort_order", type: "smallint", default: 0 })
6457
+ Column76({ name: "sort_order", type: "smallint", default: 0 })
6427
6458
  ], UserSubscriptionPlanFeature.prototype, "sortOrder", 2);
6428
6459
  __decorateClass([
6429
- Column75({ name: "is_active", type: "boolean", default: true })
6460
+ Column76({ name: "is_active", type: "boolean", default: true })
6430
6461
  ], UserSubscriptionPlanFeature.prototype, "isActive", 2);
6431
6462
  UserSubscriptionPlanFeature = __decorateClass([
6432
- Entity74("user_subscription_plan_features")
6463
+ Entity75("user_subscription_plan_features")
6433
6464
  ], UserSubscriptionPlanFeature);
6434
6465
 
6435
6466
  // src/entities/user-subscription-plan-pricing.entity.ts
6436
- import { Entity as Entity75, Column as Column76, ManyToOne as ManyToOne70, JoinColumn as JoinColumn71, Index as Index68 } from "typeorm";
6467
+ import { Entity as Entity76, Column as Column77, ManyToOne as ManyToOne71, JoinColumn as JoinColumn72, Index as Index69 } from "typeorm";
6437
6468
  var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscriptionPlanPricingBillingCycleEnum2) => {
6438
6469
  UserSubscriptionPlanPricingBillingCycleEnum2["MONTHLY"] = "MONTHLY";
6439
6470
  UserSubscriptionPlanPricingBillingCycleEnum2["YEARLY"] = "YEARLY";
@@ -6442,42 +6473,42 @@ var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscrip
6442
6473
  var UserSubscriptionPlanPricing = class extends BaseEntity {
6443
6474
  };
6444
6475
  __decorateClass([
6445
- Column76({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6446
- Index68()
6476
+ Column77({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6477
+ Index69()
6447
6478
  ], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlanId", 2);
6448
6479
  __decorateClass([
6449
- ManyToOne70(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanPricing, { onDelete: "CASCADE", nullable: false }),
6450
- JoinColumn71({ name: "user_subscription_plan_id" })
6480
+ ManyToOne71(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanPricing, { onDelete: "CASCADE", nullable: false }),
6481
+ JoinColumn72({ name: "user_subscription_plan_id" })
6451
6482
  ], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlan", 2);
6452
6483
  __decorateClass([
6453
- Column76({ name: "plan_pricing_id", type: "integer", nullable: false })
6484
+ Column77({ name: "plan_pricing_id", type: "integer", nullable: false })
6454
6485
  ], UserSubscriptionPlanPricing.prototype, "planPricingId", 2);
6455
6486
  __decorateClass([
6456
- Column76({ name: "billing_cycle", type: "enum", enum: UserSubscriptionPlanPricingBillingCycleEnum })
6487
+ Column77({ name: "billing_cycle", type: "enum", enum: UserSubscriptionPlanPricingBillingCycleEnum })
6457
6488
  ], UserSubscriptionPlanPricing.prototype, "billingCycle", 2);
6458
6489
  __decorateClass([
6459
- Column76({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
6490
+ Column77({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
6460
6491
  ], UserSubscriptionPlanPricing.prototype, "price", 2);
6461
6492
  __decorateClass([
6462
- Column76({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
6493
+ Column77({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
6463
6494
  ], UserSubscriptionPlanPricing.prototype, "originalPrice", 2);
6464
6495
  __decorateClass([
6465
- Column76({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
6496
+ Column77({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
6466
6497
  ], UserSubscriptionPlanPricing.prototype, "discountPct", 2);
6467
6498
  __decorateClass([
6468
- Column76({ name: "currency", type: "varchar", length: 3, default: "USD" })
6499
+ Column77({ name: "currency", type: "varchar", length: 3, default: "USD" })
6469
6500
  ], UserSubscriptionPlanPricing.prototype, "currency", 2);
6470
6501
  __decorateClass([
6471
- Column76({ name: "is_free", type: "boolean", default: false })
6502
+ Column77({ name: "is_free", type: "boolean", default: false })
6472
6503
  ], UserSubscriptionPlanPricing.prototype, "isFree", 2);
6473
6504
  __decorateClass([
6474
- Column76({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true })
6505
+ Column77({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true })
6475
6506
  ], UserSubscriptionPlanPricing.prototype, "stripePriceId", 2);
6476
6507
  __decorateClass([
6477
- Column76({ name: "is_active", type: "boolean", default: true })
6508
+ Column77({ name: "is_active", type: "boolean", default: true })
6478
6509
  ], UserSubscriptionPlanPricing.prototype, "isActive", 2);
6479
6510
  UserSubscriptionPlanPricing = __decorateClass([
6480
- Entity75("user_subscription_plan_pricings")
6511
+ Entity76("user_subscription_plan_pricings")
6481
6512
  ], UserSubscriptionPlanPricing);
6482
6513
 
6483
6514
  // src/entities/user-subscription-plan.entity.ts
@@ -6489,35 +6520,35 @@ var UserSubscriptionPlanTypeEnum = /* @__PURE__ */ ((UserSubscriptionPlanTypeEnu
6489
6520
  var UserSubscriptionPlan = class extends BaseEntity {
6490
6521
  };
6491
6522
  __decorateClass([
6492
- Column77({ name: "user_subscription_id", type: "integer", nullable: false })
6523
+ Column78({ name: "user_subscription_id", type: "integer", nullable: false })
6493
6524
  ], UserSubscriptionPlan.prototype, "userSubscriptionId", 2);
6494
6525
  __decorateClass([
6495
- ManyToOne71(() => UserSubscription, (userSubscription) => userSubscription.userSubscriptionPlans, { onDelete: "CASCADE", nullable: false }),
6496
- JoinColumn72({ name: "user_subscription_id" })
6526
+ ManyToOne72(() => UserSubscription, (userSubscription) => userSubscription.userSubscriptionPlans, { onDelete: "CASCADE", nullable: false }),
6527
+ JoinColumn73({ name: "user_subscription_id" })
6497
6528
  ], UserSubscriptionPlan.prototype, "userSubscription", 2);
6498
6529
  __decorateClass([
6499
- Column77({ name: "plan_id", type: "integer", nullable: false })
6530
+ Column78({ name: "plan_id", type: "integer", nullable: false })
6500
6531
  ], UserSubscriptionPlan.prototype, "planId", 2);
6501
6532
  __decorateClass([
6502
- Column77({ name: "name", type: "varchar", length: 100 })
6533
+ Column78({ name: "name", type: "varchar", length: 100 })
6503
6534
  ], UserSubscriptionPlan.prototype, "name", 2);
6504
6535
  __decorateClass([
6505
- Column77({ name: "slug", type: "varchar", length: 100 })
6536
+ Column78({ name: "slug", type: "varchar", length: 100 })
6506
6537
  ], UserSubscriptionPlan.prototype, "slug", 2);
6507
6538
  __decorateClass([
6508
- Column77({ name: "badge_label", type: "varchar", length: 60, nullable: true })
6539
+ Column78({ name: "badge_label", type: "varchar", length: 60, nullable: true })
6509
6540
  ], UserSubscriptionPlan.prototype, "badgeLabel", 2);
6510
6541
  __decorateClass([
6511
- Column77({ name: "sort_order", type: "smallint", default: 0 })
6542
+ Column78({ name: "sort_order", type: "smallint", default: 0 })
6512
6543
  ], UserSubscriptionPlan.prototype, "sortOrder", 2);
6513
6544
  __decorateClass([
6514
- Column77({ name: "is_active", type: "boolean", default: true })
6545
+ Column78({ name: "is_active", type: "boolean", default: true })
6515
6546
  ], UserSubscriptionPlan.prototype, "isActive", 2);
6516
6547
  __decorateClass([
6517
- Column77({ name: "plan_type", type: "enum", enum: UserSubscriptionPlanTypeEnum, default: "BUSINESS" /* BUSINESS */ })
6548
+ Column78({ name: "plan_type", type: "enum", enum: UserSubscriptionPlanTypeEnum, default: "BUSINESS" /* BUSINESS */ })
6518
6549
  ], UserSubscriptionPlan.prototype, "planType", 2);
6519
6550
  __decorateClass([
6520
- Column77({ name: "metadata", type: "jsonb", default: {} })
6551
+ Column78({ name: "metadata", type: "jsonb", default: {} })
6521
6552
  ], UserSubscriptionPlan.prototype, "metadata", 2);
6522
6553
  __decorateClass([
6523
6554
  OneToMany25(() => UserSubscriptionPlanFeature, (f) => f.userSubscriptionPlan)
@@ -6526,7 +6557,7 @@ __decorateClass([
6526
6557
  OneToMany25(() => UserSubscriptionPlanPricing, (p) => p.userSubscriptionPlan)
6527
6558
  ], UserSubscriptionPlan.prototype, "userSubscriptionPlanPricing", 2);
6528
6559
  UserSubscriptionPlan = __decorateClass([
6529
- Entity76("user_subscription_plans")
6560
+ Entity77("user_subscription_plans")
6530
6561
  ], UserSubscriptionPlan);
6531
6562
 
6532
6563
  // src/entities/user-subscription.entity.ts
@@ -6544,26 +6575,26 @@ var UserSubscriptionStatusEnum = /* @__PURE__ */ ((UserSubscriptionStatusEnum2)
6544
6575
  var UserSubscription = class extends BaseEntity {
6545
6576
  };
6546
6577
  __decorateClass([
6547
- Column78({ name: "user_id", type: "integer", nullable: false })
6578
+ Column79({ name: "user_id", type: "integer", nullable: false })
6548
6579
  ], UserSubscription.prototype, "userId", 2);
6549
6580
  __decorateClass([
6550
- ManyToOne72(() => User, (user) => user.userSubscriptions, { onDelete: "CASCADE", nullable: false }),
6551
- JoinColumn73({ name: "user_id" })
6581
+ ManyToOne73(() => User, (user) => user.userSubscriptions, { onDelete: "CASCADE", nullable: false }),
6582
+ JoinColumn74({ name: "user_id" })
6552
6583
  ], UserSubscription.prototype, "user", 2);
6553
6584
  __decorateClass([
6554
6585
  OneToMany26(() => UserSubscriptionPlan, (plan) => plan.userSubscription)
6555
6586
  ], UserSubscription.prototype, "userSubscriptionPlans", 2);
6556
6587
  __decorateClass([
6557
- Column78({ name: "subscription_amount", type: "integer", nullable: false })
6588
+ Column79({ name: "subscription_amount", type: "integer", nullable: false })
6558
6589
  ], UserSubscription.prototype, "subscriptionAmount", 2);
6559
6590
  __decorateClass([
6560
- Column78({ name: "total_tax_amount", type: "integer", nullable: false })
6591
+ Column79({ name: "total_tax_amount", type: "integer", nullable: false })
6561
6592
  ], UserSubscription.prototype, "totalTaxAmount", 2);
6562
6593
  __decorateClass([
6563
- Column78({ name: "total_amount", type: "integer", nullable: false })
6594
+ Column79({ name: "total_amount", type: "integer", nullable: false })
6564
6595
  ], UserSubscription.prototype, "totalAmount", 2);
6565
6596
  __decorateClass([
6566
- Column78({
6597
+ Column79({
6567
6598
  name: "status",
6568
6599
  type: "enum",
6569
6600
  enum: UserSubscriptionStatusEnum,
@@ -6571,35 +6602,35 @@ __decorateClass([
6571
6602
  })
6572
6603
  ], UserSubscription.prototype, "status", 2);
6573
6604
  __decorateClass([
6574
- Column78({
6605
+ Column79({
6575
6606
  name: "subscription_start_date",
6576
6607
  type: "timestamptz",
6577
6608
  nullable: true
6578
6609
  })
6579
6610
  ], UserSubscription.prototype, "subscriptionStartDate", 2);
6580
6611
  __decorateClass([
6581
- Column78({
6612
+ Column79({
6582
6613
  name: "subscription_start_date_timestamp",
6583
6614
  type: "integer",
6584
6615
  nullable: true
6585
6616
  })
6586
6617
  ], UserSubscription.prototype, "subscriptionStartDateTimestamp", 2);
6587
6618
  __decorateClass([
6588
- Column78({
6619
+ Column79({
6589
6620
  name: "subscription_end_date",
6590
6621
  type: "timestamptz",
6591
6622
  nullable: true
6592
6623
  })
6593
6624
  ], UserSubscription.prototype, "subscriptionEndDate", 2);
6594
6625
  __decorateClass([
6595
- Column78({
6626
+ Column79({
6596
6627
  name: "subscription_end_date_timestamp",
6597
6628
  type: "integer",
6598
6629
  nullable: true
6599
6630
  })
6600
6631
  ], UserSubscription.prototype, "subscriptionEndDateTimestamp", 2);
6601
6632
  __decorateClass([
6602
- Column78({
6633
+ Column79({
6603
6634
  name: "stripe_price_id",
6604
6635
  type: "varchar",
6605
6636
  length: 100,
@@ -6607,7 +6638,7 @@ __decorateClass([
6607
6638
  })
6608
6639
  ], UserSubscription.prototype, "stripePriceId", 2);
6609
6640
  __decorateClass([
6610
- Column78({
6641
+ Column79({
6611
6642
  name: "stripe_product_id",
6612
6643
  type: "varchar",
6613
6644
  length: 100,
@@ -6615,7 +6646,7 @@ __decorateClass([
6615
6646
  })
6616
6647
  ], UserSubscription.prototype, "stripeProductId", 2);
6617
6648
  __decorateClass([
6618
- Column78({
6649
+ Column79({
6619
6650
  name: "stripe_customer_id",
6620
6651
  type: "varchar",
6621
6652
  length: 64,
@@ -6623,7 +6654,7 @@ __decorateClass([
6623
6654
  })
6624
6655
  ], UserSubscription.prototype, "stripeCustomerId", 2);
6625
6656
  __decorateClass([
6626
- Column78({
6657
+ Column79({
6627
6658
  name: "stripe_subscription_id",
6628
6659
  type: "varchar",
6629
6660
  length: 64,
@@ -6632,7 +6663,7 @@ __decorateClass([
6632
6663
  })
6633
6664
  ], UserSubscription.prototype, "stripeSubscriptionId", 2);
6634
6665
  __decorateClass([
6635
- Column78({
6666
+ Column79({
6636
6667
  name: "stripe_checkout_session_id",
6637
6668
  type: "varchar",
6638
6669
  length: 255,
@@ -6640,7 +6671,7 @@ __decorateClass([
6640
6671
  })
6641
6672
  ], UserSubscription.prototype, "stripeCheckoutSessionId", 2);
6642
6673
  UserSubscription = __decorateClass([
6643
- Entity77("user_subscriptions")
6674
+ Entity78("user_subscriptions")
6644
6675
  ], UserSubscription);
6645
6676
 
6646
6677
  // src/entities/user.entity.ts
@@ -6669,57 +6700,57 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
6669
6700
  var User = class extends BaseEntity {
6670
6701
  };
6671
6702
  __decorateClass([
6672
- Column79({ name: "unique_id", type: "varchar", unique: true })
6703
+ Column80({ name: "unique_id", type: "varchar", unique: true })
6673
6704
  ], User.prototype, "uniqueId", 2);
6674
6705
  __decorateClass([
6675
- Column79({ name: "parent_id", type: "integer", nullable: true }),
6676
- Index69()
6706
+ Column80({ name: "parent_id", type: "integer", nullable: true }),
6707
+ Index70()
6677
6708
  ], User.prototype, "parentId", 2);
6678
6709
  __decorateClass([
6679
- ManyToOne73(() => User, (user) => user.children, { nullable: true }),
6680
- JoinColumn74({ name: "parent_id" })
6710
+ ManyToOne74(() => User, (user) => user.children, { nullable: true }),
6711
+ JoinColumn75({ name: "parent_id" })
6681
6712
  ], User.prototype, "parent", 2);
6682
6713
  __decorateClass([
6683
6714
  OneToMany27(() => User, (user) => user.parent)
6684
6715
  ], User.prototype, "children", 2);
6685
6716
  __decorateClass([
6686
- Column79({ name: "username", type: "varchar", unique: true, nullable: true })
6717
+ Column80({ name: "username", type: "varchar", unique: true, nullable: true })
6687
6718
  ], User.prototype, "username", 2);
6688
6719
  __decorateClass([
6689
- Column79({ name: "first_name", type: "varchar", length: 100, nullable: true })
6720
+ Column80({ name: "first_name", type: "varchar", length: 100, nullable: true })
6690
6721
  ], User.prototype, "firstName", 2);
6691
6722
  __decorateClass([
6692
- Column79({ name: "last_name", type: "varchar", length: 100, nullable: true })
6723
+ Column80({ name: "last_name", type: "varchar", length: 100, nullable: true })
6693
6724
  ], User.prototype, "lastName", 2);
6694
6725
  __decorateClass([
6695
- Column79({ name: "date_of_birth", type: "date", nullable: true })
6726
+ Column80({ name: "date_of_birth", type: "date", nullable: true })
6696
6727
  ], User.prototype, "dateOfBirth", 2);
6697
6728
  __decorateClass([
6698
- Column79({ name: "gender", type: "varchar", length: 10, nullable: true })
6729
+ Column80({ name: "gender", type: "varchar", length: 10, nullable: true })
6699
6730
  ], User.prototype, "gender", 2);
6700
6731
  __decorateClass([
6701
- Column79({ name: "profile_picture_url", type: "text", nullable: true })
6732
+ Column80({ name: "profile_picture_url", type: "text", nullable: true })
6702
6733
  ], User.prototype, "profilePictureUrl", 2);
6703
6734
  __decorateClass([
6704
- Column79({ name: "presigned_profile_picture_url", type: "text", nullable: true })
6735
+ Column80({ name: "presigned_profile_picture_url", type: "text", nullable: true })
6705
6736
  ], User.prototype, "presignedProfilePictureUrl", 2);
6706
6737
  __decorateClass([
6707
- Column79({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
6738
+ Column80({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
6708
6739
  ], User.prototype, "presignedProfilePictureUrlExpiresAt", 2);
6709
6740
  __decorateClass([
6710
- Column79({ name: "email", type: "varchar", unique: true })
6741
+ Column80({ name: "email", type: "varchar", unique: true })
6711
6742
  ], User.prototype, "email", 2);
6712
6743
  __decorateClass([
6713
- Column79({ name: "mobile_code", type: "varchar", nullable: true })
6744
+ Column80({ name: "mobile_code", type: "varchar", nullable: true })
6714
6745
  ], User.prototype, "mobileCode", 2);
6715
6746
  __decorateClass([
6716
- Column79({ name: "mobile", type: "varchar", nullable: true })
6747
+ Column80({ name: "mobile", type: "varchar", nullable: true })
6717
6748
  ], User.prototype, "mobile", 2);
6718
6749
  __decorateClass([
6719
- Column79({ name: "password", type: "varchar", nullable: true })
6750
+ Column80({ name: "password", type: "varchar", nullable: true })
6720
6751
  ], User.prototype, "password", 2);
6721
6752
  __decorateClass([
6722
- Column79({
6753
+ Column80({
6723
6754
  name: "account_type",
6724
6755
  type: "enum",
6725
6756
  enum: AccountType2,
@@ -6727,7 +6758,7 @@ __decorateClass([
6727
6758
  })
6728
6759
  ], User.prototype, "accountType", 2);
6729
6760
  __decorateClass([
6730
- Column79({
6761
+ Column80({
6731
6762
  name: "account_status",
6732
6763
  type: "enum",
6733
6764
  enum: AccountStatus,
@@ -6735,45 +6766,45 @@ __decorateClass([
6735
6766
  })
6736
6767
  ], User.prototype, "accountStatus", 2);
6737
6768
  __decorateClass([
6738
- Column79({ name: "is_email_verified", type: "boolean", default: false })
6769
+ Column80({ name: "is_email_verified", type: "boolean", default: false })
6739
6770
  ], User.prototype, "isEmailVerified", 2);
6740
6771
  __decorateClass([
6741
- Column79({ name: "is_mobile_verified", type: "boolean", default: false })
6772
+ Column80({ name: "is_mobile_verified", type: "boolean", default: false })
6742
6773
  ], User.prototype, "isMobileVerified", 2);
6743
6774
  __decorateClass([
6744
- Column79({ name: "is_social", type: "boolean", default: false })
6775
+ Column80({ name: "is_social", type: "boolean", default: false })
6745
6776
  ], User.prototype, "isSocial", 2);
6746
6777
  __decorateClass([
6747
- Column79({ name: "is_referral_user", type: "boolean", default: false })
6778
+ Column80({ name: "is_referral_user", type: "boolean", default: false })
6748
6779
  ], User.prototype, "isReferralUser", 2);
6749
6780
  __decorateClass([
6750
- Column79({
6781
+ Column80({
6751
6782
  name: "last_login_at",
6752
6783
  type: "timestamp with time zone",
6753
6784
  nullable: true
6754
6785
  })
6755
6786
  ], User.prototype, "lastLoginAt", 2);
6756
6787
  __decorateClass([
6757
- Column79({ name: "last_login_ip", type: "varchar", nullable: true })
6788
+ Column80({ name: "last_login_ip", type: "varchar", nullable: true })
6758
6789
  ], User.prototype, "lastLoginIp", 2);
6759
6790
  __decorateClass([
6760
- Column79({ name: "reset_token", type: "varchar", nullable: true })
6791
+ Column80({ name: "reset_token", type: "varchar", nullable: true })
6761
6792
  ], User.prototype, "resetToken", 2);
6762
6793
  __decorateClass([
6763
- Column79({
6794
+ Column80({
6764
6795
  name: "reset_token_expire_at",
6765
6796
  type: "timestamp with time zone",
6766
6797
  nullable: true
6767
6798
  })
6768
6799
  ], User.prototype, "resetTokenExpireAt", 2);
6769
6800
  __decorateClass([
6770
- Column79({ name: "set_password_token", type: "varchar", nullable: true })
6801
+ Column80({ name: "set_password_token", type: "varchar", nullable: true })
6771
6802
  ], User.prototype, "setPasswordToken", 2);
6772
6803
  __decorateClass([
6773
6804
  OneToMany27(() => RefreshToken, (token) => token.user)
6774
6805
  ], User.prototype, "refreshTokens", 2);
6775
6806
  __decorateClass([
6776
- Column79({
6807
+ Column80({
6777
6808
  name: "provider",
6778
6809
  type: "enum",
6779
6810
  enum: Provider,
@@ -6782,22 +6813,22 @@ __decorateClass([
6782
6813
  })
6783
6814
  ], User.prototype, "provider", 2);
6784
6815
  __decorateClass([
6785
- Column79({ name: "provider_token", type: "varchar", nullable: true })
6816
+ Column80({ name: "provider_token", type: "varchar", nullable: true })
6786
6817
  ], User.prototype, "providerToken", 2);
6787
6818
  __decorateClass([
6788
- Column79({ name: "linkedin_id", type: "varchar", nullable: true })
6819
+ Column80({ name: "linkedin_id", type: "varchar", nullable: true })
6789
6820
  ], User.prototype, "linkedInId", 2);
6790
6821
  __decorateClass([
6791
- Column79({ name: "google_id", type: "varchar", nullable: true })
6822
+ Column80({ name: "google_id", type: "varchar", nullable: true })
6792
6823
  ], User.prototype, "googleId", 2);
6793
6824
  __decorateClass([
6794
- Column79({ name: "gitlabs_id", type: "varchar", nullable: true })
6825
+ Column80({ name: "gitlabs_id", type: "varchar", nullable: true })
6795
6826
  ], User.prototype, "gitLabsId", 2);
6796
6827
  __decorateClass([
6797
- Column79({ name: "onboarded_by", type: "varchar", nullable: true })
6828
+ Column80({ name: "onboarded_by", type: "varchar", nullable: true })
6798
6829
  ], User.prototype, "onBoardedBy", 2);
6799
6830
  __decorateClass([
6800
- Column79({ name: "ip", type: "varchar", nullable: true })
6831
+ Column80({ name: "ip", type: "varchar", nullable: true })
6801
6832
  ], User.prototype, "ip", 2);
6802
6833
  __decorateClass([
6803
6834
  OneToMany27(() => Otp, (otp) => otp.user)
@@ -6817,6 +6848,9 @@ __decorateClass([
6817
6848
  (companyMemberRole) => companyMemberRole.user
6818
6849
  )
6819
6850
  ], User.prototype, "companyMemberRoles", 2);
6851
+ __decorateClass([
6852
+ OneToOne12(() => CompanyMember, (companyMember) => companyMember.user)
6853
+ ], User.prototype, "companyMember", 2);
6820
6854
  __decorateClass([
6821
6855
  OneToMany27(() => AiInterview, (aiInterview) => aiInterview.interviwer)
6822
6856
  ], User.prototype, "companyAiInterview", 2);
@@ -7047,7 +7081,7 @@ __decorateClass([
7047
7081
  OneToMany27(() => UserSubscription, (userSubscription) => userSubscription.user)
7048
7082
  ], User.prototype, "userSubscriptions", 2);
7049
7083
  User = __decorateClass([
7050
- Entity78("users")
7084
+ Entity79("users")
7051
7085
  ], User);
7052
7086
 
7053
7087
  // src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
@@ -14521,11 +14555,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
14521
14555
  };
14522
14556
 
14523
14557
  // src/entities/sequence-generator.entity.ts
14524
- import { Entity as Entity79, Column as Column80 } from "typeorm";
14558
+ import { Entity as Entity80, Column as Column81 } from "typeorm";
14525
14559
  var SequenceGenerator = class extends BaseEntity {
14526
14560
  };
14527
14561
  __decorateClass([
14528
- Column80({
14562
+ Column81({
14529
14563
  name: "module",
14530
14564
  type: "varchar",
14531
14565
  length: 50,
@@ -14534,7 +14568,7 @@ __decorateClass([
14534
14568
  })
14535
14569
  ], SequenceGenerator.prototype, "module", 2);
14536
14570
  __decorateClass([
14537
- Column80({
14571
+ Column81({
14538
14572
  name: "prefix",
14539
14573
  type: "varchar",
14540
14574
  length: 10,
@@ -14543,7 +14577,7 @@ __decorateClass([
14543
14577
  })
14544
14578
  ], SequenceGenerator.prototype, "prefix", 2);
14545
14579
  __decorateClass([
14546
- Column80({
14580
+ Column81({
14547
14581
  name: "last_sequence",
14548
14582
  type: "int",
14549
14583
  nullable: false,
@@ -14551,7 +14585,7 @@ __decorateClass([
14551
14585
  })
14552
14586
  ], SequenceGenerator.prototype, "lastSequence", 2);
14553
14587
  __decorateClass([
14554
- Column80({
14588
+ Column81({
14555
14589
  name: "year",
14556
14590
  type: "int",
14557
14591
  nullable: true,
@@ -14559,11 +14593,11 @@ __decorateClass([
14559
14593
  })
14560
14594
  ], SequenceGenerator.prototype, "year", 2);
14561
14595
  SequenceGenerator = __decorateClass([
14562
- Entity79("sequence_generators")
14596
+ Entity80("sequence_generators")
14563
14597
  ], SequenceGenerator);
14564
14598
 
14565
14599
  // src/entities/question.entity.ts
14566
- import { Entity as Entity80, Column as Column81 } from "typeorm";
14600
+ import { Entity as Entity81, Column as Column82 } from "typeorm";
14567
14601
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14568
14602
  QuestionFor2["CLIENT"] = "CLIENT";
14569
14603
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -14572,16 +14606,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14572
14606
  var Question = class extends BaseEntity {
14573
14607
  };
14574
14608
  __decorateClass([
14575
- Column81({ name: "question", type: "varchar" })
14609
+ Column82({ name: "question", type: "varchar" })
14576
14610
  ], Question.prototype, "question", 2);
14577
14611
  __decorateClass([
14578
- Column81({ name: "hint", type: "varchar", nullable: true })
14612
+ Column82({ name: "hint", type: "varchar", nullable: true })
14579
14613
  ], Question.prototype, "hint", 2);
14580
14614
  __decorateClass([
14581
- Column81({ name: "slug", type: "varchar", nullable: true, unique: true })
14615
+ Column82({ name: "slug", type: "varchar", nullable: true, unique: true })
14582
14616
  ], Question.prototype, "slug", 2);
14583
14617
  __decorateClass([
14584
- Column81({
14618
+ Column82({
14585
14619
  name: "question_for",
14586
14620
  type: "enum",
14587
14621
  enum: QuestionFor,
@@ -14589,49 +14623,49 @@ __decorateClass([
14589
14623
  })
14590
14624
  ], Question.prototype, "questionFor", 2);
14591
14625
  __decorateClass([
14592
- Column81({ name: "type", type: "varchar", nullable: true })
14626
+ Column82({ name: "type", type: "varchar", nullable: true })
14593
14627
  ], Question.prototype, "type", 2);
14594
14628
  __decorateClass([
14595
- Column81({ name: "options", type: "jsonb", nullable: true })
14629
+ Column82({ name: "options", type: "jsonb", nullable: true })
14596
14630
  ], Question.prototype, "options", 2);
14597
14631
  __decorateClass([
14598
- Column81({ name: "is_active", type: "boolean", default: false })
14632
+ Column82({ name: "is_active", type: "boolean", default: false })
14599
14633
  ], Question.prototype, "isActive", 2);
14600
14634
  Question = __decorateClass([
14601
- Entity80("questions")
14635
+ Entity81("questions")
14602
14636
  ], Question);
14603
14637
 
14604
14638
  // src/entities/skill.entity.ts
14605
- import { Entity as Entity81, Column as Column82 } from "typeorm";
14639
+ import { Entity as Entity82, Column as Column83 } from "typeorm";
14606
14640
  var Skill = class extends BaseEntity {
14607
14641
  };
14608
14642
  __decorateClass([
14609
- Column82({ name: "name", type: "varchar", nullable: true })
14643
+ Column83({ name: "name", type: "varchar", nullable: true })
14610
14644
  ], Skill.prototype, "name", 2);
14611
14645
  __decorateClass([
14612
- Column82({ name: "slug", type: "varchar", nullable: true, unique: true })
14646
+ Column83({ name: "slug", type: "varchar", nullable: true, unique: true })
14613
14647
  ], Skill.prototype, "slug", 2);
14614
14648
  __decorateClass([
14615
- Column82({ name: "is_active", type: "boolean", default: false })
14649
+ Column83({ name: "is_active", type: "boolean", default: false })
14616
14650
  ], Skill.prototype, "isActive", 2);
14617
14651
  Skill = __decorateClass([
14618
- Entity81("skills")
14652
+ Entity82("skills")
14619
14653
  ], Skill);
14620
14654
 
14621
14655
  // src/entities/skill-catalog.entity.ts
14622
14656
  import {
14623
- Entity as Entity82,
14624
- Column as Column83,
14625
- Index as Index70
14657
+ Entity as Entity83,
14658
+ Column as Column84,
14659
+ Index as Index71
14626
14660
  } from "typeorm";
14627
14661
  var SkillCatalog = class extends BaseEntity {
14628
14662
  };
14629
14663
  __decorateClass([
14630
- Column83({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14631
- Index70()
14664
+ Column84({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14665
+ Index71()
14632
14666
  ], SkillCatalog.prototype, "canonicalName", 2);
14633
14667
  __decorateClass([
14634
- Column83({
14668
+ Column84({
14635
14669
  name: "aliases",
14636
14670
  type: "text",
14637
14671
  array: true,
@@ -14639,20 +14673,20 @@ __decorateClass([
14639
14673
  })
14640
14674
  ], SkillCatalog.prototype, "aliases", 2);
14641
14675
  __decorateClass([
14642
- Column83({
14676
+ Column84({
14643
14677
  name: "variations",
14644
14678
  type: "jsonb",
14645
14679
  default: "{}"
14646
14680
  })
14647
14681
  ], SkillCatalog.prototype, "variations", 2);
14648
14682
  __decorateClass([
14649
- Column83({ name: "category", type: "varchar", length: 50, nullable: true })
14683
+ Column84({ name: "category", type: "varchar", length: 50, nullable: true })
14650
14684
  ], SkillCatalog.prototype, "category", 2);
14651
14685
  __decorateClass([
14652
- Column83({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14686
+ Column84({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14653
14687
  ], SkillCatalog.prototype, "parentSkill", 2);
14654
14688
  __decorateClass([
14655
- Column83({
14689
+ Column84({
14656
14690
  name: "related_skills",
14657
14691
  type: "text",
14658
14692
  array: true,
@@ -14660,70 +14694,70 @@ __decorateClass([
14660
14694
  })
14661
14695
  ], SkillCatalog.prototype, "relatedSkills", 2);
14662
14696
  __decorateClass([
14663
- Column83({ name: "usage_count", type: "integer", default: 0 }),
14664
- Index70()
14697
+ Column84({ name: "usage_count", type: "integer", default: 0 }),
14698
+ Index71()
14665
14699
  ], SkillCatalog.prototype, "usageCount", 2);
14666
14700
  __decorateClass([
14667
- Column83({ name: "is_verified", type: "boolean", default: false })
14701
+ Column84({ name: "is_verified", type: "boolean", default: false })
14668
14702
  ], SkillCatalog.prototype, "isVerified", 2);
14669
14703
  __decorateClass([
14670
- Column83({ name: "first_seen_date", type: "date" })
14704
+ Column84({ name: "first_seen_date", type: "date" })
14671
14705
  ], SkillCatalog.prototype, "firstSeenDate", 2);
14672
14706
  __decorateClass([
14673
- Column83({ name: "last_updated_date", type: "date" })
14707
+ Column84({ name: "last_updated_date", type: "date" })
14674
14708
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
14675
14709
  __decorateClass([
14676
- Column83({
14710
+ Column84({
14677
14711
  name: "search_vector",
14678
14712
  type: "tsvector",
14679
14713
  nullable: true
14680
14714
  })
14681
14715
  ], SkillCatalog.prototype, "searchVector", 2);
14682
14716
  SkillCatalog = __decorateClass([
14683
- Entity82("skill_catalogs")
14717
+ Entity83("skill_catalogs")
14684
14718
  ], SkillCatalog);
14685
14719
 
14686
14720
  // src/entities/job-role.entity.ts
14687
- import { Entity as Entity83, Column as Column84 } from "typeorm";
14721
+ import { Entity as Entity84, Column as Column85 } from "typeorm";
14688
14722
  var JobRoles = class extends BaseEntity {
14689
14723
  };
14690
14724
  __decorateClass([
14691
- Column84({ name: "slug", type: "varchar", nullable: true, unique: true })
14725
+ Column85({ name: "slug", type: "varchar", nullable: true, unique: true })
14692
14726
  ], JobRoles.prototype, "slug", 2);
14693
14727
  __decorateClass([
14694
- Column84({ name: "name", type: "varchar", nullable: true })
14728
+ Column85({ name: "name", type: "varchar", nullable: true })
14695
14729
  ], JobRoles.prototype, "name", 2);
14696
14730
  __decorateClass([
14697
- Column84({ name: "is_active", type: "boolean", default: true })
14731
+ Column85({ name: "is_active", type: "boolean", default: true })
14698
14732
  ], JobRoles.prototype, "isActive", 2);
14699
14733
  JobRoles = __decorateClass([
14700
- Entity83("job_roles")
14734
+ Entity84("job_roles")
14701
14735
  ], JobRoles);
14702
14736
 
14703
14737
  // src/entities/cms.entity.ts
14704
- import { Entity as Entity84, Column as Column85 } from "typeorm";
14738
+ import { Entity as Entity85, Column as Column86 } from "typeorm";
14705
14739
  var Cms = class extends BaseEntity {
14706
14740
  };
14707
14741
  __decorateClass([
14708
- Column85({ name: "title", type: "varchar", nullable: true })
14742
+ Column86({ name: "title", type: "varchar", nullable: true })
14709
14743
  ], Cms.prototype, "title", 2);
14710
14744
  __decorateClass([
14711
- Column85({ name: "slug", type: "varchar", nullable: true, unique: true })
14745
+ Column86({ name: "slug", type: "varchar", nullable: true, unique: true })
14712
14746
  ], Cms.prototype, "slug", 2);
14713
14747
  __decorateClass([
14714
- Column85({ name: "content", type: "varchar", nullable: true })
14748
+ Column86({ name: "content", type: "varchar", nullable: true })
14715
14749
  ], Cms.prototype, "content", 2);
14716
14750
  __decorateClass([
14717
- Column85({ name: "is_active", type: "boolean", default: true })
14751
+ Column86({ name: "is_active", type: "boolean", default: true })
14718
14752
  ], Cms.prototype, "isActive", 2);
14719
14753
  Cms = __decorateClass([
14720
- Entity84("cms")
14754
+ Entity85("cms")
14721
14755
  ], Cms);
14722
14756
 
14723
14757
  // src/entities/lead.entity.ts
14724
14758
  import {
14725
- Entity as Entity85,
14726
- Column as Column86
14759
+ Entity as Entity86,
14760
+ Column as Column87
14727
14761
  } from "typeorm";
14728
14762
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14729
14763
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -14733,22 +14767,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14733
14767
  var Lead = class extends BaseEntity {
14734
14768
  };
14735
14769
  __decorateClass([
14736
- Column86({ name: "name", type: "varchar", nullable: true })
14770
+ Column87({ name: "name", type: "varchar", nullable: true })
14737
14771
  ], Lead.prototype, "name", 2);
14738
14772
  __decorateClass([
14739
- Column86({ name: "mobile_code", type: "varchar", nullable: true })
14773
+ Column87({ name: "mobile_code", type: "varchar", nullable: true })
14740
14774
  ], Lead.prototype, "mobileCode", 2);
14741
14775
  __decorateClass([
14742
- Column86({ name: "mobile", type: "varchar", nullable: true })
14776
+ Column87({ name: "mobile", type: "varchar", nullable: true })
14743
14777
  ], Lead.prototype, "mobile", 2);
14744
14778
  __decorateClass([
14745
- Column86({ name: "email", type: "varchar", nullable: true })
14779
+ Column87({ name: "email", type: "varchar", nullable: true })
14746
14780
  ], Lead.prototype, "email", 2);
14747
14781
  __decorateClass([
14748
- Column86({ name: "description", type: "varchar", nullable: true })
14782
+ Column87({ name: "description", type: "varchar", nullable: true })
14749
14783
  ], Lead.prototype, "description", 2);
14750
14784
  __decorateClass([
14751
- Column86({
14785
+ Column87({
14752
14786
  name: "category",
14753
14787
  type: "enum",
14754
14788
  enum: CategoryEmum,
@@ -14756,7 +14790,7 @@ __decorateClass([
14756
14790
  })
14757
14791
  ], Lead.prototype, "category", 2);
14758
14792
  Lead = __decorateClass([
14759
- Entity85("leads")
14793
+ Entity86("leads")
14760
14794
  ], Lead);
14761
14795
 
14762
14796
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -14997,7 +15031,7 @@ ClientFreelancerRecommendation = __decorateClass([
14997
15031
  ], ClientFreelancerRecommendation);
14998
15032
 
14999
15033
  // src/entities/commission.entity.ts
15000
- import { Entity as Entity86, Column as Column87 } from "typeorm";
15034
+ import { Entity as Entity87, Column as Column88 } from "typeorm";
15001
15035
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
15002
15036
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
15003
15037
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -15006,7 +15040,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
15006
15040
  var Commission = class extends BaseEntity {
15007
15041
  };
15008
15042
  __decorateClass([
15009
- Column87({
15043
+ Column88({
15010
15044
  name: "freelancer_commission_type",
15011
15045
  type: "enum",
15012
15046
  enum: CommissionTypeEnum,
@@ -15014,10 +15048,10 @@ __decorateClass([
15014
15048
  })
15015
15049
  ], Commission.prototype, "freelancerCommissionType", 2);
15016
15050
  __decorateClass([
15017
- Column87({ name: "freelancer_commission", type: "integer", default: 0 })
15051
+ Column88({ name: "freelancer_commission", type: "integer", default: 0 })
15018
15052
  ], Commission.prototype, "freelancerCommission", 2);
15019
15053
  __decorateClass([
15020
- Column87({
15054
+ Column88({
15021
15055
  name: "client_commission_type",
15022
15056
  type: "enum",
15023
15057
  enum: CommissionTypeEnum,
@@ -15025,58 +15059,58 @@ __decorateClass([
15025
15059
  })
15026
15060
  ], Commission.prototype, "clientCommissionType", 2);
15027
15061
  __decorateClass([
15028
- Column87({ name: "client_commission", type: "integer", default: 0 })
15062
+ Column88({ name: "client_commission", type: "integer", default: 0 })
15029
15063
  ], Commission.prototype, "clientCommission", 2);
15030
15064
  Commission = __decorateClass([
15031
- Entity86("commissions")
15065
+ Entity87("commissions")
15032
15066
  ], Commission);
15033
15067
 
15034
15068
  // src/entities/calendly-meeting-log.entity.ts
15035
15069
  import {
15036
- Entity as Entity87,
15037
- Column as Column88,
15038
- Index as Index71
15070
+ Entity as Entity88,
15071
+ Column as Column89,
15072
+ Index as Index72
15039
15073
  } from "typeorm";
15040
15074
  var CalendlyMeetingLog = class extends BaseEntity {
15041
15075
  };
15042
15076
  __decorateClass([
15043
- Column88({ name: "calendly_event_id", type: "varchar", nullable: true }),
15044
- Index71()
15077
+ Column89({ name: "calendly_event_id", type: "varchar", nullable: true }),
15078
+ Index72()
15045
15079
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
15046
15080
  __decorateClass([
15047
- Column88({ name: "calendly_event_type", type: "varchar", nullable: true })
15081
+ Column89({ name: "calendly_event_type", type: "varchar", nullable: true })
15048
15082
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
15049
15083
  __decorateClass([
15050
- Column88({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15084
+ Column89({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15051
15085
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
15052
15086
  CalendlyMeetingLog = __decorateClass([
15053
- Entity87("calendly_meeting_logs")
15087
+ Entity88("calendly_meeting_logs")
15054
15088
  ], CalendlyMeetingLog);
15055
15089
 
15056
15090
  // src/entities/zoom-meeting-log.entity.ts
15057
15091
  import {
15058
- Entity as Entity88,
15059
- Column as Column89,
15060
- Index as Index72
15092
+ Entity as Entity89,
15093
+ Column as Column90,
15094
+ Index as Index73
15061
15095
  } from "typeorm";
15062
15096
  var ZoomMeetingLog = class extends BaseEntity {
15063
15097
  };
15064
15098
  __decorateClass([
15065
- Column89({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15066
- Index72()
15099
+ Column90({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15100
+ Index73()
15067
15101
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
15068
15102
  __decorateClass([
15069
- Column89({ name: "zoom_event_type", type: "varchar", nullable: true })
15103
+ Column90({ name: "zoom_event_type", type: "varchar", nullable: true })
15070
15104
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
15071
15105
  __decorateClass([
15072
- Column89({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15106
+ Column90({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15073
15107
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
15074
15108
  ZoomMeetingLog = __decorateClass([
15075
- Entity88("zoom_meeting_logs")
15109
+ Entity89("zoom_meeting_logs")
15076
15110
  ], ZoomMeetingLog);
15077
15111
 
15078
15112
  // src/entities/docuseal.entity.ts
15079
- import { Entity as Entity89, Column as Column90, Index as Index73 } from "typeorm";
15113
+ import { Entity as Entity90, Column as Column91, Index as Index74 } from "typeorm";
15080
15114
  var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15081
15115
  DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
15082
15116
  DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
@@ -15086,101 +15120,101 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15086
15120
  var DocuSeal = class extends BaseEntity {
15087
15121
  };
15088
15122
  __decorateClass([
15089
- Column90({ name: "reference_id", type: "integer", nullable: false }),
15090
- Index73()
15123
+ Column91({ name: "reference_id", type: "integer", nullable: false }),
15124
+ Index74()
15091
15125
  ], DocuSeal.prototype, "referenceId", 2);
15092
15126
  __decorateClass([
15093
- Column90({ name: "submitter_id", type: "integer", nullable: true }),
15094
- Index73()
15127
+ Column91({ name: "submitter_id", type: "integer", nullable: true }),
15128
+ Index74()
15095
15129
  ], DocuSeal.prototype, "submitterId", 2);
15096
15130
  __decorateClass([
15097
- Column90({ name: "submitter_response", type: "jsonb", nullable: true })
15131
+ Column91({ name: "submitter_response", type: "jsonb", nullable: true })
15098
15132
  ], DocuSeal.prototype, "submitterResponse", 2);
15099
15133
  __decorateClass([
15100
- Column90({ name: "webhook_response", type: "jsonb", nullable: true })
15134
+ Column91({ name: "webhook_response", type: "jsonb", nullable: true })
15101
15135
  ], DocuSeal.prototype, "webhookResponse", 2);
15102
15136
  __decorateClass([
15103
- Column90({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
15137
+ Column91({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
15104
15138
  ], DocuSeal.prototype, "type", 2);
15105
15139
  DocuSeal = __decorateClass([
15106
- Entity89("docuseal")
15140
+ Entity90("docuseal")
15107
15141
  ], DocuSeal);
15108
15142
 
15109
15143
  // src/entities/stripe-logs.entity.ts
15110
- import { Entity as Entity90, Column as Column91 } from "typeorm";
15144
+ import { Entity as Entity91, Column as Column92 } from "typeorm";
15111
15145
  var StripeLog = class extends BaseEntity {
15112
15146
  };
15113
15147
  __decorateClass([
15114
- Column91({ name: "stripe_event_id", type: "varchar", nullable: true })
15148
+ Column92({ name: "stripe_event_id", type: "varchar", nullable: true })
15115
15149
  ], StripeLog.prototype, "stripeEventId", 2);
15116
15150
  __decorateClass([
15117
- Column91({ name: "event_type", type: "varchar", nullable: true })
15151
+ Column92({ name: "event_type", type: "varchar", nullable: true })
15118
15152
  ], StripeLog.prototype, "eventType", 2);
15119
15153
  __decorateClass([
15120
- Column91({ name: "stripe_account_id", type: "varchar", nullable: true })
15154
+ Column92({ name: "stripe_account_id", type: "varchar", nullable: true })
15121
15155
  ], StripeLog.prototype, "stripeAccountId", 2);
15122
15156
  __decorateClass([
15123
- Column91({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15157
+ Column92({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15124
15158
  ], StripeLog.prototype, "rawWebhookData", 2);
15125
15159
  StripeLog = __decorateClass([
15126
- Entity90("stripe_logs")
15160
+ Entity91("stripe_logs")
15127
15161
  ], StripeLog);
15128
15162
 
15129
15163
  // src/entities/recommendation-weightage-config.entity.ts
15130
15164
  import {
15131
- Entity as Entity91,
15132
- Column as Column92,
15133
- Index as Index74
15165
+ Entity as Entity92,
15166
+ Column as Column93,
15167
+ Index as Index75
15134
15168
  } from "typeorm";
15135
15169
  var RecommendationWeightageConfig = class extends BaseEntity {
15136
15170
  };
15137
15171
  __decorateClass([
15138
- Column92({
15172
+ Column93({
15139
15173
  type: "varchar",
15140
15174
  length: 100,
15141
15175
  unique: true,
15142
15176
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
15143
15177
  }),
15144
- Index74()
15178
+ Index75()
15145
15179
  ], RecommendationWeightageConfig.prototype, "key", 2);
15146
15180
  __decorateClass([
15147
- Column92({
15181
+ Column93({
15148
15182
  type: "jsonb",
15149
15183
  comment: "JSON object containing weight values",
15150
15184
  nullable: true
15151
15185
  })
15152
15186
  ], RecommendationWeightageConfig.prototype, "value", 2);
15153
15187
  __decorateClass([
15154
- Column92({ name: "is_active", type: "boolean", default: true })
15188
+ Column93({ name: "is_active", type: "boolean", default: true })
15155
15189
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
15156
15190
  RecommendationWeightageConfig = __decorateClass([
15157
- Entity91("recommendation_weightage_configs")
15191
+ Entity92("recommendation_weightage_configs")
15158
15192
  ], RecommendationWeightageConfig);
15159
15193
 
15160
15194
  // src/entities/global-setting.entity.ts
15161
15195
  import {
15162
- Entity as Entity92,
15163
- Column as Column93,
15164
- Index as Index75
15196
+ Entity as Entity93,
15197
+ Column as Column94,
15198
+ Index as Index76
15165
15199
  } from "typeorm";
15166
15200
  var GlobalSetting = class extends BaseEntity {
15167
15201
  };
15168
15202
  __decorateClass([
15169
- Column93({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
15203
+ Column94({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
15170
15204
  ], GlobalSetting.prototype, "key", 2);
15171
15205
  __decorateClass([
15172
- Column93({ name: "value", type: "text", nullable: false })
15206
+ Column94({ name: "value", type: "text", nullable: false })
15173
15207
  ], GlobalSetting.prototype, "value", 2);
15174
15208
  GlobalSetting = __decorateClass([
15175
- Entity92("global_settings"),
15176
- Index75(["key"], { unique: true })
15209
+ Entity93("global_settings"),
15210
+ Index76(["key"], { unique: true })
15177
15211
  ], GlobalSetting);
15178
15212
 
15179
15213
  // src/entities/plan.entity.ts
15180
15214
  import {
15181
- Entity as Entity95,
15182
- Column as Column96,
15183
- Index as Index78,
15215
+ Entity as Entity96,
15216
+ Column as Column97,
15217
+ Index as Index79,
15184
15218
  Check as Check4,
15185
15219
  BeforeInsert as BeforeInsert2,
15186
15220
  BeforeUpdate as BeforeUpdate2,
@@ -15189,57 +15223,57 @@ import {
15189
15223
 
15190
15224
  // src/entities/plan-feature.entity.ts
15191
15225
  import {
15192
- Entity as Entity93,
15193
- Column as Column94,
15194
- ManyToOne as ManyToOne75,
15195
- JoinColumn as JoinColumn76,
15196
- Index as Index76,
15226
+ Entity as Entity94,
15227
+ Column as Column95,
15228
+ ManyToOne as ManyToOne76,
15229
+ JoinColumn as JoinColumn77,
15230
+ Index as Index77,
15197
15231
  Check as Check2
15198
15232
  } from "typeorm";
15199
15233
  var PlanFeature = class extends BaseEntity {
15200
15234
  };
15201
15235
  // individual index to find features by plan
15202
15236
  __decorateClass([
15203
- Column94({ name: "plan_id", type: "integer", nullable: false }),
15204
- Index76()
15237
+ Column95({ name: "plan_id", type: "integer", nullable: false }),
15238
+ Index77()
15205
15239
  ], PlanFeature.prototype, "planId", 2);
15206
15240
  __decorateClass([
15207
- ManyToOne75(() => Plan, (plan) => plan.features, {
15241
+ ManyToOne76(() => Plan, (plan) => plan.features, {
15208
15242
  onDelete: "CASCADE",
15209
15243
  nullable: false
15210
15244
  }),
15211
- JoinColumn76({ name: "plan_id" })
15245
+ JoinColumn77({ name: "plan_id" })
15212
15246
  ], PlanFeature.prototype, "plan", 2);
15213
15247
  __decorateClass([
15214
- Column94({ name: "name", type: "varchar", length: 200 })
15248
+ Column95({ name: "name", type: "varchar", length: 200 })
15215
15249
  ], PlanFeature.prototype, "name", 2);
15216
15250
  __decorateClass([
15217
- Column94({ name: "slug", type: "varchar", length: 100 }),
15218
- Index76()
15251
+ Column95({ name: "slug", type: "varchar", length: 100 }),
15252
+ Index77()
15219
15253
  ], PlanFeature.prototype, "slug", 2);
15220
15254
  __decorateClass([
15221
- Column94({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15255
+ Column95({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15222
15256
  ], PlanFeature.prototype, "tooltip", 2);
15223
15257
  __decorateClass([
15224
- Column94({ name: "sort_order", type: "smallint", default: 0 })
15258
+ Column95({ name: "sort_order", type: "smallint", default: 0 })
15225
15259
  ], PlanFeature.prototype, "sortOrder", 2);
15226
15260
  __decorateClass([
15227
- Column94({ name: "is_active", type: "boolean", default: true })
15261
+ Column95({ name: "is_active", type: "boolean", default: true })
15228
15262
  ], PlanFeature.prototype, "isActive", 2);
15229
15263
  PlanFeature = __decorateClass([
15230
- Entity93("plan_features"),
15231
- Index76("idx_plan_features_plan_id", ["planId"]),
15232
- Index76("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
15264
+ Entity94("plan_features"),
15265
+ Index77("idx_plan_features_plan_id", ["planId"]),
15266
+ Index77("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
15233
15267
  Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
15234
15268
  ], PlanFeature);
15235
15269
 
15236
15270
  // src/entities/plan-pricing.entity.ts
15237
15271
  import {
15238
- Entity as Entity94,
15239
- Column as Column95,
15240
- ManyToOne as ManyToOne76,
15241
- JoinColumn as JoinColumn77,
15242
- Index as Index77,
15272
+ Entity as Entity95,
15273
+ Column as Column96,
15274
+ ManyToOne as ManyToOne77,
15275
+ JoinColumn as JoinColumn78,
15276
+ Index as Index78,
15243
15277
  Unique,
15244
15278
  Check as Check3,
15245
15279
  BeforeInsert,
@@ -15299,56 +15333,56 @@ var PlanPricing = class extends BaseEntity {
15299
15333
  };
15300
15334
  // individual index to find pricing by plan
15301
15335
  __decorateClass([
15302
- Column95({ name: "plan_id", type: "integer", nullable: false }),
15303
- Index77()
15336
+ Column96({ name: "plan_id", type: "integer", nullable: false }),
15337
+ Index78()
15304
15338
  ], PlanPricing.prototype, "planId", 2);
15305
15339
  __decorateClass([
15306
- ManyToOne76(() => Plan, (plan) => plan.pricing, {
15340
+ ManyToOne77(() => Plan, (plan) => plan.pricing, {
15307
15341
  onDelete: "CASCADE",
15308
15342
  nullable: false
15309
15343
  }),
15310
- JoinColumn77({ name: "plan_id" })
15344
+ JoinColumn78({ name: "plan_id" })
15311
15345
  ], PlanPricing.prototype, "plan", 2);
15312
15346
  __decorateClass([
15313
- Column95({
15347
+ Column96({
15314
15348
  name: "billing_cycle",
15315
15349
  type: "enum",
15316
15350
  enum: PlanPricingBillingCycleEnum
15317
15351
  })
15318
15352
  ], PlanPricing.prototype, "billingCycle", 2);
15319
15353
  __decorateClass([
15320
- Column95({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15354
+ Column96({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15321
15355
  ], PlanPricing.prototype, "price", 2);
15322
15356
  __decorateClass([
15323
- Column95({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
15357
+ Column96({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
15324
15358
  ], PlanPricing.prototype, "originalPrice", 2);
15325
15359
  __decorateClass([
15326
- Column95({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
15360
+ Column96({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
15327
15361
  ], PlanPricing.prototype, "discountPct", 2);
15328
15362
  __decorateClass([
15329
- Column95({ name: "currency", type: "varchar", length: 3, default: "USD" })
15363
+ Column96({ name: "currency", type: "varchar", length: 3, default: "USD" })
15330
15364
  ], PlanPricing.prototype, "currency", 2);
15331
15365
  __decorateClass([
15332
- Column95({ name: "is_free", type: "boolean", default: false })
15366
+ Column96({ name: "is_free", type: "boolean", default: false })
15333
15367
  ], PlanPricing.prototype, "isFree", 2);
15334
15368
  __decorateClass([
15335
- Column95({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
15369
+ Column96({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
15336
15370
  ], PlanPricing.prototype, "stripePriceId", 2);
15337
15371
  __decorateClass([
15338
- Column95({ name: "trial_days", type: "smallint", default: 0 })
15372
+ Column96({ name: "trial_days", type: "smallint", default: 0 })
15339
15373
  ], PlanPricing.prototype, "trialDays", 2);
15340
15374
  __decorateClass([
15341
- Column95({ name: "is_active", type: "boolean", default: true })
15375
+ Column96({ name: "is_active", type: "boolean", default: true })
15342
15376
  ], PlanPricing.prototype, "isActive", 2);
15343
15377
  __decorateClass([
15344
15378
  BeforeInsert(),
15345
15379
  BeforeUpdate()
15346
15380
  ], PlanPricing.prototype, "sanitize", 1);
15347
15381
  PlanPricing = __decorateClass([
15348
- Entity94("plan_pricings"),
15382
+ Entity95("plan_pricings"),
15349
15383
  Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
15350
- Index77("idx_plan_pricings_plan_id", ["planId"]),
15351
- Index77("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15384
+ Index78("idx_plan_pricings_plan_id", ["planId"]),
15385
+ Index78("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15352
15386
  Check3("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
15353
15387
  Check3("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
15354
15388
  Check3("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
@@ -15370,22 +15404,22 @@ var Plan = class extends BaseEntity {
15370
15404
  }
15371
15405
  };
15372
15406
  __decorateClass([
15373
- Column96({ name: "name", type: "varchar", length: 100 })
15407
+ Column97({ name: "name", type: "varchar", length: 100 })
15374
15408
  ], Plan.prototype, "name", 2);
15375
15409
  __decorateClass([
15376
- Column96({ name: "slug", type: "varchar", length: 100 })
15410
+ Column97({ name: "slug", type: "varchar", length: 100 })
15377
15411
  ], Plan.prototype, "slug", 2);
15378
15412
  __decorateClass([
15379
- Column96({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15413
+ Column97({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15380
15414
  ], Plan.prototype, "badgeLabel", 2);
15381
15415
  __decorateClass([
15382
- Column96({ name: "sort_order", type: "smallint", default: 0 })
15416
+ Column97({ name: "sort_order", type: "smallint", default: 0 })
15383
15417
  ], Plan.prototype, "sortOrder", 2);
15384
15418
  __decorateClass([
15385
- Column96({ name: "is_active", type: "boolean", default: true })
15419
+ Column97({ name: "is_active", type: "boolean", default: true })
15386
15420
  ], Plan.prototype, "isActive", 2);
15387
15421
  __decorateClass([
15388
- Column96({
15422
+ Column97({
15389
15423
  name: "plan_type",
15390
15424
  type: "enum",
15391
15425
  enum: PlanTypeEnum,
@@ -15393,10 +15427,10 @@ __decorateClass([
15393
15427
  })
15394
15428
  ], Plan.prototype, "planType", 2);
15395
15429
  __decorateClass([
15396
- Column96({ name: "metadata", type: "jsonb", default: {} })
15430
+ Column97({ name: "metadata", type: "jsonb", default: {} })
15397
15431
  ], Plan.prototype, "metadata", 2);
15398
15432
  __decorateClass([
15399
- Column96({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15433
+ Column97({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15400
15434
  ], Plan.prototype, "stripeProductId", 2);
15401
15435
  __decorateClass([
15402
15436
  BeforeInsert2(),
@@ -15413,21 +15447,21 @@ __decorateClass([
15413
15447
  })
15414
15448
  ], Plan.prototype, "pricing", 2);
15415
15449
  Plan = __decorateClass([
15416
- Entity95("plans"),
15417
- Index78("idx_plans_slug_plan_type", ["slug", "planType"], {
15450
+ Entity96("plans"),
15451
+ Index79("idx_plans_slug_plan_type", ["slug", "planType"], {
15418
15452
  unique: true,
15419
15453
  where: '"is_deleted" IS FALSE'
15420
15454
  }),
15421
- Index78("idx_plans_active_sort", ["isActive", "sortOrder"]),
15455
+ Index79("idx_plans_active_sort", ["isActive", "sortOrder"]),
15422
15456
  Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
15423
15457
  ], Plan);
15424
15458
 
15425
15459
  // src/entities/subscription-feature.entity.ts
15426
15460
  import {
15427
- Entity as Entity96,
15428
- Column as Column97,
15461
+ Entity as Entity97,
15462
+ Column as Column98,
15429
15463
  Check as Check5,
15430
- Index as Index79,
15464
+ Index as Index80,
15431
15465
  BeforeInsert as BeforeInsert3,
15432
15466
  BeforeUpdate as BeforeUpdate3
15433
15467
  } from "typeorm";
@@ -15445,33 +15479,33 @@ var SubscriptionFeature = class extends BaseEntity {
15445
15479
  }
15446
15480
  };
15447
15481
  __decorateClass([
15448
- Column97({ name: "name", type: "varchar", length: 200 })
15482
+ Column98({ name: "name", type: "varchar", length: 200 })
15449
15483
  ], SubscriptionFeature.prototype, "name", 2);
15450
15484
  __decorateClass([
15451
- Column97({ name: "slug", type: "varchar", length: 100 })
15485
+ Column98({ name: "slug", type: "varchar", length: 100 })
15452
15486
  ], SubscriptionFeature.prototype, "slug", 2);
15453
15487
  __decorateClass([
15454
- Column97({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15488
+ Column98({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15455
15489
  ], SubscriptionFeature.prototype, "tooltip", 2);
15456
15490
  __decorateClass([
15457
- Column97({ name: "sort_order", type: "smallint", default: 0 })
15491
+ Column98({ name: "sort_order", type: "smallint", default: 0 })
15458
15492
  ], SubscriptionFeature.prototype, "sortOrder", 2);
15459
15493
  __decorateClass([
15460
- Column97({ name: "is_active", type: "boolean", default: true })
15494
+ Column98({ name: "is_active", type: "boolean", default: true })
15461
15495
  ], SubscriptionFeature.prototype, "isActive", 2);
15462
15496
  __decorateClass([
15463
15497
  BeforeInsert3(),
15464
15498
  BeforeUpdate3()
15465
15499
  ], SubscriptionFeature.prototype, "createSlug", 1);
15466
15500
  SubscriptionFeature = __decorateClass([
15467
- Entity96("subscription_features"),
15468
- Index79("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15469
- Index79("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15501
+ Entity97("subscription_features"),
15502
+ Index80("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15503
+ Index80("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15470
15504
  Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
15471
15505
  ], SubscriptionFeature);
15472
15506
 
15473
15507
  // src/entities/user-subscription-transaction.entity.ts
15474
- import { Entity as Entity97, Column as Column98, Index as Index80, ManyToOne as ManyToOne77, JoinColumn as JoinColumn78 } from "typeorm";
15508
+ import { Entity as Entity98, Column as Column99, Index as Index81, ManyToOne as ManyToOne78, JoinColumn as JoinColumn79 } from "typeorm";
15475
15509
  var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
15476
15510
  UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
15477
15511
  UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
@@ -15489,25 +15523,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
15489
15523
  var UserSubscriptionTransaction = class extends BaseEntity {
15490
15524
  };
15491
15525
  __decorateClass([
15492
- Column98({ name: "user_subscription_id", type: "integer", nullable: false }),
15493
- Index80()
15526
+ Column99({ name: "user_subscription_id", type: "integer", nullable: false }),
15527
+ Index81()
15494
15528
  ], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
15495
15529
  __decorateClass([
15496
- ManyToOne77(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15497
- JoinColumn78({ name: "user_subscription_id" })
15530
+ ManyToOne78(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15531
+ JoinColumn79({ name: "user_subscription_id" })
15498
15532
  ], UserSubscriptionTransaction.prototype, "userSubscription", 2);
15499
15533
  __decorateClass([
15500
- Column98({ name: "user_id", type: "integer", nullable: false })
15534
+ Column99({ name: "user_id", type: "integer", nullable: false })
15501
15535
  ], UserSubscriptionTransaction.prototype, "userId", 2);
15502
15536
  __decorateClass([
15503
- Column98({
15537
+ Column99({
15504
15538
  name: "type",
15505
15539
  type: "enum",
15506
15540
  enum: UserSubscriptionTransactionTypeEnum
15507
15541
  })
15508
15542
  ], UserSubscriptionTransaction.prototype, "type", 2);
15509
15543
  __decorateClass([
15510
- Column98({
15544
+ Column99({
15511
15545
  name: "status",
15512
15546
  type: "enum",
15513
15547
  enum: UserSubscriptionTransactionStatusEnum,
@@ -15515,49 +15549,49 @@ __decorateClass([
15515
15549
  })
15516
15550
  ], UserSubscriptionTransaction.prototype, "status", 2);
15517
15551
  __decorateClass([
15518
- Column98({ name: "plan_name", type: "text", nullable: true })
15552
+ Column99({ name: "plan_name", type: "text", nullable: true })
15519
15553
  ], UserSubscriptionTransaction.prototype, "planName", 2);
15520
15554
  __decorateClass([
15521
- Column98({ name: "amount_minor", type: "integer", nullable: true })
15555
+ Column99({ name: "amount_minor", type: "integer", nullable: true })
15522
15556
  ], UserSubscriptionTransaction.prototype, "amountMinor", 2);
15523
15557
  __decorateClass([
15524
- Column98({ name: "currency", type: "varchar", length: 3, nullable: true })
15558
+ Column99({ name: "currency", type: "varchar", length: 3, nullable: true })
15525
15559
  ], UserSubscriptionTransaction.prototype, "currency", 2);
15526
15560
  __decorateClass([
15527
- Column98({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15561
+ Column99({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15528
15562
  ], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
15529
15563
  __decorateClass([
15530
- Column98({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15564
+ Column99({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15531
15565
  ], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
15532
15566
  __decorateClass([
15533
- Column98({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15567
+ Column99({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15534
15568
  ], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
15535
15569
  __decorateClass([
15536
- Column98({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15570
+ Column99({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15537
15571
  ], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
15538
15572
  __decorateClass([
15539
- Column98({ name: "description", type: "text", nullable: true })
15573
+ Column99({ name: "description", type: "text", nullable: true })
15540
15574
  ], UserSubscriptionTransaction.prototype, "description", 2);
15541
15575
  __decorateClass([
15542
- Column98({ name: "invoice_url", type: "text", nullable: true })
15576
+ Column99({ name: "invoice_url", type: "text", nullable: true })
15543
15577
  ], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
15544
15578
  __decorateClass([
15545
- Column98({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15579
+ Column99({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15546
15580
  ], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
15547
15581
  __decorateClass([
15548
- Column98({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15582
+ Column99({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15549
15583
  ], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
15550
15584
  __decorateClass([
15551
- Column98({ name: "webhook_payload", type: "jsonb", nullable: true })
15585
+ Column99({ name: "webhook_payload", type: "jsonb", nullable: true })
15552
15586
  ], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
15553
15587
  __decorateClass([
15554
- Column98({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15588
+ Column99({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15555
15589
  ], UserSubscriptionTransaction.prototype, "metadata", 2);
15556
15590
  UserSubscriptionTransaction = __decorateClass([
15557
- Entity97("user_subscription_transactions"),
15558
- Index80("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15559
- Index80("idx_user_sub_tx_user_id", ["userId"]),
15560
- Index80("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
15591
+ Entity98("user_subscription_transactions"),
15592
+ Index81("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15593
+ Index81("idx_user_sub_tx_user_id", ["userId"]),
15594
+ Index81("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
15561
15595
  ], UserSubscriptionTransaction);
15562
15596
  export {
15563
15597
  ADMIN_FREELANCER_PATTERN,
@@ -15648,6 +15682,7 @@ export {
15648
15682
  Cms,
15649
15683
  Commission,
15650
15684
  CommissionTypeEnum,
15685
+ CompanyMember,
15651
15686
  CompanyMemberRole,
15652
15687
  CompanyOnboardingStepEnum,
15653
15688
  CompanyProfile,