Tables [dbo].[InternationalBookingNumber]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created10:12:49 PM Thursday, December 28, 2006
Last Modified9:52:18 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_InternationalBookingNumber: InternationalBookingNumberIDInternationalBookingNumberIDint4
No
1 - 1
Foreign Keys FK_InternationalBookingNumber_Orders: [dbo].[Orders].OrdersFIDIndexes IX_InternationalBookingNumber_Orders: OrdersFIDOrdersFIDint4
No
BookingNumbervarchar(64)64
Yes
PickupNumbervarchar(64)64
Yes
EquipmentReturnedbit1
No
((0))
LiveLoadUnLoadbit1
No
((0))
Foreign Keys FK_InternationalBookingNumber_InternationalBookingNumberTransitType: [dbo].[InternationalBookingNumberTransitType].InternationalBookingNumberTransitTypeFIDInternationalBookingNumberTransitTypeFIDint4
Yes
Foreign Keys FK_InternationalBookingNumber_TransitAgent: [dbo].[Agent].TransitAgentFIDTransitAgentFIDint4
Yes
TransitNamevarchar(64)64
Yes
TransitContactvarchar(64)64
Yes
TransitEmailvarchar(50)50
Yes
Foreign Keys FK_InternationalBookingNumber_InternationalLinehaulCarrier: [dbo].[InternationalLinehaulCarrier].InternationalLinehaulCarrierFIDInternationalLinehaulCarrierFIDint4
Yes
ConsolidatorBookingNumbervarchar(32)32
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_InternationalBookingNumber: InternationalBookingNumberIDPK_InternationalBookingNumberInternationalBookingNumberID
Yes
80
IX_InternationalBookingNumber_OrdersOrdersFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_InternationalBookingNumber_InternationalBookingNumberTransitTypeInternationalBookingNumberTransitTypeFID->[dbo].[InternationalBookingNumberTransitType].[InternationalBookingNumberTransitTypeID]
FK_InternationalBookingNumber_InternationalLinehaulCarrierInternationalLinehaulCarrierFID->[dbo].[InternationalLinehaulCarrier].[InternationalLinehaulCarrierID]
FK_InternationalBookingNumber_OrdersOrdersFID->[dbo].[Orders].[PriKey]
FK_InternationalBookingNumber_TransitAgentTransitAgentFID->[dbo].[Agent].[AgentPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InternationalBookingNumber]
(
[InternationalBookingNumberID] [int] NOT NULL IDENTITY(1, 1),
[OrdersFID] [int] NOT NULL,
[BookingNumber] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PickupNumber] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EquipmentReturned] [bit] NOT NULL CONSTRAINT [DF_InternationalBookingNumber_EquipmentReturned] DEFAULT ((0)),
[LiveLoadUnLoad] [bit] NOT NULL CONSTRAINT [DF_InternationalBookingNumber_LiveLoadUnLoad] DEFAULT ((0)),
[InternationalBookingNumberTransitTypeFID] [int] NULL,
[TransitAgentFID] [int] NULL,
[TransitName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TransitContact] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TransitEmail] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[InternationalLinehaulCarrierFID] [int] NULL,
[ConsolidatorBookingNumber] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalBookingNumber] ADD CONSTRAINT [PK_InternationalBookingNumber] PRIMARY KEY NONCLUSTERED  ([InternationalBookingNumberID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalBookingNumber] ADD CONSTRAINT [IX_InternationalBookingNumber_Orders] UNIQUE NONCLUSTERED  ([OrdersFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalBookingNumber] ADD CONSTRAINT [FK_InternationalBookingNumber_InternationalBookingNumberTransitType] FOREIGN KEY ([InternationalBookingNumberTransitTypeFID]) REFERENCES [dbo].[InternationalBookingNumberTransitType] ([InternationalBookingNumberTransitTypeID])
GO
ALTER TABLE [dbo].[InternationalBookingNumber] ADD CONSTRAINT [FK_InternationalBookingNumber_InternationalLinehaulCarrier] FOREIGN KEY ([InternationalLinehaulCarrierFID]) REFERENCES [dbo].[InternationalLinehaulCarrier] ([InternationalLinehaulCarrierID])
GO
ALTER TABLE [dbo].[InternationalBookingNumber] ADD CONSTRAINT [FK_InternationalBookingNumber_Orders] FOREIGN KEY ([OrdersFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
ALTER TABLE [dbo].[InternationalBookingNumber] ADD CONSTRAINT [FK_InternationalBookingNumber_TransitAgent] FOREIGN KEY ([TransitAgentFID]) REFERENCES [dbo].[Agent] ([AgentPriKey])
GO
GRANT SELECT ON  [dbo].[InternationalBookingNumber] TO [MssExec]
GRANT INSERT ON  [dbo].[InternationalBookingNumber] TO [MssExec]
GRANT DELETE ON  [dbo].[InternationalBookingNumber] TO [MssExec]
GRANT UPDATE ON  [dbo].[InternationalBookingNumber] TO [MssExec]
GO
Uses
Used By