wg-verwaltung/backend
bernd 72008ac59b Auto-create a contract when a room-assigned invitation is accepted
Accepting an invitation with a roomId previously only set User.roomId
— no Contract row was created. Since every tenant-facing feature
(Miet-Ampel, Vertragsdokumente, Kündigungsfristen, ...) is driven by
Contract, not User.roomId, the tenant would silently show up nowhere
despite "having" a room. Now the accept transaction also creates an
active Contract (rent/deposit defaulted from the room's baseRent/
utilityPauschal, same defaults already used by the "Wieder aufnehmen"
flow) and marks the room OCCUPIED, unless the room already has an
active contract (guards against a stale/duplicate invite race).
2026-08-13 12:02:03 +00:00
..
prisma Seed: skip if DB already has data instead of wiping it 2026-08-13 07:18:13 +00:00
scripts Add Homematic IP smart lock integration (Access Point + App setup) 2026-08-13 08:21:19 +00:00
src Auto-create a contract when a room-assigned invitation is accepted 2026-08-13 12:02:03 +00:00
Dockerfile add backend/Dockerfile 2026-08-12 16:26:09 +00:00
package-lock.json Add 1-click PDF export for tickets (craftsman handoff) 2026-08-13 07:27:01 +00:00
package.json Sync trash calendar from official Nackenheim/KAW waste collection API 2026-08-13 08:58:21 +00:00
tsconfig.json add backend/tsconfig.json 2026-08-12 16:26:09 +00:00