Skip to content

Instantly share code, notes, and snippets.

@votemike
Last active April 28, 2020 16:06
Show Gist options
  • Save votemike/d0631711dd9e28feba4fd7fb68736e4a to your computer and use it in GitHub Desktop.
Save votemike/d0631711dd9e28feba4fd7fb68736e4a to your computer and use it in GitHub Desktop.
A WiP property schema. Mainly relating to the finance of a property whether for renting or flipping.
{
"name": "A nickname for the property",
"currency": "GBP",
"value": 654321, // The value of the property at the moment, subject to change
"leasehold": true,
"leaseExpiry": 2147483647,
"sale": {
"date": "1999-12-31",
"price": 123456,
"currency": "GBP",
"fees": [
{
"type": "solicitor",
"amount": 123,
"currency": "GBP"
},
{
"type": "survey",
"amount": 123,
"currency": "GBP"
},
{
"type": "bank-transfer",
"amount": 123,
"currency": "GBP"
},
{
"type": "land-registery",
"amount": 123,
"currency": "GBP"
}
]
},
"refurbishment": {
// Maybe this is unneeded and you just transform one property in to another
},
"finance": [
{
"type": "mortgage",
"amount": "the amount borrowed",
"repayment": "capital/interest-only",
"length": "some interval", //or should the be an enddate with a timestamp?
"rate": "%/year",
"fees": [
{
"type": "mortgage-arrangement",
"amount": 123,
"currency": "GBP"
},
{
"type": "valuation",
"amount": 123,
"currency": "GBP"
}
]
}
],
"payments": [
{
"type": "insurance",
"oftenness": "monthly",
"amount": 123,
"currency": "GBP"
},
{
"type": "ground-rent",
"oftenness": "yearly",
"amount": 123,
"currency": "GBP"
}
],
"rental": [
// If an HMO, could list each rentable unit separately
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment