add index to position updated at column for nodes table

This commit is contained in:
liamcottle
2024-11-21 12:58:05 +13:00
parent 3d11f77eb1
commit 1c2f8d9be7
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX `nodes_position_updated_at_idx` ON `nodes`(`position_updated_at`);

View File

@ -56,6 +56,7 @@ model Node {
@@index(created_at) @@index(created_at)
@@index(updated_at) @@index(updated_at)
@@index(position_updated_at)
@@index(node_id) @@index(node_id)
@@map("nodes") @@map("nodes")
} }