CREATE TABLE [dbo].[SysUserPhoneType]
(
[SysUserPhoneTypeID] [int] NOT NULL IDENTITY(1, 1),
[TypeName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[MobileTypeName] [varchar] (6) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SysUserPhoneType] ADD CONSTRAINT [PK_SysUserPhoneType] PRIMARY KEY NONCLUSTERED ([SysUserPhoneTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SysUserPhoneType] ADD CONSTRAINT [IX_SysUserPhoneType_TypeName] UNIQUE NONCLUSTERED ([TypeName]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SysUserPhoneType_MobileTypeName] ON [dbo].[SysUserPhoneType] ([MobileTypeName]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[SysUserPhoneType] TO [MssExec]
GRANT INSERT ON [dbo].[SysUserPhoneType] TO [MssExec]
GRANT DELETE ON [dbo].[SysUserPhoneType] TO [MssExec]
GRANT UPDATE ON [dbo].[SysUserPhoneType] TO [MssExec]
GO