-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathETL_TableSchema.txt
More file actions
33 lines (29 loc) · 1.03 KB
/
ETL_TableSchema.txt
File metadata and controls
33 lines (29 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-- Exported from QuickDBD: https://www.quickdatabasediagrams.com/
-- Link to schema: https://app.quickdatabasediagrams.com/#/d/RbFR9c
-- NOTE! If you have used non-SQL datatypes in your design, you will have to change these here.
CREATE TABLE "Accidental_Shootings" (
"Incident_ID" int NOT NULL,
"Incident_Date" date NOT NULL,
"State" varchar(50) NOT NULL,
"CityorCounty" varchar(100) NOT NULL,
"Address" varchar(200) NOT NULL,
"Num_Killed" int NOT NULL,
"Num_Injured" int NOT NULL,
"Operations" string NOT NULL,
CONSTRAINT "pk_Accidental_Shootings" PRIMARY KEY (
"Incident_ID"
)
);
CREATE TABLE "Mass_Shootings" (
"Incident_ID" int NOT NULL,
"Incident_Date" date NOT NULL,
"State" varchar(50) NOT NULL,
"CityorCounty" varchar(100) NOT NULL,
"Address" varchar(200) NOT NULL,
"Num_Killed" int NOT NULL,
"Num_Injured" int NOT NULL,
"Operations" string NOT NULL,
CONSTRAINT "pk_Mass_Shootings" PRIMARY KEY (
"Incident_ID"
)
);