Define table schema and CSVs to populate the database

TL;DR:
- Created src/init.sql, which defines the tables
- Created a data/ directory to house .csv data to populate our db
- Updated the README with usage instructions
This commit is contained in:
William Carroll 2020-07-27 11:16:26 +01:00
parent 722205b081
commit df13b761ff
5 changed files with 82 additions and 0 deletions

3
data/accounts.csv Normal file
View file

@ -0,0 +1,3 @@
mimi,testing,miriamwright@google.com,user,
bill,testing,wpcarro@gmail.com,manager,
wpcarro,testing,wpcarro@google.com,admin,
1 mimi testing miriamwright@google.com user
2 bill testing wpcarro@gmail.com manager
3 wpcarro testing wpcarro@google.com admin

3
data/trips.csv Normal file
View file

@ -0,0 +1,3 @@
mimi,Rome,2020-08-10,2020-15-30,Heading home before the upcoming trip with Panarea.
mimi,Panarea,2020-08-15,2020-05-30,Exciting upcoming trip with Matt and Sarah!
mimi,London,2020-08-30,2020-08-30,Heading back to London...
1 mimi Rome 2020-08-10 2020-15-30 Heading home before the upcoming trip with Panarea.
2 mimi Panarea 2020-08-15 2020-05-30 Exciting upcoming trip with Matt and Sarah!
3 mimi London 2020-08-30 2020-08-30 Heading back to London...