diff options
author | Mark Powers <markppowers0@gmail.com> | 2019-03-07 16:48:29 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2019-03-07 16:48:29 -0500 |
commit | a119a3c73f02408b0e2ceedf0ac71e4e684b4cad (patch) | |
tree | b749b95a511773dab291ef4f34b951b16c763bef /src/index.js | |
parent | f4b2eabe2da89abc33e4cbe21ca1560995b32eca (diff) |
Add animation, blog, and feed template
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |