@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.
@@ -2,7 +2,7 @@ export declare class UnderwriterEntity {
2
2
  id: string;
3
3
  fullName: string;
4
4
  mandateLevel: number;
5
- underwriterId: string;
5
+ underwriterId: number;
6
6
  totalBTLCaseCount: number;
7
7
  btlPreOfferCaseCount: number;
8
8
  btlPostOfferCaseCount: number;
@@ -2,7 +2,7 @@ export class UnderwriterEntity {
2
2
  id!: string;
3
3
  fullName!: string;
4
4
  mandateLevel!: number;
5
- underwriterId!: string;
5
+ underwriterId!: number;
6
6
  totalBTLCaseCount!: number;
7
7
  btlPreOfferCaseCount!: number;
8
8
  btlPostOfferCaseCount!: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.0.49",
3
+ "version": "2.0.50",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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");
@@ -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 String @unique @map("underwriter_id")
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? @map("user_id")
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 String @unique @map("underwriter_id")
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? @map("user_id")
15
+ userId String? @map("user_id")
16
16
  user User? @relation("UserUnderwriters", fields: [userId], references: [id])
17
17
 
18
18
  @@map("underwriters")