in sql_implementation/__init__.py [0:0]
def customers():
customers = Customer.query.all()
data = []
for customer in customers:
data.append({
"id": customer.id,
"full_name": customer.full_name,
"company_name": customer.company_name,
"email": customer.email,
"address": customer.address,
"postal_code": customer.postal_code,
"city": customer.city,
"country": customer.country,
})
return jsonify(data)