feat(vessel): Schiffsflotte im Profil und Logbuch-Auswahl
Benutzerweiter Vessel-Pool (E2E, Sync, Migration von Legacy-Yachts) mit LogbookVesselSelection und LogbookVesselPicker. Profil mit Accordion (Flotte & Crew); Demo und Onboarding-Tour inkl. profile_vessel_pool. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,9 +12,23 @@ export function hasCrewPoolPrismaModels(): boolean {
|
||||
)
|
||||
}
|
||||
|
||||
export function hasVesselPoolPrismaModels(): boolean {
|
||||
const client = prisma as unknown as {
|
||||
vesselPayload?: { findMany: unknown }
|
||||
logbookVesselSelectionPayload?: { findUnique: unknown }
|
||||
}
|
||||
return (
|
||||
typeof client.vesselPayload?.findMany === 'function' &&
|
||||
typeof client.logbookVesselSelectionPayload?.findUnique === 'function'
|
||||
)
|
||||
}
|
||||
|
||||
export const CREW_POOL_MIGRATION_HINT =
|
||||
'Crew-Pool-Datenbank fehlt. Im Ordner server ausführen: npx prisma generate && npx prisma db push — danach Server neu starten.'
|
||||
|
||||
export const VESSEL_POOL_MIGRATION_HINT =
|
||||
'Schiffs-Pool-Datenbank fehlt. Im Ordner server ausführen: npx prisma generate && npx prisma db push — danach Server neu starten.'
|
||||
|
||||
export function isMissingPrismaTable(error: unknown): boolean {
|
||||
return (
|
||||
typeof error === 'object' &&
|
||||
|
||||
Reference in New Issue
Block a user