From a119a3c73f02408b0e2ceedf0ac71e4e684b4cad Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 7 Mar 2019 16:48:29 -0500 Subject: Add animation, blog, and feed template --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index c689779..5315c8d 100644 --- a/src/index.js +++ b/src/index.js @@ -57,6 +57,9 @@ function setUpModels(){ "pictures": database.define('pictures', { source: { type: Sequelize.TEXT, allowNull: false}, }), + "tags": database.define('tags', { + text: { type: Sequelize.TEXT, allowNull: false}, + }), "users": database.define('user', { username: { type: Sequelize.STRING, @@ -73,6 +76,7 @@ function setUpModels(){ }) } models.pictures.belongsTo(models.posts); + models.tags.belongsTo(models.posts); return models; } -- cgit v1.2.3