{
  "id": "cuid",
  "kind": "datatype",
  "status": "draft",
  "name": "CUID (collision-resistant unique identifier)",
  "doc": "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.",
  "is_pii": false,
  "categories": [
    "identifiers"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^c[0-9a-z]{24}$",
  "examples": [
    {
      "value": "cjld2cjxh0000qzrmn831i7rn",
      "description": "Example of the cuid README",
      "valid": true
    },
    {
      "value": "cjld2cyuq0000t3rmniod1foy",
      "description": "Example of the cuid README",
      "valid": true
    },
    {
      "value": "tz4a98xxat96iws9zmbrgj3a",
      "description": "Cuid2 of the default length, see cuid2",
      "valid": false
    },
    {
      "value": "Cjld2cjxh0000qzrmn831i7rn",
      "description": "Uppercase letter",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://github.com/paralleldrive/cuid"
    }
  ],
  "translations": {
    "ru": {
      "name": "Идентификатор CUID"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/identifiers/cuid.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/identifiers/cuid.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/identifiers/cuid.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/cuid",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/cuid.json"
  }
}