summaryrefslogtreecommitdiff
path: root/backend/src/types.ts
diff options
context:
space:
mode:
authorLeo Goetz <dev@leogtz.de>2026-01-22 09:10:15 +0100
committerLeo Goetz <dev@leogtz.de>2026-01-22 09:10:15 +0100
commit01c0f792484f8f52606eae0e58abe528acef3086 (patch)
treee30894caf65b39aab1e050035f63450b5032123c /backend/src/types.ts
parentb6d422d33c3b647ab249a8cf3520bc986fa2c549 (diff)
feat: completed course, added some types and changed output to dist folderHEADmaster
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;
+}