Skip to contents

Generate UUIDs with platform-specific prefixes for entity type identification. Artists start with "88", artworks with "99", collections with "77". Test mode uses longer prefixes ("80000000", "90000000", "70000000") for easy identification of test data in production databases.

Usage

genArtistID(test = FALSE)

genArtworkID(test = FALSE)

genCollectionID(test = FALSE)

Arguments

test

If TRUE, uses extended test prefix for easy identification.

Functions

  • genArtistID(): Generate artist UUID (prefix: 88, test: 80000000)

  • genArtworkID(): Generate artwork UUID (prefix: 99, test: 90000000)

  • genCollectionID(): Generate collection UUID (prefix: 77, test: 70000000)

See also

Other uuid: validate

Examples

genArtistID()
#> [1] "886d51a0-61c6-4fe0-a569-45276fbf353f"
genArtworkID()
#> [1] "99343a36-150a-4619-8682-e24f075ad95c"
genCollectionID()
#> [1] "77b57dd7-4c66-4140-be71-d6d4704a39d2"

# Test mode for development
genArtistID(test = TRUE)
#> [1] "80000000-6393-441c-9366-5d162b0025be"