ITINERARY
An itinerary that exists in a reservation.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(154) |
|
Default = '' |
The name of this group. |
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. |
STARTDATETIME |
datetime (Computed) |
yes |
dbo.UFN_ITINERARY_STARTDATETIME(ID) |
Gives the calculated start date and time of the itinerary by using the itinerary items. |
ENDDATETIME |
datetime (Computed) |
yes |
dbo.UFN_ITINERARY_ENDDATETIME(ID) |
Gives the calculated end date and time of the itinerary by using the itinerary items. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
RESERVATIONID |
uniqueidentifier |
|
RESERVATION.ID
|
The reservation the itinerary belongs to. |
LEADERID |
uniqueidentifier |
yes |
CONSTITUENT.LOCALID
|
FK to CONSTITUENT |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
TRACKID |
uniqueidentifier |
yes |
TRACK.ID
|
The track the itinerary was created from. |
GROUPSALESGROUPTYPECODEID |
uniqueidentifier |
yes |
GROUPSALESGROUPTYPECODE.ID
|
Describes teh group type associated with this itinerary. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_ITINERARY_DATEADDED |
DATEADDED |
|
|
yes |
IX_ITINERARY_DATECHANGED |
DATECHANGED |
|
|
|
IX_ITINERARY_LEADERID |
LEADERID |
|
|
|
IX_ITINERARY_RESERVATIONID |
RESERVATIONID |
|
|
|
PK_ITINERARY |
ID |
yes |
yes |
|
Triggers
Referenced by