<s> import datetime <EOL> from peewee import * <EOL> from models import base_model <EOL> class Tweet ( base_model . BaseModel ) : <EOL> message = CharField ( ) <EOL> author = CharField ( ) <EOL> is_valid = BooleanField ( default = True ) <EOL> is_done = BooleanField ( default = False ) <EOL> json_data = TextField ( ) <EOL> created_at = DateTimeField ( default = datetime . datetime . now ) <EOL> updated_at = DateTimeField ( default = datetime . datetime . now ) <EOL> class Meta : <EOL> order_by = ( '<STR_LIT>' , ) <EOL> def initialize ( ) : <EOL> base_model . DATABASE . connect ( ) <EOL> Tweet . create_table ( True ) <EOL> base_model . DATABASE . close ( ) </s>
