aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 4b9a3c6..7ceecf0 100644
--- a/src/index.js
+++ b/src/index.js
@@ -53,7 +53,14 @@ function setUpModels(){
type: {
type: Sequelize.STRING,
allowNull: false,
- },}),
+ },
+ title: {
+ type: Sequelize.STRING,
+ },
+ likes: {
+ type: Sequelize.INTEGER,
+ }
+ }),
"pictures": database.define('pictures', {
source: { type: Sequelize.TEXT, allowNull: false},
}),