🗃️ Upgrade prisma, split schema and add user role (#1722)

This commit is contained in:
Luke Vella 2025-05-22 10:45:34 +01:00 committed by GitHub
parent cdf311fa27
commit 982fc39ac7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 461 additions and 457 deletions

View file

@ -0,0 +1,5 @@
-- CreateEnum
CREATE TYPE "user_role" AS ENUM ('admin', 'user');
-- AlterTable
ALTER TABLE "users" ADD COLUMN "role" "user_role" NOT NULL DEFAULT 'user';

View file

@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "postgresql"
provider = "postgresql"