Many to many relationship using Turso

Hello I'm new to sql in general and I just followed and copy some codes through the documentation of turso and drizzle. I'm trying to make a many-to-many relation between drinks and ingredients. I want to know this is the correct way to do it?
No description
7 Replies
allenwhun
allenwhunOP14mo ago
I'm also open for improvements to this code 🙂 TIA! ❤️
allenwhun
allenwhunOP14mo ago
No description
allenwhun
allenwhunOP14mo ago
I'm having this error, Idk if this is related to the relations I did
Angelelz
Angelelz14mo ago
You need to install better-sqlite3
allenwhun
allenwhunOP14mo ago
yep, it's working now. Thank you
janat08
janat0814mo ago
Official docs recommend setting up a 3rd table for holding the many to many relations and that's what copilot also proposes how is this right?
Angelelz
Angelelz14mo ago
You're right, I didn't look at the relations. I just saw the error. I don't know what result he got though
Want results from more Discord servers?
Add your server