feat(database): add prisma migrations, deploy scripts, and seed data#123
Open
Samaro1 wants to merge 1 commit intoMissBlue00:mainfrom
Open
feat(database): add prisma migrations, deploy scripts, and seed data#123Samaro1 wants to merge 1 commit intoMissBlue00:mainfrom
Samaro1 wants to merge 1 commit intoMissBlue00:mainfrom
Conversation
|
@Samaro1 is attempting to deploy a commit to the missblue00's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Samaro1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Owner
|
@Samaro1 the ci/cd check failed and there are merge conflicts, please resolve |
ef4ec00 to
cd94e23
Compare
Author
|
@MissBlue00 resolved and fixed the CI tests, could you please make the CI tests automated so it happens once a PR has been made? |
Author
|
@MissBlue00 can you please review and merge |
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.
Adds Prisma migration tooling under packages/database/migrations/
Introduces initial PostgreSQL schema for core entities (merchant, users, customer, payment intent, escrow, subscription, invoice, treasury, payout, webhook, audit log)
Adds production migration deploy script and test migration script
Adds development seed data and environment example
Changes
Added Prisma schema and migration SQL:
packages/database/migrations/schema.prisma
packages/database/migrations/migrations/202603240001_initial_schema/migration.sql
Added scripts:
packages/database/migrations/deploy.sh
packages/database/migrations/test-migrate.sh
package scripts in packages/database/package.json
Added seed data:
packages/database/migrations/seed.js
Added env template:
packages/database/.env.example
Validation
Ran migration deploy and seed successfully against a PostgreSQL test instance using db:test:migrate.
Closes #94