mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-29 18:00:26 -06:00
12 lines
316 B
TypeScript
12 lines
316 B
TypeScript
import { type ApiKey } from "@prisma/client";
|
|
import { z } from "zod";
|
|
|
|
export const ZApiKey = z.object({
|
|
id: z.string().cuid2(),
|
|
createdAt: z.date(),
|
|
lastUsedAt: z.date().nullable(),
|
|
label: z.string().nullable(),
|
|
hashedKey: z.string(),
|
|
environmentId: z.string().cuid2(),
|
|
}) satisfies z.ZodType<ApiKey>;
|