More stuff, lost a lot of progress to this shitty pc with a shitty os

This commit is contained in:
2026-08-20 16:22:35 +03:00
parent c7d2af0fd0
commit 3c904db36f
11 changed files with 319 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
CREATE TABLE IF NOT EXISTS antennas (
id BIGSERIAL PRIMARY KEY NOT NULL,
name TEXT NOT NULL,
ip TEXT NOT NULL UNIQUE,
error TEXT
);
CREATE TABLE IF NOT EXISTS client_readings (
id BIGSERIAL PRIMARY KEY NOT NULL,
ip TEXT NOT NULL,
mac TEXT NOT NULL,
antenna_ip TEXT NOT NULL REFERENCES antennas(ip),
db_reading INTEGER NOT NULL,
read_at TIMESTAMP NOT NULL DEFAULT NOW()
);