first commit

This commit is contained in:
2020-02-07 17:55:43 +01:00
commit 06b2078e4d
18 changed files with 2818 additions and 0 deletions

0
models/citiesModel.js Normal file
View File

16
models/countriesModel.js Normal file
View File

@@ -0,0 +1,16 @@
const db = require('../data/dbConfig');
module.exports = {
getCountries,
getCountryByName,
};
function getCountries() {
return db('countries')
}
function getCountryByName(name) {
return db('countries')
.where({ name })
.first()
}

0
models/roadsModel.js Normal file
View File