STEWARDSHIPPLAN
Contains stewardship plans.
Primary Key
Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Fields
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
NARRATIVE | nvarchar(1000) | Default = '' | ||
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. |
NAME | nvarchar(100) | Default = '' | ||
STARTDATE | datetime | yes | The date of the stewardship plan. | |
MANAGERSTARTDATE | date | yes | Start date of this stewardship plan manager. | |
MANAGERENDDATE | date | yes | End date of this stewardship plan manager. | |
ISACTIVE | bit | Default = 1 |
Foreign Keys
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
MANAGERID | uniqueidentifier | yes | CONSTITUENT.LOCALID | FK to CONSTITUENT |
CONSTITUENTID | uniqueidentifier | CONSTITUENT.LOCALID | FK to CONSTITUENT | |
BASECURRENCYID | uniqueidentifier | yes | CURRENCY.ID | The base currency associated with this stewardship plan. |
PLANTYPECODEID | uniqueidentifier | yes | STEWARDSHIPPLANTYPECODE.ID | The plan type for this stewardship plan. |
PLANSUBTYPECODEID | uniqueidentifier | yes | STEWARDSHIPPLANSUBTYPECODE.ID | The plan subtype for this stewardship plan. |
Indexes
Index Name | Fields | Unique | Primary | Clustered |
---|---|---|---|---|
IX_STEWARDSHIPPLAN_BASECURRENCYID | BASECURRENCYID | |||
IX_STEWARDSHIPPLAN_DATEADDED | DATEADDED | yes | ||
IX_STEWARDSHIPPLAN_DATECHANGED | DATECHANGED | |||
IX_STEWARDSHIPPLAN_MANAGERID | MANAGERID | |||
PK_STEWARDSHIPPLAN | ID | yes | yes | |
UIX_STEWARDSHIPPLAN_CONSTITUENTID_NAME | CONSTITUENTID, NAME | yes |
Triggers
Trigger Name | Description |
---|---|
TR_STEWARDSHIPPLAN_AUDIT_UPDATE | |
TR_STEWARDSHIPPLAN_AUDIT_DELETE | |
TR_STEWARDSHIPPLAN_INSERT_BASECURRENCYID |
Referenced by
Referenced by | Field |
---|---|
STEWARDSHIPATTACHMENT | PLANID |
STEWARDSHIPMEDIALINK | PLANID |
STEWARDSHIPNOTE | PLANID |
STEWARDSHIPPLANMANAGERHISTORY | STEWARDSHIPPLANID |
STEWARDSHIPPLANSITE | STEWARDSHIPPLANID |
STEWARDSHIPPLANSTEP | PLANID |
STEWARDSHIPPLANSTEWARD | PLANID |