Appearance
Entity: contractItemRate
Entity: contractItemRate
Description: A global, admin-managed catalogue of pricing units (e.g. "Kč/MWh", "Kč/m³", "Kč/den"). Referenced by contractItem to specify the unit a price is expressed in, constrained per contractItemType via contractItemAllowedTypeRate.
Entity Type: database table
Note — no
tenantId(deviation #17). This entity intentionally has notenantId— the set of available pricing units is global and superadmin-managed, same ascontractItemType.
Data Attributes Table
| Attribute Name | Description | Data Type | Default Value | Required (= Nullable) | Unique | Format | Validations | Index | Example |
|---|---|---|---|---|---|---|---|---|---|
id | Primary key of the entity. | UUID | Generated in code (app layer) | Yes | Yes | UUID v7 | - | Primary Key | 018ed0b3-c298-7c7a-96d5-8b36f5a7f8d2 |
name | Display label of the pricing unit. | string | - | Yes | Yes | - | Must not be empty | - | Kč/MWh |
createdAt | Timestamp of entity creation. Immutable. | timestamp with time zone | now() | Yes | No | ISO 8601 — YYYY-MM-DDTHH:mm:ss.SSSZ | - | - | 2026-01-15T09:00:00Z |
updatedAt | Timestamp of last entity update. Mutable. | timestamp with time zone | now() | Yes | No | ISO 8601 — YYYY-MM-DDTHH:mm:ss.SSSZ | - | - | 2026-01-15T09:00:00Z |
deletedAt | Timestamp of entity soft delete. Once set, immutable. | timestamp with time zone | - | No | No | ISO 8601 — YYYY-MM-DDTHH:mm:ss.SSSZ | Immutable once set. Active records: WHERE deletedAt IS NULL | - | null |
createdBy | Identifier of the author who created this record. | string | - | Yes | No | type:actor | - | - | user:c2d3f586-1c9a-4f5f-b9ae-45f2c4f69f7e |
updatedBy | Identifier of the author who last updated this record. | string | - | Yes | No | type:actor | - | - | system:migration-v1 |
Audited fields
Recorded on created (in full), updated (changed only) and deleted (in full): name.
Excluded: none.
No subjectEntityType/subjectEntityId — a global, superadmin-managed catalogue (no tenantId), same exception class as uiLabel and gaugePurposeOption. Registered for entityName resolution via the global catalogue registry — resolves to name (architecture 61-audit-log.md §7.4/§7.6 in the code repo).