/*
  Warnings:

  - You are about to drop the column `userRoleId` on the `User` table. All the data in the column will be lost.
  - You are about to drop the `UserRole` table. If the table is not empty, all the data it contains will be lost.

*/
-- CreateEnum
CREATE TYPE "EnumRole" AS ENUM ('ADMIN', 'MEMBER', 'ACCOUNTANT', 'LOAN_COMMITTEE', 'AUDITOR');

-- DropForeignKey
ALTER TABLE "User" DROP CONSTRAINT "User_userRoleId_fkey";

-- AlterTable
ALTER TABLE "User" DROP COLUMN "userRoleId",
ADD COLUMN     "role" "EnumRole" NOT NULL DEFAULT 'MEMBER';

-- DropTable
DROP TABLE "UserRole";
