mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(server): split HistoryModel from DocModel (#10604)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export * from './doc';
|
||||
export * from './feature';
|
||||
export * from './role';
|
||||
export * from './user';
|
||||
|
||||
7
packages/backend/server/src/models/common/user.ts
Normal file
7
packages/backend/server/src/models/common/user.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Prisma } from '@prisma/client';
|
||||
|
||||
export const publicUserSelect = {
|
||||
id: true,
|
||||
name: true,
|
||||
avatarUrl: true,
|
||||
} satisfies Prisma.UserSelect;
|
||||
Reference in New Issue
Block a user