User role access.

This commit is contained in:
charles-gauthereau
2024-11-23 16:05:00 +01:00
parent 9b38d68d51
commit e3fe6d1c80
10 changed files with 144 additions and 56 deletions
@@ -0,0 +1,12 @@
/*
Warnings:
- Added the required column `role` to the `users` table without a default value. This is not possible if the table is not empty.
*/
-- CreateEnum
CREATE TYPE "Role" AS ENUM ('pending', 'user', 'admin');
-- AlterTable
ALTER TABLE "users" DROP COLUMN "role",
ADD COLUMN "role" "Role" NOT NULL;