1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00
planka/server/db/seeds/default.js

17 lines
376 B
JavaScript
Raw Normal View History

2019-08-31 04:07:25 +05:00
const bcrypt = require('bcrypt');
exports.seed = function(knex) {
const date = new Date().toUTCString();
return knex('user').insert({
/* eslint-disable camelcase */
email: 'demo@demo.demo',
password: bcrypt.hashSync('demo', 10),
is_admin: true,
name: 'Demo Demo',
created_at: date,
updated_at: date
/* eslint-enable camelcase */
});
};