notiz-dev / prisma-dbml-generator

Prisma DBML Generator
MIT License
684 stars 37 forks source link

Incorrect Mapping of uuid Type to string in DBML Output #57

Open YukiTsuchida opened 2 months ago

YukiTsuchida commented 2 months ago

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!