app.rate_card_lines
TableRow level security on
Rates on a rate card. A line names a canon role, classification, pay basis and arrangement (a permitted combination, decision D16) and a canon overtime rule (decision D14); job titles and multipliers are joined, never repeated (decision D12). The rate is Restricted.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.rate_cards on insert; never accepted from the caller and never changed.References app.organizations.id |
| rate_card_id | uuid | No | Rate card the line belongs to.References app.rate_cards.id |
| role_code | text | No | Canon role priced (Roles Library).References xpms.role.role_code |
| worker_classification | text | No | Worker classification priced.References xpms.arrangement_classification.worker_classification |
| pay_basis | text | No | Pay basis; with the classification a permitted pair.References xpms.pay_basis_classification.pay_basis |
| arrangement | text | No | Arrangement; with the classification a permitted pair.References xpms.arrangement_classification.arrangement |
| canon_rate_card_id | text | Yes | Canon rate card the line was adopted from, when it was.References xpms.rate_card.rate_card_id |
| overtime_rule_id | text | No | Canon overtime rule whose multipliers apply.References xpms.overtime_rule.rule_id |
| rate_minor | bigint | Yes | Rate in minor units of the card currency per pay basis unit; NULL is unpriced. Restricted (data.restricted.read.payroll). |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Yes | Person who inserted the row, or null for a platform process. Set by the database.References app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Yes | Person who last changed the row, or null for a platform process. Set by the database.References app.people.id |