| | 1 | == Use-case 0010 - Browse Properties == |
| | 2 | |
| | 3 | '''Initiating actor:''' Client |
| | 4 | |
| | 5 | '''Other actors:''' None |
| | 6 | |
| | 7 | '''Description: ''' |
| | 8 | |
| | 9 | A client browses apartment units by first selecting a building, then viewing its floors, and finally exploring individual units. They can view details, images, and pricing information for each unit. |
| | 10 | |
| | 11 | '''Scenario:''' |
| | 12 | |
| | 13 | 1. Client accesses the property listing page. |
| | 14 | |
| | 15 | 2. System displays all buildings: |
| | 16 | {{{ |
| | 17 | SELECT |
| | 18 | building_id, |
| | 19 | name, |
| | 20 | address, |
| | 21 | description |
| | 22 | FROM building |
| | 23 | ORDER BY name; |
| | 24 | }}} |
| | 25 | |
| | 26 | 3. Client sees a list of buildings with their names, addresses, and brief descriptions. |
| | 27 | |
| | 28 | 4. Client clicks on "Golden Tower" building. |
| | 29 | |
| | 30 | 5. System displays the building details and all its floors: |
| | 31 | {{{ |
| | 32 | SELECT |
| | 33 | b.building_id, |
| | 34 | b.name AS building_name, |
| | 35 | b.address, |
| | 36 | b.description, |
| | 37 | a. full_name AS architect_name, |
| | 38 | f.floor_id, |
| | 39 | f.floor_number, |
| | 40 | f.layout_image |
| | 41 | FROM building b |
| | 42 | LEFT JOIN designs d ON b.building_id = d.building_id |
| | 43 | LEFT JOIN architect a ON d.architect_id = a.architect_id |
| | 44 | JOIN floor f ON b.building_id = f.building_id |
| | 45 | WHERE b.name = 'Golden Tower' |
| | 46 | ORDER BY f.floor_number; |
| | 47 | }}} |
| | 48 | |
| | 49 | 6. Client sees building information and a list of floors with their images. |
| | 50 | |
| | 51 | 7. Client clicks on "Floor 2". |
| | 52 | |
| | 53 | 8. All units on Floor 2 are displayed with minimal information: |
| | 54 | {{{ |
| | 55 | SELECT |
| | 56 | u.unit_id, |
| | 57 | u.unit_number, |
| | 58 | u.room_number, |
| | 59 | u.floor_area, |
| | 60 | u.price, |
| | 61 | u.status, |
| | 62 | u.image |
| | 63 | FROM unit u |
| | 64 | WHERE u.floor_id = ( |
| | 65 | SELECT floor_id |
| | 66 | FROM floor |
| | 67 | WHERE building_id = (SELECT building_id FROM building WHERE name = 'Golden Tower') |
| | 68 | AND floor_number = 2 |
| | 69 | ) |
| | 70 | ORDER BY u.unit_number; |
| | 71 | }}} |
| | 72 | |
| | 73 | 9. Client sees a list of units showing their respective minimal information: unit number, room count, area, price, status, and thumbnail image. |
| | 74 | |
| | 75 | 10. Client clicks on "Unit 201" to view full details. |
| | 76 | |
| | 77 | 11. System displays complete unit information: |
| | 78 | {{{ |
| | 79 | SELECT |
| | 80 | u. unit_id, |
| | 81 | u. unit_number, |
| | 82 | u. room_number, |
| | 83 | u. floor_area, |
| | 84 | u. price, |
| | 85 | u.status, |
| | 86 | u.image, |
| | 87 | u.floorplan, |
| | 88 | u.vector_image |
| | 89 | FROM unit u |
| | 90 | JOIN floor f ON u.floor_id = f. floor_id |
| | 91 | JOIN building b ON f.building_id = b. building_id |
| | 92 | WHERE u.unit_number = '201' |
| | 93 | AND f.floor_number = 2 |
| | 94 | AND b.name = 'Golden Tower'; |
| | 95 | }}} |
| | 96 | |
| | 97 | 12. Client views all images, floorplan, building description, architect information, and pricing details. |
| | 98 | |
| | 99 | 13. Client can navigate back to floor view, building view, or click a button to inquire about the unit that is being displayed. |