-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit_geo_db.sql
More file actions
28 lines (28 loc) · 929 Bytes
/
init_geo_db.sql
File metadata and controls
28 lines (28 loc) · 929 Bytes
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
create table foo (
id serial PRIMARY KEY,
is_geocoded bool NOT NULL,
voterbase_id VARCHAR (100) NOT NULL,
address VARCHAR (355) NOT NULL,
state VARCHAR (2) NOT NULL,
zipcode integer not null,
vb_vf_precinct_id VARCHAR (100) NOT NULL,
vb_vf_precinct_name VARCHAR (100) NOT NULL,
vb_vf_national_precinct_code VARCHAR (100) NOT NULL,
voter_status VARCHAR (20) NOT NULL,
vf_reg_cd VARCHAR (100) NOT NULL,
vf_reg_hd VARCHAR (100) NOT NULL,
vf_reg_sd VARCHAR (100) NOT NULL,
geocoded_address VARCHAR (355),
is_match VARCHAR (100),
is_exact VARCHAR (100),
returned_address VARCHAR (355),
coordinates VARCHAR (355),
tiger_line integer,
side VARCHAR (1),
state_fips integer,
county_fips integer,
tract VARCHAR (355),
block VARCHAR (355),
longitude float8,
latitude float8
); ALTER TABLE foo ALTER COLUMN is_geocoded SET DEFAULT FALSE;