mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 23:59:48 +02:00
Initial commit
This commit is contained in:
commit
5ffef61fe7
613 changed files with 91659 additions and 0 deletions
16
server/db/seeds/default.js
Normal file
16
server/db/seeds/default.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
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 */
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue