Skip to content

Commit 80bf21d

Browse files
committed
Support Boolean model attributes.
1 parent 25fbff2 commit 80bf21d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/sqlHandler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ SqlStore.prototype._joiSchemaToSequelizeModel = function(joiSchema) {
137137
if (attribute._type === "string") model[attributeName] = { type: Sequelize.STRING, allowNull: true };
138138
if (attribute._type === "date") model[attributeName] = { type: Sequelize.STRING, allowNull: true };
139139
if (attribute._type === "number") model[attributeName] = { type: Sequelize.INTEGER, allowNull: true };
140+
if (attribute._type === "boolean") model[attributeName] = { type: Sequelize.BOOLEAN, allowNull: true };
140141
});
141142

142143
return model;

0 commit comments

Comments
 (0)