prisma-dbml-generator icon indicating copy to clipboard operation
prisma-dbml-generator copied to clipboard

Incorrect Mapping of uuid Type to string in DBML Output

Open YukiTsuchida opened this issue 1 year ago • 0 comments

When using the Prisma schema with a uuid type, the DBML output is incorrectly mapping the field as string instead of uuid.

Example

Prisma Schema (input):

model User {
  id              String         @id @db.Uuid
}

DBML Output:

Table users {
  id String [pk]
}

Expected DBML Output:

Table users {
  id uuid [pk]
}

It would be helpful if the DBML output could correctly reflect the uuid type from the Prisma schema. Thank you!

YukiTsuchida avatar Sep 14 '24 07:09 YukiTsuchida