Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| repair_id | int8 | 19 | √ | null |
|
|
Unique surrogate identifier for the repair log entry. |
||||
| asset_id | int8 | 19 | null |
|
|
FK linking to the individual asset being repaired. |
|||||
| recreation_remed_repair_code | varchar | 2 | √ | null |
|
|
Remedial repair classification code (FK to rst.recreation_remed_repair_code). |
||||
| estimated_repair_cost | numeric | 10,2 | √ | null |
|
|
Estimated financial cost for the repair work. |
||||
| actual_repair_cost | numeric | 10,2 | √ | null |
|
|
Final actual financial cost incurred after completion. |
||||
| repair_completed_date | date | 13 | √ | null |
|
|
Date the repair work was completed. |
||||
| urgency | varchar | 25 | √ | null |
|
|
Urgency/priority of the repair. |
||||
| trail_segment_start | varchar | 50 | √ | null |
|
|
Optional trail segment start reference for trail-related repairs. |
||||
| trail_segment_end | varchar | 50 | √ | null |
|
|
Optional trail segment end reference for trail-related repairs. |
||||
| updated_at | timestamp | 29,6 | √ | now() |
|
|
|||||
| updated_by | text | 2147483647 | √ | null |
|
|
|||||
| created_at | timestamp | 29,6 | √ | now() |
|
|
|||||
| created_by | text | 2147483647 | √ | null |
|
|
|||||
| sys_period | tstzrange | 2147483647 | tstzrange(CURRENT_TIMESTAMP, NULL::timestamp with time zone) |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| recreation_asset_repair_pkey | Primary key | Asc | repair_id |
| idx_asset_repair_asset_id | Performance | Asc | asset_id |



