[dbo].[PMImportDetailDist]
CREATE TABLE [dbo].[PMImportDetailDist]
(
[PMImportDetailDistID] [int] NOT NULL IDENTITY(1, 1),
[PMImportDetailFID] [int] NOT NULL,
[ExternalCode] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Amount] [money] NULL,
[InvoiceNumber] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PMImportDetailDist] ADD CONSTRAINT [PK_PMImportDetailDist] PRIMARY KEY CLUSTERED ([PMImportDetailDistID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_PMImportDetailDist_PMImportDetailFID] ON [dbo].[PMImportDetailDist] ([PMImportDetailFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PMImportDetailDist] ADD CONSTRAINT [FK_PMImportDetailDist_PMImportDetail] FOREIGN KEY ([PMImportDetailFID]) REFERENCES [dbo].[PMImportDetail] ([PMImportDetailID])
GO
GRANT SELECT ON [dbo].[PMImportDetailDist] TO [MssExec]
GRANT INSERT ON [dbo].[PMImportDetailDist] TO [MssExec]
GRANT DELETE ON [dbo].[PMImportDetailDist] TO [MssExec]
GRANT UPDATE ON [dbo].[PMImportDetailDist] TO [MssExec]
GO