1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-27 17:19:43 +02:00
planka/server/db/seeds/default.js

15 lines
293 B
JavaScript
Raw Normal View History

import bcrypt from 'bcrypt';
2019-08-31 04:07:25 +05:00
exports.seed = knex => {
2019-08-31 04:07:25 +05:00
const date = new Date().toUTCString();
return knex('user').insert({
email: 'demo@demo.demo',
password: bcrypt.hashSync('demo', 10),
isAdmin: true,
2019-08-31 04:07:25 +05:00
name: 'Demo Demo',
createdAt: date,
updatedAt: date,
2019-08-31 04:07:25 +05:00
});
};