Entity Watcher Schema
Felder
Entity Watcher Schema
Schema for validating entity watcher subscriptions (Beobachter)
entityType
Target COLLECTION name (plural, e.g. "tickets" / "hr_tickets") — not the singular schema id. Matches the `entityType` convention of the notifications collection.
entityId
UUIDv7 of the watched record.
userId
INTERNAL user id (`users._id`, UUIDv7) — never the better-auth session id. Everything downstream (notifications, data scopes) speaks internal ids.
userName
Denormalized display name for the watcher chips, so the list does not need an N+1 join. Display-only; `userId` is authoritative.
origin
How the subscription came to be. MANUAL = clicked "Beobachten". The AUTO_* origins come from ADR 0515 §4 (commented / was mentioned / handed the ticket over) and are what the per-user auto-watch toggle switches off. Kept for the UI hint and for measuring whether auto-watch pulls its weight.
MANUALAUTO_COMMENTAUTO_MENTIONAUTO_HANDOVERmutedUntil
Silence deliveries until this instant WITHOUT losing the subscription. Null = active.
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/entity_watchers— Liste, paginiert + filterbarGET /api/v1/entity_watchers/<id>— Einzelne EntityPOST /api/v1/entity_watchers— AnlegenPATCH /api/v1/entity_watchers/<id>— Teil-UpdateDELETE /api/v1/entity_watchers/<id>— Soft-DeleteGET /api/v1/entity_watchers/<id>/timeline— Audit + Aktivitäten