<s> from sqlalchemy import Column , String , Integer , Boolean <EOL> from sqlalchemy . ext . declarative import declarative_base <EOL> from flask . ext . login import UserMixin <EOL> from flask_example import db_session <EOL> Base = declarative_base ( ) <EOL> Base . query = db_session . query_property ( ) <EOL> class User ( Base , UserMixin ) : <EOL> __tablename__ = '<STR_LIT>' <EOL> id = Column ( Integer , primary_key = True ) <EOL> username = Column ( String ( <NUM_LIT:200> ) ) <EOL> password = Column ( String ( <NUM_LIT:200> ) , default = '<STR_LIT>' ) <EOL> name = Column ( String ( <NUM_LIT:100> ) ) <EOL> email = Column ( String ( <NUM_LIT:200> ) ) <EOL> active = Column ( Boolean , default = True ) <EOL> def is_active ( self ) : <EOL> return self . active </s>
