Added: Alembic for migrations

Moving from Pyramid to FastAPI
This commit is contained in:
2020-06-14 18:43:10 +05:30
parent 0c0a2990a8
commit fdfd3dcbfb
139 changed files with 4017 additions and 3397 deletions

View File

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