fase(15): reporting module with pdf generation
This commit is contained in:
@@ -201,6 +201,19 @@ export interface AuthSessionTable {
|
||||
created_at: number;
|
||||
}
|
||||
|
||||
export interface ReportTable {
|
||||
id: string;
|
||||
title: string;
|
||||
format: string;
|
||||
status: string;
|
||||
filters_json: string;
|
||||
file_path: string | null;
|
||||
error_message: string | null;
|
||||
total_findings: number;
|
||||
created_at: number;
|
||||
completed_at: number | null;
|
||||
}
|
||||
|
||||
export interface Database {
|
||||
sessions: SessionTable;
|
||||
states: StateTable;
|
||||
@@ -218,6 +231,7 @@ export interface Database {
|
||||
org_members: OrgMemberTable;
|
||||
api_keys: ApiKeyTable;
|
||||
auth_sessions: AuthSessionTable;
|
||||
reports: ReportTable;
|
||||
}
|
||||
|
||||
export function createDatabase(config: { driver: string; path: string; url?: string }): Kysely<Database> {
|
||||
|
||||
Reference in New Issue
Block a user