Skip to main content

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​

AttributeTypeRequiredDefaultDescription
idstring——Unique identifier for the inquiry
propertyIdstringYes—ID of the property being inquired about
customerIdstringYes—ID of existing customer in system
customerCustomer | nullNo—Contact details of the inquirer
inquiryTypeenumYes—Type of inquiry. One of VIEWING_REQUEST, INFORMATION_REQUEST, PRICE_INQUIRY, AVAILABILITY_CHECK, or GENERAL.
messagestring | nullNo—Inquiry message from the contact
sourcestringNodirectSource of the inquiry
statusenumNoNEWCurrent status of the inquiry. One of NEW, CONTACTED, VIEWING_SCHEDULED, VIEWING_COMPLETED, NEGOTIATING, CONVERTED, CLOSED, or LOST.
preferredViewingDatenumberNo—Preferred viewing date (timestamp)
notesstringNo—Internal notes about the inquiry
transactionTypestringNo—Type of transaction (purchase or lease)
interestedInBuyingbooleanYes—Whether contact is interested in buying
interestedInRentingbooleanYes—Whether contact is interested in renting
budgetMinnumberNo—Minimum budget
budgetMaxnumberNo—Maximum budget
createdAtnumber——Unix timestamp when created
updatedAtnumber——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​

SchemaDescriptionOmits
CreatePropertyInquirySchemaFor creating inquiriesid, createdAt, updatedAt, status
UpdatePropertyInquirySchemaFor partial updatesAll fields optional except id