summaryrefslogtreecommitdiff
path: root/client/src/models.ts
blob: 201a9699b3575a4ae02e50fe5d6a1605f9740f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export interface Guest {
  id?: number;
  firstName: string;
  lastName: string;
  attendance?: string;
  email?: string;
  message?: string;
  partySize?: number;
  partyList?: Name[];
}

export interface Name {
  firstName: string;
  lastName: string;
}

export interface GuestLogin {
  guest: Guest;
  token: string;
}

export interface Credentials {
  username: string;
  password: string;
}

export interface AdminLogin {
  guests: Guest[];
  token: string;
}