// This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init generator client { provider = "prisma-client-js" } datasource db { provider = "mysql" url = env("DATABASE_URL") } model Node { id BigInt @id @default(autoincrement()) node_id BigInt @unique long_name String short_name String hardware_model Int is_licensed Boolean role Int latitude Int? longitude Int? altitude Int? battery_level Int? voltage Decimal? channel_utilization Decimal? air_util_tx Decimal? created_at DateTime @default(now()) updated_at DateTime @default(now()) @updatedAt @@index(created_at) @@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") } model TraceRoute { id BigInt @id @default(autoincrement()) node_id BigInt route Json created_at DateTime @default(now()) updated_at DateTime @default(now()) @updatedAt @@index(created_at) @@index(updated_at) @@index(node_id) @@map("traceroutes") }