Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zg3z/web-crud-app
https://github.com/zg3z/web-crud-app
brcypt crud css docker-compose ejs express-session i18n javascript nodemon react react-router sequelize
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zg3z/web-crud-app
- Owner: ZG3Z
- Created: 2022-11-07T12:40:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-21T21:58:59.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T21:14:53.431Z (3 months ago)
- Topics: brcypt, crud, css, docker-compose, ejs, express-session, i18n, javascript, nodemon, react, react-router, sequelize
- Language: JavaScript
- Homepage:
- Size: 2.57 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rbike - bike rental
* [Model (ER)](#model)
* [Tabels](#tabels)
* [User roles](#user-roles)## Model
![topic](https://user-images.githubusercontent.com/102870734/215524712-1b5e6ec1-4a57-4652-a491-feed0bf3945e.png)## Tabels
*Table Customer*
| FIELD NAME | TYPE | REQUIRE | DESCRIPTION |
| ------------- | ------------- | ---------- | ------------------ |
| ID_customer | integer | yes | Primary key |
| Name | varchar | yes | Customer name |
| Surname | varchar | yes | Customer surname |
| Telephone | varchar | no | Customer telephone |
| Email | varchar | yes | Customer e-mail |
| Password | varchar | yes | Customer password |*Table Bike*
| FIELD NAME | TYPE | REQUIRE | DESCRIPTION |
| ------------- | ------------- | ---------- | ------------------ |
| ID_bike | integer | yes | Primary key |
| Brand | varchar | yes | Bike brand |
| Model | varchar | yes | Bike model |
| Colour | varchar | yes | Bike colour |*Table Rental*
| FIELD NAME | TYPE | REQUIRE | DESCRIPTION |
| --------------------- | ------------- | ---------- | ---------------------------- |
| ID_rental | integer | yes | Primary key |
| Customer_ID_customer | integer | yes | Foreign key - table Customer |
| Bike_ID_bike | integer | yes | Foreign key - table Bike |
| Date_from | datetime | yes | Rental date from |
| Date_to | datetime | yes | Rental date from |
| Equipment | tinyint | yes | Bike equipment |*Table Accessory*
| FIELD NAME | TYPE | REQUIRE | DESCRIPTION |
| ------------- | ------------- | ---------- | ------------------ |
| ID_accessory | integer | yes | Primary key |
| Name | varchar | yes | Accessory name |*Table Equipment*
| FIELD NAME | TYPE | REQUIRE | DESCRIPTION |
| ----------------------- | ------------- | ---------- | ----------------------------- |
| ID_equipment | integer | yes | Primary key |
| Bike_ID_bike | integer | yes | Foreign key - table Bike |
| Accessory_ID_accessory | integer | yes | Foreign key - table Accessory |## User roles
*Unlogged user*
* log in
* register a new user
* change language
* review non-sensitive data from tables: Customer, Bike and Accessory*Logged user*
* change language
* review details from tables: Customer, Bike and Accessory
* review only own rentals and their details
* add new own rentals*Admin*
* change language
* register a new user
* review details, add new and update them from table Customer
* review details and delete them from table Accessory
* review details, add, update and delete them from tables: Bike and Rental
* assign accessories to the bike