aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-02-23 20:09:29 -0600
committerMark Powers <mark@marks.kitchen>2021-02-23 20:09:29 -0600
commit8a0a3a00e75dc2351a7218d0059b87f7e9345871 (patch)
tree180a3dc0065db849301d0e87c11f129475c02eb5 /src/index.js
parent4ed0b48232f2d0fdaa1ed85f243119608d2d5caf (diff)
parent5b5dc610bc0da17fd006982de50b4dc74b134a54 (diff)
Merge branch 'master' of marks.kitchen:/srv/git/markskitchen
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},
}),