collect traceroutes

This commit is contained in:
liamcottle
2024-03-13 14:18:47 +13:00
parent 537221dac1
commit 020b4be72c
3 changed files with 57 additions and 3 deletions

View File

@ -0,0 +1,13 @@
-- CreateTable
CREATE TABLE `traceroutes` (
`id` BIGINT NOT NULL AUTO_INCREMENT,
`node_id` BIGINT NOT NULL,
`route` JSON NOT NULL,
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
`updated_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
INDEX `traceroutes_created_at_idx`(`created_at`),
INDEX `traceroutes_updated_at_idx`(`updated_at`),
INDEX `traceroutes_node_id_idx`(`node_id`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;