FUNDINGPLAN
Each funding plan in the system is represented by a row in the Funding Plan table.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| NAME |
nvarchar(150) |
|
Default = '' |
The name of the funding plan. |
| DESCRIPTION |
nvarchar(500) |
|
Default = '' |
The description of the funding plan. |
| FUNDINGNEED |
money |
|
Default = 0 |
The amount that needs to be funded. |
| DATENEEDED |
datetime |
yes |
|
The date by which the funding is needed. |
| 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. |
| INACTIVE |
bit |
|
Default = 0 |
|
| ORGANIZATIONFUNDINGNEED |
money |
|
Default = 0 |
The amount that needs to be funded in the organizations base. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| SITEID |
uniqueidentifier |
yes |
SITE.ID
|
The site associated with this funding plan. |
| FUNDINGPLANDEPARTMENTCODEID |
uniqueidentifier |
yes |
FUNDINGPLANDEPARTMENTCODE.ID
|
The funding plan department. |
| FUNDINGPLANPROGRAMCODEID |
uniqueidentifier |
yes |
FUNDINGPLANPROGRAMCODE.ID
|
The funding plan program. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| FUNDINGPLANMANAGERID |
uniqueidentifier |
yes |
CONSTITUENT.LOCALID
|
The constituent that acts as the funding plan manager. |
| BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this funding plan. |
| ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The organization exchange rate associated with this funding plan. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_FUNDINGPLAN_BASECURRENCYID |
BASECURRENCYID |
|
|
|
| IX_FUNDINGPLAN_DATEADDED |
DATEADDED |
|
|
yes |
| IX_FUNDINGPLAN_DATECHANGED |
DATECHANGED |
|
|
|
| IX_FUNDINGPLAN_FUNDINGPLANMANAGERID |
FUNDINGPLANMANAGERID |
|
|
|
| IX_FUNDINGPLAN_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
| IX_FUNDINGPLAN_SITEID |
SITEID |
|
|
|
| PK_FUNDINGPLAN |
ID |
yes |
yes |
|
| UIX_FUNDINGPLAN_NAME |
NAME |
yes |
|
|
Triggers
Referenced by