|
|
@@ -15,7 +15,7 @@ const userRoleSchema = z.union([
|
|
|
z.literal('manager'),
|
|
|
])
|
|
|
|
|
|
-const userSchema = z.object({
|
|
|
+const _userSchema = z.object({
|
|
|
id: z.string(),
|
|
|
firstName: z.string(),
|
|
|
lastName: z.string(),
|
|
|
@@ -27,6 +27,4 @@ const userSchema = z.object({
|
|
|
createdAt: z.coerce.date(),
|
|
|
updatedAt: z.coerce.date(),
|
|
|
})
|
|
|
-export type User = z.infer<typeof userSchema>
|
|
|
-
|
|
|
-export const userListSchema = z.array(userSchema)
|
|
|
+export type User = z.infer<typeof _userSchema>
|