Merge branch 'dev' into feature/list-your-product-ui

This commit is contained in:
MTG2000
2022-09-18 15:55:12 +03:00
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
/*
Warnings:
- You are about to drop the column `level` on the `ProjectMember` table. All the data in the column will be lost.
- Added the required column `role` to the `ProjectMember` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "ProjectMember" DROP COLUMN "level",
ADD COLUMN "role" TEXT NOT NULL;

View File

@@ -180,7 +180,7 @@ model ProjectMember {
user User @relation(fields: [userId], references: [id])
userId Int
level String // Admin | Maker | (new_roles_later)
role String // Admin | Maker | (new_roles_later)
@@id([projectId, userId])
}