Re: [sqlalchemy] Many-to-Many association table with 3 foreign-key columns

2022-08-17 Thread Adderus Berg
s a replacement for the "many to many" pattern when the > "many to many" table has more columns than just a simple linkage between > two rows. > > On Tue, Aug 16, 2022, at 9:06 AM, Adderus Berg wrote: > > Good afternoon community > > I have the following ta

[sqlalchemy] Many-to-Many association table with 3 foreign-key columns

2022-08-16 Thread Adderus Berg
Good afternoon community I have the following tables: - Survey - Answer - Question - SurveyAnswer (Association table) My association table has 3 foreign keys that relates to Answer, Question and Survey. A Survey has many Questions, many Answers. When I insert a survey object into t