From 8b195532914b08b89cec89c0e647e8b9bfdf6b06 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 13 Apr 2017 19:17:51 +0200 Subject: add attributes to player --- models/player.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'models') diff --git a/models/player.js b/models/player.js index 3bdab2e..a37cbf2 100644 --- a/models/player.js +++ b/models/player.js @@ -21,6 +21,10 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.STRING(191), allowNull: false }, + created_at: { + type: DataTypes.TIME, + allowNull: true + }, last_match_created_date: { type: DataTypes.TIME, allowNull: true @@ -35,7 +39,7 @@ module.exports = function(sequelize, DataTypes) { }, xp: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, lifetime_gold: { type: "DOUBLE(8,2)", -- cgit v1.3.1