collect neighbour info

This commit is contained in:
liamcottle
2024-03-13 13:54:32 +13:00
parent cc16b87d17
commit 4701c4d9ce
3 changed files with 57 additions and 0 deletions

View File

@ -38,3 +38,17 @@ model Node {
@@index(updated_at)
@@map("nodes")
}
model NeighbourInfo {
id BigInt @id @default(autoincrement())
node_id BigInt
node_broadcast_interval_secs Int
neighbours Json
created_at DateTime @default(now())
updated_at DateTime @default(now()) @updatedAt
@@index(created_at)
@@index(updated_at)
@@map("neighbour_infos")
}