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

Commit

Permalink
updated dnstwist table
Browse files Browse the repository at this point in the history
Updated table

- added primary key
- added if not exists
- added foreign key to connect with domain table
  • Loading branch information
aloftus23 committed Aug 26, 2021
1 parent bbb294b commit c277620
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/pe_reports/data/data_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
-- Includes Domain Masquerading, Credentals Exposed, Inffered Vulns, and Dark Web data

-- Domain Masquerading Table
CREATE TABLE "DNSTwist" (
"domain-name" character varying(200),
"dns-a" character varying(100),
"dns-aaaa" character varying(100)
CREATE TABLE IF NOT EXISTS pe_report."DNSTwist"
(
id serial NOT NULL,
original_domain text NOT NULL,
dnstwist_domain text NOT NULL,
"dns-a" character(100) NOT NULL,
"dns-aaaa" character(100),
"dns-mx" text,
"dns-ns" text,
"fuzzer" text,
fuzzer text NOT NULL,
"ssdeep-score" smallint,
"date-observed" date not null,
"date-observed" date NOT NULL,
PRIMARY KEY (id)
);

0 comments on commit c277620

Please sign in to comment.