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 8384751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:29:12+00:00 2026-06-09T17:29:12+00:00

I am working on my school project to create an eCommerce website that sell

  • 0

I am working on my school project to create an eCommerce website that sell and rent product.

My main problem is that I can’t find the best design for the “Renting” part. For now I am thinking about two designs:

The first database design suggestion:
The first database design suggestion


The second database design suggestion:
The second database design suggestion

As you can see there are the same tables in both designs but with different relations, but I can’t tell which one is better.

I will be happy if you can tell me which design is better or if there is a better way to design my database altogether.

  • 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-06-09T17:29:13+00:00Added an answer on June 9, 2026 at 5:29 pm

    Think of your problem from the real-life perspective:

    1. You will be offering “something”, being products in your schema;
    2. You will be working with “somebody” or customers in your schema.

    These 2 tables are most important, as without them the whole thing has no meaning.

    Next, in real life, you have to have papers for each deal you’ll make in order to:

    1. Report to authorities and pay taxes (don’t you like to pay taxes?);
    2. Keep track of products that are “on hands” of your customers.

    These are orders of 2 types: purchase and rent.

    Note, though, that it is unlikelly to rent a set of products with different return dates in one order. Typically, one will rent a set of related items for some special case, like wedding celebration or bathroom repair. In case you need some products for 2 days while others for 2 weeks, it is better to create 2 orders, as different delivery conditions or discounts may apply.

    Therefore I think that initial variant #1 matches your goal better with the following updates:

    1. order_type column should be added to the orders table;
    2. rent_details should relate to orders table;
    3. rent_details should have only order_id in place of rent_detail_id + order_items_id;
    4. it very necessary to have a separate price column in the order_items table along with discount;
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

while working on a school project i ran into a problem using javascript to
I am working on a school project (if you couldn't figure that out just
My team working on a php/MySQL website for a school project. I have a
My question is about a school project that I'm working on. It involves mapping
greeting all i am working on school project and i have a problem with
I am working on a school project that uses ASP.NET. I found this TextEditor
I'm working on a project for school, and faced this elementary problem (it's not
I'm working on a school project which is to create an GPS for an
I'm working on a school project, and I have to create a simple presentation
Working on a end of the year project for school and chose to create

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.