From e0e538956bfcd5a51f28da2d7ab3051938fa2ee5 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sat, 4 Sep 2021 17:06:42 -0700 Subject: [PATCH] added notes on db relations --- db_relations_notes.txt | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 db_relations_notes.txt diff --git a/db_relations_notes.txt b/db_relations_notes.txt deleted file mode 100644 index 6b25d47f..00000000 --- a/db_relations_notes.txt +++ /dev/null @@ -1,19 +0,0 @@ -# Taken from Tom Nurkkala's Youtube Video on Object-RElational Mapping, which uses KnexJS and ObjectionJS to demonstrate -# Basic SQL relationships - -Models in relation - source: model containing relationMappings definition - related: model at other end of relation - -Relation Attribute FK(s) in -One-toMany BelongsToOneRelation Source - HasManyRelation Related - -Many-to-Many ManyToManyRelation Source - -One-to-One BelongsToOneRelation Source - HasOneRelation Related - HasOneThroughRelation Join table - -See video at around 48:00 for further details. -Also look up Database Relations and also ObjectionJS docs for further details on each one.