added notes on db relations

This commit is contained in:
tomit4 2021-09-04 17:06:42 -07:00
parent 0caa63cc90
commit e0e538956b

View file

@ -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.