Вы находитесь на странице: 1из 19

MILESTONE 6

Bicycle Rental Database

Ben Roehrig
11/27/16
CIS 275 11:30 am
Table of Contents
MISSION STATEMENT .......................................................................................................................... 3

EXECUTIVE SUMMARY ......................................................................................................................... 4

PROJECT DESCRIPTION ....................................................................................................................... 4

ENTITY RELATIONSHIP DIAGRAM .................................................................................................. 5

XTG ENTITY-RELATIONSHIP DIAGRAM......................................................................................... 6

EXTENDED ENTITY-RELATION DIAGRAM .................................................................................... 7

IDEF1X DIAGRAM .................................................................................................................................. 8

SQL DDL CREATE TABLE STATEMENTS ......................................................................................... 9

BUSINESS RULES .................................................................................................................................. 15

BUSINESS RULES .................................................................................................................................. 16

BUSINESS RULES .................................................................................................................................. 17

GLOSSARY .............................................................................................................................................. 18

Ben Roehrig | Mon. & Wed. 11:30 Page 2 of 19


Mission Statement
The purpose of the Salem Bicycle Rental database is to collect and maintain data about
the customers, bicycles, and rentals via the designated kiosks throughout the city of
Salem.

Ben Roehrig | Mon. & Wed. 11:30 Page 3 of 19


Executive Summary
This report will present the proposed Entity-Relationship Diagram, XTG Entity-
Relationship Diagram, Extended Entity-Relationship Diagram, IDF1X Diagram,
Business Rules, and Glossary regarding the Salem Bicycle Rentals database. The
included E.R. diagrams convey the logical structure of the database, the business rules
describe the requirements of the database, and the glossary defines all entities and
attributes used in this report.

Project Description
This project is designed to show the end user exactly how the bicycle rental database is
structured and how it can be used to store all data needed for such a business. Included
in this project are also the SQL DDL for creating the tables and screenshots for
illustrating how the data can be managed and modified.

Ben Roehrig | Mon. & Wed. 11:30 Page 4 of 19


Entity Relationship Diagram

Ben Roehrig | Mon. & Wed. 11:30 Page 5 of 19


XTG Entity-Relationship Diagram

Ben Roehrig | Mon. & Wed. 11:30 Page 6 of 19


Extended Entity-Relation Diagram
The following EER diagram was created using Dezign Data Modeler to illustrate the basic
structure for the Salem Bicycle Rental database.

Customer-Reservation

1:N

1
Rental-Submission
N

Location-Assignment

1:N

Ben Roehrig | Mon. & Wed. 11:30 Page 7 of 19


IDEF1X Diagram
The following IDEF1X diagram was created using Dezign Data Modeler.

Ben Roehrig | Mon. & Wed. 11:30 Page 8 of 19


SQL DDL Create Table Statements

CREATE TABLE CUSTOMER (


CID INTEGER PRIMARY KEY NOT NULL,
FName TEXT NOT NULL,
LName TEXT NOT NULL,
Saddress TEXT NOT NULL,
Zip INTEGER NOT NULL,
CCN VARCHAR(16) NOT NULL,
City VARCHAR(25) NOT NULL,
State VARCHAR(2) NOT NULL,
Exp DATE NOT NULL,
CVV INTEGER NOT NULL,
Email TEXT NOT NULL
);

CREATE TABLE KIOSK (


KN INTEGER PRIMARY KEY NOT NULL,
Kaddress TEXT NOT NULL

);

CREATE TABLE RENTAL (


CID INTEGER NOT NULL,
KN INTEGER NOT NULL,
BID VARCHAR(3) NOT NULL,
RentKiosk VARCHAR(25) NOT NULL,
ReturnKiosk VARCHAR(25) NOT NULL,
RentTime DATETIME NOT NULL,
ReturnTime DATETIME NOT NULL,
CONSTRAINT CIDFK
FOREIGN KEY (CID) REFERENCES CUSTOMER (CID),
CONSTRAINT KNtoFK
FOREIGN KEY (KN) REFERENCES KIOSK (KN)
);

CREATE TABLE BICYCLE (


BID INTEGER PRIMARY KEY NOT NULL,
KN INTEGER NOT NULL,
Ucode INTEGER NOT NULL,
Model TEXT NOT NULL,
Make TEXT NOT NULL,
Cost MONEY NOT NULL,
GPS INTEGER NOT NULL,
OpStatus TEXT NOT NULL,
CONSTRAINT KNFK
FOREIGN KEY (KN) REFERENCES KIOSK (KN)
);

Ben Roehrig | Mon. & Wed. 11:30 Page 9 of 19


Table Data Printouts
BICYCLE:

BID KN Ucode Model Make Cost GPS Opstatus


1 2 2945 Del Ray Schwinn $120.00 98648 Working
2 8 8452 Del Ray Schwinn $120.00 42686 Working
3 4 8751 Del Ray Schwinn $120.00 45121 Working
4 9 1245 Fairfax Marin $200.00 26841 Working
5 1 5123 Four Peaks State Bicycle $250.00 24415 Working
6 7 4214 Porteur Faraday $300.00 65451 Working
7 3 5486 Wythe Brooklyn Bicycle Co. $150.00 14565 Working
8 5 4698 Ajax Spot $200.00 12545 Working
9 10 1518 Townie Electra $130.00 16841 Working
10 6 6321 Hooligan Cannondale $200.00 69987 Working
11 3 1474 Furley Raleigh $250.00 78241 Working
12 4 6941 Chelsea Trek $140.00 36693 Working
13 5 1496 Vybe Dahon $220.00 31459 Working
14 1 6951 Rocker Momentum $170.00 14593 Not Working- Awaiting repair
15 2 6951 Rocker Momentum $170.00 39941 Working
16 6 4784 Breezer Uptown $120.00 63841 Not Working- Awaiting Repair
17 10 9698 Arrow Shinola $150.00 14853 Working
18 9 1233 Commuter Jamis $300.00 63941 Working
19 7 6466 Loki Orbea $180.00 81214 Working
20 5 1036 Four Corners Marin $210.00 39157 Working

Ben Roehrig | Mon. & Wed. 11:30 Page 10 of 19


CUSTOMER

CID FName LName Saddress CCN Exp CVV City State Zip
1 Russell Barton 667 Kincheloe Road 4916103992620853 3/17/2017 398 Salem OR 97301 lakefi
2 Ora Rice 2431 Seneca Drive 4929818828370325 8/1/2017 422 Salem OR 97301 Wifir
3 Steven Guerrero 2754 Godfrey Street 4556027872038636 10/13/2017 252 Salem OR 97302 TheA
4 Bernard Doyle 3202 Seneca Drive 4539343648556872 1/12/2017 687 Salem OR 97302 TheH
5 Rachael Bryant 3431 Mattson Street 4916395833484297 7/8/2017 369 Salem OR 97305 Diref
6 Jesse Carroll 3879 Lawman Avenue 5519629341821733 6/7/2017 689 Salem OR 97301 Exult
7 Edgar Farmer 1876 Lighthouse Drive 5325159092183731 4/13/2017 574 Salem OR 97302 Mund
8 Julian Howell 3146 Fire Access Road 5380517405723133 9/6/2017 845 Salem OR 97301 Next@
9 May Mcdonald 3323 Webster Street 5115104818756687 6/27/2017 231 Salem OR 97305 hkft_
10 Bryant Summers 1794 Braxton Street 5568772795648754 11/25/2017 548 Salem OR 97301 vfa3l
11 Sherman Thornton 329 Sweetwood Drive 5533809861358595 9/28/2017 14 Salem Or 80014 k6je7
12 Robert Robert L H 1380 Fire Access Road 5416507487435555 4/25/2018 289 High Point NC 27260 6vhd
utchins
13 Todd Leonard 2691 Dark Hollow Road 5329113954363515 8/3/2017 963 Camden NJ 8102 a7yjx
14 Emily Barker 3950 O Conner Street 4532802951582541 5/18/2018 875 Biloxi MS 39531 du6b
15 Brittany Fox 2310 George Street 5298593053105502 4/20/2018 630 Ocala FL 34471 9wup
16 Judith Collier 341 Timberbrook Lane 6011759701069416 12/1/2017 674 Wray CO 80758 d-8ow
17 Sylvester Lopez 1000 Edington Drive 4532693874602635 11/26/2016 485 Smyrna GA 30082 98_l_
18 Essie Robinson 4855 Elm Drive 4929942400461953 3/13/2018 115 New York NY 10011 -octz
19 Tammy Higgins 3690 Harper Street 4929262204367698 11/27/2017 679 Pembroke KY 69754 k0-ka
20 Julian Mckinney 1118 College Avenue 5150860020594101 9/13/2017 541 Dayton OH 68742 f6ft@

RENTAL:

Ben Roehrig | Mon. & Wed. 11:30 Page 11 of 19


CID KN BID RentTime RentKiosk ReturnTime ReturnKiosk
1 5 19 8/15/2016 12:36:09 PM 4192 Glen Street 8/15/2016 2:13:29 PM 3879 Lawman Avenue
1 3 13 6/21/2016 9:19:18 AM 2643 Seneca Drive 6/22/2016 2:08:01 PM 3419 Kincheloe Road
1 5 15 7/12/2016 11:45:10 AM 4192 Glen Street 7/13/2016 4:39:04 PM 4192 Glen Street
1 1 5 7/24/2016 8:40:25 AM 227 Simons Hollow Road 7/25/2016 2:55:41 PM 227 Simons Hollow Road
1 8 10 8/22/2016 10:31:00 AM 2816 Mattson Street 8/22/2016 10:40:39 AM 4390 Victoria Street
1 10 11 7/12/2016 10:14:01 AM 2643 Seneca Drive 7/13/2016 10:29:43 AM 4192 Glen Street
1 10 7 8/2/2016 2:37:06 PM 3419 Kincheloe Road 8/3/2016 10:17:28 AM 4667 Gateway Road
2 4 15 7/7/2016 8:00:14 AM 4192 Glen Street 7/9/2016 12:30:06 PM 3879 Lawman Avenue
2 10 3 6/23/2016 2:30:03 PM 4116 Godfrey Street 7/24/2016 12:49:58 PM 4116 Godfrey Street
2 10 12 7/25/2016 9:45:13 AM 2643 Seneca Drive 7/27/2016 10:00:20 AM 3930 Seneca Drive
2 4 15 8/28/2016 12:50:41 PM 3879 Lawman Avenue 8/29/2016 2:42:43 PM 4192 Glen Street
2 5 4 8/14/2016 12:21:10 PM 4192 Glen Street 8/16/2016 2:54:06 PM 227 Simons Hollow Road
3 3 7 6/25/2016 12:57:19 PM 2643 Seneca Drive 7/2/2016 3:07:38 PM 4390 Victoria Street
3 2 6 7/4/2016 9:42:37 AM 227 Simons Hollow Road 7/5/2016 3:03:27 PM 4116 Godfrey Street
3 3 13 7/12/2016 3:19:18 PM 4192 Glen Street 7/12/2016 3:57:53 PM 3419 Kincheloe Road
3 2 17 7/14/2016 12:44:47 PM 4390 Victoria Street 7/15/2016 10:35:37 AM 2643 Seneca Drive
3 2 11 7/7/2016 12:50:15 PM 2816 Mattson Street 7/7/2016 3:42:29 PM 4667 Gateway Road
3 4 8 8/5/2016 11:46:11 AM 4192 Glen Street 8/7/2016 1:04:22 PM 3419 Kincheloe Road
3 2 11 6/13/2016 4:54:37 PM 3419 Kincheloe Road 6/14/2016 9:43:12 AM 4192 Glen Street
4 6 11 7/25/2016 8:00:32 AM 3930 Seneca Drive 7/28/2016 11:11:46 AM 227 Simons Hollow Road
4 8 7 8/18/2016 4:23:05 PM 4192 Glen Street 8/20/2016 1:57:22 PM 3930 Seneca Drive
4 7 12 7/11/2016 3:33:50 PM 4116 Godfrey Street 7/29/2016 12:29:23 PM 3930 Seneca Drive
4 9 2 7/2/2016 11:32:12 AM 2643 Seneca Drive 7/5/2016 9:47:57 AM 2816 Mattson Street
4 9 19 7/17/2016 9:34:16 AM 4667 Gateway Road 7/18/2016 4:07:24 PM 4667 Gateway Road
4 9 19 8/2/2016 11:27:53 AM 4192 Glen Street 8/22/2016 8:37:15 AM 4192 Glen Street
4 5 12 7/31/2016 9:11:48 AM 3419 Kincheloe Road 8/4/2016 8:09:27 AM 3879 Lawman Avenue
4 9 14 7/20/2016 2:04:08 PM 2816 Mattson Street 7/30/2016 11:13:38 AM 3930 Seneca Drive
5 3 2 6/15/2016 12:48:58 PM 227 Simons Hollow Road 6/17/2016 3:13:49 PM 3879 Lawman Avenue
5 6 13 7/30/2016 2:20:33 PM 4192 Glen Street 8/1/2016 10:52:36 AM 4390 Victoria Street
5 8 19 8/27/2016 3:56:18 PM 4667 Gateway Road 8/28/2016 11:48:46 AM 4192 Glen Street
5 10 8 6/28/2016 11:16:57 AM 4192 Glen Street 6/29/2016 10:31:26 AM 3419 Kincheloe Road
5 6 14 7/25/2016 9:50:41 AM 3419 Kincheloe Road 7/25/2016 3:13:58 PM 227 Simons Hollow Road
5 8 15 7/3/2016 10:54:20 AM 3930 Seneca Drive 7/3/2016 12:09:30 PM 2816 Mattson Street
6 7 17 6/13/2016 8:55:58 AM 227 Simons Hollow Road 7/24/2016 8:52:31 AM 3930 Seneca Drive
6 4 13 8/1/2016 12:14:41 PM 4116 Godfrey Street 8/4/2016 1:02:12 PM 2643 Seneca Drive
6 6 20 8/16/2016 3:49:15 PM 4192 Glen Street 8/20/2016 1:47:51 PM 4667 Gateway Road
7 6 20 6/22/2016 8:55:49 AM 4667 Gateway Road 7/12/2016 2:34:22 PM 3419 Kincheloe Road
7 3 8 7/5/2016 4:48:17 PM 4390 Victoria Street 8/20/2016 12:39:10 PM 3930 Seneca Drive
7 6 2 8/29/2016 8:16:48 AM 2643 Seneca Drive 8/31/2016 1:22:39 PM 4116 Godfrey Street
7 3 12 8/11/2016 8:55:32 AM 4667 Gateway Road 8/14/2016 2:07:44 PM 4192 Glen Street
8 10 2 6/16/2016 12:54:09 PM 4192 Glen Street 6/18/2016 11:11:54 AM 4667 Gateway Road
8 8 18 7/10/2016 10:48:17 AM 3419 Kincheloe Road 7/23/2016 12:43:38 PM 3879 Lawman Avenue
8 1 14 8/19/2016 12:19:00 PM 2816 Mattson Street 8/21/2016 8:07:44 AM 3930 Seneca Drive
8 9 7 7/29/2016 12:33:33 PM 4192 Glen Street 8/3/2016 8:26:18 AM 3879 Lawman Avenue

Ben Roehrig | Mon. & Wed. 11:30 Page 12 of 19


9 6 5 8/21/2016 12:38:53 PM 227 Simons Hollow Road 8/24/2016 12:35:43 PM 4192 Glen Street
9 9 14 6/24/2016 8:41:43 AM 4192 Glen Street 6/25/2016 10:30:09 AM 3419 Kincheloe Road
9 7 3 6/22/2016 4:31:35 PM 3879 Lawman Avenue 6/28/2016 9:03:45 AM 3419 Kincheloe Road
9 8 16 7/24/2016 8:57:59 AM 227 Simons Hollow Road 8/16/2016 11:21:42 AM 4667 Gateway Road
10 2 4 8/19/2016 2:50:56 PM 4116 Godfrey Street 8/22/2016 11:52:13 AM 4390 Victoria Street
10 2 11 6/23/2016 11:17:23 AM 227 Simons Hollow Road 7/14/2016 9:43:47 AM 3419 Kincheloe Road
10 6 9 8/28/2016 4:34:54 PM 4192 Glen Street 8/31/2016 1:26:07 PM 2643 Seneca Drive
10 10 7 8/22/2016 4:15:45 PM 3879 Lawman Avenue 8/23/2016 4:23:48 PM 227 Simons Hollow Road
10 2 13 6/28/2016 12:37:35 PM 2816 Mattson Street 7/9/2016 10:55:38 AM 227 Simons Hollow Road
10 1 3 7/2/2016 2:14:12 PM 4192 Glen Street 7/5/2016 8:03:16 AM 4667 Gateway Road
11 9 8 8/30/2016 4:56:21 PM 3419 Kincheloe Road 8/31/2016 9:07:12 AM 4192 Glen Street
11 2 1 8/14/2016 2:39:59 PM 4390 Victoria Street 8/16/2016 2:41:25 PM 4667 Gateway Road
11 1 2 8/16/2016 12:07:47 PM 4192 Glen Street 8/18/2016 11:57:07 AM 3419 Kincheloe Road
12 7 12 7/14/2016 3:49:06 PM 3930 Seneca Drive 7/15/2016 12:51:59 PM 3930 Seneca Drive
12 1 1 8/11/2016 4:59:31 PM 3419 Kincheloe Road 8/12/2016 10:49:26 AM 2816 Mattson Street
12 7 9 6/27/2016 11:34:57 AM 2643 Seneca Drive 6/29/2016 1:13:44 PM 3419 Kincheloe Road
12 2 20 8/5/2016 2:15:39 PM 3419 Kincheloe Road 8/7/2016 4:32:01 PM 4116 Godfrey Street
12 7 17 8/8/2016 4:07:49 PM 4192 Glen Street 8/22/2016 8:21:33 AM 4192 Glen Street
12 2 17 8/7/2016 10:38:12 AM 3419 Kincheloe Road 8/9/2016 12:50:07 PM 4667 Gateway Road
13 7 20 7/20/2016 10:55:21 AM 4116 Godfrey Street 7/22/2016 10:24:06 AM 3879 Lawman Avenue
13 6 2 6/29/2016 8:41:51 AM 227 Simons Hollow Road 7/2/2016 4:21:30 PM 4667 Gateway Road
13 4 16 7/16/2016 3:33:59 PM 3930 Seneca Drive 7/18/2016 8:19:15 AM 4667 Gateway Road
13 8 8 8/19/2016 1:52:45 PM 4192 Glen Street 8/19/2016 3:20:10 PM 4390 Victoria Street
13 10 10 8/18/2016 8:56:33 AM 227 Simons Hollow Road 8/19/2016 10:35:37 AM 3930 Seneca Drive
13 10 20 7/20/2016 3:21:45 PM 4667 Gateway Road 7/21/2016 1:43:06 PM 2816 Mattson Street
14 10 3 8/13/2016 2:38:15 PM 4192 Glen Street 8/14/2016 11:45:01 AM 227 Simons Hollow Road
14 5 2 7/31/2016 1:32:01 PM 3419 Kincheloe Road 8/5/2016 1:30:26 PM 4667 Gateway Road
14 8 5 8/13/2016 4:11:51 PM 2816 Mattson Street 8/18/2016 3:21:36 PM 4192 Glen Street
14 1 16 8/18/2016 4:44:59 PM 2643 Seneca Drive 8/24/2016 11:36:49 AM 4192 Glen Street
14 8 18 7/1/2016 4:52:11 PM 3419 Kincheloe Road 7/2/2016 1:48:09 PM 227 Simons Hollow Road
14 4 1 8/5/2016 9:36:43 AM 3930 Seneca Drive 8/7/2016 8:08:44 AM 227 Simons Hollow Road
14 5 16 7/14/2016 10:07:06 AM 4667 Gateway Road 7/18/2016 2:48:20 PM 3930 Seneca Drive
15 7 9 7/14/2016 4:38:56 PM 4192 Glen Street 7/17/2016 8:43:09 AM 3879 Lawman Avenue
15 1 20 8/17/2016 12:07:47 PM 4667 Gateway Road 8/19/2016 4:57:30 PM 4667 Gateway Road
15 5 2 6/21/2016 11:10:45 AM 4390 Victoria Street 6/21/2016 1:22:57 PM 4667 Gateway Road
16 8 6 7/24/2016 11:49:55 AM 3879 Lawman Avenue 7/27/2016 10:27:07 AM 4390 Victoria Street
16 6 19 7/27/2016 8:14:04 AM 4667 Gateway Road 7/27/2016 2:08:44 PM 227 Simons Hollow Road
16 4 13 7/8/2016 1:56:04 PM 227 Simons Hollow Road 7/11/2016 3:23:02 PM 3419 Kincheloe Road
16 6 16 7/4/2016 9:26:56 AM 4192 Glen Street 7/5/2016 11:02:59 AM 3419 Kincheloe Road

Ben Roehrig | Mon. & Wed. 11:30 Page 13 of 19


17 9 18 6/28/2016 12:25:55 PM 3419 Kincheloe Road 6/30/2016 3:04:45 PM 2643 Seneca Drive
17 3 6 6/18/2016 11:22:34 AM 227 Simons Hollow Road 6/20/2016 1:34:54 PM 4667 Gateway Road
17 9 18 8/27/2016 4:36:55 PM 2643 Seneca Drive 8/29/2016 11:57:59 AM 4390 Victoria Street
17 1 20 7/31/2016 12:25:21 PM 227 Simons Hollow Road 8/3/2016 10:15:10 AM 4667 Gateway Road
18 9 16 8/2/2016 9:49:06 AM 3930 Seneca Drive 8/4/2016 4:52:28 PM 3879 Lawman Avenue
18 3 6 8/30/2016 3:28:48 PM 4667 Gateway Road 8/31/2016 12:39:27 PM 3879 Lawman Avenue
18 4 16 8/11/2016 11:37:49 AM 4192 Glen Street 8/11/2016 1:55:29 PM 4192 Glen Street
18 3 18 6/21/2016 4:57:22 PM 4390 Victoria Street 6/22/2016 8:32:47 AM 4667 Gateway Road
19 1 17 6/25/2016 4:22:39 PM 3879 Lawman Avenue 6/26/2016 9:33:50 AM 3930 Seneca Drive
19 2 5 6/15/2016 3:49:49 PM 3930 Seneca Drive 6/16/2016 9:19:09 AM 227 Simons Hollow Road
19 5 16 8/23/2016 9:42:03 AM 3879 Lawman Avenue 8/25/2016 3:12:23 PM 3879 Lawman Avenue
19 4 18 7/30/2016 8:23:00 AM 3419 Kincheloe Road 7/30/2016 10:17:20 AM 2643 Seneca Drive
19 6 16 7/8/2016 11:09:45 AM 4390 Victoria Street 7/10/2016 3:47:31 PM 4667 Gateway Road
20 1 11 7/20/2016 4:21:22 PM 2643 Seneca Drive 7/21/2016 11:18:49 AM 3879 Lawman Avenue
20 4 8 8/12/2016 9:12:49 AM 2643 Seneca Drive 8/14/2016 3:37:44 PM 227 Simons Hollow Road
20 3 18 6/20/2016 4:23:48 PM 3879 Lawman Avenue 6/22/2016 12:19:09 PM 4192 Glen Street
20 1 1 7/25/2016 4:01:38 PM 4667 Gateway Road 7/26/2016 4:05:31 PM 3930 Seneca Drive

Ben Roehrig | Mon. & Wed. 11:30 Page 14 of 19


Business Rules
CUSTOMER
Each CUSTOMER may register for RENTAL at any KIOSK.
Each CUSTOMER must have a CustomerID.
A CustomerID must be assigned to a CUSTOMER.
Each CUSTOMER must have a Credit Card Number.
A Credit Card Number must belong to a CUSTOMER.
Each CUSTOMER must have a First Name.
A First Name must belong to a CUSTOMER.
Each CUSTOMER must have a Last Name.
A Last Name must belong to a CUSTOMER.
Each Customer must have a Street Address.
A Street Address must belong to a CUSTOMER.
Each CUSTOMER must have a Zip Code.
A Zip Code must belong to a CUSTOMER.
Each CUSTOMER must have a City.
A City mush belong to a CUSTOMER.
Each CUSTOMER must have a State.
A State must belong to a CUSTOMER.
Each CUSTOMER must have an Email address.
An Email address must belong to a CUSTOMER.
Each CUSTOMER must have a Card Verification Value.
A Card Verification Value must belong to a CUSTOMER.
Each CUSTOMER must have a Credit Card Expiration date.
A Credit Card Expiration must belong to a CUSTOMER.
Each CUSTOMER must enter Credit Card Number, First Name, Last Name,
Email, Street Address, and Zip Code when registering at a KIOSK.
Each CUSTOMER must be assigned a unique CustomerID after completing
registration.
Each CUSTOMER is charged at the time of RENTAL based on Rental Period
selected.
Each CUSTOMER can request a BICYCLE at any KIOSK location.
Each CUSTOMER may pick up a BICYCLE from any KIOSK during Rental
Period.
Each CUSTOMER may pick up and drop off a BICYCLE as many times as
necessary.

Ben Roehrig | Mon. & Wed. 11:30 Page 15 of 19


Each CUSTOMER may have one or more RENTALs.
A RENTAL must belong to a CUSTOMER.

Business Rules
RENTAL
Each RENTAL must have a CustomerID from CUSTOMER.
A CustomerID must belong to each RENTAL.
Each RENTAL must have Kiosk Number from KIOSK.
A Kiosk Number must belong to each RENTAL.
Each RENTAL must be assigned an Unlock Code.
An Unlock Code must be assigned to a RENTAL.
Each RENTAL must have a Rental Type.
A Rental Type must belong to a RENTAL.
Each RENTAL must have a Rental Time.
A Rental Time must belong to a RENTAL.
Each RENTAL must have a Return Time.
A Return Time must belong to a RENTAL.
Each RENTAL must assigned a BicycleID from BICYCLE.
A BicycleID must belong to each RENTAL.
A RENTAL may be completed from any KIOSK.
Each RENTAL must consist of a BICYCLE.
A BICYCLE may be a part of one or more RENTALs.
If a Rental Period is less than 24 hours, the CUSTOMER is charged $3.00.
If a Rental Period is 10 days or less the CUSTOMER is charged $15.00.
If a Rental Period is more than 10 days then the CUSTOMER is charged is
$150.00.
Each RENTAL is cancelled if CUSTOMER takes over 10 minutes to use Unlock
Code.
Each RENTAL must take place one KIOSK.
A KIOSK may have one or more RENTALS.

Ben Roehrig | Mon. & Wed. 11:30 Page 16 of 19


Business Rules
KIOSK
Each KIOSK must have a Kiosk Number.
A Kiosk Number must be assigned to each KIOSK.
Each KIOSK must have a Kiosk Address
A Kiosk Address must belong to each KIOSK.
Each KIOSK must assign a BicycleID to each RENTAL.
Each KIOSK must assign an Unlock Code to each RENTAL.
Each KIOSK may store one or more BICYCLEs.
A BICYCLE must be stored at one KIOSK.
BICYCLE
Each BICYCLE must have a BicycleID.
A BicycleID must belong to a BICYCLE.
Each BICYCLE may have an Unlock Code assigned to them from RENTAL.
Each BICYCLE must have an Operational Status.
An Operational Status must be applied to a BICYCLE.
Each BICYCLE must be assigned a Kiosk Number.
A Kiosk Number belong to each BICYCLE.
Each BICYCLE must have a Make.
A Make must belong to a BICYCLE.
Each BICYCLE must have a Model.
A Model must belong to a BICYCLE.
Each BICYCLE must have a Cost.
A Cost must belong to a BICYCLE
Each BICYCLE must have a GPS Number,
Each GPS Number must belong to a BICYCLE.
Each BICYCLE can be rented from any KIOSK.
Each BICYCLE can be returned to any KIOSK.
Each BICYCLE may belong to one or more RENTALs.
A RENTAL must have one BICYCLE.

Ben Roehrig | Mon. & Wed. 11:30 Page 17 of 19


Glossary

BICYCLE A transportation device with 2 inline wheels that can rented and used by a
customer.
BID or BicycleID - A unique number that identifies each bicycle. Primary key of
BICYCLE entity. Foreign key of RENTAL entity.
CCN or Credit card number The credit card number of customer that registers for
bicycle rental.
CID or CustomerID A number which is the surrogate key assigned to each customer
when a customer registers for bicycle rental. Primary key of CUSTOMER entity and
foreign key of RENTAL entity.
City The city of residence a bicycle rental customer enters upon registration.
Cost A dollar amount representing how much each bicycle is worth.
CUSTOMER A person who pays to rent a bicycle from a kiosk.
CVV or Card Verification Value The 3 digits printed on the back of customers credit
card.
Email The electronic mailing address of customer that registers for bicycle rental.
Exp or Credit Card Expiration The expiration date printed on customers credit card.
FName or First Name This represents the first name of customer.
GPS or GPS Number A number that represents GPS signal of each bicycle.
Kaddress or Kiosk Address The physical street address of each kiosk.
KIOSK A computer station where customers can rent a bicycle, pay for the rental, and
pick up the bicycle.
KN or Kiosk Number A unique number that identifies each kiosk. Primary key of
KIOSK entity and foreign key of RENTAL and BICYCLE entities.
LName or Last Name This represents the last name of customer.
Make The brand of each bicycle.
Model The version or model of each bicycle.
OpStatus or Operational Status The indicator of whether a bicycle is intact and
operational or if it is broken and out for repairs.

Ben Roehrig | Mon. & Wed. 11:30 Page 18 of 19


RENTAL The transaction history of a customer paying to use a bicycle for specific
amount of time.
RentTime The time and date when customer completes rental transaction.
ReturnTime The time and date recorded when customer returns bicycle rental to
kiosk.
Saddress or Street Address The physical address of a customer who registers for
rental.
State The state in which a customer of the bicycle rental business resides.
UCode or Unlock Code A unique code given to customer at the time of rental to
unlock bicycle from stall.
Zip or Zip Code The 5 digit postal code of each customer.

Ben Roehrig | Mon. & Wed. 11:30 Page 19 of 19

Вам также может понравиться