From cb1a855f34bd12464a4e80cc03c096a323a02818 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 15 Apr 2017 16:58:31 +0200 Subject: db: participant_item_use needs a primary key --- models/match.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models/match.js') diff --git a/models/match.js b/models/match.js index 0b9f6d9..7efd63b 100644 --- a/models/match.js +++ b/models/match.js @@ -19,7 +19,8 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false + allowNull: false, + defaultValue: sequelize.literal('CURRENT_TIMESTAMP') }, duration: { type: DataTypes.INTEGER(5).UNSIGNED, -- cgit v1.3.1