/var/www/p4ela.kz/server/delivery/seeders
NameSizeModeActions
20220614040150-deliveryType.js6290644editdlrm
20220614040151-payType.js6880644editdlrm
20220614040152-countryCodes.js3100644editdlrm
20220614040153-shippingRates.js23840644editdlrm
20220614040849-permissions.js2890644editdlrm
20220614040904-category.js3100644editdlrm
20220614040905-companies.js3050644editdlrm
20220614040906-branches.js2980644editdlrm
20220614040906-roles.js5790644editdlrm
20220614040908-companyTypes.js4480644editdlrm
20220614040909-productGroups.js3130644editdlrm
20220614040910-productTypes.js3080644editdlrm
20220614040911-products.js4840644editdlrm
20220614040912-productImages.js3130644editdlrm
20220614040913-productFeatures.js9170644editdlrm
20220617120540-language.js2940644editdlrm
20220617125015-user.js36570644editdlrm
Edit: /var/www/p4ela.kz/server/delivery/seeders/20220617125015-user.js (3657B)
'use strict' const { v4: uuidv4 } = require('uuid') module.exports = { async up(queryInterface, Sequelize) { await queryInterface.bulkInsert('users', [ { id: 1, uid: '831ad128-a9a9-40ad-a69a-638d2eabc1c2', login: 'exalted', name: 'Serg', email: 'g0502212339@gmail.com', passwordHash: '$2a$10$iYgXgjQGIMD93Bj.UibDUOnJ3URGKQmdxghwvfdj1adT72BhEJ9u.', // "password": "338001" roleId: 1, languageId: 3 }, { id: 2, uid: '1f9e272b-ba99-430e-bc93-e415c8325da3', login: 'owner', name: 'Владелец компании', email: 'owner@mail.test', passwordHash: '$2a$10$iYgXgjQGIMD93Bj.UibDUOnJ3URGKQmdxghwvfdj1adT72BhEJ9u.', // "password": "338001" roleId: 2, languageId: 3 }, { id: 3, uid: 'd2df027f-5668-44ca-9aca-3d751b66634f', login: 'director', name: 'Директор', email: 'director@mail.test', passwordHash: '$2a$10$iYgXgjQGIMD93Bj.UibDUOnJ3URGKQmdxghwvfdj1adT72BhEJ9u.', // "password": "338001" roleId: 3, languageId: 3 }, { id: 4, uid: '30c4e1e0-5d5e-4d70-8f61-2238238d0113', login: 'operatorb1', name: 'Оператор Branch 1', email: 'ob1@mail.test', passwordHash: '$2a$10$iYgXgjQGIMD93Bj.UibDUOnJ3URGKQmdxghwvfdj1adT72BhEJ9u.', // "password": "338001" roleId: 5, languageId: 3 }, { id: 5, uid: 'd00efc57-c564-4eef-b1b5-5590c6ee7bd2', login: 'driverb1', name: 'Доставщик Branch 1', email: 'db1@mail.test', passwordHash: '$2a$10$iYgXgjQGIMD93Bj.UibDUOnJ3URGKQmdxghwvfdj1adT72BhEJ9u.', // "password": "338001" roleId: 6, languageId: 3 } ]) await queryInterface.bulkInsert('user_phones', [ { uid: uuidv4(), phone: '380502212339', userId: 1 }, { uid: uuidv4(), phone: '79592221133', userId: 1 }, { uid: uuidv4(), phone: '380661112233', userId: 2 }, { uid: uuidv4(), phone: '79101234567', userId: 3 }, { uid: uuidv4(), phone: '79189876543', userId: 4 }, { uid: uuidv4(), phone: '79116549832', userId: 5 } ]) await queryInterface.bulkInsert('branch_users', [ { branchId: 1, userId: 1, roleId: 1, createdAt: new Date(), updatedAt: new Date() }, { branchId: 1, userId: 2, roleId: 2, createdAt: new Date(), updatedAt: new Date() }, { branchId: 1, userId: 3, roleId: 3, createdAt: new Date(), updatedAt: new Date() }, { branchId: 1, userId: 4, roleId: 5, createdAt: new Date(), updatedAt: new Date() }, { branchId: 3, userId: 5, roleId: 6, createdAt: new Date(), updatedAt: new Date() } ]) await queryInterface.bulkInsert('company_clients', [ { companyId: 1, userId: 1, createdAt: new Date(), updatedAt: new Date() }, { companyId: 1, userId: 2, createdAt: new Date(), updatedAt: new Date() }, { companyId: 2, userId: 1, createdAt: new Date(), updatedAt: new Date() }, { companyId: 2, userId: 2, createdAt: new Date(), updatedAt: new Date() } ]) await queryInterface.bulkInsert('drivers', [ { id: 1, uid: '169ab45a-3f53-11ed-b878-0242ac120002', description: 'test driver 1', userId: 1, createdAt: new Date(), updatedAt: new Date() }, { id: 2, uid: '8b3ff090-3f53-11ed-b878-0242ac120002', description: 'test driver 2', userId: 5, createdAt: new Date(), updatedAt: new Date() } ]) }, async down(queryInterface, Sequelize) { await queryInterface.bulkDelete('users', null, {}) await queryInterface.bulkDelete('user_phones', null, {}) } }