Giter Site home page Giter Site logo

jeffwang4321 / library-database Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 314 KB

Designed and built a real-world database application for Vancouver libraries. Built the database application using Python and SQLite. Designed an entity-relationship model and drafted it into an E/R diagram. Ensured the schema met the project requirements and avoided anomalies.

Jupyter Notebook 43.90% Python 56.10%
python sqlite database

library-database's Introduction

Library Database

  • Designed and built a real-world database application for Vancouver libraries
  • Designed an entity-relationship model and drafted it into an E/R diagram
  • Ensured the schema met the project requirements and avoided anomalies
  • Converted the E/R diagram to table schemas for this database using SQLite
  • Built the database application using Python and SQLite

Features/ Specifications

  • Users can find an item in the library
  • Users can borrow an item from the library
  • Users can return a borrowed item
  • User can donate an item to the library
  • Users can find an event in the library
  • Users can register for an event in the library
  • Users can volunteer for the library
  • Users can ask for help from a librarian
  • Users can list all items, people, dues and events

E/R Diagram

Schema

  • Item (ID, title, author, edition, year, genre, quantity, numAvailable)
  • ItemCopy (itemID, copyNum, type, status)
  • FutureItem (ID, title, author, edition, year, genre, quantity, type, arrivalDate)
  • Person (ID, firstName, lastName, age, owes)
  • Registered (personID, eventID)
  • Event (ID, eventName, date, room, startTime, endTime, fee, recommendedAge)
  • CheckedOut (copyID, personID, itemID)
  • Dues (copyID, personID, itemID, dueDate)
  • Staff (ID, firstName, lastName, age, gender, role)

Demo

  • List all book items

  • List all people and dues

  • Return a book item

How to Test

$ sudo pip3 install PTable
$ python3 librarydatabase.py

library-database's People

Contributors

jeffwang4321 avatar

Stargazers

 avatar  avatar

Watchers

 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.