Proj d01/design postgre sql schemas#80
Open
georges-nasrallah wants to merge 13 commits into
Open
Conversation
…nd schema design state
… memory architecture
…rocessed emails tables
…nd generated documents tables
…ations and fit analyses tables
…resh tokens tables
Collaborator
Author
|
The database schemas in this PR are a baseline setup. Each service owner is free to modify their schema if needed as implementation progresses. The SQL migration files are intentionally left unwired connecting Flyway (Spring Boot) or |
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.
Summary
Design and document the PostgreSQL schema for all five services, establishing per-service migration files as the single source of truth for database structure.
Closes #17
Motivation & Context
Before any service implementation can begin, the database schema must be agreed upon and documented. This PR establishes the schema-per-service approach using Flyway (Spring Boot services) and Alembic (Python services), replacing the previous empty central
services/db/schema.sql.Changes
auth(users, refresh_tokens)document(profiles, work_experiences, educations, skills, certifications,languages, cover_letters, resumes)
application(applications, fit_analyses)email(email_connections, processed_emails) — moved from Spring Boot toPython/FastAPI
genai(chat_sessions with pgvector embedding, chat_messages, user_memory)services/db/schema.sqlin favour of per-service migrationsCLAUDE.mdto reflect email service language change and current statedocker-compose.ymlpostgres hostname frompostgrestopostgres-dbin auth datasource URLSteps for Testing
services/<name>/src/main/resources/db/migration/(Spring Boot) orservices/<name>/alembic/versions/(Python)DB_SCHEMAS.md(gitignored, available locally)Checklist
.env.example— N/A