работаем бля работаем
This commit is contained in:
13
server/plugins/schemas/channel.ts
Normal file
13
server/plugins/schemas/channel.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Type } from 'typebox'
|
||||
|
||||
export const ChannelSchema = Type.Object({
|
||||
id: Type.String(),
|
||||
ownerId: Type.Union([Type.String(), Type.Null()]),
|
||||
name: Type.String(),
|
||||
persistent: Type.Boolean(),
|
||||
}, { $id: 'Channel' })
|
||||
|
||||
export const CreateChannelPayloadSchema = Type.Object({
|
||||
name: Type.String(),
|
||||
persistent: Type.Boolean(),
|
||||
}, { $id: 'CreateChannelPayload' })
|
||||
Reference in New Issue
Block a user