fix parsing reports, change tables to use timestamps

This commit is contained in:
Bilal Catic
2019-06-03 09:22:23 +02:00
parent cae217739a
commit c5408c1295
6 changed files with 87 additions and 32 deletions

View File

@@ -11,8 +11,7 @@ module.exports = (sequelize, DataTypes) => {
type: DataTypes.ENUM,
values: [USER_LOCKED_DOOR, USER_UNLOCKED_DOOR]
},
date: DataTypes.DATEONLY,
time: DataTypes.TIME,
timestamp: DataTypes.DATE,
}, {});
doorLockEvent.associate = function(models) {
// associations can be defined here