Concept
Sequence numbers
UUIDs are technically unique but hard for humans to communicate. Codemeta OS additionally assigns sequence numbers, which are short, readable and strictly monotonic per tenant.
Format
Sequence numbers have the form <PREFIX>-<YEAR>-<NUMBER>:
T-2026-00042– ticket #42 in 2026INV-2026-00231– invoice #231 in 2026K-2026-00007– contract (German: “Kontrakt”) #7 in 2026
The prefix is defined per entity type. The number is zero-padded to five digits.
Properties
- Strictly monotonic per tenant. Within a tenant, each entity type counts up separately. Gaps can occur (e.g. when a transaction fails), but the order is preserved.
- Year boundary. At the turn of the year, counting starts again at
00001. - Read-only after creation. Sequence numbers are a protected field and cannot be set or changed afterwards.
Sequence number vs. UUID
| Property | UUIDv7 (id) |
Sequence number (number) |
|---|---|---|
| Format | 36 characters, hexadecimal | Short, descriptive (T-2026-00042) |
| Globally unique | Yes | No – only per tenant + type + year |
| Stable | Yes | Yes |
| Usage | API identification | Display, communication |
In ticket examples you will mostly use the UUID for API calls and the sequence number for emails to customers.