From d0f1a35bdd72393d294ecea4e962b29e567a6939 Mon Sep 17 00:00:00 2001 From: Arnav Gupta Date: Wed, 18 Oct 2017 07:12:35 +0530 Subject: [PATCH] use UUID for id of relationship table too since we are using native 'UUID' data type, we should use here too --- lib/sqlHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sqlHandler.js b/lib/sqlHandler.js index 42a69a1..bc93ea8 100644 --- a/lib/sqlHandler.js +++ b/lib/sqlHandler.js @@ -173,7 +173,7 @@ SqlStore.prototype._defineRelationModel = function (relationName, many) { autoIncrement: true }, id: { - type: new DataTypes.STRING(38), + type: DataTypes.UUID, allowNull: false }, type: {