WG- & Vermieter-Management-App (Backend + Dashboard)
Go to file
bernd a6fb15cd41 Add tenant move-out with permanent archive instead of deletion
Landlords can now remove a tenant from their room via a "Mieter
ausziehen lassen" button on the contract card. This never deletes
anything: POST /contracts/:id/move-out sets Contract.isActive=false
(with an endDate), frees the room (User.roomId=null,
Room.status=VACANT) so it can be re-assigned via the existing invite
flow, and leaves the contract row — along with every linked payment,
ticket, rating, handover protocol, and contract document — untouched
and permanently queryable.

GET /contracts/documents now only lists active contracts; the new
GET /contracts/archive (landlord/admin only) lists deactivated ones,
rendered in a new "Archiv — ausgezogene Mieter" section on the
Verträge-page with their historical documents still downloadable.
2026-08-13 10:59:16 +00:00
backend Add tenant move-out with permanent archive instead of deletion 2026-08-13 10:59:16 +00:00
prisma Restructure generated contract as a full-format rental agreement 2026-08-13 10:37:57 +00:00
web-dashboard Add tenant move-out with permanent archive instead of deletion 2026-08-13 10:59:16 +00:00
.gitignore Fix seed.ts module resolution: move to backend/prisma/ 2026-08-13 07:16:11 +00:00
README.md Initial commit 2026-08-12 16:24:25 +00:00

wg-verwaltung

WG- & Vermieter-Management-App (Backend + Dashboard)