feat(yachts): atomic transferOwnership with partial-unique guard

This commit is contained in:
Matt Ciaccio
2026-04-23 23:58:20 +02:00
parent d0ab4b8102
commit 8a5cd1ef0e
3 changed files with 159 additions and 2 deletions

View File

@@ -81,6 +81,10 @@ export interface ServerToClientEvents {
'yacht:created': (payload: { yachtId: string }) => void;
'yacht:updated': (payload: { yachtId: string; changedFields: string[] }) => void;
'yacht:archived': (payload: { yachtId: string }) => void;
'yacht:ownership_transferred': (payload: {
yachtId: string;
newOwner: { type: 'client' | 'company'; id: string };
}) => void;
// Document events
'document:created': (payload: { documentId: string; type?: string; interestId?: string }) => void;