many-to-may relation
How do i define relation like a post probably has many comments that nested, for example a person can reply to other person's comment,
4 Replies
See here, specially the part where it talks about self relation: https://orm.drizzle.team/docs/indexes-constraints#foreign-key
Indexes & Constraints - DrizzleORM
Drizzle ORM | %s
I'm using planetscale which does not alow foregn-key, Is there any way to solve this ?
Operating without foreign key constraints
How to manage your relational data without formal foreign key constraints in your schema
https://orm.drizzle.team/docs/rqb with relations
Drizzle Queries - DrizzleORM
Drizzle ORM | %s