aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/index.ts5
-rw-r--r--shared/models/pod.model.ts7
-rw-r--r--shared/models/user.model.ts8
-rw-r--r--shared/models/video-abuse.model.ts8
-rw-r--r--shared/models/video-blacklist.model.ts5
-rw-r--r--shared/models/video.model.ts3
6 files changed, 36 insertions, 0 deletions
diff --git a/shared/models/index.ts b/shared/models/index.ts
new file mode 100644
index 000000000..b498d620a
--- /dev/null
+++ b/shared/models/index.ts
@@ -0,0 +1,5 @@
1export * from './pod.model'
2export * from './user.model'
3export * from './video-abuse.model'
4export * from './video-blacklist.model'
5export * from './video.model'
diff --git a/shared/models/pod.model.ts b/shared/models/pod.model.ts
new file mode 100644
index 000000000..d25421936
--- /dev/null
+++ b/shared/models/pod.model.ts
@@ -0,0 +1,7 @@
1export interface Pod {
2 id: number,
3 host: string,
4 email: string,
5 score: number,
6 createdAt: Date
7}
diff --git a/shared/models/user.model.ts b/shared/models/user.model.ts
new file mode 100644
index 000000000..01cc380d3
--- /dev/null
+++ b/shared/models/user.model.ts
@@ -0,0 +1,8 @@
1export interface User {
2 id: number
3 username: string
4 email: string
5 displayNSFW: boolean
6 role: string[]
7 createdAt: Date
8}
diff --git a/shared/models/video-abuse.model.ts b/shared/models/video-abuse.model.ts
new file mode 100644
index 000000000..e005a1fd5
--- /dev/null
+++ b/shared/models/video-abuse.model.ts
@@ -0,0 +1,8 @@
1export interface VideoAbuse {
2 id: number
3 reporterPodHost: string
4 reason: string
5 reporterUsername: string
6 videoId: number
7 createdAt: Date
8}
diff --git a/shared/models/video-blacklist.model.ts b/shared/models/video-blacklist.model.ts
new file mode 100644
index 000000000..6086250ac
--- /dev/null
+++ b/shared/models/video-blacklist.model.ts
@@ -0,0 +1,5 @@
1export interface BlacklistedVideo {
2 id: number
3 videoId: number
4 createdAt: Date
5}
diff --git a/shared/models/video.model.ts b/shared/models/video.model.ts
new file mode 100644
index 000000000..355e912d2
--- /dev/null
+++ b/shared/models/video.model.ts
@@ -0,0 +1,3 @@
1export interface Video {
2
3}