Skip to content

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

837 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 RemindersSchema = z.object({
  id: z.string().uuid(),
  secretId: z.string().uuid().nullable().optional(),
  message: z.string().nullable().optional(),
  repeatDays: z.number().nullable().optional(),
  nextReminderDate: z.date(),
  createdAt: z.date(),
  updatedAt: z.date(),
  fromDate: z.date().nullable().optional()
});

export type TReminders = z.infer<typeof RemindersSchema>;
export type TRemindersInsert = Omit<z.input<typeof RemindersSchema>, TImmutableDBKeys>;
export type TRemindersUpdate = Partial<Omit<z.input<typeof RemindersSchema>, TImmutableDBKeys>>;