Refactor Docker Compose configuration to use dynamic volume paths, update deployment workflow to create necessary directories, and enhance Prisma schema with public visibility for evaluations. Improve access control in API routes and adjust evaluation creation logic to include public visibility. Fix minor issues in login and evaluation pages for better user experience.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m17s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m17s
This commit is contained in:
26
prisma/migrations/20260220120133_add_is_public/migration.sql
Normal file
26
prisma/migrations/20260220120133_add_is_public/migration.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
-- RedefineTables
|
||||
PRAGMA defer_foreign_keys=ON;
|
||||
PRAGMA foreign_keys=OFF;
|
||||
CREATE TABLE "new_Evaluation" (
|
||||
"id" TEXT NOT NULL PRIMARY KEY,
|
||||
"candidateName" TEXT NOT NULL,
|
||||
"candidateRole" TEXT NOT NULL,
|
||||
"candidateTeam" TEXT,
|
||||
"evaluatorName" TEXT NOT NULL,
|
||||
"evaluatorId" TEXT,
|
||||
"evaluationDate" DATETIME NOT NULL,
|
||||
"templateId" TEXT NOT NULL,
|
||||
"status" TEXT NOT NULL DEFAULT 'draft',
|
||||
"findings" TEXT,
|
||||
"recommendations" TEXT,
|
||||
"isPublic" BOOLEAN NOT NULL DEFAULT false,
|
||||
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" DATETIME NOT NULL,
|
||||
CONSTRAINT "Evaluation_evaluatorId_fkey" FOREIGN KEY ("evaluatorId") REFERENCES "User" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
||||
CONSTRAINT "Evaluation_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "Template" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
||||
);
|
||||
INSERT INTO "new_Evaluation" ("candidateName", "candidateRole", "candidateTeam", "createdAt", "evaluationDate", "evaluatorId", "evaluatorName", "findings", "id", "recommendations", "status", "templateId", "updatedAt") SELECT "candidateName", "candidateRole", "candidateTeam", "createdAt", "evaluationDate", "evaluatorId", "evaluatorName", "findings", "id", "recommendations", "status", "templateId", "updatedAt" FROM "Evaluation";
|
||||
DROP TABLE "Evaluation";
|
||||
ALTER TABLE "new_Evaluation" RENAME TO "Evaluation";
|
||||
PRAGMA foreign_keys=ON;
|
||||
PRAGMA defer_foreign_keys=OFF;
|
||||
Reference in New Issue
Block a user