how to make an "enum" if the values are a table
How to add for example several color values to a product
![No description](https://cdn.answeroverflow.com/1202257897824976956/image.png)
![No description](https://cdn.answeroverflow.com/1202257898160541706/image.png)
![No description](https://cdn.answeroverflow.com/1202257898642608209/image.png)
1 Reply
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?