add timestamps in DB model

This commit is contained in:
Hendrik Schutter 2025-01-28 21:55:54 +01:00
parent a745aaf9d0
commit 452589d11d
2 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,9 @@ Location.init(
ttn_gw_longitude: { ttn_gw_longitude: {
type: DataTypes.NUMBER, type: DataTypes.NUMBER,
}, },
gnss_location_at_utc: {
type: DataTypes.DATE,
},
created_at_utc: { created_at_utc: {
type: DataTypes.DATE, type: DataTypes.DATE,
defaultValue: DataTypes.NOW, defaultValue: DataTypes.NOW,

View File

@ -30,6 +30,9 @@ WifiScan.init(
type: DataTypes.NUMBER, type: DataTypes.NUMBER,
allowNull: false, allowNull: false,
}, },
scanned_at_utc: {
type: DataTypes.DATE,
},
created_at_utc: { created_at_utc: {
type: DataTypes.DATE, type: DataTypes.DATE,
defaultValue: DataTypes.NOW, defaultValue: DataTypes.NOW,