# Real Estate Pack

File: `AdminApp/data/crm/feature-packs/real_estate_pack.json`
Profile: `taskco-crm-realstate`
Domain: Lead → Enquiry · Deal → Property Deal · Contact → Client

---

```json
{
  "slug": "real_estate_pack",
  "name": "Real Estate CRM",
  "version": "1.0.0",
  "entity_domain_maps": [
    {"entity_type": "lead",    "label": "Enquiry",      "label_plural": "Enquiries"},
    {"entity_type": "deal",    "label": "Property Deal", "label_plural": "Property Deals"},
    {"entity_type": "contact", "label": "Client",       "label_plural": "Clients"}
  ],
  "custom_fields": {
    "lead": [
      {"slug": "preferred_country",  "label": "Preferred Location",
       "type": "select", "is_searchable": true,
       "options": ["Downtown", "Suburbs", "Waterfront", "Commercial", "Industrial"]},
      {"slug": "property_type",      "label": "Property Type",
       "type": "select",
       "options": ["Apartment", "Villa", "Office", "Land", "Warehouse"]},
      {"slug": "budget_min",         "label": "Budget Min (USD)",      "type": "number"},
      {"slug": "budget_max",         "label": "Budget Max (USD)",      "type": "number"},
      {"slug": "bedrooms_required",  "label": "Bedrooms Required",     "type": "number"},
      {"slug": "purchase_purpose",   "label": "Purchase Purpose",
       "type": "select",
       "options": ["Own Use", "Investment", "Rental"]},
      {"slug": "timeline",           "label": "Purchase Timeline",
       "type": "select",
       "options": ["Immediately", "1-3 months", "3-6 months", "6-12 months", "12+ months"]}
    ],
    "deal": [
      {"slug": "property_ref",       "label": "Property Reference",    "type": "text"},
      {"slug": "country",            "label": "Property Location",
       "type": "text", "is_searchable": true},
      {"slug": "listing_price",      "label": "Listing Price (USD)",   "type": "number"},
      {"slug": "agreed_price",       "label": "Agreed Price (USD)",    "type": "number"},
      {"slug": "commission_rate",    "label": "Commission Rate (%)",   "type": "number"}
    ],
    "contact": []
  },
  "pipelines": [
    {
      "slug": "real_estate_enquiry_pipeline",
      "name": "Enquiry Pipeline",
      "pipeline_type": "lead",
      "is_default": true,
      "stages": [
        {"slug": "new_enquiry",          "name": "New Enquiry",          "sort_order": 1, "color": "#6366f1"},
        {"slug": "site_visit_scheduled", "name": "Site Visit Scheduled", "sort_order": 2, "color": "#3b82f6"},
        {"slug": "site_visit_done",      "name": "Site Visit Done",      "sort_order": 3, "color": "#f59e0b"},
        {"slug": "offer_made",           "name": "Offer Made",           "sort_order": 4, "color": "#8b5cf6"},
        {"slug": "converted",            "name": "Converted",            "sort_order": 5, "color": "#10b981", "is_won": true}
      ]
    },
    {
      "slug": "real_estate_deal_pipeline",
      "name": "Property Deal Pipeline",
      "pipeline_type": "deal",
      "is_default": true,
      "stages": [
        {"slug": "negotiation", "name": "Negotiation", "sort_order": 1, "color": "#6366f1"},
        {"slug": "paperwork",   "name": "Paperwork",   "sort_order": 2, "color": "#3b82f6"},
        {"slug": "payment",     "name": "Payment",     "sort_order": 3, "color": "#f59e0b"},
        {"slug": "closed",      "name": "Closed",      "sort_order": 4, "color": "#10b981", "is_won": true}
      ]
    }
  ],
  "workflow_rules": []
}
```

## Notes

- `preferred_country` maps to "Preferred Location" — the real column in `leads` migration stores the area/zone
- `country` on deals maps to "Property Location" — real column in `deals` migration
- No auto-assign workflow rule — real estate agents are typically manually assigned by branch manager
