lax
08/03/2022, 10:40 AMCREATE TABLE my_table
(
id serial,
attribute boolean,
number integer,
CONSTRAINT if_attribute_then_number_is_not_null
CHECK ( (NOT attribute) OR (number IS NOT NULL) )
) ;
if i do directly on postgres.
But i dont see any documentation mentioning how this can be done in prisma, so i am wondering if this feature is there in prisma yet or its not supported ?Irek Prucnal
08/03/2022, 10:49 AMlax
08/03/2022, 10:55 AMlax
08/03/2022, 10:56 AM