I am trying to seed a uuid using sequilize generateUUID
but i get this error Seed file failed with error: sequelize.Utils.generateUUID is not a function TypeError: sequelize.Utils.generateUUID is not a function
how do i seed a UUID?
return queryInterface.bulkInsert('companies', [{
id: sequelize.Utils.generateUUID(),
name: 'Testing',
updated_at: new Date(),
created_at: new Date()
}]);
uuid
under the hood so the package should already be available. Sequelize doesn't expose theuuidv4
method in a useful way though. – Approval