aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-03 14:17:57 +0100
committerChocobozzz <me@florianbigard.com>2020-01-03 14:17:57 +0100
commitac0868bcc0259d4ff14265d9ae403e10869a13aa (patch)
tree7a86bc8f4d881360d5b613dc906be1a0d99aa0df /shared
parent35f28e94c763370616d25d5820f4b9ef70cedca9 (diff)
downloadPeerTube-ac0868bcc0259d4ff14265d9ae403e10869a13aa.tar.gz
PeerTube-ac0868bcc0259d4ff14265d9ae403e10869a13aa.tar.zst
PeerTube-ac0868bcc0259d4ff14265d9ae403e10869a13aa.zip
Improve SQL query for my special playlists
Diffstat (limited to 'shared')
-rw-r--r--shared/models/users/user.model.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts
index 1434dca81..328b69df6 100644
--- a/shared/models/users/user.model.ts
+++ b/shared/models/users/user.model.ts
@@ -5,6 +5,7 @@ import { UserRole } from './user-role'
5import { NSFWPolicyType } from '../videos/nsfw-policy.type' 5import { NSFWPolicyType } from '../videos/nsfw-policy.type'
6import { UserNotificationSetting } from './user-notification-setting.model' 6import { UserNotificationSetting } from './user-notification-setting.model'
7import { UserAdminFlag } from './user-flag.model' 7import { UserAdminFlag } from './user-flag.model'
8import { VideoPlaylistType } from '@shared/models'
8 9
9export interface User { 10export interface User {
10 id: number 11 id: number
@@ -47,6 +48,14 @@ export interface User {
47 createdAt: Date 48 createdAt: Date
48} 49}
49 50
51export interface MyUserSpecialPlaylist {
52 id: number
53 name: string
54 type: VideoPlaylistType
55}
56
50export interface MyUser extends User { 57export interface MyUser extends User {
51 specialPlaylists: Partial<VideoPlaylist>[] 58 specialPlaylists: MyUserSpecialPlaylist[]
52} 59}
60
61