seed.ts 603 B

12345678910111213141516171819202122232425262728
  1. import { AbstractQueryInterface, Sequelize } from '@sequelize/core';
  2. export async function up(
  3. queryInterface: AbstractQueryInterface,
  4. sequelize: Sequelize,
  5. ): Promise<void> {
  6. /**
  7. * Add seed commands here.
  8. *
  9. * Example:
  10. * await queryInterface.bulkInsert('People', [{
  11. * name: 'John Doe',
  12. * isBetaMember: false
  13. * }], {});
  14. */
  15. }
  16. export async function down(
  17. queryInterface: AbstractQueryInterface,
  18. sequelize: Sequelize,
  19. ): Promise<void> {
  20. /**
  21. * Add commands to revert seed here.
  22. *
  23. * Example:
  24. * await queryInterface.bulkDelete('People', null, {});
  25. */
  26. }