started dockerfiles and itemrequest

This commit is contained in:
jackiettran
2025-08-18 12:24:46 -04:00
parent 209d8f5fbf
commit 99eae4774e
18 changed files with 2080 additions and 1 deletions

View File

@@ -97,3 +97,48 @@ export interface Rental {
createdAt: string;
updatedAt: string;
}
export interface ItemRequest {
id: string;
title: string;
description: string;
address1?: string;
address2?: string;
city?: string;
state?: string;
zipCode?: string;
country?: string;
latitude?: number;
longitude?: number;
maxPricePerHour?: number;
maxPricePerDay?: number;
preferredStartDate?: string;
preferredEndDate?: string;
isFlexibleDates: boolean;
status: "open" | "fulfilled" | "closed";
requesterId: string;
requester?: User;
responseCount: number;
responses?: ItemRequestResponse[];
createdAt: string;
updatedAt: string;
}
export interface ItemRequestResponse {
id: string;
itemRequestId: string;
responderId: string;
message: string;
offerPricePerHour?: number;
offerPricePerDay?: number;
availableStartDate?: string;
availableEndDate?: string;
existingItemId?: string;
status: "pending" | "accepted" | "declined" | "expired";
contactInfo?: string;
responder?: User;
existingItem?: Item;
itemRequest?: ItemRequest;
createdAt: string;
updatedAt: string;
}