feat(shared): add IdeaNotification model to canonical schema #4

Merged
janpeter merged 1 commit from feat/idea-notification-model into main 2026-05-28 23:55:04 +02:00
Owner

Scrum4Me dismissIdeaNotificationAction gebruikt prisma.ideaNotification, maar het IdeaNotification-model stond niet in het canonical schema. Consumers regenereren prisma/schema.prisma hieruit bij build, dus de gegenereerde client miste het model → next build faalde. Voegt het model + back-relations op Idea/User/ClaudeJob toe (mapt op de bestaande idea_notifications-tabel).

🤖 Generated with Claude Code

Scrum4Me `dismissIdeaNotificationAction` gebruikt `prisma.ideaNotification`, maar het `IdeaNotification`-model stond niet in het canonical schema. Consumers regenereren `prisma/schema.prisma` hieruit bij build, dus de gegenereerde client miste het model → `next build` faalde. Voegt het model + back-relations op Idea/User/ClaudeJob toe (mapt op de bestaande `idea_notifications`-tabel). 🤖 Generated with Claude Code
Scrum4Me's actions/ideas.ts (dismissIdeaNotificationAction) uses
prisma.ideaNotification, but the IdeaNotification model was never added to the
canonical schema. Consumers regenerate prisma/schema.prisma from this canonical
at build (gen-consumer-schema.sh), so the generated Prisma client lacked the
model and `next build` failed with "Property 'ideaNotification' does not exist
on type 'PrismaClient'". Add the model + back-relations on Idea, User and
ClaudeJob (matches the idea_notifications table already in the DB).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
severity/s4
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janpeter/scrum4me-shared!4
No description provided.