Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
STARTDATE | date | Start date of parent relationship. | ||
ENDDATE | date | End date of parent relationship. | ||
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. |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
CHILDCORPID | uniqueidentifier | CONSTITUENT.LOCALID | ID of child organization. | |
PARENTCORPID | uniqueidentifier | CONSTITUENT.LOCALID | ID of parent organization | |
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
IX_ORGANIZATIONPARENTHISTORY_CHILDCORPID | CHILDCORPID | |||
IX_ORGANIZATIONPARENTHISTORY_DATEADDED | DATEADDED | |||
IX_ORGANIZATIONPARENTHISTORY_DATECHANGED | DATECHANGED | |||
IX_ORGANIZATIONPARENTHISTORY_PARENTCORPID | PARENTCORPID | |||
PK_ORGANIZATIONPARENTHISTORY | ID |
Trigger Name | Description |
---|---|
TR_ORGANIZATIONPARENTHISTORY_INSERTUPDATE_VALIDDATES | |
TR_ORGANIZATIONPARENTHISTORY_AUDIT_UPDATE | |
TR_ORGANIZATIONPARENTHISTORY_AUDIT_DELETE |