task(E6-backend): guests CRUD - schema, adapter, routes

This commit is contained in:
Agent Zero
2026-08-28 07:25:48 +02:00
parent 6a214c2e9c
commit e99cf597f8
5 changed files with 132 additions and 0 deletions
+19
View File
@@ -213,4 +213,23 @@ export interface DatabaseInterface {
createGlobalBlock(data: Partial<DBGlobalBlock>): DBGlobalBlock;
updateGlobalBlock(id: string, data: Partial<DBGlobalBlock>): DBGlobalBlock | null;
deleteGlobalBlock(id: string): boolean;
// Guests (Task E6)
listGuests(drawingId: string): DBGuest[];
getGuest(id: string): DBGuest | null;
createGuest(data: Partial<DBGuest>): DBGuest;
updateGuest(id: string, data: Partial<DBGuest>): DBGuest | null;
deleteGuest(id: string): boolean;
}
// ─── Guests (Task E6) ──────────────────────────────────
export interface DBGuest {
id: string;
drawing_id: string;
name: string;
email?: string;
category: string; // 'standard' | 'vip' | 'staff'
seat_element_id?: string; // Verknüpfung zu einem chair-Element
notes?: string;
created_at: string;
}