@dynamatix/gb-schemas 2.0.32 → 2.0.34

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.
@@ -9,7 +9,7 @@ export class ApplicationMortgageEntity {
9
9
  purposeOfMortgage!: string;
10
10
  depositComeFromLids!: string[];
11
11
  ifOtherDetails!: string;
12
- giftDetails!: string;
12
+ giftDetails?: string;
13
13
  purchasePrice!: number;
14
14
  repaymentTypeLid!: string;
15
15
  exitStrategyLid!: string;
@@ -1,27 +1,26 @@
1
1
  import { ApplicationEntity } from "../applications/application.entity";
2
2
  import { LookupEntity } from "../shared/lookup.entity";
3
3
 
4
-
5
4
  export class PropertyEntity {
6
5
  id!: string;
7
6
  applicationId!: string;
8
7
  pageValidFlag!: boolean;
9
8
  propertyId!: string;
10
- addressLine1!: string;
9
+ postCode!: string;
10
+ addressLine1?: string;
11
11
  addressLine2?: string;
12
12
  addressLine3?: string;
13
- associatedLoanPartiesIds!: string[];
14
13
  city?: string;
15
14
  countryLid!: string;
16
- lender!: string;
17
15
  marketValue!: number;
18
- monthlyRent!: number;
16
+ lender!: string;
17
+ remainingTerm!: number;
19
18
  monthlyRepayment!: number;
19
+ monthlyRent!: number;
20
20
  originalLoanBalance!: number;
21
21
  outstandingBalance!: number;
22
+ associatedLoanPartiesIds!: string[];
22
23
  otherOwnershipParties?: string;
23
- postCode!: string;
24
- remainingTerm!: number;
25
24
  portfolioFile?: string;
26
25
  createdAt!: Date;
27
26
  updatedAt!: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.0.32",
3
+ "version": "2.0.34",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,7 +6,7 @@ model ApplicationMortgage {
6
6
  purposeOfMortgage String @map("purpose_of_mortgage") @db.VarChar(50)
7
7
  depositComeFromLids String[] @map("deposit_come_from_lids")
8
8
  ifOtherDetails String @map("if_other_details") @db.VarChar(50)
9
- giftDetails String @map("gift_details") @db.VarChar(50)
9
+ giftDetails String? @map("gift_details") @db.VarChar(50)
10
10
  purchasePrice Decimal @map("purchase_price") @db.Decimal(10, 2)
11
11
  repaymentTypeLid String @map("repayment_type_lid")
12
12
  exitStrategyLid String @map("exit_strategy_lid")
@@ -0,0 +1,34 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to alter the column `address_line1` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
5
+ - You are about to alter the column `address_line2` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
6
+ - You are about to alter the column `address_line3` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
7
+ - You are about to alter the column `city` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(30)`.
8
+ - You are about to alter the column `lender` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
9
+ - You are about to alter the column `market_value` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(12,2)`.
10
+ - You are about to alter the column `monthly_rent` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(12,2)`.
11
+ - You are about to alter the column `monthly_repayment` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(12,2)`.
12
+ - You are about to alter the column `original_loan_balance` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(12,2)`.
13
+ - You are about to alter the column `outstanding_balance` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(12,2)`.
14
+ - You are about to alter the column `other_ownership_parties` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(500)`.
15
+ - You are about to alter the column `post_code` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
16
+
17
+ */
18
+ -- AlterTable
19
+ ALTER TABLE "application_mortgages" ALTER COLUMN "gift_details" DROP NOT NULL;
20
+
21
+ -- AlterTable
22
+ ALTER TABLE "properties" ALTER COLUMN "address_line1" DROP NOT NULL,
23
+ ALTER COLUMN "address_line1" SET DATA TYPE VARCHAR(35),
24
+ ALTER COLUMN "address_line2" SET DATA TYPE VARCHAR(35),
25
+ ALTER COLUMN "address_line3" SET DATA TYPE VARCHAR(35),
26
+ ALTER COLUMN "city" SET DATA TYPE VARCHAR(30),
27
+ ALTER COLUMN "lender" SET DATA TYPE VARCHAR(35),
28
+ ALTER COLUMN "market_value" SET DATA TYPE DECIMAL(12,2),
29
+ ALTER COLUMN "monthly_rent" SET DATA TYPE DECIMAL(12,2),
30
+ ALTER COLUMN "monthly_repayment" SET DATA TYPE DECIMAL(12,2),
31
+ ALTER COLUMN "original_loan_balance" SET DATA TYPE DECIMAL(12,2),
32
+ ALTER COLUMN "outstanding_balance" SET DATA TYPE DECIMAL(12,2),
33
+ ALTER COLUMN "other_ownership_parties" SET DATA TYPE VARCHAR(500),
34
+ ALTER COLUMN "post_code" SET DATA TYPE VARCHAR(50);
@@ -3,21 +3,21 @@ model Property {
3
3
  applicationId String @map("application_id")
4
4
  pageValidFlag Boolean @default(true) @map("page_valid_flag")
5
5
  propertyId String @unique @map("property_id")
6
- addressLine1 String @map("address_line1")
7
- addressLine2 String? @map("address_line2")
8
- addressLine3 String? @map("address_line3")
9
- associatedLoanPartiesIds String[] @map("associated_loan_parties_ids")
10
- city String? @map("city")
6
+ postCode String @map("post_code") @db.VarChar(50)
7
+ addressLine1 String? @map("address_line1") @db.VarChar(35)
8
+ addressLine2 String? @map("address_line2") @db.VarChar(35)
9
+ addressLine3 String? @map("address_line3") @db.VarChar(35)
10
+ city String? @map("city") @db.VarChar(30)
11
11
  countryLid String @map("country_lid")
12
- lender String @map("lender")
13
- marketValue Decimal @default(0.00) @map("market_value")
14
- monthlyRent Decimal @default(0.00) @map("monthly_rent")
15
- monthlyRepayment Decimal @default(0.00) @map("monthly_repayment")
16
- originalLoanBalance Decimal @default(0.00) @map("original_loan_balance")
17
- outstandingBalance Decimal @default(0.00) @map("outstanding_balance")
18
- otherOwnershipParties String? @map("other_ownership_parties")
19
- postCode String @map("post_code")
12
+ marketValue Decimal @default(0.00) @map("market_value") @db.Decimal(12, 2)
13
+ lender String @map("lender") @db.VarChar(35)
20
14
  remainingTerm Int @map("remaining_term")
15
+ monthlyRepayment Decimal @default(0.00) @map("monthly_repayment") @db.Decimal(12, 2)
16
+ monthlyRent Decimal @default(0.00) @map("monthly_rent") @db.Decimal(12, 2)
17
+ originalLoanBalance Decimal @default(0.00) @map("original_loan_balance") @db.Decimal(12, 2)
18
+ outstandingBalance Decimal @default(0.00) @map("outstanding_balance") @db.Decimal(12, 2)
19
+ associatedLoanPartiesIds String[] @map("associated_loan_parties_ids")
20
+ otherOwnershipParties String? @map("other_ownership_parties") @db.VarChar(500)
21
21
  portfolioFile String? @map("portfolio_file")
22
22
  createdAt DateTime @default(now()) @map("created_at")
23
23
  updatedAt DateTime @updatedAt @map("updated_at")
@@ -27,4 +27,4 @@ model Property {
27
27
  country Lookup @relation("PropertyCountry", fields: [countryLid], references: [id])
28
28
 
29
29
  @@map("properties")
30
- }
30
+ }
@@ -1225,7 +1225,7 @@ model ApplicationMortgage {
1225
1225
  purposeOfMortgage String @map("purpose_of_mortgage") @db.VarChar(50)
1226
1226
  depositComeFromLids String[] @map("deposit_come_from_lids")
1227
1227
  ifOtherDetails String @map("if_other_details") @db.VarChar(50)
1228
- giftDetails String @map("gift_details") @db.VarChar(50)
1228
+ giftDetails String? @map("gift_details") @db.VarChar(50)
1229
1229
  purchasePrice Decimal @map("purchase_price") @db.Decimal(10, 2)
1230
1230
  repaymentTypeLid String @map("repayment_type_lid")
1231
1231
  exitStrategyLid String @map("exit_strategy_lid")
@@ -1762,21 +1762,21 @@ model Property {
1762
1762
  applicationId String @map("application_id")
1763
1763
  pageValidFlag Boolean @default(true) @map("page_valid_flag")
1764
1764
  propertyId String @unique @map("property_id")
1765
- addressLine1 String @map("address_line1")
1766
- addressLine2 String? @map("address_line2")
1767
- addressLine3 String? @map("address_line3")
1768
- associatedLoanPartiesIds String[] @map("associated_loan_parties_ids")
1769
- city String? @map("city")
1765
+ postCode String @map("post_code") @db.VarChar(50)
1766
+ addressLine1 String? @map("address_line1") @db.VarChar(35)
1767
+ addressLine2 String? @map("address_line2") @db.VarChar(35)
1768
+ addressLine3 String? @map("address_line3") @db.VarChar(35)
1769
+ city String? @map("city") @db.VarChar(30)
1770
1770
  countryLid String @map("country_lid")
1771
- lender String @map("lender")
1772
- marketValue Decimal @default(0.00) @map("market_value")
1773
- monthlyRent Decimal @default(0.00) @map("monthly_rent")
1774
- monthlyRepayment Decimal @default(0.00) @map("monthly_repayment")
1775
- originalLoanBalance Decimal @default(0.00) @map("original_loan_balance")
1776
- outstandingBalance Decimal @default(0.00) @map("outstanding_balance")
1777
- otherOwnershipParties String? @map("other_ownership_parties")
1778
- postCode String @map("post_code")
1771
+ marketValue Decimal @default(0.00) @map("market_value") @db.Decimal(12, 2)
1772
+ lender String @map("lender") @db.VarChar(35)
1779
1773
  remainingTerm Int @map("remaining_term")
1774
+ monthlyRepayment Decimal @default(0.00) @map("monthly_repayment") @db.Decimal(12, 2)
1775
+ monthlyRent Decimal @default(0.00) @map("monthly_rent") @db.Decimal(12, 2)
1776
+ originalLoanBalance Decimal @default(0.00) @map("original_loan_balance") @db.Decimal(12, 2)
1777
+ outstandingBalance Decimal @default(0.00) @map("outstanding_balance") @db.Decimal(12, 2)
1778
+ associatedLoanPartiesIds String[] @map("associated_loan_parties_ids")
1779
+ otherOwnershipParties String? @map("other_ownership_parties") @db.VarChar(500)
1780
1780
  portfolioFile String? @map("portfolio_file")
1781
1781
  createdAt DateTime @default(now()) @map("created_at")
1782
1782
  updatedAt DateTime @updatedAt @map("updated_at")