mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 15:41:27 +00:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
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 ProjectUserMembershipRolesSchema = z.object({
|
|
id: z.string().uuid(),
|
|
role: z.string(),
|
|
projectMembershipId: z.string().uuid(),
|
|
customRoleId: z.string().uuid().nullable().optional(),
|
|
isTemporary: z.boolean().default(false),
|
|
temporaryMode: z.string().nullable().optional(),
|
|
temporaryRange: z.string().nullable().optional(),
|
|
temporaryAccessStartTime: z.date().nullable().optional(),
|
|
temporaryAccessEndTime: z.date().nullable().optional(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date()
|
|
});
|
|
|
|
export type TProjectUserMembershipRoles = z.infer<typeof ProjectUserMembershipRolesSchema>;
|
|
export type TProjectUserMembershipRolesInsert = Omit<
|
|
z.input<typeof ProjectUserMembershipRolesSchema>,
|
|
TImmutableDBKeys
|
|
>;
|
|
export type TProjectUserMembershipRolesUpdate = Partial<
|
|
Omit<z.input<typeof ProjectUserMembershipRolesSchema>, TImmutableDBKeys>
|
|
>;
|