import { z } from "zod";

export const landlordTransactionsSchema = z.object({
  id: z.number(),
  gId: z.string().max(50).optional(),
  clientId: z.number(),
  landlordId: z.number(),
  propId: z.number(),
  amount: z.string().max(20),
  expenseId: z.number().optional(),
  gateway: z.number().min(0).optional(),
  mode: z.number().min(0).optional(),
  paymentDate: z.string().datetime().optional(),
  description: z.string().max(250).optional(),
  status: z.number(),
  type: z.number(),
  remarks: z.string(),
  utrNo: z.string(),
  bankRefNum: z.string(),
  createdAt: z.string().datetime(),
  updatedAt: z.string().datetime(),
});

type landlordTransactionsTypes = z.infer<typeof landlordTransactionsSchema>;

export default landlordTransactionsTypes;
