aboutsummaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-23 21:34:48 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-23 21:34:48 +0300
commit747097af03e422c72c2fe0065637e59a1685d219 (patch)
tree6b965e4c5d4ee812d104c3537866f2e3b5e27376 /src/models
nearly completed, forgot to make a repo
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
+};