Skip to content

Commit

Permalink
Full auto-load of projection schemas in prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
galeaspablo committed Jan 5, 2025
1 parent 5a284d1 commit dc8c729
Showing 1 changed file with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dc8c729

Please sign in to comment.