aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-12-23 16:50:42 -0600
committerMark Powers <mark@marks.kitchen>2021-12-23 16:50:42 -0600
commit1d3574d38909bc9aae2792d839023e296fb25791 (patch)
treec409fbff38083b85356498f636714e6ec74f95e4 /src/index.js
parent85a103d6a02a50ce28cbb44c2e693000d9b7388d (diff)
Add email unsubcribe link, update about me, add hello.js
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js8
1 files changed, 6 insertions, 2 deletions
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);