I'm trying to experiment with "native types mappin...
# prisma-migrate
g
I'm trying to experiment with "native types mapping" and getting an error where the docs say it should work. Am I doing something wrong?
Copy code
Running generate... (Use --skip-generate to skip the generators)
Error: Schema parsing
error: Attribute not known: "@db.Text".
  -->  schema.prisma:54
   | 
53 |   study_id        String?
54 |   type            EmbedType @db.Text
oh looks like i can't use this with enums, it only works with strings. It'd be super useful for enums so we can have type protection in the code but simplify our migrations.
n
Hey Geo đŸ‘‹ That’s correct, native types mapping can be used as attributes in models only, not in enums.