From 1d3574d38909bc9aae2792d839023e296fb25791 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 23 Dec 2021 16:50:42 -0600 Subject: Add email unsubcribe link, update about me, add hello.js --- src/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index c2ad0c1..a7dff9b 100644 --- a/src/index.js +++ b/src/index.js @@ -87,7 +87,8 @@ function setUpModels(){ }), "emails": database.define('email', { address: Sequelize.STRING, - name: Sequelize.STRING + name: Sequelize.STRING, + code: Sequelize.STRING, }), "wordsquares": database.define('wordsquare', { words: Sequelize.STRING, @@ -99,7 +100,10 @@ function setUpModels(){ name: {type:Sequelize.STRING, primaryKey: true}, turn: Sequelize.STRING, userside: Sequelize.STRING - }) + }), + "hellos": database.define('hellos', { + page: { type: Sequelize.TEXT, allowNull: false}, + }), } models.pictures.belongsTo(models.posts); models.tags.belongsTo(models.posts); -- cgit v1.2.3