GRANTS (4.0SP20)

Each grant in the system is represented by a row in the Grant table.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

GRANTORID

uniqueidentifier

false

The grantor that is associated with the grant.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from amount to organization amount.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this grant.

BASEEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from amount to base amount.

TRANSACTIONCURRENCYID

uniqueidentifier

true

The transaction currency associated with this grant.

Fields
Field Field Type Null Notes Description

TITLE

nvarchar(150)

false

''

The title of the grant.

MAXAWARD

money

false

0

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

DESCRIPTION

nvarchar(500)

false

''

Any descriptive text that is associated with the grant.

MINAWARD

money

false

0

ORGANIZATIONMINAWARD

money

false

0

ORGANIZATIONMAXAWARD

money

false

0

TRANSACTIONMINAWARD

money

false

0

TRANSACTIONMAXAWARD

money

false

0

Indexes
Index Name Field(s) Unique Primary Clustered

IX_GRANTS_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_GRANTS_BASEEXCHANGERATEID

BASEEXCHANGERATEID

False

False

False

IX_GRANTS_DATEADDED

DATEADDED

False

False

True

IX_GRANTS_DATECHANGED

DATECHANGED

False

False

False

IX_GRANTS_ORGANIZATIONEXCHANGERATEID

ORGANIZATIONEXCHANGERATEID

False

False

False

IX_GRANTS_TRANSACTIONCURRENCYID

TRANSACTIONCURRENCYID

False

False

False

PK_GRANTS

ID

True

True

False

UIX_GRANTS_TITLE_GRANTORID

TITLE

GRANTORID

True

False

False

Triggers
Trigger Name Description

TR_GRANTS_AUDIT_UPDATE

TR_GRANTS_AUDIT_DELETE

TR_GRANTS_INSERTUPDATE_CURRENCY

Referenced by
Referenced by Field

FUNDINGREQUEST

GRANTSID

GRANTDEADLINE

GRANTID

GRANTFUNDINGTYPE

GRANTID