1
我試圖用種子一sequilize UUID generateUUID 但我得到這個錯誤Seed file failed with error: sequelize.Utils.generateUUID is not a function TypeError: sequelize.Utils.generateUUID is not a function
如何種子uuidv4與sequelize
我如何播種UUID?
return queryInterface.bulkInsert('companies', [{
id: sequelize.Utils.generateUUID(),
name: 'Testing',
updated_at: new Date(),
created_at: new Date()
}]);