mirror of
https://github.com/myfatemi04/wheelshare-old-backend.git
synced 2025-04-20 19:50:17 -04:00
40 lines
720 B
TypeScript
40 lines
720 B
TypeScript
namespace Carpool {
|
|
export interface Group {
|
|
id: string;
|
|
member_ids: string[];
|
|
}
|
|
|
|
export interface User {
|
|
uuid: string;
|
|
email: string;
|
|
username: string;
|
|
first_name: string;
|
|
last_name: string;
|
|
}
|
|
|
|
export interface Comment {
|
|
id: string;
|
|
body: string;
|
|
author_id: string;
|
|
}
|
|
|
|
export type Status = 'pending' | 'cancelled' | 'completed' | 'interrupted';
|
|
|
|
export interface Pool {
|
|
id: string;
|
|
title: string;
|
|
description: string;
|
|
participant_ids: string[];
|
|
driver_id: string;
|
|
create_time: string;
|
|
update_time: string;
|
|
comments: Comment[];
|
|
group_id: string;
|
|
status: Status;
|
|
capacity: number;
|
|
direction: 'pickup' | 'dropoff';
|
|
author_id: string;
|
|
type: 'request' | 'offer';
|
|
}
|
|
}
|