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.
Functions
gen_artist_id(): Generate artist UUID (prefix: 88, test: 80000000)gen_artwork_id(): Generate artwork UUID (prefix: 99, test: 90000000)gen_collection_id(): Generate collection UUID (prefix: 77, test: 70000000)
See also
Other uuid:
validate
Examples
gen_artist_id()
#> [1] "88c8a6b9-7072-4b2a-a3e5-97eeecab1d6b"
gen_artwork_id()
#> [1] "99714d05-230d-4c50-b829-e0093acacb80"
gen_collection_id()
#> [1] "77142ba6-2c2c-43e8-8db3-05c053229413"
# Test mode for development
gen_artist_id(test = TRUE)
#> [1] "80000000-be66-489e-b26f-08b66f03290b"
