summaryrefslogtreecommitdiff
path: root/models/match.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-07-14 18:58:17 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-07-14 18:58:17 +0200
commitdd2a4f706f20b83144e637896c55c550afa7030a (patch)
treeb6f48beba19672577cfbfba71b45ea89e780088f /models/match.js
parent0e5c3afae2be7a36372d9b29a1c7fa5fba649341 (diff)
downloadorm-dd2a4f706f20b83144e637896c55c550afa7030a.tar.gz
orm-dd2a4f706f20b83144e637896c55c550afa7030a.zip
2.14.0 rewrite
Diffstat (limited to 'models/match.js')
-rw-r--r--models/match.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/match.js b/models/match.js
index 4faf015..dfc0b71 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.fn('current_timestamp')
},
duration: {
type: DataTypes.INTEGER(5).UNSIGNED,