ITINERARYATTENDEE

An attendee belonging to an itinerary on a reservation.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
QUANTITY smallint Default = ((0)) The number of attendees.
SEQUENCE int Default = 0 The sequence in which attendees are entered.
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
ITINERARYID uniqueidentifier ITINERARY.ID FK to ITINERARY
PRICETYPECODEID uniqueidentifier PRICETYPECODE.ID FK to PRICETYPECODE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_ITINERARYATTENDEE_DATEADDED DATEADDED yes
IX_ITINERARYATTENDEE_DATECHANGED DATECHANGED
PK_ITINERARYATTENDEE ID yes yes
UIX_ITINERARYATTENDEE_ITINERARYID_PRICETYPECODEID ITINERARYID, PRICETYPECODEID yes

Triggers

Trigger Name Description
TR_ITINERARYATTENDEE_AUDIT_UPDATE
TR_ITINERARYATTENDEE_AUDIT_DELETE
TR_ITINERARYATTENDEE_INSERT_RESOURCE_UPDATE
TR_ITINERARYATTENDEE_UPDATE_RESOURCE_UPDATE
TR_ITINERARYATTENDEE_DELETE_RESOURCE_UPDATE