
[dbo].[ARCCustomerInformation]
CREATE TABLE [dbo].[ARCCustomerInformation]
(
[CustomerNumber] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CollectorSysuserFID] [int] NULL,
[ARCAlertGroupFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCCustomerInformation] ADD CONSTRAINT [PK_ARCCustomerInformation] PRIMARY KEY NONCLUSTERED ([CustomerNumber]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX [IX_ARCCustomerInformation_CollectorSysuserFID] ON [dbo].[ARCCustomerInformation] ([CollectorSysuserFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCCustomerInformation] ADD CONSTRAINT [FK_ARCCustomerInformation_ARCAlertGroup] FOREIGN KEY ([ARCAlertGroupFID]) REFERENCES [dbo].[ARCAlertGroup] ([ARCAlertGroupID])
GO
ALTER TABLE [dbo].[ARCCustomerInformation] ADD CONSTRAINT [FK_ARCCustomerInformation_Sysuser] FOREIGN KEY ([CollectorSysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON [dbo].[ARCCustomerInformation] TO [MssExec]
GRANT INSERT ON [dbo].[ARCCustomerInformation] TO [MssExec]
GRANT DELETE ON [dbo].[ARCCustomerInformation] TO [MssExec]
GRANT UPDATE ON [dbo].[ARCCustomerInformation] TO [MssExec]
GO