Index Log timestamps

This commit is contained in:
Douglas Barone 2022-08-30 09:07:07 -04:00
parent 549324851a
commit bb14d4d6ba
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "Log_timestamp_idx" ON "Log"("timestamp" DESC);

View File

@ -111,6 +111,8 @@ model Log {
tags String?
message String
data Json?
@@index([timestamp(sort: Desc)])
}
model PAHost {