Implement Prisma database layer#2
Open
Spbd1 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
packages/db/prisma/schema.prismadefining enums, models, relations, indexes, and uniqueness constraints for the requested core entities and types.packages/db/src/client.tswith development hot-reload protection and re-export Prisma types/enums frompackages/db/src/index.ts.packages/db/scripts/seed.ts, which idempotently creates one super-admin user/admin profile and four demo servers covering the 2x2 treatment design (low/high inequality × stable/uncertain institutions).README.mdwith migration, client generation, and seeding instructions (pnpm db:migrate,pnpm db:generate,pnpm seed) and a short Docker example for starting PostgreSQL.Testing
git diff --checkto validate whitespace and basic diff checks and found no issues.pnpm --filter @parcel-society/db db:generateto generate the Prisma client, but it could not run because theprismabinary andnode_modulesare not available in this environment (client generation is environment-dependent).pnpm installto install dev dependencies locally, but it failed due to npm registry access returning403 Forbidden, so automated schema migration/generation and package-level tests could not be executed here.Codex Task