Files
ubi-dan-itam/prisma/migrations/20260730054607_init_requests/migration.sql
T
toanhoang afdbdbdcfb 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/
2026-07-30 18:14:36 +07:00

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")
);