Files
nym/nym-api/migrations/20240819170000_monitor_v2_tables_v2.sql
Drazen Urch 1ac262ec90 New Network Monitor (#4610)
* Initial commit

* Cherry pick from develop

* Keep track of fragments

* A bunch of data formats, graphs

* Use mix_id for display

* Proper API routes

* Add openapi + swagger ui

* Update locustfile

* Add node stats endpoint

* Add Swagger and locust to readme

* All node stats endpoint

* Update dependencies to use workspace

* Bunch of pedantic fixes

* More version updates, fmt

* More lints

* Add new_from_env for NymTopology

* Nym API endpoint to submit monitoring results (#4616)

* Nym API endpoint to submit monitoring results

* Add gateway monitoring results

* Cleanup, ergonomics

* Weaponize

* Finalize results submissions

* Monitor message signing and verification

* Update README

* Axum graceful shutdown

* More grtacefulness

* Restructure result submission

* Less fragile routes

* Remove gateway unique index on node_id
2024-08-22 11:29:36 +02:00

20 lines
422 B
SQL

DROP TABLE IF EXISTS mixnode_details_v2;
CREATE TABLE mixnode_details_v2
(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
node_id INTEGER NOT NULL UNIQUE,
identity_key VARCHAR NOT NULL
);
DROP TABLE IF EXISTS gateway_details_v2;
CREATE TABLE gateway_details_v2
(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
node_id INTEGER NOT NULL UNIQUE,
identity VARCHAR NOT NULL UNIQUE
);