Giter VIP home page Giter VIP logo

bookstore-database-design's Introduction

Description

I suggest to look at the diagram. A picture is worth a thousand words. diagram

Tables

tablename description
books books' data like ISBN, title, author, publisher, etc.
authors authors' data, can be a porson or a company
publishers publishers' data, just name
genres list of them
books_genres points which genre or genres is a book
customers list of them, contains a lot of personal info
discounts name and % value
books_discounts points discounts of specific book
customers_discounts points discounts of a costumer
shippers list of couriers and their phone numbers
orders list of them, points shipper, discount and customer
orders_details points orders and tells amount of specific book
reviews 0 - 10 ratings and comments

Views

view name descpription
book_adder adding book here cares about existence of authors and publishers
books_rank shows ranking of books with average rate and amount of sold copies

Additional info

There are triggers validating e.g. ISBNs correctness (database can handle both ISBN-10 and ISBN-13), polish 9-digit phone numbers and polish NIP (VAT identification number). Customer has to have a book bought in order to rate it. Multiple rating of same book by same user updates resulting one. Removing customer from database makes all his data deleted (orders, ratings and related). If adding of a book with book_adder fails its publisher and author won't be added to database.

Authors

Mikołaj Kondratek(me), Bartłomiej Jachowicz, Tomasz Homoncik

bookstore-database-design's People

Contributors

thomoncik avatar bartekjachowicz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.