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>
10 lines
471 B
SQL
10 lines
471 B
SQL
-- Add is_archived column to bank_connection_read_models table
|
|
-- This allows users to hide old/unused bank connections from the UI
|
|
|
|
ALTER TABLE bank_connection_read_models
|
|
ADD COLUMN IF NOT EXISTS is_archived BOOLEAN NOT NULL DEFAULT FALSE;
|
|
|
|
-- Create index for efficient filtering of non-archived connections
|
|
CREATE INDEX IF NOT EXISTS idx_bank_connection_read_models_company_archived
|
|
ON bank_connection_read_models (company_id, is_archived)
|
|
WHERE is_archived = FALSE;
|