Working on conversion from MongoDB to Postgresql

This commit is contained in:
Patrick McDonagh
2017-06-28 08:17:42 -05:00
parent b222c5370a
commit a0fd15bade
10 changed files with 398 additions and 583 deletions

View File

@@ -2,10 +2,10 @@
CREATE TABLE IF NOT EXISTS cards(
id SERIAL PRIMARY KEY,
stroke_number INTEGER unique,
s_p INTEGER ARRAY,
s_l INTEGER ARRAY,
d_p INTEGER ARRAY,
d_l INTEGER ARRAY,
surface_position INTEGER ARRAY,
surface_load INTEGER ARRAY,
downhole_position INTEGER ARRAY,
downhole_load INTEGER ARRAY,
ts_added TIMESTAMP DEFAULT NOW()
);