def setup_db():
    # init REQUIRED db data.

    # reserved user is deleted, may not need in mongodb implementation

    # default super admin

    admin = User(
        name="admin",
        nickname="admin",
        password="e8104164dfc4a479e42a9f6c0aefd2be",
        avatar_url="/static/pic/monkey-32-32px.png",
        is_super=True)

    User.objects(name="admin").update_one(__raw__={"$set": admin.to_mongo().to_dict()}, upsert=True)
Initialize db tables
dataset/ETHPy150Open msopentechcn/open-hackathon/open-hackathon-server/src/setup_db.py/setup_db