def get_user_types(): try: return helpers.get_rows(TipoUsuario, tipo_usuario_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_clients(): try: return helpers.get_rows(Cliente, cliente_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_repairs(): try: return helpers.get_rows(Reparacion, reparacion_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_part_types(): try: return helpers.get_rows(TipoParte, tipo_parte_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_cities(): try: return helpers.get_rows(City, city_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_states(): try: return helpers.get_rows(State, state_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_messages(): try: return helpers.get_rows(Message, message_schema) except Exception as e: return jsonify({'error': str(e)}), 500
def get_vehicles(): try: return helpers.get_rows(Vehiculo,vehiculo_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_repair_details(): try: return helpers.get_rows(ReparacionDetalle,reparacion_detalle_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_warranties(): try: return helpers.get_rows(Garantia, garantia_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_employees(): try: return helpers.get_rows(Empleado, empleado_schema) except Exception as e: return jsonify({"error": str(e)}), 500
def get_parts(): try: return helpers.get_rows(Parte,parte_schema) except Exception as e: return jsonify({"error": str(e)}), 500