Server
addVehicleToGarage
Export to add a vehicle into specific garage with model, plate and fuelLevel options
Parameters description
owner
- the owner's license identifiergarageName
- the garage name from the available garages in your garages table in databasemodel
- the vehicle model to saveplate
- the vehicle plate, if nil it will be a random vehicle platefuelLevel
- the fuel level, if nil it'll be full tank's fuelLevel
addVehiclePropsToGarage
Function to add vehicle to garage with vehicle properties table option
Parameters description
garageName
- the garage name from the available garages in your garages table in databasevehProperties
- the vehicle properties. Required fields aremodel
,owner
andplate
updateVehicleProperties
Export to update vehicle properties
Parameters description
vehProperties
- the vehicle properties. Required fields aremodel
,owner
andplate
getDatabaseVehicleInfo
Export to get vehicle properties of a vehicle in the database by plate
Parameters description
plate
- the vehicle plate to get the database info of
doesVehicleExistInGarage
Export to check vehicle existance in any garage or specific one
Parameters description
plate
- the vehicle plate to check for existancegarageName
- the garage name to focus on while searching, if nil it'll not focus and search in each garage
addVehicleToImpoundGarage
Export to add a vehicle that exists in the public garages into a impound garage
Parameters description
vehicleProperties
- the vehicle properties. Required fields aremodel
,owner
andplate
garageName
- the garage name from the available garages in theimpound_garages
table in your database
Last updated