summaryrefslogtreecommitdiff
path: root/models/participant.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-15 16:58:31 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-15 16:58:31 +0200
commitcb1a855f34bd12464a4e80cc03c096a323a02818 (patch)
tree23edd5dcf02425418a4c72b2b969ab5476409f8c /models/participant.js
parentb074ae7a1f57345b535a9d21a59789b0af7b8ede (diff)
downloadorm-cb1a855f34bd12464a4e80cc03c096a323a02818.tar.gz
orm-cb1a855f34bd12464a4e80cc03c096a323a02818.zip
db: participant_item_use needs a primary key
Diffstat (limited to 'models/participant.js')
-rw-r--r--models/participant.js3
1 files changed, 2 insertions, 1 deletions
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),