Initial commit: full-stack Bun + Elysia + React template
Elysia.js API with session-based auth (email/password + Google OAuth), role system (USER/ADMIN/SUPER_ADMIN), Prisma + PostgreSQL, React 19 with Mantine UI, TanStack Router, dark theme, and comprehensive test suite (unit, integration, E2E with Lightpanda). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
5
prisma/migrations/20260331084655_add_role/migration.sql
Normal file
5
prisma/migrations/20260331084655_add_role/migration.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- CreateEnum
|
||||
CREATE TYPE "Role" AS ENUM ('USER', 'ADMIN', 'SUPER_ADMIN');
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "user" ADD COLUMN "role" "Role" NOT NULL DEFAULT 'USER';
|
||||
Reference in New Issue
Block a user