From 452589d11d5d0a2ea56f025fa68c1231e2f4ca75bdc4a89e4bd768caed694f29 Mon Sep 17 00:00:00 2001 From: localhorst Date: Tue, 28 Jan 2025 21:55:54 +0100 Subject: [PATCH] add timestamps in DB model --- server/src/models/location.ts | 3 +++ server/src/models/wifiScan.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/server/src/models/location.ts b/server/src/models/location.ts index 86e8d21..c4b5dff 100644 --- a/server/src/models/location.ts +++ b/server/src/models/location.ts @@ -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, diff --git a/server/src/models/wifiScan.ts b/server/src/models/wifiScan.ts index 1f277b0..54493d5 100644 --- a/server/src/models/wifiScan.ts +++ b/server/src/models/wifiScan.ts @@ -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,