Skip to content

Latest commit

 

History

History
159 lines (148 loc) · 4.08 KB

ProjectRequirement.md

File metadata and controls

159 lines (148 loc) · 4.08 KB

Vehicle Service Management System

Models

  1. Vehicle
  2. Customer
  3. Service Record
  4. Service Provider
  5. Service Type

Models Attributes

Model Attributes Data Type Cardinality
Vehicle vehicle_id Long
company String
model String
year int
owner_id Long @ManyToOne
Customer customer_id Long
name String
vehicle_id String @OneToMany
service_id String @OneToMany
Service Record service_record_id Long
vehicle_id Long @ManyToOne
service_type_id Long @ManyToMany
date_of_service int
service_provider_id Long @OneToMany
Service Provider service_provider_id Long
service_provider_name String
service_type_id Long @ManyToMany
contact_number String
Service Type service_type_id Long
service_type_name String
service_provider_id Long @ManyToMany

Controllers

Vehicle Controllers

- Create Vehicle    | @PostMapping("/vehicles")
- Update Vehicle    | @PostMapping("/vehicles")
- Delete Vehicle    | @DeleteMapping("/vehicles/{id}")
- Get Vehicle By Id | @GetMapping("/vehicles/{id}")
- Get All Vehicles  | @GetMapping("/vehicles")

Customer Controllers

- Create Customer       | @PostMapping("/customers")
- Update Customer       | @PostMapping("/customers")
- Delete Customer       | @DeleteMapping("/customers/{id}")
- Get Customer By Id    | @GetMapping("/customers/{id}")
- Get All Customers     | @GetMapping("/customers")

Service Record Controllers

- Create Service Record     | @PostMapping("/service-records")
- Update Service Record     | @PostMapping("/service-records")
- Delete Service Record     | @DeleteMapping("/service-records/{id}")
- Get Service Record By Id  | @GetMapping("/service-records/{id}")
- Get All Service Records   | @GetMapping("/service-records")

Service Provider Controllers

- Create Service Provider   | @PostMapping("/service-providers")
- Update Service Provider   | @PostMapping("/service-providers")
- Delete Service Provider   | @DeleteMapping("/service-providers/{id}")
- Get Service Provider      | @GetMapping("/service-providers/{id}")
- Get All Service Providers | @GetMapping("/service-providers")

Service Type Controllers

- Create Service Type       | @PostMapping("/service-types")
- Update Service Type       | @PostMapping("/service-types")
- Delete Service Type       | @DeleteMapping("/service-types/{id}")
- Get Service Type          | @GetMapping("/service-types/{id}")
- Get All Service Types     | @GetMapping("/service-types")