← back to Jill Website
src/models/__mocks__/Inquiry.ts
26 lines
export interface Inquiry {
id?: number;
name: string;
email: string;
phone: string;
check_in_date: Date;
check_out_date: Date;
guest_count: number;
message?: string;
created_at?: Date;
updated_at?: Date;
}
export interface InquiryValidationError {
field: string;
message: string;
}
export const InquiryModel = jest.fn().mockImplementation(() => ({
create: jest.fn(),
findAll: jest.fn(),
findById: jest.fn(),
update: jest.fn(),
delete: jest.fn()
}));