Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

968 B
Raw Blame
// 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 UserNotificationsDefaultSchema = z.object({
  id: z.string().uuid(),
  userId: z.string().uuid(),
  orgId: z.string().uuid().nullable().optional(),
  type: z.string(),
  title: z.string(),
  body: z.string().nullable().optional(),
  link: z.string().nullable().optional(),
  isRead: z.boolean().default(false),
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TUserNotificationsDefault = z.infer<typeof UserNotificationsDefaultSchema>;
export type TUserNotificationsDefaultInsert = Omit<z.input<typeof UserNotificationsDefaultSchema>, TImmutableDBKeys>;
export type TUserNotificationsDefaultUpdate = Partial<
  Omit<z.input<typeof UserNotificationsDefaultSchema>, TImmutableDBKeys>
>;