oxmaster
oxmaster
DTDrizzle Team
Created by oxmaster on 1/31/2024 in #help
how to make an "enum" if the values are a table
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?
3 replies
DTDrizzle Team
Created by oxmaster on 1/31/2024 in #help
how to make an "enum" if the values are a table
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"
3 replies