diff options
author | Mark Powers <mark@marks.kitchen> | 2020-12-30 22:28:39 -0600 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2020-12-30 22:28:39 -0600 |
commit | 5137bb9b277fcd45327680166c9e39f26ec48c45 (patch) | |
tree | a6084de81b4e993d29b34cecf8bf664212fbf654 /src/index.js | |
parent | 572671a916335fbbe8766b37b683b8a585c49abd (diff) |
Add like button to posts
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index a94f8d0..7ceecf0 100644 --- a/src/index.js +++ b/src/index.js @@ -56,7 +56,11 @@ function setUpModels(){ }, title: { type: Sequelize.STRING, - },}), + }, + likes: { + type: Sequelize.INTEGER, + } + }), "pictures": database.define('pictures', { source: { type: Sequelize.TEXT, allowNull: false}, }), |