Initial commit: Next.js scaffold, Request entity, Prisma+Zod, Tailwind v4+shadcn
- Next.js 14 (TS, App Router) monolith - Request entity (Draft state) via Prisma + Postgres, validated with Zod - ESLint configured - Tailwind v4 + shadcn/ui (new-york-v4 style) - Vitest test suite (6 tests, runs against throwaway Postgres DB per file) - Multi-agent dev workflow docs in CLAUDE.md and .claude/agents/
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
-- CreateEnum
|
||||
CREATE TYPE "RequestType" AS ENUM ('asset', 'license');
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "requests" (
|
||||
"id" UUID NOT NULL,
|
||||
"employee_id" TEXT NOT NULL,
|
||||
"type" "RequestType" NOT NULL,
|
||||
"reason" TEXT NOT NULL,
|
||||
"status" TEXT NOT NULL DEFAULT 'Draft',
|
||||
"created_at" TIMESTAMPTZ(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "requests_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
Reference in New Issue
Block a user