Add statistic tracking

This commit is contained in:
Marcel Pociot committed 2021-05-31 14:47:48 +02:00
1 parent 7f6be8cae2
commit 9444d1aacb
15 files changed
+308 -7

No files matched your search

@@ -0,0 +1 @@
ALTER TABLE users ADD last_shared_at DATETIME;
@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS statistics (
id INTEGER PRIMARY KEY AUTOINCREMENT,
timestamp DATE,
shared_sites INTEGER,
shared_ports INTEGER,
unique_shared_sites INTEGER,
unique_shared_ports INTEGER,
incoming_requests INTEGER
)