diff --git a/pkg/database/migrations/002_indexes.sql b/pkg/database/migrations/002_indexes.sql new file mode 100644 index 0000000..491e632 --- /dev/null +++ b/pkg/database/migrations/002_indexes.sql @@ -0,0 +1,3 @@ +-- +migrate Up +CREATE INDEX idx_user_post_deleted ON "UserFavorites"(user_id, deleted_at); +CREATE INDEX idx_created_at ON "UserFavorites"(created_at); \ No newline at end of file