работаем бля работаем
This commit is contained in:
13
server/plugins/schemas/attachment.ts
Normal file
13
server/plugins/schemas/attachment.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Type } from 'typebox'
|
||||
|
||||
export const AttachmentSchema = Type.Object({
|
||||
id: Type.String(),
|
||||
name: Type.String(),
|
||||
mimetype: Type.String(),
|
||||
size: Type.Number({ minimum: 0 }),
|
||||
createdAt: Type.String({ format: 'date-time' }),
|
||||
}, { $id: 'Attachment' })
|
||||
|
||||
export const GetAttachmentParamsSchema = Type.Object({
|
||||
id: Type.String({ format: 'uuid' }),
|
||||
}, { $id: 'GetAttachmentParams' })
|
||||
Reference in New Issue
Block a user