
[dbo].[CustomerInvoiceProfile]
CREATE TABLE [dbo].[CustomerInvoiceProfile]
(
[ICIPriKey] [int] NOT NULL IDENTITY(1, 1),
[CustomerNumber] [int] NOT NULL,
[IPPriKey] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerInvoiceProfile] ADD CONSTRAINT [PK_CustomerInvoiceProfile] PRIMARY KEY CLUSTERED ([ICIPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerInvoiceProfile] ADD CONSTRAINT [FK_CustomerInvoiceProfile_InvoiceProfile] FOREIGN KEY ([IPPriKey]) REFERENCES [dbo].[InvoiceProfile] ([IPPriKey])
GO
GRANT SELECT ON [dbo].[CustomerInvoiceProfile] TO [MssExec]
GRANT INSERT ON [dbo].[CustomerInvoiceProfile] TO [MssExec]
GRANT DELETE ON [dbo].[CustomerInvoiceProfile] TO [MssExec]
GRANT UPDATE ON [dbo].[CustomerInvoiceProfile] TO [MssExec]
GO