otter-space-sdk/pkg/database/migrations/002_indexes.sql
SoXX 1e658f6a39 feat(database): added indexes
- added index for UserFavorites
2024-10-14 11:37:38 +02:00

3 lines
150 B
SQL

-- +migrate Up
CREATE INDEX idx_user_post_deleted ON "UserFavorites"(user_id, deleted_at);
CREATE INDEX idx_created_at ON "UserFavorites"(created_at);