CREATE TABLE [dbo].[OrderPhoneType]
(
[OrderPhoneTypeID] [int] NOT NULL IDENTITY(1, 1),
[TypeName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[IsShipperPhoneType] [bit] NOT NULL CONSTRAINT [DF_OrderPhoneType_IsShipperPhoneType] DEFAULT ((0)),
[IsSystemPhoneType] [bit] NOT NULL CONSTRAINT [DF_OrderPhoneType_IsSystemPhoneType] DEFAULT ((0)),
[MobileTypeName] [varchar] (6) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderPhoneType] ADD CONSTRAINT [PK_OrderPhoneType] PRIMARY KEY NONCLUSTERED ([OrderPhoneTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderPhoneType] ADD CONSTRAINT [IX_OrderPhoneNumberType_TypeName] UNIQUE NONCLUSTERED ([TypeName]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_OrderPhoneType_IsShipperPhoneType] ON [dbo].[OrderPhoneType] ([IsShipperPhoneType], [TypeName]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[OrderPhoneType] TO [MssExec]
GRANT INSERT ON [dbo].[OrderPhoneType] TO [MssExec]
GRANT DELETE ON [dbo].[OrderPhoneType] TO [MssExec]
GRANT UPDATE ON [dbo].[OrderPhoneType] TO [MssExec]
GO