20260312071822-favorites.js 479 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. /** @type {import('sequelize-cli').Migration} */
  3. module.exports = {
  4. async up (queryInterface, Sequelize) {
  5. await queryInterface.bulkInsert('favorites', [
  6. {
  7. client_id: 1,
  8. hall_id: 1,
  9. photographer_id: null
  10. },
  11. {
  12. client_id: 2,
  13. hall_id: null,
  14. photographer_id: 1
  15. }
  16. ], {});
  17. },
  18. async down (queryInterface, Sequelize) {
  19. await queryInterface.bulkDelete('favorites', null, {});
  20. }
  21. };