Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7596847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:01:15+00:00 2026-05-30T22:01:15+00:00

I am developing a website for vacation home rentals, and I would like some

  • 0

I am developing a website for vacation home rentals, and I would like some help with the design of the object model.

I have the houses model, the users model, and now I am going to design and build the reservations model, which would have start and end date fields, user field, and a house field.

The booking process has several actions involved, choosing the house, choosing the dates, and finally making the payment. How would I develop the booking process so the reservation isn’t saved until all these actions have been done? Is it a would idea to create a different model (ReservationRequest, for example) to handle the two states of the reservation? Otherwise, how can I handle the two states of a reservation?

Sorry if it this is a vague question, but any guidance for this kind of process will be very useful to me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:01:16+00:00Added an answer on May 30, 2026 at 10:01 pm

    It depends on your policy. I wouldn’t store anything server-side until a valid payment is initiated. This way users can’t block houses and then change their minds. I’d pass objects (houses and dates) back and forth between different pages of the wizard. When a payment is initiated I’d store the Reservation in the database – so assuming an optimistic point of view – and this would lock the House. If then the payment fails, destroy the Reservation and send appropriate messages (emails). This way everyone can restart the whole process. But this really depends on how many users there will be and how concurrent is the environment

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently developing a website for an electrical company. They would like some
I am developing a travels related website using cakephp. I have to put some
I am developing a website in PHP and I would like to use a
I'm developing a website (in Django) that uses OpenID to authenticate users. As I'm
I am developing a website wherein users are able to add friends. Here, I'm
I'm developing a website which is currently in testing phase. Whenever I make some
I am developing a website were I will have pages with videos on them.
I'm developing a website, but stuck at some point, where i needed to detect
We are developing a website which is required some software to install for first
I'm developing a website to deploy my android applications. Users can select multiple android

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.