initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import { NotificationTypesSchema } from '../../enums/NotificationTypes.schema';
|
||||
// prettier-ignore
|
||||
export const NotificationResultSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
type: NotificationTypesSchema,
|
||||
message: z.string(),
|
||||
createdAt: z.date(),
|
||||
read: z.boolean(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
|
||||
export type NotificationResultType = z.infer<typeof NotificationResultSchema>;
|
||||
Reference in New Issue
Block a user