Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DiegoPinho/a1cb09d4934ec191a699ce71506483ef to your computer and use it in GitHub Desktop.
Save DiegoPinho/a1cb09d4934ec191a699ce71506483ef to your computer and use it in GitHub Desktop.
'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.bulkInsert(
"locais",
[
{
usuario_id: 9,
nome_local: "Local 1",
localidade: "São Paulo",
cep: "12345-678",
endereco: "Rua Exemplo, 123",
latitude: "-27.6019",
longitude: "-48.4703",
status: "ativo",
created_at: new Date(),
updated_at: new Date(),
}
],
{}
);
},
async down(queryInterface, Sequelize) {
/**
* Add commands to revert seed here.
*
* Example:
* await queryInterface.bulkDelete('People', null, {});
*/
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment