I am new to sqlalchemy. I can create database tables by declarative mapping like this: This is fine. I added some data into both customer and invoice tables. So far so good. Next, I would try out automap_base on this existing database like this: When I ran the code, I got: AttributeError: type object ‘customer’ has no attribute ‘invoices’ What