<s> from . extensions import db , resizer <EOL> class Upload ( db . Model ) : <EOL> __tablename__ = '<STR_LIT>' <EOL> id = db . Column ( db . Integer , autoincrement = True , primary_key = True ) <EOL> name = db . Column ( db . Unicode ( <NUM_LIT:255> ) , nullable = False ) <EOL> url = db . Column ( db . Unicode ( <NUM_LIT:255> ) , nullable = False ) <EOL> if resizer : <EOL> for size in resizer . sizes . iterkeys ( ) : <EOL> setattr ( Upload , size + '<STR_LIT>' , db . Column ( db . Unicode ( <NUM_LIT:255> ) ) ) <EOL> setattr ( Upload , size + '<STR_LIT>' , db . Column ( db . Unicode ( <NUM_LIT:255> ) ) ) </s>
