After introspection my generated schema.prisma file has a lot of this: @db.Char(30)
But most examples of the schema I see online does not have this. Should I remove them?
r
Ryan
10/06/2021, 7:25 AM
@Josef Henryson ๐
These are native type mappings for your database, so these will be present depending on the data type you have used ๐
j
Josef Henryson
10/06/2021, 7:33 AM
ok, so I should keep them? Why donโt I see them in schema examples?
r
Ryan
10/06/2021, 8:08 AM
Yes you should. Schema examples use the default so no annotation is required.
Have a look at the defaults as well in that section.