This document provides a detailed explanation of each class and its attributes in the mechanical workshop management system.
Represents the owner or administrator of a mechanical workshop, responsible for managing customers, vehicles, services, and transactions.
UserId (int): Unique identifier for the user in the system.NIT (int): Tax identification number used for legal and financial purposes.UserName (string?): Full name of the user or workshop owner.Phone (string?): Contact phone number for communication.Email (string?): Email address for notifications and correspondence.Adress (string?): Physical location of the workshop.VehiclesList (List<Vehicles>?): Collection of vehicles registered under this user.CustomersList (List<Customers>?): List of customers who interact with the workshop.BrandsList (List<Brands>?): Vehicle brands managed or serviced by the workshop.OrdersList (List<Orders>?): List of work orders created under this user.EmployeesList (List<Employees>?): Employees working in the workshop.ServicesList (List<Services>?): Services offered by the workshop.SalesList (List<Sales>?): Sales transactions recorded by the user.PaymentMethodsList (List<PaymentMethods>?): Payment methods accepted in the workshop.ProductsList (List<Products>?): Inventory of products available for sale or use.CategoriesList (List<Categories>?): Categories under which products are classified.
Represents customer vehicles serviced at the workshop.
VehicleId (int): Unique identifier for each vehicle.Plate (string?): Vehicle's license plate number.Chassis (string?): Chassis number, used for identification.Color (string?): The color of the vehicle.Engine (string?): Engine specifications or identification number.BrandId (int?): Reference to the vehicle's brand.CustomerId (int?): The owner of the vehicle, linked to a customer.UserId (int?): The workshop managing this vehicle._Brand (Brands?): Relationship to theBrandsentity for brand details._Customer (Customers?): Relationship to theCustomersentity for owner details._User (Users?): Relationship to theUsersentity for workshop details.
Represents individuals or companies that own vehicles serviced by the workshop.
CustomerId (int): Unique identifier for each customer.CustomerName (string?): Full name of the customer.Identification (string?): National ID, tax number, or business registration.PhoneNumber (string?): Contact number for communication.Email (string?): Email address for correspondence.UserId (int): The workshop owner managing this customer._User (Users?): Relationship to theUsersentity.VehiclesList (List<Vehicles>?): List of vehicles owned by the customer.
Represents different vehicle brands serviced by the workshop.
BrandId (int): Unique identifier for the brand.BrandName (string?): Name of the vehicle brand (e.g., Toyota, Ford).OriginCountry (string?): Country where the brand originates.UserId (int): The workshop managing this brand._User (Users?): Relationship to theUsersentity.
Represents a work order created when a customer requests a service.
OrderId (int): Unique identifier for each order.OrderRef (string?): Reference code for tracking the order.CustomerRemark (string?): Additional comments from the customer.VehicleId (int): The vehicle associated with the order.EmployeeId (int): The employee assigned to the order.UserId (int): The workshop managing this order._User (Users?): Relationship to theUsersentity._Vehicle (Vehicles?): Relationship to theVehiclesentity._Employees (Employees?): Relationship to theEmployeesentity.OrderServicesList (List<OrderServices>?): Services linked to this order.
Represents the services included in a specific order.
OrderId (int): The order associated with the service.ServiceId (int): The service performed._Order (Orders?): Relationship to theOrdersentity._Service (Services?): Relationship to theServicesentity.
Represents workers in the workshop.
EmployeeId (int): Unique identifier for the employee.Identification (string?): Employee's personal ID or work ID.EmployeeName (string?): Full name of the employee.Active (bool): Indicates if the employee is currently working.UserId (int): The workshop managing this employee._User (Users?): Relationship to theUsersentity._OrdersList (List<Orders>?): Work orders assigned to this employee.
Represents the various services provided by the workshop.
ServiceId (int): Unique identifier for the service.ServiceName (string?): Name of the service (e.g., oil change, tire replacement).Reference (string?): Internal reference code.Price (double): Cost of the service.StimatedTime (string?): Estimated time to complete the service.UserId (int): The workshop managing this service._User (Users?): Relationship to theUsersentity.OrderServicesList (List<OrderServices>?): Orders that include this service.ServicesProductsList (List<ServicesProducts>?): Products used for this service.
Represents the relationship between services and the products used for them.
ServiceId (int): The service requiring the product.ProductId (int): The product used in the service._Service (Services?): Relationship to theServicesentity._Product (Products?): Relationship to theProductsentity.
Represents sales transactions in the workshop.
SaleId (int): Unique identifier for the sale.SaleRef (string?): Reference code for tracking.PaymentMethodId (int): Payment method used.OrderId (int): The order related to the sale.UserId (int): The workshop managing the sale._User (Users?): Relationship to theUsersentity._PaymentMethod (PaymentMethods?): Relationship to thePaymentMethodsentity._Order (Orders?): Relationship to theOrdersentity.
Represents the accepted payment methods in the workshop.
PaymentMethodId (int): Unique identifier.PaymentMethod (string?): Name of the payment method (e.g., cash, credit card).Active (bool): Indicates if the payment method is currently accepted.UserId (int): The workshop managing this payment method._User (Users?): Relationship to theUsersentity.SalesList (List<Sales>?): Sales transactions using this payment method.
Represents products available for sale or use in the workshop.
ProductId (int): Unique identifier.ProductName (string?): Name of the product.Reference (string?): Internal reference code.PurchasePrice (double): Cost price of the product.SalePrice (double): Selling price.CategoryId (int): Category classification.UserId (int): The workshop managing this product.
Represents different categories of products.
CategoryId (int): Unique identifier.CategoryName (string?): Name of the category.Active (bool): Indicates if the category is in use.UserId (int): The workshop managing this category.