mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
15 lines
374 B
TypeScript
15 lines
374 B
TypeScript
|
|
import { z } from 'zod';
|
||
|
|
|
||
|
|
export const createSessionDto = z.object({
|
||
|
|
id: z.string(),
|
||
|
|
userId: z.string(),
|
||
|
|
createdAt: z.date({ coerce: true }),
|
||
|
|
expiresAt: z.date({ coerce: true }),
|
||
|
|
ipCountry: z.string(),
|
||
|
|
ipAddress: z.string(),
|
||
|
|
twoFactorEnabled: z.boolean(),
|
||
|
|
twoFactorVerified: z.boolean(),
|
||
|
|
});
|
||
|
|
|
||
|
|
export type CreateSessionDto = z.infer<typeof createSessionDto>;
|