Knex seeds: associating records
It's easiest if you're associating records between tables if you do it in one seed file. There are other ways but for now this is probably easiest.
PostgreSQL will generate your id fields for you, so don't put them in your seeds!
Instead, take advantage of the
returning chainable method from knex. See the below
seed file and also http://knexjs.org docs.