feat: auto gen user code

This commit is contained in:
Methapon2001 2024-04-09 13:05:49 +07:00
parent 3abff0594a
commit 3f0ed2c8d6
4 changed files with 113 additions and 32 deletions

View file

@ -0,0 +1,5 @@
-- CreateEnum
CREATE TYPE "UserType" AS ENUM ('USER', 'MESSENGER', 'DELEGATE', 'AGENCY');
-- AlterTable
ALTER TABLE "User" ALTER COLUMN "code" DROP NOT NULL;