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: {
type: DataTypes.NUMBER,
},
gnss_location_at_utc: {
type: DataTypes.DATE,
},
created_at_utc: {
type: DataTypes.DATE,
defaultValue: DataTypes.NOW,

View File

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