@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.
- package/dist/entities/users/role-group.entity.d.ts +1 -1
- package/entities/users/role-group.entity.ts +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20250514062536_update_role_group_schema/migration.sql +12 -0
- package/prisma/schema.prisma +1 -1
- package/prisma/users/role-group.prisma +1 -1
package/package.json
CHANGED
|
@@ -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");
|
package/prisma/schema.prisma
CHANGED
|
@@ -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
|
|
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")
|