ORGANIZATIONMERGERHISTORY
History of organization mergers.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
MERGERDATE |
date |
|
|
Date of the organization merger. |
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
SOURCEORG1ID |
uniqueidentifier |
|
CONSTITUENT.LOCALID
|
ID of the primary organization in the merger. |
SOURCEORG2ID |
uniqueidentifier |
yes |
CONSTITUENT.LOCALID
|
ID of the secondary organization in the merger. |
NEWORGID |
uniqueidentifier |
|
CONSTITUENT.LOCALID
|
ID of new organization that was created in the merger or ID of the primary organization into which the secondary was merged. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_ORGANIZATIONMERGERHISTORY_DATEADDED |
DATEADDED |
|
|
yes |
IX_ORGANIZATIONMERGERHISTORY_DATECHANGED |
DATECHANGED |
|
|
|
IX_ORGANIZATIONMERGERHISTORY_NEWORGID |
NEWORGID |
|
|
|
IX_ORGANIZATIONMERGERHISTORY_SOURCEORG1ID |
SOURCEORG1ID |
|
|
|
IX_ORGANIZATIONMERGERHISTORY_SOURCEORG2ID |
SOURCEORG2ID |
|
|
|
PK_ORGANIZATIONMERGERHISTORY |
ID |
yes |
yes |
|
Triggers