collect neighbour info
This commit is contained in:
parent
cc16b87d17
commit
4701c4d9ce
3 changed files with 57 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
-- CreateTable
|
||||
CREATE TABLE `neighbour_infos` (
|
||||
`id` BIGINT NOT NULL AUTO_INCREMENT,
|
||||
`node_id` BIGINT NOT NULL,
|
||||
`node_broadcast_interval_secs` INTEGER NOT NULL,
|
||||
`neighbours` JSON NOT NULL,
|
||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
||||
`updated_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
||||
|
||||
INDEX `neighbour_infos_created_at_idx`(`created_at`),
|
||||
INDEX `neighbour_infos_updated_at_idx`(`updated_at`),
|
||||
PRIMARY KEY (`id`)
|
||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
Loading…
Add table
Add a link
Reference in a new issue