| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
VALUE |
decimal(19, 5) | Default = 0 | Value for the KPI instance milestone. | |
ASOFDATE |
datetime | Date on which the milestone value is expected to be reached. | ||
DATEADDED |
datetime | Default = getdate() | Indicates the date this record was added. | |
DATECHANGED |
datetime | Default = getdate() | Indicates the date this record was last changed. | |
TS |
timestamp | Timestamp. | ||
TSLONG |
bigint (Computed) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
UPWARDLOWVALUE |
decimal(19, 5) | Default = 0 | ||
UPWARDMIDVALUE |
decimal(19, 5) | Default = 0 | ||
DOWNWARDMIDVALUE |
decimal(19, 5) | Default = 0 | ||
DOWNWARDHIGHVALUE |
decimal(19, 5) | Default = 0 |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
KPIINSTANCEID |
uniqueidentifier | KPIINSTANCE.ID | KPI instance to which this milestone belongs. | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_KPIINSTANCEMILESTONE_ASOFDATE |
ASOFDATE | |||
IX_KPIINSTANCEMILESTONE_DATEADDED |
DATEADDED | ![]() |
||
IX_KPIINSTANCEMILESTONE_DATECHANGED |
DATECHANGED | |||
IX_KPIINSTANCEMILESTONE_KPIINSTANCEID |
KPIINSTANCEID | |||
PK_KPIINSTANCEMILESTONE |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_KPIINSTANCEMILESTONE_AUDIT_DELETE |
|
TR_KPIINSTANCEMILESTONE_AUDIT_UPDATE |

ID
VALUE
TSLONG
KPIINSTANCEID
IX_KPIINSTANCEMILESTONE_ASOFDATE
IX_KPIINSTANCEMILESTONE_DATEADDED