@dynamatix/gb-schemas 2.0.41 → 2.0.42

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,7 +1,7 @@
1
1
  import { RoleEntity } from './role.entity';
2
2
  export declare class RoleGroupEntity {
3
3
  id: string;
4
- groupId: string;
4
+ groupId: number;
5
5
  name: string;
6
6
  description?: string;
7
7
  createdAt: Date;
@@ -2,7 +2,7 @@ import { RoleEntity } from './role.entity';
2
2
 
3
3
  export class RoleGroupEntity {
4
4
  id!: string;
5
- groupId!: string;
5
+ groupId!: number;
6
6
  name!: string;
7
7
  description?: string;
8
8
  createdAt!: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.0.41",
3
+ "version": "2.0.42",
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 `group_id` on the `role_groups` 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 "role_groups" DROP COLUMN "group_id",
9
+ ADD COLUMN "group_id" INTEGER NOT NULL;
10
+
11
+ -- CreateIndex
12
+ CREATE UNIQUE INDEX "role_groups_group_id_key" ON "role_groups"("group_id");
@@ -315,7 +315,7 @@ model Permission {
315
315
  // From prisma/users/role-group.prisma
316
316
  model RoleGroup {
317
317
  id String @id @default(uuid())
318
- groupId String @unique @map("group_id")
318
+ groupId Int @unique @map("group_id")
319
319
  name String @map("name")
320
320
  description String? @map("description")
321
321
  createdAt DateTime @default(now()) @map("created_at")
@@ -1,6 +1,6 @@
1
1
  model RoleGroup {
2
2
  id String @id @default(uuid())
3
- groupId String @unique @map("group_id")
3
+ groupId Int @unique @map("group_id")
4
4
  name String @map("name")
5
5
  description String? @map("description")
6
6
  createdAt DateTime @default(now()) @map("created_at")