task(E6-backend): guests CRUD - schema, adapter, routes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user