import mongothon

from dbconnect import my_db

def delete_many(filter):
    my_db['villager'].delete_many(filter)

villager_schema = mongothon.Schema({
    "discord_id": {"type": int, "required": True},
    "server": {"type": int, "required": True},
    "character": {"type": str, "required": True},
    "werewolf": {"type": bool, "required": True},
    "alive": {"type": bool, "default": True},
})

Villager = mongothon.create_model(villager_schema, my_db['villager'])


import mongothon

from dbconnect import my_db

def delete_many(filter):
    my_db['villager'].delete_many(filter)

villager_schema = mongothon.Schema({
    "discord_id": {"type": int, "required": True},
    "server": {"type": int, "required": True},
    "character": {"type": str, "required": True},
    "werewolf": {"type": bool, "required": True},
    "alive": {"type": bool, "default": True},
})

Villager = mongothon.create_model(villager_schema, my_db['villager'])

