PROGRAM (4.0SP6)

A program that contains a Manifest, PriceList, and one or more sales types

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

HOLDLISTID

uniqueidentifier

true

FK to HOLDLIST

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

PRICELISTID

uniqueidentifier

true

The price list this program draws prices from

PROGRAMCATEGORYCODEID

uniqueidentifier

true

The category used to group similar types of programs together for reporting.

DEFAULTRATESCALEID

uniqueidentifier

true

If quick itineraries made with this program should default to flat rate pricing, this is the flat rate to use.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

DESCRIPTION

nvarchar(255)

false

''

CAPACITY

int

false

0

The default capacity for this program

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ISACTIVE

bit

false

1

Indicates whether this program is active

ISDAILYADMISSION

bit

false

0

Indicates whether this is a daily admission program

ISPREREGISTERED

bit

false

0

Indicates whether this program creates pre-registered events.

PUBLICDESCRIPTIONTEXT

nvarchar(max)

false

''

The plain text public description.

PUBLICDESCRIPTIONHTML

nvarchar(max)

false

''

The HTML public description.

DEFAULTPRICINGSTRUCTURECODE

tinyint

false

0

Quick itinerary default pricing structure code.

DEFAULTPRICINGSTRUCTURE

nvarchar(10) (Computed)

true

Provides a translation for the 'DEFAULTPRICINGSTRUCTURECODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_PROGRAM_DATEADDED

DATEADDED

False

False

True

IX_PROGRAM_DATECHANGED

DATECHANGED

False

False

False

IX_PROGRAM_PROGRAMCATEGORYCODEID

PROGRAMCATEGORYCODEID

False

False

False

PK_PROGRAM

ID

True

True

False

UC_PROGRAM_NAME

NAME

True

False

False

Triggers
Trigger Name Description

TR_PROGRAM_AUDIT_UPDATE

TR_PROGRAM_AUDIT_DELETE

Referenced by
Referenced by Field

DAILYSALEITEMPROGRAM

PROGRAMID

DISCOUNTGROUPDETAILPROGRAM

PROGRAMID

EVENT

PROGRAMID

EVENTCONFLICT

PROGRAMID

ITINERARYITEM

PROGRAMID

PROGRAM_MICROSITEEMAILTEMPLATE

PROGRAMID

PROGRAMDISCOUNT

PROGRAMID

PROGRAMDOCUMENT

PROGRAMID

PROGRAMEVENTREGISTRATIONSECTION

PROGRAMID

PROGRAMFEE

PROGRAMID

PROGRAMGLMAPPING

ID

PROGRAMGROUPPROGRAM

PROGRAMID

PROGRAMLOCATION

PROGRAMID

PROGRAMPREFERENCEGROUP

PROGRAMID

PROGRAMPRICE

PROGRAMID

PROGRAMRESOURCE

PROGRAMID

PROGRAMSALESMETHOD

PROGRAMID

PROGRAMSTAFFRESOURCE

PROGRAMID

PROGRAMTAX

PROGRAMID

RATESCALEAPPLICATION

PROGRAMID

RATESCALEPROGRAM

PROGRAMID

RESERVATIONRATESCALEAPPLICATION

PROGRAMID

RESERVATIONRATESCALEPROGRAM

PROGRAMID

REVENUESPLITORDER

PROGRAMID

SALESORDERITEMTICKET

PROGRAMID

TICKET

PROGRAMID

TRACKITEM

PROGRAMID