{
    "_description": "Column name signatures for auto-detecting CSV column mappings during data migration. Keys are exact column header names from platform exports. Values specify Fogbreak target table.field, optional transform, and optional transform_config.",

    "Follow Up Boss Exports": "---",
    "firstName": {"target": "clients.first_name"},
    "lastName": {"target": "clients.last_name"},
    "stage": {"target": "clients.lifecycle_stage", "transform": "status_map", "transform_config": {"map": {"Lead": "lead", "New Lead": "lead", "Hot Lead": "lead", "Prospect": "lead", "Nurture": "lead", "Active Client": "active", "Active Buyer": "active", "Active Seller": "active", "Under Contract": "active", "Pending": "active", "Closed": "closed", "Past Client": "repeat", "Sphere": "repeat", "Trash": "dormant", "Dead": "dormant"}}},
    "leadSource": {"target": "clients.lead_source"},
    "assignedTo": {"target": "clients.assigned_agent", "transform": "agent_match"},
    "assignedUserId": {"target": "clients.assigned_agent"},
    "emails": {"target": "clients.email", "transform": "email_lowercase"},
    "phones": {"target": "clients.phone", "transform": "phone_normalize"},
    "addresses": {"target": "clients.address"},
    "tags": {"target": "client_tags", "transform": "tag_split"},
    "background": {"target": "interactions.notes"},
    "created": {"target": "clients.created_at", "transform": "date_format"},
    "updated": {"target": "clients.updated_at", "transform": "date_format"},

    "ShowingTime Exports": "---",
    "Showing Date": {"target": "showings.showing_date", "transform": "date_format"},
    "Showing Time": {"target": "showings.start_time"},
    "Showing Agent": {"target": "showings.showing_agent_id", "transform": "agent_match"},
    "Listing Address": {"target": "showings.property_address"},
    "Listing Agent": {"target": "showings.listing_agent"},
    "Showing Status": {"target": "showings.status"},
    "Feedback": {"target": "showing_feedback.comments"},
    "Interest Level": {"target": "showing_feedback.buyer_interest"},
    "Buyer Agent": {"target": "showings.showing_agent_id", "transform": "agent_match"},
    "Duration": {"target": "showings.duration"},

    "Sisu Exports": "---",
    "Transaction Address": {"target": "transactions.address"},
    "Transaction Type": {"target": "transactions.type"},
    "Transaction Status": {"target": "transactions.phase", "transform": "status_map", "transform_config": {"map": {"Lead": "0", "Appointment": "1", "Active": "2", "Under Contract": "4", "Pending": "5", "Closed": "8", "Fallen": "9", "Cancelled": "9"}}},
    "Sale Price": {"target": "transactions.sale_price", "transform": "currency_parse"},
    "List Price": {"target": "transactions.list_price", "transform": "currency_parse"},
    "Close Date": {"target": "transactions.close_date", "transform": "date_format"},
    "Closing Date": {"target": "transactions.close_date", "transform": "date_format"},
    "GCI": {"target": "commissions.gross_amount", "transform": "currency_parse"},
    "Commission": {"target": "commissions.gross_amount", "transform": "currency_parse"},
    "Agent": {"target": "transactions.agent_id", "transform": "agent_match"},
    "Dials": {"target": "agent_metrics.dials"},
    "Conversations": {"target": "agent_metrics.conversations"},
    "Appointments": {"target": "agent_metrics.appointments"},
    "Contracts": {"target": "agent_metrics.contracts"},
    "Closings": {"target": "agent_metrics.closings"},

    "Paperless Pipeline Exports": "---",
    "Property Address": {"target": "transactions.address"},
    "Transaction Type - PP": {"target": "transactions.type", "transform": "status_map", "transform_config": {"map": {"Listing": "listing", "Purchase": "purchase", "Buyer": "purchase", "Dual": "dual", "Referral": "referral", "Lease": "lease"}}},
    "Status": {"target": "transactions.phase", "transform": "status_map", "transform_config": {"map": {"Active": "2", "Pending": "5", "Closed": "8", "Cancelled": "9", "Expired": "9", "Withdrawn": "9"}}},
    "Listing Agent": {"target": "transactions.listing_agent", "transform": "agent_match"},
    "Selling Agent": {"target": "transactions.selling_agent", "transform": "agent_match"},
    "Escrow Company": {"target": "transactions.escrow_company"},
    "Title Company": {"target": "transactions.title_company"},
    "Escrow Number": {"target": "transactions.escrow_number"},
    "Escrow Officer": {"target": "transactions.escrow_officer"},

    "DocuSign Exports": "---",
    "Envelope Subject": {"target": "documents.original_name"},
    "Envelope Status": {"target": "documents.status"},
    "Sent Date": {"target": "documents.created_at", "transform": "date_format"},
    "Completed Date": {"target": "documents.updated_at", "transform": "date_format"},
    "Signer Name": {"target": "esign_recipients.name"},
    "Signer Email": {"target": "esign_recipients.email", "transform": "email_lowercase"},

    "RealScout Exports": "---",
    "First Name": {"target": "clients.first_name"},
    "Last Name": {"target": "clients.last_name"},
    "Email": {"target": "clients.email", "transform": "email_lowercase"},
    "Phone": {"target": "clients.phone", "transform": "phone_normalize"},
    "Is deleted": {"target": "_meta.is_deleted"},
    "Unsubscribed": {"target": "clients.alert_opt_out"},
    "Created At": {"target": "clients.created_at", "transform": "date_format"},

    "Common / Universal CRM Fields": "---",
    "Email Address": {"target": "clients.email", "transform": "email_lowercase"},
    "Cell Phone": {"target": "clients.phone", "transform": "phone_normalize"},
    "Mobile": {"target": "clients.phone", "transform": "phone_normalize"},
    "Mobile Phone": {"target": "clients.phone", "transform": "phone_normalize"},
    "Home Phone": {"target": "clients.phone_home", "transform": "phone_normalize"},
    "Work Phone": {"target": "clients.phone_work", "transform": "phone_normalize"},
    "Office Phone": {"target": "clients.phone_work", "transform": "phone_normalize"},
    "Address": {"target": "clients.address"},
    "Street Address": {"target": "clients.address"},
    "City": {"target": "clients.city"},
    "State": {"target": "clients.state"},
    "Zip": {"target": "clients.zip"},
    "Zip Code": {"target": "clients.zip"},
    "ZIP": {"target": "clients.zip"},
    "Postal Code": {"target": "clients.zip"},
    "Country": {"target": "clients.country"},
    "Source": {"target": "clients.lead_source"},
    "Lead Source": {"target": "clients.lead_source"},
    "Lead Status": {"target": "clients.lifecycle_stage", "transform": "status_map"},
    "Contact Type": {"target": "clients.type"},
    "Tags": {"target": "client_tags", "transform": "tag_split"},
    "Notes": {"target": "interactions.notes"},
    "Birthday": {"target": "clients.birthday", "transform": "date_format"},
    "Anniversary": {"target": "clients.anniversary", "transform": "date_format"},
    "Company": {"target": "clients.company"},
    "Title": {"target": "clients.title"},
    "Website": {"target": "clients.website"},
    "Assigned To": {"target": "clients.assigned_agent", "transform": "agent_match"},
    "Assigned Agent": {"target": "clients.assigned_agent", "transform": "agent_match"},
    "Date Added": {"target": "clients.created_at", "transform": "date_format"},
    "Last Contact": {"target": "clients.last_contact_at", "transform": "date_format"},
    "Last Activity": {"target": "clients.last_activity_at", "transform": "date_format"},
    "MLS Number": {"target": "properties.mls_number"},
    "MLS #": {"target": "properties.mls_number"},
    "MLS#": {"target": "properties.mls_number"},
    "Beds": {"target": "properties.beds"},
    "Bedrooms": {"target": "properties.beds"},
    "Baths": {"target": "properties.baths"},
    "Bathrooms": {"target": "properties.baths"},
    "Square Feet": {"target": "properties.sqft"},
    "Sqft": {"target": "properties.sqft"},
    "Lot Size": {"target": "properties.lot_size"},
    "Year Built": {"target": "properties.year_built"},
    "Price": {"target": "transactions.price", "transform": "currency_parse"},
    "Contract Date": {"target": "transactions.contract_date", "transform": "date_format"},
    "Listing Date": {"target": "transactions.listing_date", "transform": "date_format"},
    "Expiration Date": {"target": "transactions.expiration_date", "transform": "date_format"},

    "kvCORE / BoomTown / Sierra Interactive / LionDesk / CINC": "---",
    "Full Name": {"target": "clients.full_name"},
    "Name": {"target": "clients.full_name"},
    "Primary Email": {"target": "clients.email", "transform": "email_lowercase"},
    "Primary Phone": {"target": "clients.phone", "transform": "phone_normalize"},
    "Lead Type": {"target": "clients.type"},
    "Registration Date": {"target": "clients.created_at", "transform": "date_format"},
    "Last Login": {"target": "clients.last_activity_at", "transform": "date_format"},
    "Search Criteria": {"target": "saved_searches.criteria"},
    "Min Price": {"target": "saved_searches.min_price", "transform": "currency_parse"},
    "Max Price": {"target": "saved_searches.max_price", "transform": "currency_parse"},
    "Min Beds": {"target": "saved_searches.min_beds"},
    "Min Baths": {"target": "saved_searches.min_baths"},
    "Preferred Cities": {"target": "saved_searches.cities"},
    "Preferred Areas": {"target": "saved_searches.areas"}
}
