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/participant.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models/participant.js') diff --git a/models/participant.js b/models/participant.js index caa8c80..f508e9b 100644 --- a/models/participant.js +++ b/models/participant.js @@ -51,7 +51,8 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false + allowNull: false, + defaultValue: sequelize.literal('CURRENT_TIMESTAMP') }, actor: { type: DataTypes.STRING(16), -- cgit v1.3.1