I would like to implement a bidirectional friendship relationship using SQLAlchemy.
User A <------> User B <------> User C User D
Can someone give me an example / code snippet of this?
I would like to implement a bidirectional friendship relationship using SQLAlchemy.
User A <------> User B <------> User C User D
Can someone give me an example / code snippet of this?
You need a many to many JOIN table, because each individual can have many friends. The table will have a composite primary key consisting of two foreign keys that refer back to the individual table.