GRANTS
Each grant in the system is represented by a row in the Grant table.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
TITLE |
nvarchar(150) |
|
Default = '' |
The title of the grant. |
MAXAWARD |
money |
|
Default = 0 |
|
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. |
DESCRIPTION |
nvarchar(500) |
|
Default = '' |
Any descriptive text that is associated with the grant. |
MINAWARD |
money |
|
Default = 0 |
|
ORGANIZATIONMINAWARD |
money |
|
Default = 0 |
|
ORGANIZATIONMAXAWARD |
money |
|
Default = 0 |
|
TRANSACTIONMINAWARD |
money |
|
Default = 0 |
|
TRANSACTIONMAXAWARD |
money |
|
Default = 0 |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
GRANTORID |
uniqueidentifier |
|
GRANTOR.ID
|
The grantor that is associated with the grant. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert from amount to organization amount. |
BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this grant. |
BASEEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert from amount to base amount. |
TRANSACTIONCURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The transaction currency associated with this grant. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_GRANTS_BASECURRENCYID |
BASECURRENCYID |
|
|
|
IX_GRANTS_BASEEXCHANGERATEID |
BASEEXCHANGERATEID |
|
|
|
IX_GRANTS_DATEADDED |
DATEADDED |
|
|
yes |
IX_GRANTS_DATECHANGED |
DATECHANGED |
|
|
|
IX_GRANTS_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
IX_GRANTS_TRANSACTIONCURRENCYID |
TRANSACTIONCURRENCYID |
|
|
|
PK_GRANTS |
ID |
yes |
yes |
|
UIX_GRANTS_TITLE_GRANTORID |
TITLE, GRANTORID |
yes |
|
|
Triggers
Referenced by