Datatypes

CUID (collision-resistant unique identifier)

ID cuid

DatatypeNot PIIidentifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Identifier of the cuid library, written as the letter c followed by 24 lowercase base36 characters that encode a timestamp, a counter, a host fingerprint and random data. Prisma generates it with @default(cuid()). Its authors deprecated it for security reasons, since parts of it can be guessed, and recommend Cuid2 (cuid2) instead. The 25-character length holds while the base36 timestamp has 8 digits, which lasts until 2059.

Categories
Universal unique identifiers
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
80/100 · missing: mapping (Wikidata, Schema.org, ...), detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

^c[0-9a-z]{24}$

Python re syntax.

Examples

ValueDescription
cjld2cjxh0000qzrmn831i7rnExample of the cuid README
cjld2cyuq0000t3rmniod1foyExample of the cuid README
tz4a98xxat96iws9zmbrgj3a invalidCuid2 of the default length, see cuid2
Cjld2cjxh0000qzrmn831i7rn invalidUppercase letter

Translations

LanguageNameDescription
RussianИдентификатор CUID

Sources

Use this record