| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
TYPECODE |
tinyint | Default = 0 | Type of item the application applies to. | |
PERCENT |
decimal(5, 2) | Default = 0 | ||
SEQUENCE |
int | 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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
TYPE |
nvarchar(25) (Computed) | ![]() |
CASE [TYPECODE] WHEN 0 THEN N'Program' WHEN 1 THEN N'Fee' WHEN 2 THEN N'Supply/Equipment resource' WHEN 3 THEN N'Staffing resource' END | Provides a translation for the 'TYPECODE' field. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
RATESCALEID |
uniqueidentifier | RATESCALE.ID | Rate scale the application belongs to. | |
PROGRAMID |
uniqueidentifier | ![]() |
PROGRAM.ID | FK to PROGRAM |
FEEID |
uniqueidentifier | ![]() |
FEE.ID | FK to FEE |
RESOURCEID |
uniqueidentifier | ![]() |
RESOURCE.ID | FK to RESOURCE |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
VOLUNTEERTYPEID |
uniqueidentifier | ![]() |
VOLUNTEERTYPE.LOCALID | FK to VOLUNTEERTYPE |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_RATESCALEAPPLICATION_DATEADDED |
DATEADDED | ![]() |
||
IX_RATESCALEAPPLICATION_DATECHANGED |
DATECHANGED | |||
IX_RATESCALEAPPLICATION_RATESCALEID |
RATESCALEID | |||
PK_RATESCALEAPPLICATION |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_RATESCALEAPPLICATION_AUDIT_UPDATE |
|
TR_RATESCALEAPPLICATION_AUDIT_DELETE |

ID
TYPECODE
TSLONG
RATESCALEID
IX_RATESCALEAPPLICATION_DATEADDED
IX_RATESCALEAPPLICATION_DATECHANGED