Created
May 17, 2024 23:20
-
-
Save DiegoPinho/a1cb09d4934ec191a699ce71506483ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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