import z from "zod"; /* |-------------------------------------------------------------------------------- | Schema |-------------------------------------------------------------------------------- */ export const SessionSchema = z.object({ id: z.string(), userId: z.string(), token: z.string(), ipAddress: z.string().nullable().optional(), userAgent: z.string().nullable().optional(), createdAt: z.coerce.date(), updatedAt: z.coerce.date(), expiresAt: z.coerce.date(), }); /* |-------------------------------------------------------------------------------- | Types |-------------------------------------------------------------------------------- */ export type Session = z.infer;