aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/pod.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/models/pod.js b/server/models/pod.js
index b3c6db8e8..6ae4b0999 100644
--- a/server/models/pod.js
+++ b/server/models/pod.js
@@ -32,6 +32,10 @@ module.exports = function (sequelize, DataTypes) {
32 isInt: true, 32 isInt: true,
33 max: constants.FRIEND_SCORE.MAX 33 max: constants.FRIEND_SCORE.MAX
34 } 34 }
35 },
36 email: {
37 type: DataTypes.STRING(400),
38 allowNull: false
35 } 39 }
36 }, 40 },
37 { 41 {
@@ -71,6 +75,7 @@ function toFormatedJSON () {
71 const json = { 75 const json = {
72 id: this.id, 76 id: this.id,
73 host: this.host, 77 host: this.host,
78 email: this.email,
74 score: this.score, 79 score: this.score,
75 createdAt: this.createdAt 80 createdAt: this.createdAt
76 } 81 }