Skip to content

feat(database): add prisma migrations, deploy scripts, and seed data#123

Open
Samaro1 wants to merge 1 commit intoMissBlue00:mainfrom
Samaro1:chore/database-migrations
Open

feat(database): add prisma migrations, deploy scripts, and seed data#123
Samaro1 wants to merge 1 commit intoMissBlue00:mainfrom
Samaro1:chore/database-migrations

Conversation

@Samaro1
Copy link
Copy Markdown

@Samaro1 Samaro1 commented Mar 25, 2026

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

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

@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.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

@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! 🚀

Learn more about application limits

@MissBlue00
Copy link
Copy Markdown
Owner

@Samaro1 the ci/cd check failed and there are merge conflicts, please resolve

@Samaro1 Samaro1 force-pushed the chore/database-migrations branch from ef4ec00 to cd94e23 Compare March 28, 2026 15:15
@Samaro1
Copy link
Copy Markdown
Author

Samaro1 commented Mar 28, 2026

@MissBlue00 resolved and fixed the CI tests, could you please make the CI tests automated so it happens once a PR has been made?

@Samaro1
Copy link
Copy Markdown
Author

Samaro1 commented Apr 2, 2026

@MissBlue00 can you please review and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configure database migrations

2 participants