channels
This commit is contained in:
14
server/dto/channel.dto.ts
Normal file
14
server/dto/channel.dto.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// dto/channel.dto.ts
|
||||
import type { Prisma } from '../prisma/generated/client'
|
||||
|
||||
export const channelPublicSelect = {
|
||||
id: true,
|
||||
name: true,
|
||||
owner_id: true,
|
||||
persistent: true,
|
||||
maxClients: true,
|
||||
} satisfies Prisma.ChannelSelect
|
||||
|
||||
export type ChannelPublicDTO = Prisma.ChannelGetPayload<{
|
||||
select: typeof channelPublicSelect
|
||||
}>
|
||||
Reference in New Issue
Block a user