If I have table A with some fields i.e :
id
name
release_date
And I have table B which contains two table A entities i.e
id
from
to
(from and to are ids from table A)
How do I connect these two entities in model so I can use dot operator to access Bs from A?
About Design
From table A record another record A is created so I want to keep track of which was created from which record.
So this is why table B exists, so I know from which A was made from which A
parent_id?