Initial commit: Edu Helper (Docker, React, Express, Prisma)

Made-with: Cursor
This commit is contained in:
Константин Лебединский
2026-04-01 21:40:51 +05:00
commit 3dec3ea720
75 changed files with 13806 additions and 0 deletions
@@ -0,0 +1,14 @@
-- CreateTable
CREATE TABLE "HallPhoto" (
"id" SERIAL NOT NULL,
"studentId" INTEGER NOT NULL,
"date" TEXT NOT NULL,
"fileName" TEXT NOT NULL,
"mimeType" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "HallPhoto_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "HallPhoto" ADD CONSTRAINT "HallPhoto_studentId_fkey" FOREIGN KEY ("studentId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;