This commit is contained in:
2026-01-21 22:39:08 +06:00
parent 595354b7f0
commit 65583b1564
50 changed files with 19946 additions and 99 deletions

14
server/dto/channel.dto.ts Normal file
View 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
}>