old_contents: import os
  
  import peewee
  
  import config
  
  db = peewee.SqliteDatabase(None, threadlocals=True)
  
  
  class BaseModel(peewee.Model):
      class Meta:
          database = db
  
  
  class Session(BaseModel):
      chat_id = peewee.IntegerField(primary_key=True)
      trello_token = peewee.CharField(null=True)
  
  
  db.init(config.DB_FILE)
  
  if not os.path.isfile(config.DB_FILE):
      db.create_tables([Session])
  
new_contents: import os
  
  import peewee
  
  import config
  
  db = peewee.SqliteDatabase(None, threadlocals=True)
  
  
  class BaseModel(peewee.Model):
      class Meta:
          database = db
  
  
  class Session(BaseModel):
      chat_id = peewee.IntegerField(primary_key=True)
      trello_token = peewee.CharField(null=True)
  
  
  class BoardHook(BaseModel):
      session = peewee.ForeignKeyField(Session, related_name='hooks')
      board_id = peewee.CharField()
  
  
  db.init(config.DB_FILE)
  
  if not os.path.isfile(config.DB_FILE):
      db.create_tables([Session, BoardHook])
  
subject: Add BoardHook model