From 4793c343fd3cde3c6282ed0fb38e039b4276de0e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Feb 2017 19:19:56 +0100 Subject: Add email to pods --- server/models/pod.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/models') 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) { isInt: true, max: constants.FRIEND_SCORE.MAX } + }, + email: { + type: DataTypes.STRING(400), + allowNull: false } }, { @@ -71,6 +75,7 @@ function toFormatedJSON () { const json = { id: this.id, host: this.host, + email: this.email, score: this.score, createdAt: this.createdAt } -- cgit v1.2.3