Skip to content

Instantly share code, notes, and snippets.

@kevbook
Created October 12, 2018 15:16
Show Gist options
  • Save kevbook/dee7062f7309614b6bfb90b72c0724aa to your computer and use it in GitHub Desktop.
Save kevbook/dee7062f7309614b6bfb90b72c0724aa to your computer and use it in GitHub Desktop.
```
visit_id {Int}
knock_property_id {Int}
// From prop service
property: {
type: "sfr"
type_desc: "Single Family Residence"
year_built: 2013
size: 3349
baths_full: 3
baths_half: 1
beds: 5
"address_id": "5705-abenaki-drive-90-charlotte-nc-28214",
"address": "5705 Abenaki Drive #90, Charlotte, NC 28214",
"address_components": {
"city": "Charlotte",
"county": "Mecklenburg",
"state": "NC",
"zipcode": "28214"
}
"address_line_1": "5705 Abenaki Drive #90",
"address_line_2": "Charlotte, NC 28214",
"address_lat": "35.265275",
"address_long": "-80.959199",
}
hps_account_id {Int}
status {String} // pending, in_progress, completed
visit_date {Int}
remarks {String}
rating {Float} - 0,1,2,3
photos {Array} {
filename: "525d2aaf-a59a-4a3f-b1b8-cafbdfca9866.jpg"
view: imgix-url (mobile-app/web can do ?compress=auto,max-width=)
}
updated {Int}
created {Int}
// Each visit has a component = beds, baths, backyard
components {Array} {
component_id {Int}
component_type {String} // beds,baths_full,baths_half,parking,basement
name {String} // Master Bedroom
levels {Float(1)} // HPS entered
levels_enum {Array}{Int} = [1, 2, 3] // Possible combinations
remarks {String}
rating {Float}
photos {Array} {
filename: "525d2aaf-a59a-4a3f-b1b8-cafbdfca9866.jpg"
view: imgix-url (mobile-app/web can do ?compress=auto,max-width=)
}
updated {Int}
created {Int}
features {Array} {
feature_id {Int}
feature_type {String} // ceiling
name {String} // Ceiling
desc {Array} {String} // Would be what HPS entered
desc_enum {Array}{String} = [flat,spacled,popcorn]
// On v2 release of backyard, when we collect data from employee
employee_desc = selection
employee_desc_enum = Show the avilable list to select
employee_desc_id = who is that person
secondary_desc {Array} {String}
secondary_desc_enum {Array}{String} = ['if there is something here, app knows to render this question']
remarks {String}
rating {Float}
photos {Array} {
filename: "525d2aaf-a59a-4a3f-b1b8-cafbdfca9866.jpg"
view: imgix-url (mobile-app/web can do ?compress=auto,max-width=)
}
}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment