Skip to content

Commit 2028eb9

Browse files
committed
fixed spelling in schema
1 parent 26e29cd commit 2028eb9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/backend/src/prisma/migrations/20231011234802_add_bom/migration.sql renamed to src/backend/src/prisma/migrations/20231019013832_add_bom/migration.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CREATE TABLE "Assembly" (
2525
-- CreateTable
2626
CREATE TABLE "Material" (
2727
"materialId" TEXT NOT NULL,
28-
"assembyId" TEXT,
28+
"assemblyId" TEXT,
2929
"name" TEXT NOT NULL,
3030
"wbsElementId" INTEGER NOT NULL,
3131
"dateDeleted" TIMESTAMP(3),
@@ -81,7 +81,7 @@ ALTER TABLE "Assembly" ADD CONSTRAINT "Assembly_userCreatedId_fkey" FOREIGN KEY
8181
ALTER TABLE "Assembly" ADD CONSTRAINT "Assembly_wbsElementId_fkey" FOREIGN KEY ("wbsElementId") REFERENCES "WBS_Element"("wbsElementId") ON DELETE RESTRICT ON UPDATE CASCADE;
8282

8383
-- AddForeignKey
84-
ALTER TABLE "Material" ADD CONSTRAINT "Material_assembyId_fkey" FOREIGN KEY ("assembyId") REFERENCES "Assembly"("assemblyId") ON DELETE SET NULL ON UPDATE CASCADE;
84+
ALTER TABLE "Material" ADD CONSTRAINT "Material_assemblyId_fkey" FOREIGN KEY ("assemblyId") REFERENCES "Assembly"("assemblyId") ON DELETE SET NULL ON UPDATE CASCADE;
8585

8686
-- AddForeignKey
8787
ALTER TABLE "Material" ADD CONSTRAINT "Material_wbsElementId_fkey" FOREIGN KEY ("wbsElementId") REFERENCES "WBS_Element"("wbsElementId") ON DELETE RESTRICT ON UPDATE CASCADE;

src/backend/src/prisma/schema.prisma

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ model WBS_Element {
256256
tasks Task[]
257257
reimbursementProducts Reimbursement_Product[]
258258
links Link[] @relation(name: "links")
259-
assembies Assembly[]
259+
assemblies Assembly[]
260260
materials Material[]
261261
262262
@@unique([carNumber, projectNumber, workPackageNumber], name: "wbsNumber")
@@ -487,8 +487,8 @@ model Assembly {
487487

488488
model Material {
489489
materialId String @id @default(uuid())
490-
assemby Assembly? @relation(fields: [assembyId], references: [assemblyId])
491-
assembyId String?
490+
assembly Assembly? @relation(fields: [assemblyId], references: [assemblyId])
491+
assemblyId String?
492492
name String @unique
493493
wbsElement WBS_Element @relation(fields: [wbsElementId], references: [wbsElementId])
494494
wbsElementId Int

0 commit comments

Comments
 (0)