Skip to content

Strengthen ER model integrity - #11

Merged
patrickschiller merged 1 commit into
mainfrom
codex-er-model-integrity
Jun 19, 2026
Merged

Strengthen ER model integrity#11
patrickschiller merged 1 commit into
mainfrom
codex-er-model-integrity

Conversation

@patrickschiller

Copy link
Copy Markdown
Owner

Summary

  • model Request.approverId as an Employee relation and restrict hard deletes for employee history rows
  • add DB constraints for project/service-order consistency, HH:mm and bitmask validity, schedule defaults, time/absence overlaps, and time ordering
  • add API-level overlap/time-window validation plus E2E coverage for the new integrity rules
  • fix API E2E Jest resolution for the shared workspace package

Verification

  • pnpm exec prisma validate
  • pnpm nx run-many -t typecheck
  • pnpm nx run-many -t lint (passes with existing warnings)
  • pnpm nx run api-e2e:e2e
  • pnpm nx run-many -t build

Signed-off-by: Patrick Schiller <p@trickschiller.de>
@patrickschiller
patrickschiller merged commit 509d901 into main Jun 19, 2026
3 checks passed
@patrickschiller
patrickschiller deleted the codex-er-model-integrity branch June 19, 2026 06:51
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