14 lines
519 B
SQL
14 lines
519 B
SQL
-- 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;
|