feat(server): user model (#9608)

This commit is contained in:
forehalo
2025-01-09 09:14:01 +00:00
parent ca3537fca3
commit 6d29f80894
8 changed files with 632 additions and 11 deletions

View File

@@ -36,15 +36,6 @@ export interface DocEvents {
updated: Payload<Pick<Snapshot, 'id' | 'workspaceId'>>;
}
export interface UserEvents {
updated: Payload<Omit<User, 'password'>>;
deleted: Payload<
User & {
ownedWorkspaces: Workspace['id'][];
}
>;
}
/**
* Event definitions can be extended by
*
@@ -61,7 +52,6 @@ export interface UserEvents {
export interface EventDefinitions {
workspace: WorkspaceEvents;
snapshot: DocEvents;
user: UserEvents;
}
export type EventKV = Flatten<EventDefinitions>;