how to make an "enum" if the values are a table

How to add for example several color values to a product
No description
No description
No description
1 Reply
oxmaster
oxmasterOP11mo ago
I have two tables and another one that implements the many-to-many relationship. For example, I want the product to have several colors or sizes, but how can I specify this in drizzle-orm if the color or size itself are tables and not "enum" we have special tables for communication, and I understand that in these tables, by product id, I need to search for all the color values that belong to this product, and then for each id value, look for its specific color in the table?
Want results from more Discord servers?
Add your server