def delete_part_type(id): try: examiner = helpers.Examiner(id=id, model=TipoParte, schema=tipo_parte_schema) return helpers.delete_row(examiner) except Exception as e: return jsonify({"error": str(e)}), 500
def delete_repair(id): try: examiner = helpers.Examiner(id=id, model=Reparacion, schema=reparacion_schema) return helpers.delete_row(examiner) except Exception as e: return jsonify({"error": str(e)}), 500
def delete_warranty(id): try: examiner = helpers.Examiner(id=id, model=Garantia, schema=garantia_schema) return helpers.delete_row(examiner) except Exception as e: return jsonify({"error": str(e)}), 500
def delete_employee(id): try: examiner = helpers.Examiner(id=id, model=Empleado, schema=empleado_schema) return helpers.delete_row(examiner) except Exception as e: return jsonify({"error": str(e)}), 500
def delete_user(id): try: examiner = helpers.Examiner(id=id, model=Usuario, schema=usuario_schema) return helpers.delete_row(examiner) except Exception as e: return jsonify({"error": str(e)}), 500
def delete_vehicle(id): try: examiner = helpers.Examiner( id=id, model=Vehiculo, schema=vehiculo_schema ) return helpers.delete_row(examiner) except Exception as e: return jsonify({"error": str(e)}), 500
def delete_client(id): try: examiner = helpers.Examiner( id=id, model=Cliente, schema=cliente_schema, ) return helpers.delete_row(examiner) except Exception as e: return jsonify({"error": str(e)}), 500