feat: adds new db package with postgres docker image#661
Merged
anthonydmays merged 1 commit intomainfrom Jun 9, 2025
Merged
Conversation
Signed-off-by: Anthony D. Mays <anthony@morganlatimer.com>
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new database package with a PostgreSQL Docker image, adds a Prisma seed script and migration SQL for initializing the database schema, and includes supporting Docker scripts alongside updated documentation.
- Adds a Prisma seed file and a new seeder generator in the Prisma schema
- Provides migration SQL for creating Todos and Logs tables
- Implements Docker Compose configuration and shell scripts for starting, stopping, and checking the PostgreSQL container, with accompanying documentation
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| lib/javascript/fullstack_demo/prisma/seed.ts | New Prisma seed script creating todos and a log entry |
| lib/javascript/fullstack_demo/prisma/schema.prisma | Added a new seeder generator configuration |
| lib/javascript/fullstack_demo/prisma/migrations/20250609182117_initial_schema/migration.sql | Initial migration creating Todos and Logs tables |
| lib/javascript/fullstack_demo/package.json | Updated dependencies and added a seed command |
| lib/javascript/fullstack_demo/docs/database-seeding.md | Added documentation for running the seed script |
| lib/db/stop-postgres.sh | Added script to stop the Postgres container |
| lib/db/status-postgres.sh | Added script to check the status of the Postgres container |
| lib/db/start-postgres.sh | Added script to start the Postgres container and wait for readiness |
| lib/db/package.json | New package file for managing Docker scripts |
| lib/db/init-scripts/01-init-sample.sql | Sample SQL initialization script for the container |
| lib/db/docker-compose.yml | Docker Compose configuration for the PostgreSQL container |
| lib/db/README.md | Documentation on how to use and manage the PostgreSQL Docker setup |
| lib/db/Dockerfile | Dockerfile for building the PostgreSQL image |
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.
Signed-off-by: Anthony D. Mays anthony@morganlatimer.com