aboutsummaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/models')
-rw-r--r--src/models/Thread.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/models/Thread.ts b/src/models/Thread.ts
new file mode 100644
index 0000000..5960e11
--- /dev/null
+++ b/src/models/Thread.ts
@@ -0,0 +1,17 @@
+export type Comment = {
+ id: string;
+ timestamp: number;
+ content: string;
+ image: string;
+ imagetype: string //image or video
+};
+
+export type Thread = {
+ id: string;
+ timestamp: number;
+ title: string;
+ content: string;
+ comments: Comment[];
+ image: string;
+ imagetype: string; //image or video
+};