mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 10:35:17 +00:00
24 lines
713 B
TypeScript
24 lines
713 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 OrgRolesSchema = 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(),
|
|
orgId: z.string().uuid()
|
|
});
|
|
|
|
export type TOrgRoles = z.infer<typeof OrgRolesSchema>;
|
|
export type TOrgRolesInsert = Omit<TOrgRoles, TImmutableDBKeys>;
|
|
export type TOrgRolesUpdate = Partial<Omit<TOrgRoles, TImmutableDBKeys>>;
|