commit working state
Too many changes to split them up. This commit contains roughly two months worth of work. This commit introduces the first aggregate and rewrites the ticket system to follow DDD patterns. It adds Spartan NG as the new component library. TanStack Query to replace GraphQL. Oh and Prisma is almost over as well.
This commit is contained in:
+47
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- A unique constraint covering the columns `[tourId,ticketId]` on the table `TourFile` will be added. If there are existing duplicate values, this will fail.
|
||||
|
||||
*/
|
||||
-- DropIndex
|
||||
DROP INDEX "TourFile_tourId_ticketId_idx";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Patient" ADD COLUMN "insuranceNo" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "PatientSource" ADD COLUMN "stammVersNr" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "PatientStaging" ADD COLUMN "insuranceNo" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Ticket" ADD COLUMN "approvalFullRequestMessageId" TEXT,
|
||||
ADD COLUMN "approvalIsOverriden" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "approvalLastInteractionAt" TIMESTAMP(3),
|
||||
ADD COLUMN "approvalPreInquiryMessageId" TEXT,
|
||||
ADD COLUMN "approvalRecipient" TEXT,
|
||||
ADD COLUMN "approvalReminderCount" INTEGER DEFAULT 0,
|
||||
ADD COLUMN "approvalRequestedAt" TIMESTAMP(3),
|
||||
ADD COLUMN "approvalRequirement" TEXT DEFAULT 'UNKNOWN',
|
||||
ADD COLUMN "approvalStatus" TEXT DEFAULT 'NOT_STARTED',
|
||||
ADD COLUMN "hasDigitalTransportDocument" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "hasPhysicalTransportDocument" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "patientId" UUID,
|
||||
ADD COLUMN "stage" TEXT DEFAULT 'DRAFT',
|
||||
ADD COLUMN "updatedAt" TIMESTAMP(3),
|
||||
ALTER COLUMN "id" DROP DEFAULT,
|
||||
ALTER COLUMN "currentState" DROP NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Tour" ADD COLUMN "insuranceNo" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "TourSource" ADD COLUMN "stammVersNr" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "TourStaging" ADD COLUMN "insuranceNo" TEXT;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "TourFile_tourId_ticketId_key" ON "TourFile"("tourId", "ticketId");
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Ticket" ADD COLUMN "lastStageBeforeClosed" TEXT;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Tour" ADD COLUMN "optimizationInMinutes" INTEGER NOT NULL DEFAULT 0;
|
||||
Reference in New Issue
Block a user