lynx-framework
Version:
lynx is a NodeJS framework for Web Development, based on decorators and the async/await support.
20 lines (19 loc) • 510 B
TypeScript
import BaseEntity from './base.entity';
import Role from './role.entity';
import Media from './media.entity';
export declare function setSkipSync(skip: boolean): void;
export default class User extends BaseEntity {
id: number;
email: string;
password: string;
firstName: string;
lastName: string;
nickName: string;
roles: Role[];
media: Media[];
hiddenFields: string[];
private hasRole;
get isAdmin(): boolean;
get isStuff(): boolean;
get level(): number;
}