Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) |
|
Default = '' |
The name to identify the resource. |
DESCRIPTION |
nvarchar(255) |
|
Default = '' |
The description of the resource. |
QUANTITY |
int |
|
Default = 0 |
The quantity of the resource. |
ISACTIVE |
bit |
|
Default = 1 |
Indicates if the resource is currently active. |
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. |
TYPECODE |
tinyint |
|
Default = 0 |
Indicates the type of resource. |
ISPERTICKETITEM |
bit |
|
Default = 0 |
Indicates whether the item is used on a per ticket basis. |
PERTICKETQUANTITY |
int |
|
Default = 0 |
The number of items used per each ticket sold, only valid when this is a per ticket item. |
TYPE |
nvarchar(14) (Computed) |
 |
CASE [TYPECODE] WHEN 0 THEN N'Non-consumable' WHEN 1 THEN N'Consumable' END |
Provides a translation for the 'TYPECODE' field. |
PERTICKETDIVISOR |
int |
|
Default = 1 |
The number of tickets PERTICKETQUANTITY should be divided by to get the actual per ticket quantity. |
FORMATTEDPERTICKETQUANTITY |
nvarchar(25) (Computed) |
 |
dbo.UFN_RESOURCE_FORMATPERTICKETQUANTITY(PERTICKETQUANTITY, PERTICKETDIVISOR) |
Formats the per ticket quantity with the divisor |