wulf-pulse/migrations/060_companies_remaining_fields.sql
lorentz 5f0fbb4734 feat: complete companies field sync — 4 missing columns + classification mapping
- Migration 060: add bill_to_company_location_id, impersonator_creator_resource_id,
  invoice_non_contract_items_to_parent_company, quote_email_message_id
- entity-mapper: mapCompany() now maps all 57 Autotask API fields incl. classification
- autotask.ts: Company interface expanded to cover all API fields
- data-browser/companies: add Classification column + sort to table;
  expand detail modal with classification, category, owner, territory, market_segment,
  parent_company, create_date
2026-03-27 12:22:53 -04:00

7 lines
400 B
SQL

-- Migration 060: Add remaining Autotask API fields to companies table
ALTER TABLE companies
ADD COLUMN IF NOT EXISTS bill_to_company_location_id BIGINT,
ADD COLUMN IF NOT EXISTS impersonator_creator_resource_id BIGINT,
ADD COLUMN IF NOT EXISTS invoice_non_contract_items_to_parent_company BOOLEAN,
ADD COLUMN IF NOT EXISTS quote_email_message_id BIGINT;