wheelshare-old-backend/src/types.ts
2021-04-10 11:26:36 -04:00

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;
}
}