Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
add organization to the data schema for hibp
Browse files Browse the repository at this point in the history
Added the organization to the data schema to facilitate querying for report generation
  • Loading branch information
DJensen94 committed Sep 13, 2021
1 parent 572e3ec commit df3e45b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pe_reports/data/data_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ CREATE TABLE IF NOT EXISTS public.hibp_exposed_credentials
(
credential_id serial,
email text NOT NULL,
organization text,
root_domain text,
sub_domain text,
breach_name text,
Expand Down Expand Up @@ -217,7 +218,7 @@ ALTER TABLE public.organizations
-- HIBP complete breach view
Create View vw_breach_complete
AS
SELECT creds.credential_id,creds.email, creds.breach_name, creds.root_domain, creds.sub_domain,
SELECT creds.credential_id,creds.email, creds.breach_name, creds.organization, creds.root_domain, creds.sub_domain,
b.description, b.breach_date, b.added_date, b.modified_date, b.data_classes,
b.password_included, b.is_verified, b.is_fabricated, b.is_sensitive, b.is_retired, b.is_spam_list

Expand Down

0 comments on commit df3e45b

Please sign in to comment.