]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/users/user.model.ts
Add import finished and video published notifs
[github/Chocobozzz/PeerTube.git] / shared / models / users / user.model.ts
1 import { Account } from '../actors'
2 import { VideoChannel } from '../videos/channel/video-channel.model'
3 import { UserRole } from './user-role'
4 import { NSFWPolicyType } from '../videos/nsfw-policy.type'
5 import { UserNotificationSetting } from './user-notification-setting.model'
6
7 export interface User {
8 id: number
9 username: string
10 email: string
11 emailVerified: boolean
12 nsfwPolicy: NSFWPolicyType
13
14 autoPlayVideo: boolean
15 webTorrentEnabled: boolean
16 videosHistoryEnabled: boolean
17
18 role: UserRole
19 videoQuota: number
20 videoQuotaDaily: number
21 createdAt: Date
22 account: Account
23 notificationSettings?: UserNotificationSetting
24 videoChannels?: VideoChannel[]
25
26 blocked: boolean
27 blockedReason?: string
28
29 videoQuotaUsed?: number
30 }