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
allenwhunOP16mo ago
I'm also open for improvements to this code 🙂 TIA! ❤️
allenwhun
allenwhunOP16mo ago
No description
allenwhun
allenwhunOP16mo ago
I'm having this error, Idk if this is related to the relations I did
Angelelz
Angelelz16mo ago
You need to install better-sqlite3
allenwhun
allenwhunOP16mo ago
yep, it's working now. Thank you
janat08
janat0815mo 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
Angelelz15mo 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