- We need just one table for users, which will contain all user information. Hence, we will not need registration, login, reset_password, account_info.
- Customer contact form does not need a customer reference. because, we assume that this is an anonymous user.
- We don't need
Customer
table either, because orders can be associated with User tables directly. Product
table can be renamed toVehicles
.Order
can be renamed toReceipts
.- We can move all the fields of Order_details to
Receipt
- Vehicle should contain following details:
- Make
- Model
- Name
- Status => New/Used
- Engine Type => Petrol, Diesel, Hybrid
- Engine Capacity
- We need another table for Inventory, which will basically extend Vehicle, and it will contain following details
- Registration Number
- Color
- Mileage
- Dealer_ID (FK)
API specs:
Fetch all inventory on home page.
Endpoint:
GET: api/v1/inventory?limit=10&offset=0
Fetch inventory by ID
Endpoint: GET:
Complete Purchase:
Endpoint: POST:
User:
Login:
POST: api/v1/users/login
Signup:
POST: api/v1/users/signup
On singup, just send a success message
On login, return a JWT token to user
https://lucid.app/lucidchart/8605712c-fd3a-4250-b901-29625ed27ae3/edit?view_items=uJCStjlZ1Ry1&invitationId=inv_9f5fad21-f8ac-42a8-90f9-c3f75852e89e#