How to connect multiple models of the same type?

Hi, I'm trying to implement a family structure in my application. I have n Customers who are related to each other (Siblings, Parents, all that stuff). I'm thinking about adding a family_id to customers table and creating an own families table. What would the best approach in Filament be?
3 Replies
toeknee
toeknee13mo ago
Create a pivot table?
alexanderkroneis
alexanderkroneisOP13mo ago
so you mean families which contains 2 customer FKs?
toeknee
toeknee13mo ago
yeah that's one way to do it
Want results from more Discord servers?
Add your server