mirror of
https://github.com/myfatemi04/wheelshare-old-backend.git
synced 2025-04-20 19:50:17 -04:00
34 lines
595 B
TypeScript
34 lines
595 B
TypeScript
namespace Carpool {
|
|
export interface Group {
|
|
id: string;
|
|
member_ids: string[];
|
|
}
|
|
|
|
export interface User {
|
|
id: 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 Post {
|
|
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;
|
|
}
|
|
} |