2020-04-19 14:22:10 +02:00
|
|
|
import { Poll } from './poll.model';
|
2020-05-01 19:10:17 +02:00
|
|
|
import { UserRole } from '../enums/user-role.enum';
|
2020-04-19 14:22:10 +02:00
|
|
|
|
|
|
|
export class User {
|
2020-04-21 17:26:25 +02:00
|
|
|
constructor(
|
2020-05-01 19:10:17 +02:00
|
|
|
public role: UserRole = UserRole.ANONYMOUS,
|
2020-04-21 17:26:25 +02:00
|
|
|
public isOwner: boolean = false,
|
|
|
|
public pseudo?: string,
|
|
|
|
public email?: string,
|
|
|
|
public polls?: Poll[]
|
|
|
|
) {}
|
2020-04-19 14:22:10 +02:00
|
|
|
}
|