barker/bookie/src/app/core/user.ts
tanshu fdfd3dcbfb Added: Alembic for migrations
Moving from Pyramid to FastAPI
2020-06-14 18:43:10 +05:30

22 lines
364 B
TypeScript

export class User {
id: string;
name: string;
password: string;
lockedOut: boolean;
roles?: UserGroup[];
perms: string[];
isAuthenticated: boolean;
access_token?: string;
exp?: number;
public constructor(init?: Partial<User>) {
Object.assign(this, init);
}
}
export class UserGroup {
id: string;
name: string;
enabled: boolean;
}