mkezfarias / property-manage

1 stars 0 forks source link

For property model #22

Open mkezfarias opened 4 years ago

mkezfarias commented 4 years ago

for the properties model

we need TITLE STREET NAME HOUSE NUMBER NEIGHBORHOOD --- COLONIA CITY MUNICIPALITY ---DELEGACION LATITUDE / LONGITUDE FROM GOOGLE MAPS NUMBER OF BEDROOMS BATHROOMS AVAILABLE FROM DATE PRICE LEASE TYPE / regular or premium SECURITY DEPOSIT MINIMUN LEASE PROPERTY TYPE VERIFIED BOOLEAN MAIN DESCRIPTION GATED COMMUNITY / BUILDING PERKS PETS SPECIFIC RULES SERVICES INCLUDED FURNISHED BOOLEAN FURNISHED-DESCRIPTION TEXT WATER BOILER, AIR CONDITIONING, STOVE, HEATER, OVEN, PARKING INTEGER CLOSETO TRANSPORTATION BIG AVENUES AROUND ABOUT CITY AREA HASCONTRACT VISIT COUNT

mkezfarias commented 4 years ago

property type would be normal / premium WATER BOILER, AIR CONDITIONING, STOVE, HEATER, OVEN could be all in a string or array.

uryelah commented 4 years ago

WATER BOILER, AIR CONDITIONING, STOVE, HEATER, OVEN, The above should be included in perks or services

uryelah commented 4 years ago

FURNISHED-DESCRIPTION TEXT

The above can be in the normal description

uryelah commented 4 years ago

These three can all be the same right? Close amenities or something:

CLOSETO TRANSPORTATION BIG AVENUES AROUND

uryelah commented 4 years ago

ABOUT CITY AREA

We can just pull this from google or wikipedia, not a unique information

uryelah commented 4 years ago

I'm worried this table is getting too inflated, maybe we could create a propertyDetails table?

mkezfarias commented 4 years ago

I agree greatly, let's do it that way, this approach would be cheaper in terms of memory when doing queries. We only need to get those details when viewing the property and not when indexing.

I put all of those fields separately to encourage landlords to fill out more information than other sites do. Those would be specific questions for them to fill out and display as such on the show page.

mkezfarias commented 4 years ago

WATER BOILER, AIR CONDITIONING, STOVE, HEATER, OVEN, The above should be included in perks or services

I was thinking we could do something like this with those as hashes with booleans so we can add (didn't test, just writing pseudo pseudo code :)

Included basics <title> <ul> <% @prop.basic_furnish.each do |furnish| %> <li> <%= furnish.key -%> : <%= furnish.value? ? "SI" : "NO" %></li> <% end %> </ul> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/uryelah"><img src="https://avatars.githubusercontent.com/u/16193212?v=4" />uryelah</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>That seems complex, are you thinking on storing that in the JSON format perhaps? Or just an array of objects?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mkezfarias"><img src="https://avatars.githubusercontent.com/u/51313750?v=4" />mkezfarias</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>I was thinking an array of objects, IDK what you think</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>