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>
15 lines
860 B
SQL
15 lines
860 B
SQL
-- 016_CompanyBankDetails.sql
|
|
-- Adds bank account details to company read models for invoice payment information.
|
|
|
|
ALTER TABLE company_read_models
|
|
ADD COLUMN IF NOT EXISTS bank_name VARCHAR(100),
|
|
ADD COLUMN IF NOT EXISTS bank_reg_no VARCHAR(10),
|
|
ADD COLUMN IF NOT EXISTS bank_account_no VARCHAR(20),
|
|
ADD COLUMN IF NOT EXISTS bank_iban VARCHAR(34),
|
|
ADD COLUMN IF NOT EXISTS bank_bic VARCHAR(11);
|
|
|
|
COMMENT ON COLUMN company_read_models.bank_name IS 'Bank name for payment information';
|
|
COMMENT ON COLUMN company_read_models.bank_reg_no IS 'Danish bank registration number (4 digits)';
|
|
COMMENT ON COLUMN company_read_models.bank_account_no IS 'Danish bank account number (7-10 digits)';
|
|
COMMENT ON COLUMN company_read_models.bank_iban IS 'International Bank Account Number';
|
|
COMMENT ON COLUMN company_read_models.bank_bic IS 'Bank Identifier Code / SWIFT code';
|