diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-01 13:12:28 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-01 13:12:28 +0200 |
| commit | 6b4cb056cf133edcc3b2137f0bb35913a0096d07 (patch) | |
| tree | 8f9bd642a6e1744a382123542af38c7edb66dd3a /models/match.js | |
| parent | 55eacbdff9003723a747715e4c75f8f743c5d2bd (diff) | |
| download | orm-6b4cb056cf133edcc3b2137f0bb35913a0096d07.tar.gz orm-6b4cb056cf133edcc3b2137f0bb35913a0096d07.zip | |
generate from db
Diffstat (limited to 'models/match.js')
| -rw-r--r-- | models/match.js | 3 |
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), |
