backend/data/seeds/1 - accounts.js
2020-05-05 17:58:34 +02:00

51 lines
1.2 KiB
JavaScript

exports.seed = function (knex) {
// Deletes ALL existing entries
return knex('account')
.del()
.then(function () {
// Inserts seed entries
return knex('account').insert([
{
username: 'liza',
email: 'liza@example.com',
password: 'really-strong-password',
timezone: 'Europe/Brussels',
earliest_time: '09:30',
latest_time: '22:00',
},
{
username: 'emile',
email: 'emile@example.com',
password: 'really-strong-password',
timezone: 'America/New_York',
earliest_time: '09:00',
latest_time: '20:00',
},
{
username: 'jack',
email: 'jack@example.com',
password: 'really-strong-password',
timezone: 'Asia/Kolkata',
earliest_time: '10:30',
latest_time: '17:00',
},
{
username: 'cynthia',
email: 'cynthia@example.com',
password: 'really-strong-password',
timezone: 'Europe/Brussels',
earliest_time: '06:30',
latest_time: '12:00',
},
{
username: 'celine',
email: 'celine@example.com',
password: 'really-strong-password',
timezone: 'Europe/Brussels',
earliest_time: '10:30',
latest_time: '20:00',
},
]);
});
};