#NEWLINE# @ classmethod #NEWLINE# def define_tables( cls , metadata ) : #NEWLINE# #INDENT# parents = Table ( 'parents' , metadata , Column ( 'id' , Integer , primary_key = True , test_needs_autoincrement = True ) , Column ( 'name' , String ( 60 ) ) ) #NEWLINE# children = Table ( 'children' , parents , Column ( 'id' , Integer , ForeignKey ( 'parents.id' ) , primary_key = True ) , Column ( 'type' , Integer , primary_key = True ) , Column ( 'name' , String ( 60 ) ) )