6 lines
363 B
MySQL
6 lines
363 B
MySQL
|
|
-- Index for fiscal year date range queries including company_id for overlap checks
|
||
|
|
-- The existing idx_fiscal_year_dates from 001_Initial.sql only has (start_date, end_date)
|
||
|
|
-- This adds company_id for efficient company-scoped overlap queries
|
||
|
|
CREATE INDEX IF NOT EXISTS idx_fiscal_year_company_dates
|
||
|
|
ON fiscal_year_read_models(company_id, start_date, end_date);
|