Lyndogwin / ITSC-3160-Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ITSC-3160-Project

Brandon Bost

1. Introduction (Team, Project Description)

The goal of this project is to produce a datamodel that with allow campus personel to effectively order food from outside source and maintain a record of the best restaurants that are contacted.

2. Use Case for Rating System

UseCase

3. Business Rules

  • The person on campus must be able to place an order.
  • A person can place many orders.
  • A single order can relate only to one person.
  • A single order can only relate to one driver.
  • A single order can only relate to one restaurant.
  • The person (who placed the order) must be able to complete a rating for bothe the driver and the restaurant.
  • The ratings for driver and restaurant are independent.

4. EERD (full database)

EERD

<title>Schema Report for database: campus_eats_fall2020</title> <style> td,th { text-align:left; vertical-align:middle; } table { border-collapse: collapse; border: 1px solid; } caption, th, td { padding: .2em .8em; border: 1px solid #000000; } caption { background: #D3D3D3; font-weight: bold; font-size: 1.1em; } th { font-weight: bold; background: #000000; color: white; } td { background: #FFFFFF; } </style>

Schema Report for database: campus_eats_fall2020

Table List
Table: delivery
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
delivery_idINTYesYesNo
driver_idINTYesNoYes
vehicle_idINTYesNoYes
delivery_timeDATETIMENoNoNoNULL
Table List
Table: driver
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
driver_idINTYesYesNo
student_idINTYesNoYes
license_numberVARCHAR(75)NoNoNoNULL
date_hiredDATENoNoNoNULL
ratingFLOATNoNoNoNULL
Table List
Table: faculty
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
faculty_idINTYesYesNo
person_idINTYesNoYes
titleVARCHAR(75)NoNoNoNULL
degree_collegeVARCHAR(75)NoNoNoNULL
highest_degreeVARCHAR(75)NoNoNoNULL
Table List
Table: location
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
location_idINTYesYesNo
location_nameVARCHAR(75)NoNoNoNULL
location_addressVARCHAR(75)NoNoNoNULL
latitudeVARCHAR(75)NoNoNoNULL
longitudeVARCHAR(75)NoNoNoNULL
drop_off_pointVARCHAR(75)NoNoNoNULL
Table List
Table: order
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
order_idINTYesYesNo
person_idINTYesNoYes
delivery_idINTYesNoYes
location_idINTYesNoYes
driver_idINTYesNoYes
restaurant_idINTYesNoYes
total_priceFLOATYesNoNo
delivery_chargeFLOATNoNoNoNULL
Table List
Table: person
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
person_idINTYesYesNo
person_nameVARCHAR(300)NoNoNoNULL
person_emailVARCHAR(150)NoNoNoNULL
cellBIGINTNoNoNoNULL
Table List
Table: restaurant
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
restaurant_idINTYesYesNo
locationVARCHAR(75)NoNoNoNULL
restaurant_nameVARCHAR(75)NoNoNoNULL
scheduleVARCHAR(75)NoNoNoNULL
websiteVARCHAR(75)NoNoNoNULL
Table List
Table: staff
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
staff_idINTYesYesNo
person_idINTNoNoYesNULL
positionVARCHAR(75)NoNoNoNULL
is_adminVARCHAR(1)NoNoNo'N'
Table List
Table: student
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
student_idINTYesYesNo
person_idINTYesNoYes
graduation_yearINTNoNoNoNULL
majorVARCHAR(75)NoNoNoNULL
typeVARCHAR(75)NoNoNoNULL
Table List
Table: vehicle
Table Comments
Columns
Name Data Type Nullable PK FK Default Comment
vehicle_idINTYesYesNo
vehicle_plateVARCHAR(75)NoNoNoNULL
modelVARCHAR(75)NoNoNoNULL
makeVARCHAR(75)NoNoNoNULL
Table List

5. MySQL Queries

6. Stored Procedure

7. Web/App Implementation (Optional) or Description of Future Work

8. MySQL dump

9. PPT Video (link)

About


Languages

Language:HTML 100.0%