summaryrefslogtreecommitdiff
path: root/backend/src/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/types.ts')
-rw-r--r--backend/src/types.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/backend/src/types.ts b/backend/src/types.ts
new file mode 100644
index 0000000..5c8112c
--- /dev/null
+++ b/backend/src/types.ts
@@ -0,0 +1,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;
+}