feat(server): doc model (#9834)

close CLOUD-104
This commit is contained in:
fengmk2
2025-02-06 02:50:27 +00:00
parent 077a1b38ac
commit b40f007ccf
5 changed files with 1087 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import type { User } from '@prisma/client';
export interface Doc {
/**
* Can be workspace or user id.
*/
spaceId: string;
docId: string;
blob: Buffer;
timestamp: number;
editorId?: string;
}
export type DocEditor = Pick<User, 'id' | 'name' | 'avatarUrl'>;

View File

@@ -1,2 +1,3 @@
export * from './doc';
export * from './feature';
export * from './page';