@dynamatix/gb-schemas 2.0.49 → 2.0.50
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/underwriter/underwriter.entity.d.ts +1 -1
- package/entities/underwriter/underwriter.entity.ts +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20250515133236_update_underwriter_schema/migration.sql +12 -0
- package/prisma/schema.prisma +2 -2
- package/prisma/underwriter/underwriter.prisma +2 -2
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Changed the type of `underwriter_id` on the `underwriters` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "underwriters" DROP COLUMN "underwriter_id",
|
|
9
|
+
ADD COLUMN "underwriter_id" INTEGER NOT NULL;
|
|
10
|
+
|
|
11
|
+
-- CreateIndex
|
|
12
|
+
CREATE UNIQUE INDEX "underwriters_underwriter_id_key" ON "underwriters"("underwriter_id");
|
package/prisma/schema.prisma
CHANGED
|
@@ -1860,7 +1860,7 @@ model Underwriter {
|
|
|
1860
1860
|
id String @id @default(uuid())
|
|
1861
1861
|
fullName String @map("full_name")
|
|
1862
1862
|
mandateLevel Int @map("mandate_level")
|
|
1863
|
-
underwriterId
|
|
1863
|
+
underwriterId Int @unique @map("underwriter_id")
|
|
1864
1864
|
totalBTLCaseCount Int @map("total_btl_case_count")
|
|
1865
1865
|
btlPreOfferCaseCount Int @map("btl_pre_offer_case_count")
|
|
1866
1866
|
btlPostOfferCaseCount Int @map("btl_post_offer_case_count")
|
|
@@ -1870,7 +1870,7 @@ model Underwriter {
|
|
|
1870
1870
|
bridgingMandateLevel Int @map("bridging_mandate_level")
|
|
1871
1871
|
createdAt DateTime @default(now()) @map("created_at")
|
|
1872
1872
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1873
|
-
userId String?
|
|
1873
|
+
userId String? @map("user_id")
|
|
1874
1874
|
user User? @relation("UserUnderwriters", fields: [userId], references: [id])
|
|
1875
1875
|
|
|
1876
1876
|
@@map("underwriters")
|
|
@@ -2,7 +2,7 @@ model Underwriter {
|
|
|
2
2
|
id String @id @default(uuid())
|
|
3
3
|
fullName String @map("full_name")
|
|
4
4
|
mandateLevel Int @map("mandate_level")
|
|
5
|
-
underwriterId
|
|
5
|
+
underwriterId Int @unique @map("underwriter_id")
|
|
6
6
|
totalBTLCaseCount Int @map("total_btl_case_count")
|
|
7
7
|
btlPreOfferCaseCount Int @map("btl_pre_offer_case_count")
|
|
8
8
|
btlPostOfferCaseCount Int @map("btl_post_offer_case_count")
|
|
@@ -12,7 +12,7 @@ model Underwriter {
|
|
|
12
12
|
bridgingMandateLevel Int @map("bridging_mandate_level")
|
|
13
13
|
createdAt DateTime @default(now()) @map("created_at")
|
|
14
14
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
15
|
-
userId String?
|
|
15
|
+
userId String? @map("user_id")
|
|
16
16
|
user User? @relation("UserUnderwriters", fields: [userId], references: [id])
|
|
17
17
|
|
|
18
18
|
@@map("underwriters")
|