diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js index 1dd00a0..fdcef74 100644 --- a/src/index.js +++ b/src/index.js @@ -34,8 +34,12 @@ function setUpModels(){ const models = { "posts": database.define('posts', { description: { - type: Sequelize.STRING, - allowNull: false, + type: Sequelize.TEXT, + allowNull: false, + }, + type: { + type: Sequelize.STRING, + allowNull: false, }, }), "pictures": database.define('pictures', { |