SQLite を使用するように構成された Django Web サーバーがあります。
多対多の関係 (追加のフィールドを使用) では、Django は関係モデルを使用して 2 つのオブジェクト間の関係を確立するように強制します。しかし、関連するテーブルにまだ存在しないオブジェクト間の関係を作成できます。
例:
I have table1 and table2 which are related via table12.
In table1, there is just one object called A.
In table2, there is just one object called X.
I can create a record in table12 that depict a relationship between A & Y; even though Y doesn't exist in table2.
私の関係モデルは、外部キーを適切にマークしました。