Files
map/common/prisma/migrations/20240313011413_create_traceroutes_table/migration.sql
2025-04-15 15:51:27 -04:00

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;