how to express the "children" relation in parent/child?

I have a table with columns id and parent_id - and I want to setup a parent/child relationship. Using the relations, one, and many I've got this but not sure if it's correct. If I'm able to express my "parent" relationship, shouldn't I also express my "children" relationship as well?
No description
1 Reply
Andrii Sherman
Andrii Sherman16mo ago
if you need - yes. The only requirement for drizzle relations function is: 1. If you have many relation, you need to defined one as well but you can have just one relation without many if you need
Want results from more Discord servers?
Add your server