Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
COMMITMENTSEQUENCE | smallint | Default = ((0)) | For ordering a constituent's commitments. | |
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. | |
CUSTOMIDENTIFIER | nvarchar(100) | Default = '' | ||
SEQUENCEID | int | |||
LOOKUPID | nvarchar(100) (Computed) | (CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN 'sp-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END) |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
CONSTITUENTID | uniqueidentifier | CONSTITUENT.LOCALID | The constituent for this commitment. | |
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
IX_SPONSORSHIPCOMMITMENT_DATEADDED | DATEADDED | |||
IX_SPONSORSHIPCOMMITMENT_DATECHANGED | DATECHANGED | |||
PK_SPONSORSHIPCOMMITMENT | ID | |||
UC_SPONSORSHIPCOMMITMENT_LOOKUPID | LOOKUPID | |||
UIX_SPONSORSHIPCOMMITMENT_CONSTITUENTID_COMMITMENTSEQUENCE | CONSTITUENTID, COMMITMENTSEQUENCE |
Trigger Name | Description |
---|---|
TR_SPONSORSHIPCOMMITMENT_AUDIT_UPDATE | |
TR_SPONSORSHIPCOMMITMENT_AUDIT_DELETE |
Referenced by | Field |
---|---|
SPONSORSHIP | SPONSORSHIPCOMMITMENTID |
SPONSORSHIPTRANSACTION | SPONSORSHIPCOMMITMENTID |