diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-10 16:47:39 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-10 16:47:39 +0200 |
| commit | 22afb45c9f9b13b13b5899fc5d66e98259260267 (patch) | |
| tree | 15b2f97caafe60d3c265696af96ad0cfb371f8b5 /models/participant.js | |
| parent | b3ba4b3da3bf2d1e7b75ca3d0e68ae7fe08acef4 (diff) | |
| download | orm-22afb45c9f9b13b13b5899fc5d66e98259260267.tar.gz orm-22afb45c9f9b13b13b5899fc5d66e98259260267.zip | |
import schema
Diffstat (limited to 'models/participant.js')
| -rw-r--r-- | models/participant.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/participant.js b/models/participant.js index 22381fc..c4be804 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), |
