Property Inquiry
Property inquiry schema for tracking customer interest in real estate listings. Manages leads from initial inquiry through to conversion.
Schema: PropertyInquirySchema
Source: src/core/business-mgt/property-inquiry.schema.ts
Attributes​
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | — | — | Unique identifier for the inquiry |
propertyId | string | Yes | — | ID of the property being inquired about |
customerId | string | Yes | — | ID of existing customer in system |
customer | Customer | null | No | — | Contact details of the inquirer |
inquiryType | enum | Yes | — | Type of inquiry. One of VIEWING_REQUEST, INFORMATION_REQUEST, PRICE_INQUIRY, AVAILABILITY_CHECK, or GENERAL. |
message | string | null | No | — | Inquiry message from the contact |
source | string | No | direct | Source of the inquiry |
status | enum | No | NEW | Current status of the inquiry. One of NEW, CONTACTED, VIEWING_SCHEDULED, VIEWING_COMPLETED, NEGOTIATING, CONVERTED, CLOSED, or LOST. |
preferredViewingDate | number | No | — | Preferred viewing date (timestamp) |
notes | string | No | — | Internal notes about the inquiry |
transactionType | string | No | — | Type of transaction (purchase or lease) |
interestedInBuying | boolean | Yes | — | Whether contact is interested in buying |
interestedInRenting | boolean | Yes | — | Whether contact is interested in renting |
budgetMin | number | No | — | Minimum budget |
budgetMax | number | No | — | Maximum budget |
createdAt | number | — | — | Unix timestamp when created |
updatedAt | number | — | — | Unix timestamp when last updated |
Example​
{
"id": "inq_abc123",
"propertyId": "prop_xyz789",
"customerId": "cust_def456",
"inquiryType": "VIEWING_REQUEST",
"message": "I would like to schedule a viewing this weekend",
"source": "website",
"status": "NEW",
"preferredViewingDate": 1710028800000,
"interestedInBuying": true,
"interestedInRenting": false,
"budgetMin": 400000,
"budgetMax": 500000,
"createdAt": 1709856000000,
"updatedAt": 1709856000000
}
Create / Update Schemas​
| Schema | Description | Omits |
|---|---|---|
CreatePropertyInquirySchema | For creating inquiries | id, createdAt, updatedAt, status |
UpdatePropertyInquirySchema | For partial updates | All fields optional except id |