Join Slack
Powered by
Hey folks ! Is UUID filed type the same as ID ?
# orm-help
j
Jidé
01/07/2019, 5:02 PM
Hey folks ! Is UUID filed type the same as ID ?
w
warchantua
01/07/2019, 5:04 PM
Short answer is no
j
Jidé
01/07/2019, 5:05 PM
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
Harshit
01/07/2019, 5:45 PM
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
Jidé
01/07/2019, 6:08 PM
Ok ! thank you !
Open in Slack
Previous
Next