Description and expected behavior
#204 attempts to implement setting enum variants as field defaults (prisma supports this). But this does not work when the enum is declared after the model:
${prelude}
model M {
e E @default(E1)
}
enum E {
E1
E2
}
will fail with Value is not assignable to parameter []
Environment (please complete the following information):
- ZenStack version: 1.0.0-alpha.113
- Prisma version: 4.11.0
- Database type: Postgresql
Description and expected behavior
#204 attempts to implement setting enum variants as field defaults (prisma supports this). But this does not work when the enum is declared after the model:
will fail with
Value is not assignable to parameter []Environment (please complete the following information):