feat(warteliste): Nachfrage/Warteliste für Interessenten

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 22:43:18 +02:00
parent 5e14124322
commit d25d2ee152
17 changed files with 2724 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ export interface MockDb {
namesConfigured: boolean
// FEEDBACK: "Fehler melden" — gesammelte Berichte (POST /feedback)
feedback: Record<string, unknown>[]
// WAITLIST: Warteliste/Nachfrage (RennmausPro nachfrage_tb)
waitingList: Record<string, unknown>[]
}
function gerbil(
@@ -376,5 +378,29 @@ export function seedDb(): MockDb {
saleAdConfigured: true,
namesConfigured: true,
feedback: [],
waitingList: [
{
id: 'wl-seed-1',
contactId: contacts[0]?.id ?? null,
contactName: contacts[0]?.name ?? 'Familie Sonntag',
wishColor: 'Schwarz',
wishGender: 'female',
requestedAt: '2026-05-01T00:00:00Z',
status: 'offen',
note: 'möchte zwei Weibchen',
createdAt: '2026-05-01T00:00:00Z',
},
{
id: 'wl-seed-2',
contactId: null,
contactName: 'Herr Maier',
wishColor: null,
wishGender: 'male',
requestedAt: '2026-04-10T00:00:00Z',
status: 'erfuellt',
note: null,
createdAt: '2026-04-10T00:00:00Z',
},
],
}
}