[dbo].[ValuationVanlineMap]
CREATE TABLE [dbo].[ValuationVanlineMap]
(
[ValuationVanlineMapID] [int] NOT NULL IDENTITY(1, 1),
[ValuationFID] [int] NOT NULL,
[VanlineFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ValuationVanlineMap] ADD CONSTRAINT [PK_ValuationVanlineMap] PRIMARY KEY CLUSTERED ([ValuationVanlineMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ValuationVanlineMap] ADD CONSTRAINT [IX_UniqueValuationVanlineMap_Valuation_Vanline] UNIQUE NONCLUSTERED ([ValuationFID], [VanlineFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ValuationVanlineMap] ADD CONSTRAINT [FK_ValuationVanlineMap_VanLine] FOREIGN KEY ([VanlineFID]) REFERENCES [dbo].[VanLine] ([VLPriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON [dbo].[ValuationVanlineMap] TO [MssExec]
GRANT INSERT ON [dbo].[ValuationVanlineMap] TO [MssExec]
GRANT DELETE ON [dbo].[ValuationVanlineMap] TO [MssExec]
GRANT UPDATE ON [dbo].[ValuationVanlineMap] TO [MssExec]
GO