20260303130916-photographers.js 690 B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. module.exports = {
  3. async up (queryInterface, Sequelize) {
  4. await queryInterface.bulkInsert('photographers', [
  5. {
  6. full_name: 'Александр Светлый',
  7. specialization: 'Портретная съемка',
  8. phone_number: '+79110001122',
  9. rating: 4.9,
  10. is_available: true
  11. },
  12. {
  13. full_name: 'Елена Вспышка',
  14. specialization: 'Свадебная съемка',
  15. phone_number: '+79220003344',
  16. rating: 4.8,
  17. is_available: true
  18. }
  19. ], {});
  20. },
  21. async down (queryInterface, Sequelize) {
  22. await queryInterface.bulkDelete('photographers', null, {});
  23. }
  24. };