[dbo].[WarehouseLocation]
CREATE TABLE [dbo].[WarehouseLocation]
(
[WarehouseLocationID] [int] NOT NULL IDENTITY(1, 1),
[WarehouseFID] [int] NOT NULL,
[Location] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WarehouseLocation] ADD CONSTRAINT [PK_WarehouseLocation] PRIMARY KEY CLUSTERED ([WarehouseLocationID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ix_WarehouseLocation_WarehouseID] ON [dbo].[WarehouseLocation] ([WarehouseFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WarehouseLocation] ADD CONSTRAINT [FK_WarehouseLocation_Warehouse] FOREIGN KEY ([WarehouseFID]) REFERENCES [dbo].[Warehouse] ([WarehousePriKey])
GO
GRANT SELECT ON [dbo].[WarehouseLocation] TO [MssExec]
GRANT INSERT ON [dbo].[WarehouseLocation] TO [MssExec]
GRANT DELETE ON [dbo].[WarehouseLocation] TO [MssExec]
GRANT UPDATE ON [dbo].[WarehouseLocation] TO [MssExec]
GO