Marvin
11/24/2020, 8:52 PM@unique
or @default
?
Example @unique
not allowed on @id
fields or now()
not allowed on String
fields?Ryan
11/25/2020, 8:20 AM@prisma/client
directly, but I would need to check if thereโs any for valid attributes for a given type.Ryan
11/25/2020, 8:20 AMimport type {User} from '@prisma/client'
If you have a model named User
.Ryan
11/25/2020, 8:26 AMMarvin
11/25/2020, 7:51 PMString
, Int
or Boolean
) in a const enum
. Just would be cool to already have the types from Prisma, so I don't need to manually stick them together with my own types (which are probably not 100% correct). ๐Ryan
11/26/2020, 11:58 AM