Merge branch 'worktree-agent-a36d202be311b9289'
# Conflicts: # GerbilManagerWebAPI/ApplicationContext.cs # GerbilManagerWebAPI/Program.cs # gerbil-manager-web/e2e/mock-data.ts
This commit is contained in:
@@ -87,6 +87,8 @@ export interface MockDb {
|
||||
}
|
||||
// ERWERB: Erwerb/Kauf je Tier (Kaufdatum, Preis, Notiz) — /acquisitions
|
||||
acquisitions: Record<string, unknown>[]
|
||||
// ABGABE-STATUS: Reservierungs-/Abgabe-Status (POST/PUT/DELETE /reservations)
|
||||
reservations: Record<string, unknown>[]
|
||||
}
|
||||
|
||||
function gerbil(
|
||||
@@ -544,5 +546,50 @@ export function seedDb(): MockDb {
|
||||
},
|
||||
},
|
||||
acquisitions: [],
|
||||
// ABGABE-STATUS: eine reservierte + eine abgegebene + eine verfügbare Vormerkung.
|
||||
reservations: [
|
||||
{
|
||||
id: 'res-reserviert',
|
||||
gerbilId: 'sale-balu',
|
||||
gerbilName: 'Balu Abgabe',
|
||||
status: 'reserviert',
|
||||
reservedForContactId: 'con-huber',
|
||||
contactName: 'Familie Huber',
|
||||
appointmentDate: '2026-07-01T00:00:00Z',
|
||||
price: 25,
|
||||
note: 'Käfig wird mitgebracht.',
|
||||
handedOverDate: null,
|
||||
createdAt: '2026-06-15T09:00:00Z',
|
||||
updatedAt: '2026-06-15T09:00:00Z',
|
||||
},
|
||||
{
|
||||
id: 'res-abgegeben',
|
||||
gerbilId: 'pup-abgabe',
|
||||
gerbilName: 'Pippa',
|
||||
status: 'abgegeben',
|
||||
reservedForContactId: 'con-huber',
|
||||
contactName: 'Familie Huber',
|
||||
appointmentDate: null,
|
||||
price: 20,
|
||||
note: null,
|
||||
handedOverDate: '2025-05-01T00:00:00Z',
|
||||
createdAt: '2025-04-20T09:00:00Z',
|
||||
updatedAt: '2025-05-01T09:00:00Z',
|
||||
},
|
||||
{
|
||||
id: 'res-verfuegbar',
|
||||
gerbilId: 'sale-benny',
|
||||
gerbilName: 'Benny Abgabe',
|
||||
status: 'verfuegbar',
|
||||
reservedForContactId: null,
|
||||
contactName: null,
|
||||
appointmentDate: null,
|
||||
price: null,
|
||||
note: null,
|
||||
handedOverDate: null,
|
||||
createdAt: '2026-06-16T09:00:00Z',
|
||||
updatedAt: '2026-06-16T09:00:00Z',
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user