CREATE TABLE [dbo].[ClaimPhoneType]
(
[ClaimPhoneTypeID] [int] NOT NULL IDENTITY(1, 1),
[TypeName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[IsDefault] [bit] NOT NULL CONSTRAINT [DF_ClaimPhoneType_IsDefault] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPhoneType] ADD CONSTRAINT [CK_ClaimPhoneType_IsDefault] CHECK (((0)=[dbo].[ClaimPhoneTypeDefault]([ClaimPhoneTypeID],[IsDefault])))
GO
ALTER TABLE [dbo].[ClaimPhoneType] ADD CONSTRAINT [PK_ClaimPhoneType] PRIMARY KEY NONCLUSTERED ([ClaimPhoneTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPhoneType] ADD CONSTRAINT [IX_ClaimPhoneType_TypeName] UNIQUE NONCLUSTERED ([TypeName]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[ClaimPhoneType] TO [MssExec]
GRANT INSERT ON [dbo].[ClaimPhoneType] TO [MssExec]
GRANT DELETE ON [dbo].[ClaimPhoneType] TO [MssExec]
GRANT UPDATE ON [dbo].[ClaimPhoneType] TO [MssExec]
GO