PROGRAM
A program that contains a Manifest, PriceList, and one or more sales types
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) |
|
Default = '' |
|
DESCRIPTION |
nvarchar(255) |
|
Default = '' |
|
CAPACITY |
int |
|
Default = 0 |
The default capacity for this program |
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. |
ISACTIVE |
bit |
|
Default = 1 |
Indicates whether this program is active |
ISDAILYADMISSION |
bit |
|
Default = 0 |
Indicates whether this is a daily admission program |
ISPREREGISTERED |
bit |
|
Default = 0 |
Indicates whether this program creates pre-registered events. |
PUBLICDESCRIPTIONTEXT |
nvarchar(max) |
|
Default = '' |
The plain text public description. |
PUBLICDESCRIPTIONHTML |
nvarchar(max) |
|
Default = '' |
The HTML public description. |
DEFAULTPRICINGSTRUCTURECODE |
tinyint |
|
Default = 0 |
Quick itinerary default pricing structure code. |
DEFAULTPRICINGSTRUCTURE |
nvarchar(10) (Computed) |
yes |
CASE [DEFAULTPRICINGSTRUCTURECODE] WHEN 0 THEN N'No default' WHEN 1 THEN N'Per ticket' WHEN 2 THEN N'Flat rate' END |
Provides a translation for the 'DEFAULTPRICINGSTRUCTURECODE' field. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
HOLDLISTID |
uniqueidentifier |
yes |
HOLDLIST.ID
|
FK to HOLDLIST |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
PRICELISTID |
uniqueidentifier |
yes |
PRICELIST.ID
|
The price list this program draws prices from |
PROGRAMCATEGORYCODEID |
uniqueidentifier |
yes |
PROGRAMCATEGORYCODE.ID
|
The category used to group similar types of programs together for reporting. |
DEFAULTRATESCALEID |
uniqueidentifier |
yes |
RATESCALE.ID
|
If quick itineraries made with this program should default to flat rate pricing, this is the flat rate to use. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_PROGRAM_DATEADDED |
DATEADDED |
|
|
yes |
IX_PROGRAM_DATECHANGED |
DATECHANGED |
|
|
|
IX_PROGRAM_PROGRAMCATEGORYCODEID |
PROGRAMCATEGORYCODEID |
|
|
|
PK_PROGRAM |
ID |
yes |
yes |
|
UC_PROGRAM_NAME |
NAME |
yes |
|
|
Triggers
Referenced by