RATESCALEAPPLICATION
Percentage application for the price on a rate scale.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
TYPE |
nvarchar(25) (Computed) |
yes |
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 Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
RATESCALEID |
uniqueidentifier |
|
RATESCALE.ID
|
Rate scale the application belongs to. |
PROGRAMID |
uniqueidentifier |
yes |
PROGRAM.ID
|
FK to PROGRAM |
FEEID |
uniqueidentifier |
yes |
FEE.ID
|
FK to FEE |
RESOURCEID |
uniqueidentifier |
yes |
RESOURCE.ID
|
FK to RESOURCE |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
VOLUNTEERTYPEID |
uniqueidentifier |
yes |
VOLUNTEERTYPE.LOCALID
|
FK to VOLUNTEERTYPE |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_RATESCALEAPPLICATION_DATEADDED |
DATEADDED |
|
|
yes |
IX_RATESCALEAPPLICATION_DATECHANGED |
DATECHANGED |
|
|
|
IX_RATESCALEAPPLICATION_RATESCALEID |
RATESCALEID |
|
|
|
PK_RATESCALEAPPLICATION |
ID |
yes |
yes |
|
Triggers