andela/team-odd-bn-backend

View on GitHub
src/database/seeders/20191114145913-user-profile.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

module.exports = {
    up: (queryInterface, Sequelize) => {
        return queryInterface.bulkInsert('userProfile', [{
            userId: 2,
            gender: null,
            birthDate: null,
            address: null,
            imageURL:null,
            department: null,
            managerId: 5,
            bio: null,
            createdAt: new Date(),
            updatedAt: new Date()
        },
        {
                userId: 1,
                gender: 'male',
                birthDate: '2000-10-10',
                address: 'kigali',
                imageURL:'nop.jpg',
                department: 'IT',
                managerId: 5,
                bio: 'hooooo',
                createdAt: new Date(),
                updatedAt: new Date()
        }
        ], {});
    },

    down: (queryInterface, Sequelize) => {
        return queryInterface.bulkDelete('userProfile', null, {});
    }
};