We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25fbff2 commit 80bf21dCopy full SHA for 80bf21d
lib/sqlHandler.js
@@ -137,6 +137,7 @@ SqlStore.prototype._joiSchemaToSequelizeModel = function(joiSchema) {
137
if (attribute._type === "string") model[attributeName] = { type: Sequelize.STRING, allowNull: true };
138
if (attribute._type === "date") model[attributeName] = { type: Sequelize.STRING, allowNull: true };
139
if (attribute._type === "number") model[attributeName] = { type: Sequelize.INTEGER, allowNull: true };
140
+ if (attribute._type === "boolean") model[attributeName] = { type: Sequelize.BOOLEAN, allowNull: true };
141
});
142
143
return model;
0 commit comments