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

Commit

Permalink
Merge pull request #58 from cisagov/dj-working-updateSql
Browse files Browse the repository at this point in the history
add organization to the data schema for hibp
  • Loading branch information
schmelz21 committed Sep 14, 2021
2 parents 572e3ec + df3e45b commit 67f54d8
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 67f54d8

Please sign in to comment.