Skip to content

Schema unification across app and cron#48

Open
epowell wants to merge 4 commits into
asmbly-makerspace:mainfrom
epowell:epowell/schema-unification
Open

Schema unification across app and cron#48
epowell wants to merge 4 commits into
asmbly-makerspace:mainfrom
epowell:epowell/schema-unification

Conversation

@epowell
Copy link
Copy Markdown

@epowell epowell commented May 9, 2026

What changed and why:
File
Change

classes-prisma/
Created — single canonical home for schema + migrations

app/prisma/
Removed — was only schema + migrations (no seed file existed)

cron-service/prisma/schema.prisma + migrations/
Removed — only JS source files remain

app/package.json
"schema" → "../classes-prisma/schema.prisma"

cron-service/package.json
"schema" → "../classes-prisma/schema.prisma" (previously pointed to ../app/prisma/ — the first inconsistency)

app/Dockerfile
Build context widened to .; all COPY paths prefixed with app/; COPY classes-prisma/ /usr/src/classes-prisma/ added to both stages

app/Dockerfile.dev
Same context widening; dev volume mount ./classes-prisma:/usr/src/classes-prisma handles hot-reload

cron-service/Dockerfile
Build context widened to .; COPY paths prefixed with cron-service/; COPY classes-prisma/ /classes-prisma/ added (resolves ../classes-prisma from /var/task)

compose.yaml
cron build changed from build: ./cron-service to context: . / dockerfile: cron-service/Dockerfile

compose.dev.yaml
App build context ./app → ., dockerfile Dockerfile.dev → app/Dockerfile.dev; added volume mounts ./classes-prisma:/usr/src/classes-prisma (app) and ./classes-prisma:/classes-prisma (cron); cron build similarly widened.

dockerignore
Created at repo root — replaces the old app/.dockerignore for both services' wider build contexts

@epowell epowell changed the title Epowell/schema unification Schema unification across app and cron May 9, 2026
@epowell epowell force-pushed the epowell/schema-unification branch from af2848f to d9c6c87 Compare May 9, 2026 19:12
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.

1 participant