From d2752816bca4605116b561a4f2d20ba3c78388b4 Mon Sep 17 00:00:00 2001 From: Gerhard Mudde Date: Fri, 2 Oct 2020 14:21:43 +0200 Subject: [PATCH] Add support for model validation --- src/sequelize.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sequelize.js b/src/sequelize.js index f990ae6..b3983c9 100644 --- a/src/sequelize.js +++ b/src/sequelize.js @@ -43,6 +43,7 @@ const sequelize = { model.prototype.indexes = metaData.indexes model.prototype.scopes = metaData.scopes + model.prototype.validate = metaData.validate return model } }