working proper seeding

This commit is contained in:
Arjun Patel
2019-03-14 03:56:01 -07:00
parent 064b8df2a0
commit 0880a36ade
6 changed files with 80 additions and 73 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
'use strict';
const bcrypt = require('bcrypt-nodejs');
const bcrypt = require('bcrypt-nodejs'),
uuidv4 = require('uuid/v4');
// DOESNT WORK AS NEED TO HASH PASSWORD TO DB
module.exports = {
@@ -8,6 +9,7 @@ module.exports = {
return queryInterface.bulkInsert('donors', [
{
id: uuidv4(),
first_name: 'Arjun',
last_name: 'Patel',
email: '[email protected]',