This commit includes all previously untracked backend files: Domain: - Accounts, Attachments, BankConnections, Customers - FiscalYears, Invoices, JournalEntryDrafts - Orders, Products, UserAccess Commands & Handlers: - Full CQRS command structure for all domains Repositories: - PostgreSQL repositories for all read models - Bank transaction and ledger repositories GraphQL: - Input types, scalars, and types for all entities - Mutations and queries Infrastructure: - Banking integration (Enable Banking client) - File storage, Invoicing, Reporting, SAF-T export - Database migrations (003-029) Tests: - Integration tests for GraphQL endpoints - Domain tests - Invoicing and reporting tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
5 lines
363 B
SQL
5 lines
363 B
SQL
-- 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);
|