aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 3a01d6f..62d8bb5 100644
--- a/src/index.js
+++ b/src/index.js
@@ -86,6 +86,12 @@ function setUpModels(){
words: Sequelize.STRING,
name: Sequelize.STRING,
best: Sequelize.BOOLEAN
+ }),
+ "chessgames": database.define('chessgame', {
+ pieces: Sequelize.TEXT,
+ name: {type:Sequelize.STRING, primaryKey: true},
+ turn: Sequelize.STRING,
+ userside: Sequelize.STRING
})
}
models.pictures.belongsTo(models.posts);