cal.pub0.org/packages/prisma/selects/app.ts

13 lines
279 B
TypeScript

import { Prisma } from "@prisma/client";
export const safeAppSelect = Prisma.validator<Prisma.AppSelect>()({
slug: true,
dirName: true,
/** Omitting to avoid frontend leaks */
// keys: true,
categories: true,
createdAt: true,
updatedAt: true,
enabled: true,
});