diff --git a/prisma/migrations/20240621045745_add_created_at_index/migration.sql b/prisma/migrations/20240621045745_add_created_at_index/migration.sql new file mode 100644 index 0000000..741f32c --- /dev/null +++ b/prisma/migrations/20240621045745_add_created_at_index/migration.sql @@ -0,0 +1,2 @@ +-- CreateIndex +CREATE INDEX "pings_created_at_idx" ON "pings"("created_at"); diff --git a/prisma/schema.prisma b/prisma/schema.prisma index bebda1d..d54da8e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -14,6 +14,8 @@ model pings { http_status Int body_length Int? created_at String + + @@index([created_at]) } model systems {