@dynamatix/gb-schemas 2.0.55 → 2.0.56

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.
@@ -1,5 +1,6 @@
1
1
  export declare class ProductFeaturesEntity {
2
2
  id: string;
3
+ applicationId: string;
3
4
  name: string;
4
5
  clientAdvance: string;
5
6
  ltv: string;
@@ -1 +1 @@
1
- {"version":3,"file":"product-features.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/product-features.entity.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAqB;IAC9B,EAAE,EAAG,MAAM,CAAC;IACZ,IAAI,EAAG,MAAM,CAAC;IACd,aAAa,EAAG,MAAM,CAAC;IACvB,GAAG,EAAG,MAAM,CAAC;IACb,SAAS,EAAG,MAAM,CAAC;IACnB,iBAAiB,EAAG,MAAM,CAAC;IAC3B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAG,MAAM,CAAC;IACrB,SAAS,EAAG,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAG,MAAM,CAAC;IACpB,eAAe,EAAG,MAAM,CAAC;IACzB,OAAO,EAAG,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;gBAEL,OAAO,EAAE,OAAO,CAAC,qBAAqB,CAAC;CAGtD"}
1
+ {"version":3,"file":"product-features.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/product-features.entity.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAqB;IAC9B,EAAE,EAAG,MAAM,CAAC;IACZ,aAAa,EAAG,MAAM,CAAC;IACvB,IAAI,EAAG,MAAM,CAAC;IACd,aAAa,EAAG,MAAM,CAAC;IACvB,GAAG,EAAG,MAAM,CAAC;IACb,SAAS,EAAG,MAAM,CAAC;IACnB,iBAAiB,EAAG,MAAM,CAAC;IAC3B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAG,MAAM,CAAC;IACrB,SAAS,EAAG,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAG,MAAM,CAAC;IACpB,eAAe,EAAG,MAAM,CAAC;IACzB,OAAO,EAAG,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;gBAEL,OAAO,EAAE,OAAO,CAAC,qBAAqB,CAAC;CAGtD"}
@@ -1,5 +1,6 @@
1
1
  export class ProductFeaturesEntity {
2
2
  id!: string;
3
+ applicationId!: string;
3
4
  name!: string;
4
5
  clientAdvance!: string;
5
6
  ltv!: string;
@@ -53,4 +54,4 @@ export class ProductFeaturesEntity {
53
54
  constructor(partial: Partial<ProductFeaturesEntity>) {
54
55
  Object.assign(this, partial);
55
56
  }
56
- }
57
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.0.55",
3
+ "version": "2.0.56",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,24 +54,25 @@ model Application {
54
54
  applicantIds String[] @map("applicant_ids")
55
55
  propertyIds String[] @map("property_ids")
56
56
  createdAt DateTime @default(now()) @map("created_at")
57
- updatedAt DateTime @updatedAt @default(now()) @map("updated_at")
57
+ updatedAt DateTime @default(now()) @updatedAt @map("updated_at")
58
58
 
59
59
  // Relations
60
- broker Broker? @relation("ApplicationBroker", fields: [brokerId], references: [id])
61
- security Security? @relation("ApplicationSecurity")
62
- solicitor Solicitor? @relation("ApplicationSolicitor")
63
- product Product? @relation("ApplicationProduct", fields: [productId], references: [id])
64
- directDebit ApplicationDirectDebit? @relation("ApplicationDirectDebit")
65
- creditProfile ApplicationCreditProfile? @relation("ApplicationCreditProfile")
66
- mortgage ApplicationMortgage? @relation("ApplicationMortgage")
67
- company ApplicationCompany? @relation("ApplicationCompany")
68
- rationale ApplicationRationale? @relation("ApplicationRationale")
69
- applicants Applicant[] @relation("ApplicationApplicants")
70
- properties Property[] @relation("ApplicationProperties")
71
- documents ApplicationDocument[]
72
- notes ApplicationNote[]
73
- audits ApplicationAudit[]
74
- products ApplicationProduct[] @relation("ApplicationProducts")
60
+ broker Broker? @relation("ApplicationBroker", fields: [brokerId], references: [id])
61
+ security Security? @relation("ApplicationSecurity")
62
+ solicitor Solicitor? @relation("ApplicationSolicitor")
63
+ product Product? @relation("ApplicationProduct", fields: [productId], references: [id])
64
+ directDebit ApplicationDirectDebit? @relation("ApplicationDirectDebit")
65
+ creditProfile ApplicationCreditProfile? @relation("ApplicationCreditProfile")
66
+ mortgage ApplicationMortgage? @relation("ApplicationMortgage")
67
+ company ApplicationCompany? @relation("ApplicationCompany")
68
+ rationale ApplicationRationale? @relation("ApplicationRationale")
69
+ productFeatures ProductFeatures? @relation("ApplicationProductFeature")
70
+ applicants Applicant[] @relation("ApplicationApplicants")
71
+ properties Property[] @relation("ApplicationProperties")
72
+ documents ApplicationDocument[]
73
+ notes ApplicationNote[]
74
+ audits ApplicationAudit[]
75
+ products ApplicationProduct[] @relation("ApplicationProducts")
75
76
 
76
77
  // Lookup relations
77
78
  applicationType Lookup @relation("ApplicationType", fields: [applicationTypeLid], references: [id])
@@ -1,54 +1,58 @@
1
1
  model ProductFeatures {
2
- id String @id @default(uuid())
3
- name String @map("name")
4
- clientAdvance String @map("client_advance")
5
- ltv String @map("ltv")
6
- repayment String @map("repayment")
7
- variableRepayment String @map("variable_repayment")
8
- reversionRateWithoutBaseRate String? @map("reversion_rate_without_base_rate")
9
- totalReversionRate String? @map("total_reversion_rate")
10
- initialRate String @map("initial_rate")
11
- fixedTerm String @map("fixed_term")
12
- fixedTermEndDate String? @map("fixed_term_end_date")
13
- baseRate String? @map("base_rate")
14
- productRate String? @map("product_rate")
15
- apr String? @map("apr")
16
- rentalCoverage String? @map("rental_coverage")
17
- repaymentType String? @map("repayment_type")
18
- applicationCategory String? @map("application_category")
19
- securityType String? @map("security_type")
20
- erc String? @map("erc")
21
- loanType String? @map("loan_type")
22
- maxLtvLimit String? @map("max_ltv_limit")
23
- reimbursement String? @map("reimbursement")
24
- reimbursementPerPound String? @map("reimbursement_per_pound")
25
- stressedApr String? @map("stressed_apr")
26
- stressedRate String? @map("stressed_rate")
27
- stressedRepayment String? @map("stressed_repayment")
28
- liborFloorRate String? @map("libor_floor_rate")
29
- totalTermInMonths String? @map("total_term_in_months")
30
- chargeType String @default("") @map("charge_type")
31
- productCategory String @default("") @map("product_category")
32
- ercCode String @default("") @map("erc_code")
33
- variableTerm String? @map("variable_term")
34
- totalFeePayable String? @map("total_fee_payable")
35
- dipIssueDate String? @map("dip_issue_date")
36
- estimatedCompletionDate String? @map("estimated_completion_date")
37
- dipExpiryDate String? @map("dip_expiry_date")
38
- fixedRepaymentUntillDate String? @map("fixed_repayment_untill_date")
39
- rentalReviewDate String? @map("rental_review_date")
40
- totalReimbursementWithFee String? @map("total_reimbursement_with_fee")
41
- finalRentPayment String? @map("final_rent_payment")
42
- clientDeposit String? @map("client_deposit")
43
- firstRentPayment String? @map("first_rent_payment")
44
- ercFeatures Json? @map("erc_features")
45
- icr String? @map("icr")
46
- ufssProductCode String? @map("ufss_product_code")
47
- ufssInterestRateCode String? @map("ufss_interest_rate_code")
48
- stressedPayment String? @map("stressed_payment")
49
- stressedPaymentRate String? @map("stressed_payment_rate")
50
- createdAt DateTime @default(now()) @map("created_at")
51
- updatedAt DateTime @updatedAt @map("updated_at")
2
+ id String @id @default(uuid())
3
+ applicationId String @unique @map("application_id")
4
+ name String @map("name")
5
+ clientAdvance String @map("client_advance")
6
+ ltv String @map("ltv")
7
+ repayment String @map("repayment")
8
+ variableRepayment String @map("variable_repayment")
9
+ reversionRateWithoutBaseRate String? @map("reversion_rate_without_base_rate")
10
+ totalReversionRate String? @map("total_reversion_rate")
11
+ initialRate String @map("initial_rate")
12
+ fixedTerm String @map("fixed_term")
13
+ fixedTermEndDate String? @map("fixed_term_end_date")
14
+ baseRate String? @map("base_rate")
15
+ productRate String? @map("product_rate")
16
+ apr String? @map("apr")
17
+ rentalCoverage String? @map("rental_coverage")
18
+ repaymentType String? @map("repayment_type")
19
+ applicationCategory String? @map("application_category")
20
+ securityType String? @map("security_type")
21
+ erc String? @map("erc")
22
+ loanType String? @map("loan_type")
23
+ maxLtvLimit String? @map("max_ltv_limit")
24
+ reimbursement String? @map("reimbursement")
25
+ reimbursementPerPound String? @map("reimbursement_per_pound")
26
+ stressedApr String? @map("stressed_apr")
27
+ stressedRate String? @map("stressed_rate")
28
+ stressedRepayment String? @map("stressed_repayment")
29
+ liborFloorRate String? @map("libor_floor_rate")
30
+ totalTermInMonths String? @map("total_term_in_months")
31
+ chargeType String @default("") @map("charge_type")
32
+ productCategory String @default("") @map("product_category")
33
+ ercCode String @default("") @map("erc_code")
34
+ variableTerm String? @map("variable_term")
35
+ totalFeePayable String? @map("total_fee_payable")
36
+ dipIssueDate String? @map("dip_issue_date")
37
+ estimatedCompletionDate String? @map("estimated_completion_date")
38
+ dipExpiryDate String? @map("dip_expiry_date")
39
+ fixedRepaymentUntillDate String? @map("fixed_repayment_untill_date")
40
+ rentalReviewDate String? @map("rental_review_date")
41
+ totalReimbursementWithFee String? @map("total_reimbursement_with_fee")
42
+ finalRentPayment String? @map("final_rent_payment")
43
+ clientDeposit String? @map("client_deposit")
44
+ firstRentPayment String? @map("first_rent_payment")
45
+ ercFeatures Json? @map("erc_features")
46
+ icr String? @map("icr")
47
+ ufssProductCode String? @map("ufss_product_code")
48
+ ufssInterestRateCode String? @map("ufss_interest_rate_code")
49
+ stressedPayment String? @map("stressed_payment")
50
+ stressedPaymentRate String? @map("stressed_payment_rate")
51
+ createdAt DateTime @default(now()) @map("created_at")
52
+ updatedAt DateTime @updatedAt @map("updated_at")
53
+
54
+ // Relationships
55
+ application Application @relation("ApplicationProductFeature", fields: [applicationId], references: [id])
52
56
 
53
57
  @@map("product_features")
54
58
  }
@@ -1,8 +1,8 @@
1
- /*
2
- Warnings:
3
-
4
- - A unique constraint covering the columns `[commitment_id]` on the table `applicant_creditcard_commitments` will be added. If there are existing duplicate values, this will fail.
5
-
6
- */
7
- -- CreateIndex
8
- CREATE UNIQUE INDEX "applicant_creditcard_commitments_commitment_id_key" ON "applicant_creditcard_commitments"("commitment_id");
1
+ /*
2
+ Warnings:
3
+
4
+ - A unique constraint covering the columns `[commitment_id]` on the table `applicant_creditcard_commitments` will be added. If there are existing duplicate values, this will fail.
5
+
6
+ */
7
+ -- CreateIndex
8
+ CREATE UNIQUE INDEX "applicant_creditcard_commitments_commitment_id_key" ON "applicant_creditcard_commitments"("commitment_id");
@@ -0,0 +1,15 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - A unique constraint covering the columns `[application_id]` on the table `product_features` will be added. If there are existing duplicate values, this will fail.
5
+ - Added the required column `application_id` to the `product_features` table without a default value. This is not possible if the table is not empty.
6
+
7
+ */
8
+ -- AlterTable
9
+ ALTER TABLE "product_features" ADD COLUMN "application_id" TEXT NOT NULL;
10
+
11
+ -- CreateIndex
12
+ CREATE UNIQUE INDEX "product_features_application_id_key" ON "product_features"("application_id");
13
+
14
+ -- AddForeignKey
15
+ ALTER TABLE "product_features" ADD CONSTRAINT "product_features_application_id_fkey" FOREIGN KEY ("application_id") REFERENCES "applications"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
@@ -1554,24 +1554,25 @@ model Application {
1554
1554
  applicantIds String[] @map("applicant_ids")
1555
1555
  propertyIds String[] @map("property_ids")
1556
1556
  createdAt DateTime @default(now()) @map("created_at")
1557
- updatedAt DateTime @updatedAt @default(now()) @map("updated_at")
1557
+ updatedAt DateTime @default(now()) @updatedAt @map("updated_at")
1558
1558
 
1559
1559
  // Relations
1560
- broker Broker? @relation("ApplicationBroker", fields: [brokerId], references: [id])
1561
- security Security? @relation("ApplicationSecurity")
1562
- solicitor Solicitor? @relation("ApplicationSolicitor")
1563
- product Product? @relation("ApplicationProduct", fields: [productId], references: [id])
1564
- directDebit ApplicationDirectDebit? @relation("ApplicationDirectDebit")
1565
- creditProfile ApplicationCreditProfile? @relation("ApplicationCreditProfile")
1566
- mortgage ApplicationMortgage? @relation("ApplicationMortgage")
1567
- company ApplicationCompany? @relation("ApplicationCompany")
1568
- rationale ApplicationRationale? @relation("ApplicationRationale")
1569
- applicants Applicant[] @relation("ApplicationApplicants")
1570
- properties Property[] @relation("ApplicationProperties")
1571
- documents ApplicationDocument[]
1572
- notes ApplicationNote[]
1573
- audits ApplicationAudit[]
1574
- products ApplicationProduct[] @relation("ApplicationProducts")
1560
+ broker Broker? @relation("ApplicationBroker", fields: [brokerId], references: [id])
1561
+ security Security? @relation("ApplicationSecurity")
1562
+ solicitor Solicitor? @relation("ApplicationSolicitor")
1563
+ product Product? @relation("ApplicationProduct", fields: [productId], references: [id])
1564
+ directDebit ApplicationDirectDebit? @relation("ApplicationDirectDebit")
1565
+ creditProfile ApplicationCreditProfile? @relation("ApplicationCreditProfile")
1566
+ mortgage ApplicationMortgage? @relation("ApplicationMortgage")
1567
+ company ApplicationCompany? @relation("ApplicationCompany")
1568
+ rationale ApplicationRationale? @relation("ApplicationRationale")
1569
+ productFeatures ProductFeatures? @relation("ApplicationProductFeature")
1570
+ applicants Applicant[] @relation("ApplicationApplicants")
1571
+ properties Property[] @relation("ApplicationProperties")
1572
+ documents ApplicationDocument[]
1573
+ notes ApplicationNote[]
1574
+ audits ApplicationAudit[]
1575
+ products ApplicationProduct[] @relation("ApplicationProducts")
1575
1576
 
1576
1577
  // Lookup relations
1577
1578
  applicationType Lookup @relation("ApplicationType", fields: [applicationTypeLid], references: [id])
@@ -1669,56 +1670,60 @@ model ChecklistItem {
1669
1670
 
1670
1671
  // From prisma/applications/product-features.prisma
1671
1672
  model ProductFeatures {
1672
- id String @id @default(uuid())
1673
- name String @map("name")
1674
- clientAdvance String @map("client_advance")
1675
- ltv String @map("ltv")
1676
- repayment String @map("repayment")
1677
- variableRepayment String @map("variable_repayment")
1678
- reversionRateWithoutBaseRate String? @map("reversion_rate_without_base_rate")
1679
- totalReversionRate String? @map("total_reversion_rate")
1680
- initialRate String @map("initial_rate")
1681
- fixedTerm String @map("fixed_term")
1682
- fixedTermEndDate String? @map("fixed_term_end_date")
1683
- baseRate String? @map("base_rate")
1684
- productRate String? @map("product_rate")
1685
- apr String? @map("apr")
1686
- rentalCoverage String? @map("rental_coverage")
1687
- repaymentType String? @map("repayment_type")
1688
- applicationCategory String? @map("application_category")
1689
- securityType String? @map("security_type")
1690
- erc String? @map("erc")
1691
- loanType String? @map("loan_type")
1692
- maxLtvLimit String? @map("max_ltv_limit")
1693
- reimbursement String? @map("reimbursement")
1694
- reimbursementPerPound String? @map("reimbursement_per_pound")
1695
- stressedApr String? @map("stressed_apr")
1696
- stressedRate String? @map("stressed_rate")
1697
- stressedRepayment String? @map("stressed_repayment")
1698
- liborFloorRate String? @map("libor_floor_rate")
1699
- totalTermInMonths String? @map("total_term_in_months")
1700
- chargeType String @default("") @map("charge_type")
1701
- productCategory String @default("") @map("product_category")
1702
- ercCode String @default("") @map("erc_code")
1703
- variableTerm String? @map("variable_term")
1704
- totalFeePayable String? @map("total_fee_payable")
1705
- dipIssueDate String? @map("dip_issue_date")
1706
- estimatedCompletionDate String? @map("estimated_completion_date")
1707
- dipExpiryDate String? @map("dip_expiry_date")
1708
- fixedRepaymentUntillDate String? @map("fixed_repayment_untill_date")
1709
- rentalReviewDate String? @map("rental_review_date")
1710
- totalReimbursementWithFee String? @map("total_reimbursement_with_fee")
1711
- finalRentPayment String? @map("final_rent_payment")
1712
- clientDeposit String? @map("client_deposit")
1713
- firstRentPayment String? @map("first_rent_payment")
1714
- ercFeatures Json? @map("erc_features")
1715
- icr String? @map("icr")
1716
- ufssProductCode String? @map("ufss_product_code")
1717
- ufssInterestRateCode String? @map("ufss_interest_rate_code")
1718
- stressedPayment String? @map("stressed_payment")
1719
- stressedPaymentRate String? @map("stressed_payment_rate")
1720
- createdAt DateTime @default(now()) @map("created_at")
1721
- updatedAt DateTime @updatedAt @map("updated_at")
1673
+ id String @id @default(uuid())
1674
+ applicationId String @unique @map("application_id")
1675
+ name String @map("name")
1676
+ clientAdvance String @map("client_advance")
1677
+ ltv String @map("ltv")
1678
+ repayment String @map("repayment")
1679
+ variableRepayment String @map("variable_repayment")
1680
+ reversionRateWithoutBaseRate String? @map("reversion_rate_without_base_rate")
1681
+ totalReversionRate String? @map("total_reversion_rate")
1682
+ initialRate String @map("initial_rate")
1683
+ fixedTerm String @map("fixed_term")
1684
+ fixedTermEndDate String? @map("fixed_term_end_date")
1685
+ baseRate String? @map("base_rate")
1686
+ productRate String? @map("product_rate")
1687
+ apr String? @map("apr")
1688
+ rentalCoverage String? @map("rental_coverage")
1689
+ repaymentType String? @map("repayment_type")
1690
+ applicationCategory String? @map("application_category")
1691
+ securityType String? @map("security_type")
1692
+ erc String? @map("erc")
1693
+ loanType String? @map("loan_type")
1694
+ maxLtvLimit String? @map("max_ltv_limit")
1695
+ reimbursement String? @map("reimbursement")
1696
+ reimbursementPerPound String? @map("reimbursement_per_pound")
1697
+ stressedApr String? @map("stressed_apr")
1698
+ stressedRate String? @map("stressed_rate")
1699
+ stressedRepayment String? @map("stressed_repayment")
1700
+ liborFloorRate String? @map("libor_floor_rate")
1701
+ totalTermInMonths String? @map("total_term_in_months")
1702
+ chargeType String @default("") @map("charge_type")
1703
+ productCategory String @default("") @map("product_category")
1704
+ ercCode String @default("") @map("erc_code")
1705
+ variableTerm String? @map("variable_term")
1706
+ totalFeePayable String? @map("total_fee_payable")
1707
+ dipIssueDate String? @map("dip_issue_date")
1708
+ estimatedCompletionDate String? @map("estimated_completion_date")
1709
+ dipExpiryDate String? @map("dip_expiry_date")
1710
+ fixedRepaymentUntillDate String? @map("fixed_repayment_untill_date")
1711
+ rentalReviewDate String? @map("rental_review_date")
1712
+ totalReimbursementWithFee String? @map("total_reimbursement_with_fee")
1713
+ finalRentPayment String? @map("final_rent_payment")
1714
+ clientDeposit String? @map("client_deposit")
1715
+ firstRentPayment String? @map("first_rent_payment")
1716
+ ercFeatures Json? @map("erc_features")
1717
+ icr String? @map("icr")
1718
+ ufssProductCode String? @map("ufss_product_code")
1719
+ ufssInterestRateCode String? @map("ufss_interest_rate_code")
1720
+ stressedPayment String? @map("stressed_payment")
1721
+ stressedPaymentRate String? @map("stressed_payment_rate")
1722
+ createdAt DateTime @default(now()) @map("created_at")
1723
+ updatedAt DateTime @updatedAt @map("updated_at")
1724
+
1725
+ // Relationships
1726
+ application Application @relation("ApplicationProductFeature", fields: [applicationId], references: [id])
1722
1727
 
1723
1728
  @@map("product_features")
1724
1729
  }