Hey folks ! Is UUID filed type the same as ID ?
# orm-help
j
Hey folks ! Is UUID filed type the same as ID ?
w
Short answer is no
j
ok... so what’s the long answer ? 🙂 I’d like to know if UUID is settable manually on create or if it is generated automatically too
h
UUID is the internal postgres plugin which uses uuid v4 as the id generator see https://en.wikipedia.org/wiki/Universally_unique_identifier In the ID we use a custom id generator called GCValue as listed here: https://github.com/prisma/prisma/blob/master/server/libs/gc-values/src/main/scala/com/prisma/gc_values/GcValues.scala
j
Ok ! thank you !