UNPKG

@teikei/api

Version:

Teikei API server. Teikei is the software that powers ernte-teilen.org, a website that maps out Community-supported Agriculture in Germany.

64 lines (63 loc) 1.76 kB
exports.seed = async knex => { const adminPasswordHash = '$2a$13$Akt7Ne5JJQ.IrzYNLCTeTOFAGNWY22.nZE0aDB9IfKpLlpfE9J/Ua' await knex('users').del() await knex('users').insert([ { id: 1, email: 'superadmin@teikei.com', name: 'Teikei Superadmin', password: adminPasswordHash, origin: 'https://localhost:3000', baseurl: '/map#', phone: '', is_verified: true, verify_token: null, verify_short_token: null, verify_expires: null, verify_changes: null, reset_token: null, reset_short_token: null, reset_expires: null, created_at: '2013-10-31 18:09:57.000000', updated_at: '2017-09-27 14:09:43.992162' }, { id: 2, email: 'admin@teikei.com', name: 'Teikei Admin', password: adminPasswordHash, origin: 'https://localhost:3000', baseurl: '/map#', phone: null, is_verified: true, verify_token: null, verify_short_token: null, verify_expires: null, verify_changes: null, reset_token: null, reset_short_token: null, reset_expires: null, created_at: '2013-10-31 18:09:58.000000', updated_at: '2014-04-21 13:10:14.000000' }, { id: 3, email: 'user@teikei.com', name: 'Teikei User', password: adminPasswordHash, origin: 'https://localhost:3000', baseurl: '/map#', phone: null, is_verified: true, verify_token: null, verify_short_token: null, verify_expires: null, verify_changes: null, reset_token: null, reset_short_token: null, reset_expires: null, created_at: '2013-10-31 18:09:59.000000', updated_at: '2014-03-01 11:04:01.000000' } ]) }