@dynamatix/gb-schemas 2.0.35 → 2.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/applications/application-mortgage.entity.d.ts +1 -1
- package/dist/entities/applications/application-mortgage.entity.d.ts.map +1 -1
- package/entities/applications/application-mortgage.entity.ts +1 -1
- package/package.json +1 -1
- package/prisma/applications/application-mortgage.prisma +2 -2
- package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +15 -15
- package/prisma/migrations/20250512094011_update_property_schema/migration.sql +34 -34
- package/prisma/migrations/20250512102019_update_mortgage_schema/migration.sql +2 -0
- package/prisma/schema.prisma +2 -2
|
@@ -13,7 +13,7 @@ export declare class ApplicationMortgageEntity {
|
|
|
13
13
|
repaymentTypeLid: string;
|
|
14
14
|
exitStrategyLid: string;
|
|
15
15
|
isCapitalRaise?: boolean;
|
|
16
|
-
purchaseDate:
|
|
16
|
+
purchaseDate: string;
|
|
17
17
|
estimatedValue: number;
|
|
18
18
|
loanRequired: number;
|
|
19
19
|
monthlyRentalIncome: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-mortgage.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/application-mortgage.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,qBAAa,yBAAyB;IAClC,EAAE,EAAG,MAAM,CAAC;IACZ,aAAa,EAAG,MAAM,CAAC;IACvB,aAAa,EAAG,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iBAAiB,EAAG,MAAM,CAAC;IAC3B,mBAAmB,EAAG,MAAM,EAAE,CAAC;IAC/B,cAAc,EAAG,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAG,MAAM,CAAC;IACvB,gBAAgB,EAAG,MAAM,CAAC;IAC1B,eAAe,EAAG,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,EAAG,
|
|
1
|
+
{"version":3,"file":"application-mortgage.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/application-mortgage.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,qBAAa,yBAAyB;IAClC,EAAE,EAAG,MAAM,CAAC;IACZ,aAAa,EAAG,MAAM,CAAC;IACvB,aAAa,EAAG,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iBAAiB,EAAG,MAAM,CAAC;IAC3B,mBAAmB,EAAG,MAAM,EAAE,CAAC;IAC/B,cAAc,EAAG,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAG,MAAM,CAAC;IACvB,gBAAgB,EAAG,MAAM,CAAC;IAC1B,eAAe,EAAG,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,EAAG,MAAM,CAAC;IACtB,cAAc,EAAG,MAAM,CAAC;IACxB,YAAY,EAAG,MAAM,CAAC;IACtB,mBAAmB,EAAG,MAAM,CAAC;IAC7B,kBAAkB,EAAG,MAAM,CAAC;IAC5B,aAAa,EAAG,MAAM,CAAC;IACvB,gBAAgB,EAAG,MAAM,CAAC;IAC1B,mBAAmB,EAAG,MAAM,CAAC;IAC7B,wBAAwB,EAAG,MAAM,CAAC;IAClC,eAAe,EAAG,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,WAAW,EAAG,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,YAAY,EAAG,MAAM,CAAC;IACtB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;IACjC,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;gBAErB,OAAO,EAAE,OAAO,CAAC,yBAAyB,CAAC;IAKvD,IAAI,oBAAoB,IAAI,MAAM,EAAE,GAAG,IAAI,CAE1C;IAED,IAAI,iBAAiB,IAAI,MAAM,GAAG,IAAI,CAErC;IAED,IAAI,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAEpC;IAED,IAAI,iBAAiB,IAAI,MAAM,GAAG,IAAI,CAErC;IAED,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAEhC;IAED,IAAI,oBAAoB,IAAI,MAAM,EAAE,GAAG,IAAI,CAE1C;IAED,IAAI,aAAa,IAAI,MAAM,GAAG,IAAI,CAEjC;CACJ"}
|
|
@@ -14,7 +14,7 @@ export class ApplicationMortgageEntity {
|
|
|
14
14
|
repaymentTypeLid!: string;
|
|
15
15
|
exitStrategyLid!: string;
|
|
16
16
|
isCapitalRaise?: boolean;
|
|
17
|
-
purchaseDate!:
|
|
17
|
+
purchaseDate!: string;
|
|
18
18
|
estimatedValue!: number;
|
|
19
19
|
loanRequired!: number;
|
|
20
20
|
monthlyRentalIncome!: number;
|
package/package.json
CHANGED
|
@@ -6,12 +6,12 @@ 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?
|
|
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")
|
|
13
13
|
isCapitalRaise Boolean? @default(false) @map("is_capital_raise")
|
|
14
|
-
purchaseDate
|
|
14
|
+
purchaseDate String @map("purchase_date")
|
|
15
15
|
estimatedValue Decimal @map("estimated_value") @db.Decimal(10, 2)
|
|
16
16
|
loanRequired Decimal @map("loan_required") @db.Decimal(10, 2)
|
|
17
17
|
monthlyRentalIncome Decimal @map("monthly_rental_income") @db.Decimal(10, 2)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- Added the required column `gift_details` to the `application_mortgages` table without a default value. This is not possible if the table is not empty.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "application_mortgages" ADD COLUMN "gift_details" VARCHAR(50) NOT NULL,
|
|
9
|
-
ALTER COLUMN "is_capital_raise" DROP NOT NULL,
|
|
10
|
-
ALTER COLUMN "is_distressed_sale" DROP NOT NULL,
|
|
11
|
-
ALTER COLUMN "is_purchased_below_market_value" DROP NOT NULL,
|
|
12
|
-
ALTER COLUMN "is_purchased_as_sale" DROP NOT NULL,
|
|
13
|
-
ALTER COLUMN "is_ready_to_sell" DROP NOT NULL,
|
|
14
|
-
ALTER COLUMN "is_government_initiative" DROP NOT NULL,
|
|
15
|
-
ALTER COLUMN "is_the_intention_to_let" DROP NOT NULL;
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Added the required column `gift_details` to the `application_mortgages` table without a default value. This is not possible if the table is not empty.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "application_mortgages" ADD COLUMN "gift_details" VARCHAR(50) NOT NULL,
|
|
9
|
+
ALTER COLUMN "is_capital_raise" DROP NOT NULL,
|
|
10
|
+
ALTER COLUMN "is_distressed_sale" DROP NOT NULL,
|
|
11
|
+
ALTER COLUMN "is_purchased_below_market_value" DROP NOT NULL,
|
|
12
|
+
ALTER COLUMN "is_purchased_as_sale" DROP NOT NULL,
|
|
13
|
+
ALTER COLUMN "is_ready_to_sell" DROP NOT NULL,
|
|
14
|
+
ALTER COLUMN "is_government_initiative" DROP NOT NULL,
|
|
15
|
+
ALTER COLUMN "is_the_intention_to_let" DROP NOT NULL;
|
|
@@ -1,34 +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);
|
|
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);
|
package/prisma/schema.prisma
CHANGED
|
@@ -1225,12 +1225,12 @@ 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?
|
|
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")
|
|
1232
1232
|
isCapitalRaise Boolean? @default(false) @map("is_capital_raise")
|
|
1233
|
-
purchaseDate
|
|
1233
|
+
purchaseDate String @map("purchase_date")
|
|
1234
1234
|
estimatedValue Decimal @map("estimated_value") @db.Decimal(10, 2)
|
|
1235
1235
|
loanRequired Decimal @map("loan_required") @db.Decimal(10, 2)
|
|
1236
1236
|
monthlyRentalIncome Decimal @map("monthly_rental_income") @db.Decimal(10, 2)
|