This is a simplified version to figure out how to do a self-referential, many-to-many, with extra data relationship. There are branches with each attempt, extra_assoc is the only one incomplete
If you don't have fastapi:
pip3 install fastapi[all]
If you don't have sqlite3
pip3 install sqlite
Run the command to start the server
uvicorn main:app --reload