13 lines
279 B
TypeScript
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,
|
||
|
});
|