#NEWLINE# @ classmethod #NEWLINE# def define_tables( cls , metadata ) : #NEWLINE# #INDENT# global person_table , employee_table , Person , Employee #NEWLINE# person_table = Table ( 'persons' , Person , Column ( 'id' , Integer , primary_key = True , test_needs_autoincrement = True ) , Column ( 'name' , String ( 80 ) ) ) #NEWLINE# employee_table = Table ( 'employees' , metadata , Column ( 'eid' , Integer , primary_key = True , test_needs_autoincrement = True ) , Column ( 'salary' , Integer ) , Column ( 'person_id' , Integer , ForeignKey ( 'persons.id' ) ) ) #NEWLINE# class Person ( object ) : #NEWLINE# #INDENT# def __init__( self , name ) : #NEWLINE# #INDENT# self . name = name #NEWLINE# #UNINDENT# #UNINDENT# class Employee ( Person ) : #NEWLINE# #INDENT# pass