Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 QUANTITYNEEDED int   Default = 0 The quantity of the resource needed for this itinerary.
 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.
 PRICE money   Default = 0 The price of the resource.
 PRICINGSTRUCTURECODE tinyint   Default = 0 Indicates the pricing structure for the resource.
 PRICINGSTRUCTURE nvarchar(24) (Computed) CASE [PRICINGSTRUCTURECODE] WHEN 0 THEN N'No charge' WHEN 1 THEN N'Flat rate per resource' WHEN 2 THEN N'Hourly rate per resource' END Provides a translation for the 'PRICINGSTRUCTURECODE' field.
 IGNORESQUANTITYFORCAPACITY bit   Default = 0 For group check-in, bypass constraint on quantity required for capacity.
 PERTICKETQUANTITY int   Default = 0 The number of items used per each ticket sold, only valid when this is a per ticket item.
 PERTICKETDIVISOR int   Default = 1 The number of tickets PERTICKETQUANTITY should be divided by to get the actual per ticket quantity.

Foreign Key Field Type Null Notes Description
 ITINERARYID uniqueidentifier   ITINERARY.ID The itinerary that the resource is used for.
 RESOURCEID uniqueidentifier   RESOURCE.ID The resource associated with the itinerary.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_ITINERARYRESOURCE_DATEADDED DATEADDED    
 IX_ITINERARYRESOURCE_DATECHANGED DATECHANGED      
 PK_ITINERARYRESOURCE ID  
 UIX_ITINERARYRESOURCE_ITINERARYID_RESOURCEID ITINERARYID, RESOURCEID    

Trigger Name Description
 TR_ITINERARYRESOURCE_INSERT_RESOURCE_UPDATE
 TR_ITINERARYRESOURCE_UPDATE_RESOURCE_UPDATE
 TR_ITINERARYRESOURCE_DELETE_RESOURCE_UPDATE
 TR_ITINERARYRESOURCE_DELETE_REQUIREDRESOURCECANNOTBEDELETED
 TR_ITINERARYRESOURCE_AUDIT_UPDATE
 TR_ITINERARYRESOURCE_AUDIT_DELETE

Referenced by Field
 SALESORDERITEMITINERARYRESOURCE ITINERARYRESOURCEID

Entity-Relationship diagram of this table