mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 11:29:42 +00:00
24 lines
738 B
TypeScript
24 lines
738 B
TypeScript
// Code generated by automation script, DO NOT EDIT.
|
|
// Automated by pulling database and generating zod schema
|
|
// To update. Just run npm run generate:schema
|
|
// Written by akhilmhdh.
|
|
|
|
import { z } from "zod";
|
|
|
|
import { TImmutableDBKeys } from "./models";
|
|
|
|
export const ProjectRolesSchema = z.object({
|
|
id: z.string().uuid(),
|
|
name: z.string(),
|
|
description: z.string().nullable().optional(),
|
|
slug: z.string(),
|
|
permissions: z.unknown(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
projectId: z.string()
|
|
});
|
|
|
|
export type TProjectRoles = z.infer<typeof ProjectRolesSchema>;
|
|
export type TProjectRolesInsert = Omit<TProjectRoles, TImmutableDBKeys>;
|
|
export type TProjectRolesUpdate = Partial<Omit<TProjectRoles, TImmutableDBKeys>>;
|