feat: completed db schema

This commit is contained in:
Leonard Excoffier
2024-08-27 19:13:07 -04:00
parent 19a5579fb0
commit ce0152bbba

View File

@@ -4,6 +4,7 @@ CREATE TABLE entities (
); );
CREATE TABLE facts ( CREATE TABLE facts (
taxonomy VARCHAR(255), -- Taxonomy of the fact
fact VARCHAR(255) PRIMARY KEY, -- Label of the fact fact VARCHAR(255) PRIMARY KEY, -- Label of the fact
label VARCHAR(255), -- Label of the fact label VARCHAR(255), -- Label of the fact
description TEXT, -- Description of the fact description TEXT, -- Description of the fact
@@ -13,6 +14,7 @@ CREATE TABLE facts (
CREATE TABLE data ( CREATE TABLE data (
cik INT, -- CIK of the company cik INT, -- CIK of the company
fact VARCHAR(255), fact VARCHAR(255),
start DATE, -- Start date of the fact
end DATE, end DATE,
val INT, val INT,
accn VARCHAR(255), accn VARCHAR(255),