summaryrefslogtreecommitdiff
path: root/backend/src/types.ts
blob: 5c8112ce435530fb0ae9e2e075ef957087e1dfef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export type Id = number;

export interface Event {
  id: Id;
  title: string;
  description?: string;
  date: Date;
  host_id: number;
  image_url?: string;
  host: User;
  rsvps: Rsvps[];
}

export interface User {
  id: number;
  name: string;
  email: string;
}

export interface Rsvps {
  id: number;
  name: string;
  email: string;
}