1 import { User as UserServerModel } from '../../../../../shared';
3 export class User implements UserServerModel {
16 displayNSFW?: boolean,
20 this.username = hash.username;
21 this.email = hash.email;
22 this.role = hash.role;
23 this.displayNSFW = hash.displayNSFW;
26 this.createdAt = hash.createdAt;
31 return this.role === 'admin';