From dc8c7299875b6f44b0c79b5fa13b2d18c7ccfa2b Mon Sep 17 00:00:00 2001 From: Luis Pablo Galeas Bardales Date: Sun, 5 Jan 2025 18:12:23 +0000 Subject: [PATCH] Full auto-load of projection schemas in prisma --- .../prisma-mongodb/schema.prisma | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/local-development/docker-build/frontend-database-explorer/prisma-mongodb/schema.prisma b/local-development/docker-build/frontend-database-explorer/prisma-mongodb/schema.prisma index 2b199b6d..60b5bd5b 100644 --- a/local-development/docker-build/frontend-database-explorer/prisma-mongodb/schema.prisma +++ b/local-development/docker-build/frontend-database-explorer/prisma-mongodb/schema.prisma @@ -14,35 +14,6 @@ generator dbml { output = "./dbml" } -model CardProduct { - id String @id @default(auto()) @map("_id") // Maps to the MongoDB _id field - active Boolean - name String - @@map("EnrollmentProducts") // Maps to the specified MongoDB collection -} - -model EnrollmentRequest { - id String @id @default(auto()) @map("_id") - userId String @index - productId String @index - productName String - requestedDate String - status String @index - reviewedDate String - @@map("Enrollments") -} - -model CreditCardProduct { - id String @id @default(auto()) @map("_id") - name String - active Boolean @map("isActive") - reward String - annualFeeInCents Int - creditLimitInCents Int - hexColor String - @@map("ProductListItems") -} - // This will make Prisma introspect your MongoDB database // Run: prisma db pull // Then the models will be automatically generated based on your existing collections \ No newline at end of file