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

Commit

Permalink
Add column name and "IF NOT EXISTS"
Browse files Browse the repository at this point in the history
The column "breach name" has been added back to CSG credentials table. Also added "IF NOT EXISTS to all remaining create table statements.
  • Loading branch information
cduhn17 committed Sep 23, 2021
1 parent 0da611f commit 08a378b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pe_reports/data/data_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ CREATE TABLE IF NOT EXISTS public."DNSTwist"
);

-- Dark Web Alerts Table
CREATE TABLE public.alerts
CREATE TABLE IF NOT EXISTS public.alerts
(
alerts_uid uuid default uuid_generate_v1() NOT NULL,
alert_name text,
Expand All @@ -86,7 +86,7 @@ CREATE TABLE public.alerts
);

-- Dark Web Mentions Table
CREATE TABLE public.mentions
CREATE TABLE IF NOT EXISTS public.mentions
(
mentions_uid uuid default uuid_generate_v1() NOT NULL,
category text,
Expand Down Expand Up @@ -114,6 +114,7 @@ CREATE TABLE IF NOT EXISTS public.hibp_breaches
(
hibp_breaches_uid uuid default uuid_generate_v1() NOT NULL,
breach_id uuid NOT NULL,
breach_name text NOT NULL
description text,
breach_date date,
added_date timestamp without time zone,
Expand Down Expand Up @@ -162,7 +163,7 @@ CREATE TABLE IF NOT EXISTS public.cybersix_exposed_credentials
);

-- Top CVEs
CREATE TABLE public.top_cves
CREATE TABLE IF NOT EXISTS public.top_cves
(
top_cves_uid uuid default uuid_generate_v1() NOT NULL,
type text,
Expand Down

0 comments on commit 08a378b

Please sign in to comment.