diff --git a/app/admin/data-browser/companies/page.tsx b/app/admin/data-browser/companies/page.tsx index 1673e9f..6f41117 100644 --- a/app/admin/data-browser/companies/page.tsx +++ b/app/admin/data-browser/companies/page.tsx @@ -83,6 +83,11 @@ export default function CompaniesBrowserPage() { key: 'state', label: 'State', }, + { + key: 'classification', + label: 'Classification', + sortable: true, + }, { key: 'is_active', label: 'Active', @@ -119,7 +124,14 @@ export default function CompaniesBrowserPage() { { key: 'state', label: 'State' }, { key: 'postal_code', label: 'Postal Code' }, { key: 'country', label: 'Country' }, + { key: 'classification', label: 'Classification' }, { key: 'company_type', label: 'Company Type' }, + { key: 'company_category_id', label: 'Company Category ID' }, + { key: 'owner_resource_id', label: 'Owner Resource ID' }, + { key: 'territory_id', label: 'Territory ID' }, + { key: 'market_segment_id', label: 'Market Segment ID' }, + { key: 'parent_company_id', label: 'Parent Company ID' }, + { key: 'create_date', label: 'Created (AT)' }, { key: 'synced_at', label: 'Synced At' }, { key: 'is_deleted', label: 'Is Deleted' }, ]; diff --git a/migrations/060_companies_remaining_fields.sql b/migrations/060_companies_remaining_fields.sql new file mode 100644 index 0000000..dc15ea8 --- /dev/null +++ b/migrations/060_companies_remaining_fields.sql @@ -0,0 +1,7 @@ +-- 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;