@classmethod<EOL><INDENT>def create_table_sql(cls, db):<DEDENT>
parts = ['<STR_LIT>' % (db.db_name, cls.table_name())]<EOL>cols = []<EOL>for name, field in iteritems(cls.fields()):<EOL><INDENT>cols.append('<STR_LIT>' % (name, field.get_sql()))<EOL><DEDENT>parts.append('<STR_LIT>'.join(cols))<EOL>parts.append('<STR_LIT:)>')<EOL>parts.append('<STR_LIT>' + cls.engine.create_table_sql(db))<EOL>return '<STR_LIT:\n>'.join(parts)<EOL>
Returns the SQL command for creating a table for this model.