- 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/
15 lines
398 B
SQL
15 lines
398 B
SQL
-- 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")
|
|
);
|