CREATE TABLE [dbo].[GPCustomer]
(
[CustomerClass] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CustomerName] [varchar] (65) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CustomerBalance] [money] NULL,
[CustomerAge] [int] NULL,
[LastPaymentDate] [datetime] NULL,
[LastPaymentAmount] [money] NULL,
[CreditLimit] [money] NULL,
[CreditLimitType] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_GPWarehouse_GPCustomer] ON [dbo].[GPCustomer] ([CustomerName]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE UNIQUE CLUSTERED INDEX [IX_GPCustomer_CustomerNumber] ON [dbo].[GPCustomer] ([CustomerNumber]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[GPCustomer] TO [MssExec]
GRANT INSERT ON [dbo].[GPCustomer] TO [MssExec]
GRANT DELETE ON [dbo].[GPCustomer] TO [MssExec]
GRANT UPDATE ON [dbo].[GPCustomer] TO [MssExec]
GO