Schemas (mostly linting)

This commit is contained in:
Daniel Hougaard
2024-02-04 13:37:39 +04:00
parent 2eb9592b1a
commit 031a2416a9
2 changed files with 4 additions and 2 deletions

View File

@@ -14,7 +14,8 @@ export const ProjectsSchema = z.object({
autoCapitalization: z.boolean().default(true).nullable().optional(),
orgId: z.string().uuid(),
createdAt: z.date(),
updatedAt: z.date()
updatedAt: z.date(),
e2ee: z.boolean().default(true)
});
export type TProjects = z.infer<typeof ProjectsSchema>;

View File

@@ -19,7 +19,8 @@ export const UsersSchema = z.object({
mfaMethods: z.string().array().nullable().optional(),
devices: z.unknown().nullable().optional(),
createdAt: z.date(),
updatedAt: z.date()
updatedAt: z.date(),
ghost: z.boolean().default(false)
});
export type TUsers = z.infer<typeof UsersSchema>;