Jason Abbott
10/18/2021, 6:47 PM@db.VarChar(25)
, for example, to emit code to warn/trim/whatever on more than 25 characters but none of the @db.
annotations are present in the DMMF. I can only see the field is a String
.
Is there another way to get this information?Jason Abbott
10/19/2021, 1:44 AMschema.prisma
and returns a simple object mapping model fields to the db type, e.g.
Profile: {
name: { type: 'VarChar', size: 25 },
userId: { type: 'UnsignedInt' }
}
Austin
10/19/2021, 3:44 PMJason Abbott
10/20/2021, 5:44 PM