#NEWLINE# @ classmethod #NEWLINE# def define_tables( cls , metadata ) : #NEWLINE# #INDENT# Table ( 'z' , metadata , Column ( 'id' , Integer , primary_key = True , test_needs_autoincrement = True ) ) #NEWLINE# Table ( 'a' , cls , Column ( 'id' , Integer , primary_key = True , test_needs_autoincrement = True ) , Column ( 'type' , String ( 10 ) ) , Column ( 'z_id' , Integer , ForeignKey ( 'z.id' ) ) ) #NEWLINE# Table ( 'b' , metadata , Column ( 'id' , Integer , ForeignKey ( 'a.id' ) , primary_key = True ) ) #NEWLINE# Table ( 'd' , metadata , Column ( 'id' , Integer , ForeignKey ( 'a.id' ) , primary_key = True ) , Column ( 'b_id' , Integer , ForeignKey ( 'b.id' ) ) )