mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-13 23:35:39 +01:00
12 lines
365 B
TypeScript
12 lines
365 B
TypeScript
import { z } from 'zod';
|
|
import { IsEntityID } from '../validators/entity-id.validator';
|
|
import { IsPosInt } from '../validators/positive-int.validator';
|
|
|
|
export const EUsrPreferenceSchema = z.object({
|
|
id: IsEntityID().optional(),
|
|
key: z.string(),
|
|
value: z.string(),
|
|
userId: IsPosInt(),
|
|
})
|
|
export type EUsrPreference = z.infer<typeof EUsrPreferenceSchema>;
|