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

Add support for ULID IDs

Open alexwork1611 opened this issue 9 months ago • 3 comments

Hello,

Just like you support UUIDs, can you also support ULIDs? See the PR here: https://github.com/prisma/prisma-engines/pull/5092.

Thanks!

alexwork1611 avatar Jan 31 '25 10:01 alexwork1611

Could you send me a sample schema with this? I'll write up a test and see what needs to be done. Not sure I understand the difference.

keonik avatar Feb 04 '25 17:02 keonik

Here you go, sir.

model Company {
  id    String @id @default(ulid())
  name  String
  email String @unique

  orders    Order[]
  customers Customer[]
}

alexwork1611 avatar Feb 06 '25 21:02 alexwork1611

I'd like this too :)

hongkongkiwi avatar Apr 21 '25 13:04 hongkongkiwi