7efe153b0b
Warning : I was not able to run the tests on my machine. It uses a different approach to handle databse connexion and didn't find where to configure it... - create a migration file to add a boolean column in user table - add autoPlayVideo attribute everywhere it is needed (both on client and server side) - add tests - add a way to configure this attribute in account-settings - use the attribute in video-watch component to actually autoplay or not the video
16 lines
369 B
TypeScript
16 lines
369 B
TypeScript
import { Account } from '../accounts'
|
|
import { VideoChannel } from '../videos/video-channel.model'
|
|
import { UserRole } from './user-role'
|
|
|
|
export interface User {
|
|
id: number
|
|
username: string
|
|
email: string
|
|
displayNSFW: boolean
|
|
autoPlayVideo: boolean
|
|
role: UserRole
|
|
videoQuota: number
|
|
createdAt: Date
|
|
account: Account
|
|
videoChannels?: VideoChannel[]
|
|
}
|