import { z } from 'zod'; export const DeviceTokenSchema = z.object({ id: z.uuid(), userId: z.uuid().nullable(), deviceId: z.string(), token: z.string(), platform: z.enum(['ios', 'android']), createdAt: z.string(), updatedAt: z.string(), }); export type DeviceToken = z.infer; export const DeviceTokenHalSchema = DeviceTokenSchema.extend({ _links: z.object({ self: z.object({ href: z.string(), }), }), }); export type DeviceTokenHalSchemaType = z.infer; export const DeviceTokenUpdateInputSchema = DeviceTokenSchema.pick({ platform: true, userId: true, token: true, }); export type DeviceTokenRegisterInputSchemaType = z.infer< typeof DeviceTokenUpdateInputSchema >;