]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - shared/models/users/user.model.ts
Merge branch 'release/v1.2.0'
[github/Chocobozzz/PeerTube.git] / shared / models / users / user.model.ts
... / ...
CommitLineData
1import { Account } from '../actors'
2import { VideoChannel } from '../videos/channel/video-channel.model'
3import { UserRole } from './user-role'
4import { NSFWPolicyType } from '../videos/nsfw-policy.type'
5import { UserNotificationSetting } from './user-notification-setting.model'
6
7export 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}