diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-03 14:17:57 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-03 14:17:57 +0100 |
commit | ac0868bcc0259d4ff14265d9ae403e10869a13aa (patch) | |
tree | 7a86bc8f4d881360d5b613dc906be1a0d99aa0df /shared/models/users | |
parent | 35f28e94c763370616d25d5820f4b9ef70cedca9 (diff) | |
download | PeerTube-ac0868bcc0259d4ff14265d9ae403e10869a13aa.tar.gz PeerTube-ac0868bcc0259d4ff14265d9ae403e10869a13aa.tar.zst PeerTube-ac0868bcc0259d4ff14265d9ae403e10869a13aa.zip |
Improve SQL query for my special playlists
Diffstat (limited to 'shared/models/users')
-rw-r--r-- | shared/models/users/user.model.ts | 11 |
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' | |||
5 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | 5 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
6 | import { UserNotificationSetting } from './user-notification-setting.model' | 6 | import { UserNotificationSetting } from './user-notification-setting.model' |
7 | import { UserAdminFlag } from './user-flag.model' | 7 | import { UserAdminFlag } from './user-flag.model' |
8 | import { VideoPlaylistType } from '@shared/models' | ||
8 | 9 | ||
9 | export interface User { | 10 | export 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 | ||
51 | export interface MyUserSpecialPlaylist { | ||
52 | id: number | ||
53 | name: string | ||
54 | type: VideoPlaylistType | ||
55 | } | ||
56 | |||
50 | export interface MyUser extends User { | 57 | export interface MyUser extends User { |
51 | specialPlaylists: Partial<VideoPlaylist>[] | 58 | specialPlaylists: MyUserSpecialPlaylist[] |
52 | } | 59 | } |
60 | |||
61 | |||