= UseCase04 - Saves a Listing ** Initiating actor: Client ** == Description A client browses listings and can save a listing into their favourites for quick access later. When the client clicks “Save” on a listing, the system verifies the client is logged in, verifies the listing exists, then stores the favourite record. The client can later view or remove saved listings. == Scenario 1. Client clicks a listing from the lisiting page. [[Image(save.png)]] {{{ select l1_0.listing_id, l1_0.owner_id, l1_0.animal_id, l1_0.description, l1_0.price,l1_0.status, l1_0.created_at from favorite_listings fl1_0 join listings l1_0 on l1_0.listing_id=fl1_0.listing_id where fl1_0.client_id=? order by l1_0.created_at desc }}} 2. Client clicks "Save Listing" or the heart. [[Image(save2.png)]] [[Image(save3.png)]] [[Image(save4.png)]] {{{ insert into favorite_listings (client_id,listing_id) values (?,?) }}} 3. The system saves the listing to favorites to the client. [[Image(save5.png)]]