Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create and document an MVP DB schema using DBML #30

Merged
merged 17 commits into from Feb 18, 2024

Conversation

jhodapp
Copy link
Contributor

@jhodapp jhodapp commented Jan 28, 2024

Description

This PR creates and documents an MVP DB schema for refactor_platform_rs using DBML.

GitHub Issue: Fixes #8

Changes

  • Creates/documents an MVP DB schema for refactor_platform_rs using DBML
  • Adds a script to automatically generate Postgresql-compatible SQL and generate a new DB within a running instance of Postgres
  • Updates the users entity with new fields
  • Uses autoincrement integer-based internal primary keys and external UUID-based ids

DB schema diagram generated using dbdiagram.io's export feature:

Refactor Coaching Platform Schema v1

Testing Strategy

  1. Drop it in a new diagram session at dbdiagram.io ensuring there are no syntactical errors
  2. Run scripts/rebuild_db.sh and make sure that it creates a new refactor_platform DB in Postgres
  3. Ensure you're able to log in using the refactor-platform-fe login page

Concerns

None

@jhodapp jhodapp added enhancement Improves existing functionality or feature design Any kind of software design, visual or otherwise labels Jan 28, 2024
@jhodapp jhodapp self-assigned this Jan 28, 2024
@jhodapp jhodapp changed the title Creates/documents an MVP DB schema for refactor_platform_rs using DBML Creates/documents an MVP DB schema using DBML Jan 28, 2024
@jhodapp jhodapp changed the title Creates/documents an MVP DB schema using DBML Creates and documents an MVP DB schema using DBML Jan 28, 2024
@jhodapp jhodapp marked this pull request as ready for review January 29, 2024 15:58
@calebbourg calebbourg force-pushed the create_mvp_db_schema_using_dbml branch from 8c51fef to e2f9632 Compare February 13, 2024 21:17
@jhodapp jhodapp changed the title Creates and documents an MVP DB schema using DBML Create and document an MVP DB schema using DBML Feb 15, 2024
@jhodapp jhodapp mentioned this pull request Feb 15, 2024
8 tasks
@calebbourg calebbourg force-pushed the create_mvp_db_schema_using_dbml branch from 48637a4 to a36cde4 Compare February 17, 2024 18:46
@jhodapp jhodapp force-pushed the create_mvp_db_schema_using_dbml branch from 10cf5ce to b9a41dd Compare February 17, 2024 22:38
@calebbourg calebbourg force-pushed the create_mvp_db_schema_using_dbml branch from 328ca94 to b6b64cc Compare February 18, 2024 14:00
@jhodapp jhodapp merged commit 59878fc into main Feb 18, 2024
2 of 4 checks passed
@jhodapp jhodapp linked an issue Feb 23, 2024 that may be closed by this pull request
8 tasks
@jhodapp jhodapp deleted the create_mvp_db_schema_using_dbml branch February 24, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Any kind of software design, visual or otherwise enhancement Improves existing functionality or feature
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Create other base Entity schemas Schema setup instructions in README.md are incorrect
2 participants