[dbo].[InternationalLiftVan]
CREATE TABLE [dbo].[InternationalLiftVan]
(
[InternationalLiftVanID] [int] NOT NULL IDENTITY(1, 1),
[OrdersFID] [int] NOT NULL,
[InternationalContainerFID] [int] NULL,
[InternationalLiftVanStatusFID] [int] NULL,
[LiftVanNumber] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Pieces] [int] NULL,
[GrossWeight] [int] NULL,
[TareWeight] [int] NULL,
[NetWeight] [int] NULL,
[SealNumber] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CubicFeet] [int] NULL,
[Length] [int] NULL,
[Width] [int] NULL,
[Height] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalLiftVan] ADD CONSTRAINT [PK_InternationalLiftVan] PRIMARY KEY NONCLUSTERED ([InternationalLiftVanID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_InternationalLiftVan_OrdersFID] ON [dbo].[InternationalLiftVan] ([OrdersFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalLiftVan] ADD CONSTRAINT [FK_InternationalLiftVan_InternationalContainer] FOREIGN KEY ([InternationalContainerFID]) REFERENCES [dbo].[InternationalContainer] ([InternationalContainerID])
GO
ALTER TABLE [dbo].[InternationalLiftVan] ADD CONSTRAINT [FK_InternationalLiftVan_InternationalLiftVanStatus] FOREIGN KEY ([InternationalLiftVanStatusFID]) REFERENCES [dbo].[InternationalLiftVanStatus] ([InternationalLiftVanStatusID])
GO
ALTER TABLE [dbo].[InternationalLiftVan] ADD CONSTRAINT [FK_InternationalLiftVan_Orders] FOREIGN KEY ([OrdersFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON [dbo].[InternationalLiftVan] TO [MssExec]
GRANT INSERT ON [dbo].[InternationalLiftVan] TO [MssExec]
GRANT DELETE ON [dbo].[InternationalLiftVan] TO [MssExec]
GRANT UPDATE ON [dbo].[InternationalLiftVan] TO [MssExec]
GO