20260303130902-clients.js 638 B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. module.exports = {
  3. async up (queryInterface, Sequelize) {
  4. await queryInterface.bulkInsert('clients', [
  5. {
  6. first_name: 'Иван',
  7. last_name: 'Иванов',
  8. phone_number: '+79001112233',
  9. email: 'ivan@example.com',
  10. notes: 'Постоянный клиент'
  11. },
  12. {
  13. first_name: 'Мария',
  14. last_name: 'Петрова',
  15. phone_number: '+79004445566',
  16. email: 'maria@example.com',
  17. notes: null
  18. }
  19. ], {});
  20. },
  21. async down (queryInterface, Sequelize) {
  22. await queryInterface.bulkDelete('clients', null, {});
  23. }
  24. };