import { z } from "zod";

export const tenantNotesSchema = z.object({
  id: z.number(),
  clientId: z.number().nullable(),
  tenantId: z.number().nullable(),
  addedBy: z.number(),
  note: z.string().nullable(),
  type: z.number(),
  createdAt: z.string().datetime(),
  updatedAt: z.string().datetime(),
});

type tenantNotesTypes = z.infer<typeof tenantNotesSchema>;

export const AddNoteSchema = z.object({
  tenantId: z.number(),
  note: z.string(),
});

export default tenantNotesTypes;
