On Jul 12, 5:40 pm, Dipo Elegbede <dipo.elegb...@gmail.com> wrote: > > Can I create two tables under a single Base class. >
Yes. If "Base" is the Base class then: class Tab1(Base): name = Column(String) extension = Column(String) class Tab2(Base): name = Column(String) extension = Column(String) You can inherit multiple times. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.