From d7b15ad81384e5bf1c317e07eb92c421743cf7c3 Mon Sep 17 00:00:00 2001 From: balanscott Date: Sat, 9 Jul 2022 01:50:57 -0500 Subject: [PATCH] Updates: - Renamed DDL PostgreSQL-2022-03-17.sql to PostgreSQL-2022-0317.sql for consistency - Added new DDL to support latest changes, PostgreSQL-2022-0708.sql = Created DataTier/DataLoader directory added Postgres-DataLoader-Defianz-v1.sql script to it for handling data loading tasks. - Added DataTier/DataLoader/DataFiles to put needed data import files. Placed refdata_status.sql and refdata_dataattributes.sql scripts into directory to support data loading of key reference tables --- ...022-03-17.sql => PostgreSQL-2022-0317.sql} | 0 DataTier/DDLs/PostgreSQL-2022-0708.sql | 492 ++++++++++++++++++ .../DataFiles/refdata_dataattributes.sql | 3 + .../DataLoaders/DataFiles/refdata_status.sql | 5 + .../Postgres-DataLoader-Defianz-v1.sql | 5 + 5 files changed, 505 insertions(+) rename DataTier/DDLs/{PostgreSQL-2022-03-17.sql => PostgreSQL-2022-0317.sql} (100%) create mode 100644 DataTier/DDLs/PostgreSQL-2022-0708.sql create mode 100644 DataTier/DataLoaders/DataFiles/refdata_dataattributes.sql create mode 100644 DataTier/DataLoaders/DataFiles/refdata_status.sql create mode 100644 DataTier/DataLoaders/Postgres-DataLoader-Defianz-v1.sql diff --git a/DataTier/DDLs/PostgreSQL-2022-03-17.sql b/DataTier/DDLs/PostgreSQL-2022-0317.sql similarity index 100% rename from DataTier/DDLs/PostgreSQL-2022-03-17.sql rename to DataTier/DDLs/PostgreSQL-2022-0317.sql diff --git a/DataTier/DDLs/PostgreSQL-2022-0708.sql b/DataTier/DDLs/PostgreSQL-2022-0708.sql new file mode 100644 index 0000000..70c88cc --- /dev/null +++ b/DataTier/DDLs/PostgreSQL-2022-0708.sql @@ -0,0 +1,492 @@ +-- +-- PostgreSQL database dump +-- + +-- +-- TOC entry 2 (class 3079 OID 20582) +-- Name: pgcrypto; Type: EXTENSION; Schema: -; Owner: - +-- + +CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public; + +-- +-- TOC entry 3999 (class 0 OID 0) +-- Dependencies: 2 +-- Name: EXTENSION pgcrypto; Type: COMMENT; Schema: -; Owner: +-- + +COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; + +-- +-- TOC entry 205 (class 1259 OID 20364) +-- Name: PersonIdentity_PersonIdentityID_seq; Type: SEQUENCE; Schema: public; Owner: test_dsynth +-- + +CREATE SEQUENCE "PersonIdentity_PersonIdentityID_seq" + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + + +-- +-- TOC entry 203 (class 1259 OID 20354) +-- Name: Person_PersonID_seq; Type: SEQUENCE; Schema: public; Owner: test_dsynth +-- + +CREATE SEQUENCE "Person_PersonID_seq" + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- TOC entry 211 (class 1259 OID 20822) +-- Name: crossmaps; Type: TABLE; Schema: public; Owner: test_dsynth +-- + +CREATE TABLE crossmaps ( + crossmapid bigint NOT NULL, + crossmapdesc character varying(49), + createddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP, + statusid smallint DEFAULT 1, + industrystd character varying(10), + organization character varying(38), + application character varying(38) +); + + +-- +-- TOC entry 213 (class 1259 OID 20837) +-- Name: crossmaps_dtl; Type: TABLE; Schema: public; Owner: test_dsynth +-- + +CREATE TABLE crossmaps_dtl ( + crossmapdtlid bigint NOT NULL, + dataattributeid smallint, + statusid integer DEFAULT 1, + createddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP, + crossmapid bigint, + crossmapfield character varying(20) +); + + + +-- +-- TOC entry 212 (class 1259 OID 20835) +-- Name: crossmaps_dtl_seq; Type: SEQUENCE; Schema: public; Owner: test_dsynth +-- + +CREATE SEQUENCE crossmaps_dtl_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + + +-- +-- TOC entry 4000 (class 0 OID 0) +-- Dependencies: 212 +-- Name: crossmaps_dtl_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: test_dsynth +-- + +ALTER SEQUENCE crossmaps_dtl_seq OWNED BY crossmaps_dtl.crossmapdtlid; + + +-- +-- TOC entry 216 (class 1259 OID 20925) +-- Name: crossmaps_person_dtl_seq; Type: SEQUENCE; Schema: public; Owner: test_dsynth +-- + +CREATE SEQUENCE crossmaps_person_dtl_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +-- +-- TOC entry 217 (class 1259 OID 20927) +-- Name: crossmaps_person_dtl; Type: TABLE; Schema: public; Owner: test_dsynth +-- + +CREATE TABLE crossmaps_person_dtl ( + crossmapspersondtlid bigint DEFAULT nextval('crossmaps_person_dtl_seq'::regclass) NOT NULL, + crossmapsdtlid bigint, + dataattributeid smallint, + statusid integer DEFAULT 1, + keydatavalueid bigint, + createddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP, + personidentityid bigint +); + + + +-- +-- TOC entry 210 (class 1259 OID 20820) +-- Name: crossmapshdr_crossmapid_seq; Type: SEQUENCE; Schema: public; Owner: test_dsynth +-- + +CREATE SEQUENCE crossmapshdr_crossmapid_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + + +-- +-- TOC entry 4001 (class 0 OID 0) +-- Dependencies: 210 +-- Name: crossmapshdr_crossmapid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: test_dsynth +-- + + +-- +-- TOC entry 204 (class 1259 OID 20356) +-- Name: personidentities; Type: TABLE; Schema: public; Owner: test_dsynth +-- + +CREATE TABLE personidentities ( + personidentityid bigint DEFAULT nextval('"Person_PersonID_seq"'::regclass) NOT NULL, + application character varying(38), + organization character varying(38), + createddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP, + statusid smallint DEFAULT 1, + sha256 character(64) +); + + +-- +-- TOC entry 215 (class 1259 OID 20869) +-- Name: refdata_dataattributes; Type: TABLE; Schema: public; Owner: test_dsynth +-- + +CREATE TABLE refdata_dataattributes ( + platformdataattributesid integer NOT NULL, + dataattributename character varying(50) DEFAULT 'NULL'::character varying, + createddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP, + statusid integer DEFAULT 1, + createduser character varying(20) DEFAULT 'NULL'::character varying +); + + +-- +-- TOC entry 214 (class 1259 OID 20867) +-- Name: refdata_dataattributes_platformdataattributesid_seq; Type: SEQUENCE; Schema: public; Owner: test_dsynth +-- + +CREATE SEQUENCE refdata_dataattributes_platformdataattributesid_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + + +-- +-- TOC entry 4002 (class 0 OID 0) +-- Dependencies: 214 +-- Name: refdata_dataattributes_platformdataattributesid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: test_dsynth +-- + +ALTER SEQUENCE refdata_dataattributes_platformdataattributesid_seq OWNED BY refdata_dataattributes.platformdataattributesid; + + +-- +-- TOC entry 206 (class 1259 OID 20374) +-- Name: refdata_idenitifiertype_identifiertypeID_seq; Type: SEQUENCE; Schema: public; Owner: test_dsynth +-- + +CREATE SEQUENCE "refdata_idenitifiertype_identifiertypeID_seq" + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +-- +-- TOC entry 207 (class 1259 OID 20376) +-- Name: refdata_identitytype; Type: TABLE; Schema: public; Owner: test_dsynth +-- + +CREATE TABLE refdata_identitytype ( + "identitytypeID" smallint DEFAULT nextval('"refdata_idenitifiertype_identifiertypeID_seq"'::regclass) NOT NULL, + identityname character varying(35), + "createdDate" timestamp without time zone DEFAULT CURRENT_TIMESTAMP, + "statusID" smallint DEFAULT 1 +); + + +-- +-- TOC entry 209 (class 1259 OID 20386) +-- Name: refdata_statuses; Type: TABLE; Schema: public; Owner: test_dsynth +-- + +CREATE TABLE refdata_statuses ( + statusid integer NOT NULL, + statusdescription character varying(45), + createddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP +); + + +-- +-- TOC entry 208 (class 1259 OID 20384) +-- Name: refdata_statuses_statusID_seq; Type: SEQUENCE; Schema: public; Owner: test_dsynth +-- + +CREATE SEQUENCE "refdata_statuses_statusID_seq" + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +-- +-- TOC entry 4003 (class 0 OID 0) +-- Dependencies: 208 +-- Name: refdata_statuses_statusID_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: test_dsynth +-- + + +-- +-- TOC entry 3825 (class 2604 OID 20825) +-- Name: crossmaps crossmapid; Type: DEFAULT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps ALTER COLUMN crossmapid SET DEFAULT nextval('crossmapshdr_crossmapid_seq'::regclass); + + +-- +-- TOC entry 3828 (class 2604 OID 20840) +-- Name: crossmaps_dtl crossmapdtlid; Type: DEFAULT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps_dtl ALTER COLUMN crossmapdtlid SET DEFAULT nextval('crossmaps_dtl_seq'::regclass); + + +-- +-- TOC entry 3831 (class 2604 OID 20872) +-- Name: refdata_dataattributes platformdataattributesid; Type: DEFAULT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY refdata_dataattributes ALTER COLUMN platformdataattributesid SET DEFAULT nextval('refdata_dataattributes_platformdataattributesid_seq'::regclass); + + +-- +-- TOC entry 3823 (class 2604 OID 20389) +-- Name: refdata_statuses statusid; Type: DEFAULT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY refdata_statuses ALTER COLUMN statusid SET DEFAULT nextval('"refdata_statuses_statusID_seq"'::regclass); + + +-- +-- TOC entry 3849 (class 2606 OID 20829) +-- Name: crossmaps crossmaps_pk; Type: CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps + ADD CONSTRAINT crossmaps_pk PRIMARY KEY (crossmapid); + + +-- +-- TOC entry 3855 (class 2606 OID 20934) +-- Name: crossmaps_person_dtl crossmapsdataattributedtl_pk; Type: CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps_person_dtl + ADD CONSTRAINT crossmapsdataattributedtl_pk PRIMARY KEY (crossmapspersondtlid); + + +-- +-- TOC entry 3851 (class 2606 OID 20844) +-- Name: crossmaps_dtl crossmapsdtl_pk; Type: CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps_dtl + ADD CONSTRAINT crossmapsdtl_pk PRIMARY KEY (crossmapdtlid); + + +-- +-- TOC entry 3841 (class 2606 OID 20363) +-- Name: personidentities personidentity_pkey; Type: CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY personidentities + ADD CONSTRAINT personidentity_pkey PRIMARY KEY (personidentityid); + + +-- +-- TOC entry 3853 (class 2606 OID 20878) +-- Name: refdata_dataattributes refdata_dataattributes_pkey; Type: CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY refdata_dataattributes + ADD CONSTRAINT refdata_dataattributes_pkey PRIMARY KEY (platformdataattributesid); + + +-- +-- TOC entry 3844 (class 2606 OID 20383) +-- Name: refdata_identitytype refdata_identitytype_pkey; Type: CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY refdata_identitytype + ADD CONSTRAINT refdata_identitytype_pkey PRIMARY KEY ("identitytypeID"); + + +-- +-- TOC entry 3847 (class 2606 OID 20392) +-- Name: refdata_statuses refdata_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY refdata_statuses + ADD CONSTRAINT refdata_statuses_pkey PRIMARY KEY (statusid); + + +-- +-- TOC entry 3839 (class 1259 OID 20429) +-- Name: personidentifier_pk; Type: INDEX; Schema: public; Owner: test_dsynth +-- + +CREATE UNIQUE INDEX personidentifier_pk ON personidentities USING btree (personidentityid); + + +-- +-- TOC entry 3856 (class 1259 OID 21138) +-- Name: personidentity_index; Type: INDEX; Schema: public; Owner: test_dsynth +-- + +CREATE INDEX personidentity_index ON crossmaps_person_dtl USING btree (personidentityid); + + +-- +-- TOC entry 3842 (class 1259 OID 20431) +-- Name: refdata_idenitifiertype_pk; Type: INDEX; Schema: public; Owner: test_dsynth +-- + +CREATE UNIQUE INDEX refdata_idenitifiertype_pk ON refdata_identitytype USING btree ("identitytypeID"); + + +-- +-- TOC entry 3845 (class 1259 OID 20432) +-- Name: refdata_statuses_pk; Type: INDEX; Schema: public; Owner: test_dsynth +-- + +CREATE UNIQUE INDEX refdata_statuses_pk ON refdata_statuses USING btree (statusid); + + +-- +-- TOC entry 3859 (class 2606 OID 20830) +-- Name: crossmaps fk_crossmaps_statuses; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps + ADD CONSTRAINT fk_crossmaps_statuses FOREIGN KEY (statusid) REFERENCES refdata_statuses(statusid); + + +-- +-- TOC entry 3861 (class 2606 OID 20850) +-- Name: crossmaps_dtl fk_crossmapsdtl_crossmaps; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps_dtl + ADD CONSTRAINT fk_crossmapsdtl_crossmaps FOREIGN KEY (crossmapid) REFERENCES crossmaps(crossmapid); + + +-- +-- TOC entry 3862 (class 2606 OID 20884) +-- Name: crossmaps_dtl fk_crossmapsdtl_dataattribute; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps_dtl + ADD CONSTRAINT fk_crossmapsdtl_dataattribute FOREIGN KEY (dataattributeid) REFERENCES refdata_dataattributes(platformdataattributesid); + + +-- +-- TOC entry 3864 (class 2606 OID 20935) +-- Name: crossmaps_person_dtl fk_crossmapsdtl_dataattribute; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps_person_dtl + ADD CONSTRAINT fk_crossmapsdtl_dataattribute FOREIGN KEY (dataattributeid) REFERENCES refdata_dataattributes(platformdataattributesid); + + +-- +-- TOC entry 3866 (class 2606 OID 20954) +-- Name: crossmaps_person_dtl fk_crossmapsdtl_dataattributedtl; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps_person_dtl + ADD CONSTRAINT fk_crossmapsdtl_dataattributedtl FOREIGN KEY (personidentityid) REFERENCES personidentities(personidentityid); + + +-- +-- TOC entry 3860 (class 2606 OID 20845) +-- Name: crossmaps_dtl fk_crossmapsdtl_statuses; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps_dtl + ADD CONSTRAINT fk_crossmapsdtl_statuses FOREIGN KEY (statusid) REFERENCES refdata_statuses(statusid); + + +-- +-- TOC entry 3865 (class 2606 OID 20940) +-- Name: crossmaps_person_dtl fk_crossmapsdtl_statuses; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY crossmaps_person_dtl + ADD CONSTRAINT fk_crossmapsdtl_statuses FOREIGN KEY (statusid) REFERENCES refdata_statuses(statusid); + + +-- +-- TOC entry 3857 (class 2606 OID 20403) +-- Name: personidentities personidentity_StatusID_fkey; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY personidentities + ADD CONSTRAINT "personidentity_StatusID_fkey" FOREIGN KEY (statusid) REFERENCES refdata_statuses(statusid); + + +-- +-- TOC entry 3863 (class 2606 OID 20879) +-- Name: refdata_dataattributes refdata_dataattributes_statusid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY refdata_dataattributes + ADD CONSTRAINT refdata_dataattributes_statusid_fkey FOREIGN KEY (statusid) REFERENCES refdata_statuses(statusid); + + +-- +-- TOC entry 3858 (class 2606 OID 20423) +-- Name: refdata_identitytype refdata_identitytype_statusID_fkey; Type: FK CONSTRAINT; Schema: public; Owner: test_dsynth +-- + +ALTER TABLE ONLY refdata_identitytype + ADD CONSTRAINT "refdata_identitytype_statusID_fkey" FOREIGN KEY ("statusID") REFERENCES refdata_statuses(statusid); + + +-- Completed on 2022-07-09 01:02:03 CDT + +-- +-- PostgreSQL database dump complete +-- + diff --git a/DataTier/DataLoaders/DataFiles/refdata_dataattributes.sql b/DataTier/DataLoaders/DataFiles/refdata_dataattributes.sql new file mode 100644 index 0000000..9f66687 --- /dev/null +++ b/DataTier/DataLoaders/DataFiles/refdata_dataattributes.sql @@ -0,0 +1,3 @@ +INSERT INTO refdata_dataattributes + (datagenconfigid,datatypegenconfigname,dataattributeid,runquantity,datagentypeid,createddate,statusid,createduser,applicationid) +VALUES (1,'Account Numbers',14,10000,56,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (2,'Address',3,10000,NULL,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (3,'Bank Accounts',7,10000,58,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (4,'Credit Cards - Master',6,10000,1,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (5,'Date of Births',8,10000,NULL,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (6,'Phone Number - Intrntl',17,10000,NULL,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (7,'Phone Number - US',5,10000,NULL,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (8,'SSN',10,10000,NULL,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (9,'User Identities',15,10000,59,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (10,'Drivers Licenses - AK',9,10000,6,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (11,'Drivers Licenses - AL',9,10000,5,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (12,'Drivers Licenses - AR',9,10000,8,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (13,'Drivers Licenses - AZ',9,10000,7,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (14,'Drivers Licenses - CA',9,10000,9,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (15,'Drivers Licenses - CO',9,10000,10,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (16,'Drivers Licenses - CT',9,10000,11,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (17,'Drivers Licenses - DC',9,10000,13,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (18,'Drivers Licenses - DE',9,10000,12,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (19,'Drivers Licenses - FL',9,10000,14,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (20,'Drivers Licenses - GA',9,10000,15,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (21,'Drivers Licenses - HI',9,10000,16,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (22,'Drivers Licenses - IA',9,10000,20,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (23,'Drivers Licenses - ID',9,10000,17,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (24,'Drivers Licenses - IL',9,10000,18,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (25,'Drivers Licenses - IN',9,10000,19,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (26,'Drivers Licenses - KS',9,10000,21,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (27,'Drivers Licenses - KY',9,10000,22,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (28,'Drivers Licenses - LA',9,10000,23,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (29,'Drivers Licenses - MA',9,10000,26,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (30,'Drivers Licenses - MD',9,10000,25,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (31,'Drivers Licenses - ME',9,10000,24,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (32,'Drivers Licenses - MI',9,10000,27,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (33,'Drivers Licenses - MN',9,10000,28,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (34,'Drivers Licenses - MO',9,10000,30,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (35,'Drivers Licenses - MS',9,10000,29,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (36,'Drivers Licenses - MT',9,10000,31,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (37,'Drivers Licenses - NC',9,10000,38,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (38,'Drivers Licenses - ND',9,10000,39,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (39,'Drivers Licenses - NE',9,10000,32,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (40,'Drivers Licenses - NH',9,10000,34,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (41,'Drivers Licenses - NJ',9,10000,35,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (42,'Drivers Licenses - NM',9,10000,36,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (43,'Drivers Licenses - NV',9,10000,33,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (44,'Drivers Licenses - NY',9,10000,37,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (45,'Drivers Licenses - OH',9,10000,40,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (46,'Drivers Licenses - OK',9,10000,41,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (47,'Drivers Licenses - OR',9,10000,42,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (48,'Drivers Licenses - PA',9,10000,43,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (49,'Drivers Licenses - RI',9,10000,44,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (50,'Drivers Licenses - SC',9,10000,45,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (51,'Drivers Licenses - SD',9,10000,46,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (52,'Drivers Licenses - TN',9,10000,47,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (53,'Drivers Licenses - TX',9,10000,48,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (54,'Drivers Licenses - UT',9,10000,49,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (55,'Drivers Licenses - VA',9,10000,51,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (56,'Drivers Licenses - VT',9,10000,50,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (57,'Drivers Licenses - WA',9,10000,52,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (58,'Drivers Licenses - WI',9,10000,54,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (59,'Drivers Licenses - WV',9,10000,53,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (60,'Drivers Licenses - WY',9,10000,55,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (61,'EIN (Fed Emplyr ID)',13,10000,NULL,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (62,'Credit Cards - Visa',6,10000,2,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (63,'Credit Cards - Discover',6,10000,3,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (64,'Credit Cards - AMEX',6,10000,4,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '), (65,'Account Numbers',14,10000,57,'2020-08-22 15:55:52.000',1,NULL,'16a17a48-d09b-11ea-9579-bba61161b25a '); \ No newline at end of file diff --git a/DataTier/DataLoaders/DataFiles/refdata_status.sql b/DataTier/DataLoaders/DataFiles/refdata_status.sql new file mode 100644 index 0000000..0a1fbbc --- /dev/null +++ b/DataTier/DataLoaders/DataFiles/refdata_status.sql @@ -0,0 +1,5 @@ +INSERT INTO refdata_status (StatusDescription,CreatedDate,CreatedUser) VALUES +('Active','2020-07-21 01:12:51.0',NULL) +,('Inactive','2020-07-21 01:12:51.0',NULL) +,('Arcived','2020-07-21 01:12:51.0',NULL) +; \ No newline at end of file diff --git a/DataTier/DataLoaders/Postgres-DataLoader-Defianz-v1.sql b/DataTier/DataLoaders/Postgres-DataLoader-Defianz-v1.sql new file mode 100644 index 0000000..983212f --- /dev/null +++ b/DataTier/DataLoaders/Postgres-DataLoader-Defianz-v1.sql @@ -0,0 +1,5 @@ +# psql h localhost -U postgres -d datasynthesis -p 5432 -f file.sql +# "C:\Program Files\PostgreSQL\13\bin\psql.exe" -h localhost -U postgres -d datasynthesis -p 5432 -f ./ReferenceData/1-refdata_status.sql +psql -h localhost -U postgres -d datasynthesis -p 5432 -f ./DataFiles/refdata_status.sql +psql -h localhost -U postgres -d datasynthesis -p 5432 -f ./DataFiles/refdata_dataattributes.sql +