remember that relational databases use a new table for each many-to-many relationship
- so, a cocktail has many ingredients, and an ingredient can be in many cocktails
- this means we need a new table to store the relationship between cocktails and ingredients
- this table will have a cocktail_id and an ingredient_id column
- this is called a "join table" or "junction table"
- the cocktail_id and ingredient_id columns are both foreign keys that reference the id column of the cocktails and ingredients tables, respectively
when working with supabase/postgres and nextjs, what is a decently ergonomical why to handle CRUD of these tables?
- supabase sdk VS prismajs VS typeorm