restructuring for rental requests. started double blind reviews

This commit is contained in:
jackiettran
2025-08-22 20:18:22 -04:00
parent 022c0b9c06
commit 5d85f77a19
15 changed files with 1305 additions and 1403 deletions

View File

@@ -78,13 +78,6 @@ export interface Item {
minimumRentalDays: number;
maximumRentalDays?: number;
needsTraining?: boolean;
unavailablePeriods?: Array<{
id: string;
startDate: Date;
endDate: Date;
startTime?: string;
endTime?: string;
}>;
availableAfter?: string;
availableBefore?: string;
specifyTimesPerDay?: boolean;
@@ -110,6 +103,8 @@ export interface Rental {
ownerId: string;
startDate: string;
endDate: string;
startTime?: string;
endTime?: string;
totalAmount: number;
status: "pending" | "confirmed" | "active" | "completed" | "cancelled";
paymentStatus: "pending" | "paid" | "refunded";
@@ -119,6 +114,18 @@ export interface Rental {
rating?: number;
review?: string;
rejectionReason?: string;
// New review fields
itemRating?: number;
itemReview?: string;
itemReviewSubmittedAt?: string;
itemReviewVisible?: boolean;
renterRating?: number;
renterReview?: string;
renterReviewSubmittedAt?: string;
renterReviewVisible?: boolean;
// Private messages
itemPrivateMessage?: string;
renterPrivateMessage?: string;
item?: Item;
renter?: User;
owner?: User;