-- 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';
