Use packet id as message primary key (#58)

* Use packet id as message primary key

* fix query

* fix query
This commit is contained in:
l5y
2025-09-15 13:34:59 +02:00
committed by GitHub
parent 4dc1227be7
commit 648bcc9b92
3 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
CREATE TABLE IF NOT EXISTS messages (
id INTEGER PRIMARY KEY AUTOINCREMENT,
id INTEGER PRIMARY KEY, -- meshtastic packet id
rx_time INTEGER NOT NULL, -- unix seconds when received
rx_iso TEXT NOT NULL, -- ISO8601 UTC timestamp
from_id TEXT, -- sender node id (string form)