| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
TYPECODE |
tinyint | Default = 0 | Type of item the application applies to. | |
AMOUNT |
money | Default = 0 | Amount of flat rate in this application. | |
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. |
ISADDEDMANUALLY |
bit | Default = 0 | Indicates whether or not the application was added manually. | |
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. |
ISADDEDAUTOMATICALLY |
bit | Default = 0 | Indicates whether or not the application was added automatically. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
RESERVATIONRATESCALEID |
uniqueidentifier | RESERVATIONRATESCALE.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_RESERVATIONRATESCALEAPPLICATION_DATEADDED |
DATEADDED | ![]() |
||
IX_RESERVATIONRATESCALEAPPLICATION_DATECHANGED |
DATECHANGED | |||
IX_RESERVATIONRATESCALEAPPLICATION_RESERVATIONRATESCALEID |
RESERVATIONRATESCALEID | |||
PK_RESERVATIONRATESCALEAPPLICATION |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_RESERVATIONRATESCALEAPPLICATION_AUDIT_UPDATE |
|
TR_RESERVATIONRATESCALEAPPLICATION_AUDIT_DELETE |

ID
TYPECODE
TSLONG
RESERVATIONRATESCALEID
IX_RESERVATIONRATESCALEAPPLICATION_DATEADDED
IX_RESERVATIONRATESCALEAPPLICATION_DATECHANGED