summaryrefslogtreecommitdiff
path: root/models/match.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-01 13:12:28 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-01 13:12:28 +0200
commit6b4cb056cf133edcc3b2137f0bb35913a0096d07 (patch)
tree8f9bd642a6e1744a382123542af38c7edb66dd3a /models/match.js
parent55eacbdff9003723a747715e4c75f8f743c5d2bd (diff)
downloadorm-6b4cb056cf133edcc3b2137f0bb35913a0096d07.tar.gz
orm-6b4cb056cf133edcc3b2137f0bb35913a0096d07.zip
generate from db
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 ec5bdab..46c4f80 100644
--- a/models/match.js
+++ b/models/match.js
@@ -23,7 +23,8 @@ module.exports = function(sequelize, DataTypes) {
},
created_at: {
type: DataTypes.TIME,
- allowNull: false
+ allowNull: false,
+ defaultValue: sequelize.literal('CURRENT_TIMESTAMP')
},
duration: {
type: DataTypes.INTEGER(11),