Collect packet_id for ServiceEnvelopes

This commit is contained in:
Anton Roslund 2025-04-15 20:49:27 +02:00
parent f35a8876f9
commit c8f322f012
3 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE `service_envelopes` ADD COLUMN `packet_id` BIGINT NULL;
-- CreateIndex
CREATE INDEX `service_envelopes_packet_id_idx` ON `service_envelopes`(`packet_id`);

View file

@ -205,6 +205,7 @@ model ServiceEnvelope {
to BigInt
from BigInt
portnum Int?
packet_id BigInt?
protobuf Bytes
created_at DateTime @default(now())
@ -213,6 +214,7 @@ model ServiceEnvelope {
@@index(created_at)
@@index(updated_at)
@@index(gateway_id)
@@index(packet_id)
@@map("service_envelopes")
}