diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/index.ts | 5 | ||||
-rw-r--r-- | shared/models/pod.model.ts | 7 | ||||
-rw-r--r-- | shared/models/user.model.ts | 8 | ||||
-rw-r--r-- | shared/models/video-abuse.model.ts | 8 | ||||
-rw-r--r-- | shared/models/video-blacklist.model.ts | 5 | ||||
-rw-r--r-- | shared/models/video.model.ts | 3 |
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 @@ | |||
1 | export * from './pod.model' | ||
2 | export * from './user.model' | ||
3 | export * from './video-abuse.model' | ||
4 | export * from './video-blacklist.model' | ||
5 | export * 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 @@ | |||
1 | export 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 @@ | |||
1 | export 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 @@ | |||
1 | export 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 @@ | |||
1 | export 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 @@ | |||
1 | export interface Video { | ||
2 | |||
3 | } | ||