collect waypoints

This commit is contained in:
liamcottle
2024-03-15 16:11:51 +13:00
parent 8cda474f13
commit bb7fa83d94
3 changed files with 99 additions and 0 deletions

View File

@ -141,3 +141,34 @@ model TraceRoute {
@@index(node_id)
@@map("traceroutes")
}
model Waypoint {
id BigInt @id @default(autoincrement())
from BigInt
to BigInt
waypoint_id BigInt
latitude Int
longitude Int
expire BigInt?
locked_to BigInt?
name String?
description String?
icon Int?
channel Int
packet_id BigInt
channel_id String
gateway_id BigInt?
created_at DateTime @default(now())
updated_at DateTime @default(now()) @updatedAt
@@index(created_at)
@@index(updated_at)
@@index(to)
@@index(from)
@@index(waypoint_id)
@@index(packet_id)
@@index(gateway_id)
@@map("waypoints")
}