Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('tbl_okr_template_history_id_seq'::regclass) |
|
|
Primary key |
|
| template_id | int8 | 19 | null |
|
|
FK: public.tbl_okr_template.id |
||
| template_name | varchar | 200 | null |
|
|
The name of the OKR template in this historical version. |
||
| review_frequency | varchar | 20 | √ | null |
|
|
The specified frequency for progress reviews (e.g., QUARTERLY, MONTHLY) in this version. |
|
| period_type | varchar | 20 | √ | null |
|
|
The standard duration type for the cycle defined by the template (e.g., YEARLY, HALF_YEARLY). |
|
| period_range | varchar | 50 | √ | null |
|
|
A string representation of the template’s date range or period (e.g., Q1 2025). |
|
| total_tasks | int4 | 10 | √ | null |
|
|
The total count of objectives and key results defined in the template in this historical version. |
|
| total_weightage | float8 | 17,17 | √ | null |
|
|
The sum of the weightage of all goals defined in the template (should typically be 100). |
|
| is_delete | bool | 1 | √ | null |
|
|
Soft-delete flag: Indicates if the parent master template was logically deleted at the time this history record was created. |
|
| template_fields | text | 2147483647 | √ | null |
|
|
JSON data string containing the detailed hierarchical structure of all Objectives, Key Results, and their properties as defined in this template version. |
|
| createdby | varchar | 50 | √ | null |
|
|
||
| createddate | timestamp | 29,6 | √ | null |
|
|
||
| modifiedby | varchar | 50 | √ | null |
|
|
||
| modifieddate | timestamp | 29,6 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pk_tbl_okr_template_history | Primary key | Asc | id |
