Skip to content

wizfury/bike-rental-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

~~ DATABASE INFO! ~~

Database_info

Database details

~~ TABLE INFO! ~~

1 Customers_info

Customer table info

2 bikes_info

Bikes table info

3 rentals_info

Rentals table info

~~ TABLE DATA! ~~

1 Customers_data

Customers Data

2 bikes_data

Bikes Data

3 rentals_data

Rental Data

~~ WORKING! ~~

BIke_Rental.mp4

Here is a simple flow chart:

graph TD;
    START-->RENT;
    START-->RETURN;
    START-->EXIT;
    RENT-->AVAILABLE_BIKES;
    AVAILABLE_BIKES-->PHONE_NUMBER
    PHONE_NUMBER-->FOUND;
    FOUND-->START;
    PHONE_NUMBER-->NOT_FOUND;
    NOT_FOUND-->CREATE_NEW_ID;
    CREATE_NEW_ID-->START;
    RETURN-->PHONE-NUMBER;
    PHONE-NUMBER-->RETURN_RENTAL_ID;
    RETURN_RENTAL_ID-->START;
Loading

Here is a ER Diagram:

erDiagram
    BIKES ||--o| RENTALS: available_bikes
    BIKES {
        int bike_id PK
        VARCHAR(50) type
        int size
        boolean available
    }
    
    CUSTOMERS ||--o| RENTALS: to_customer
    CUSTOMERS {
        int cumstomer_id PK
        VARCHAR(15) phone
        VARCHAR(40) name
    }
    RENTALS{
        int customer_id PK,FK
        int bike_id PK,FK
        date date_rented
        date date_returned
    }
    BIKE_RENTAL_SHOP only one to zero or more BIKES: rents
Loading

Releases

No releases published

Packages

No packages published

Languages