Added: Alembic for migrations
Moving from Pyramid to FastAPI
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user