CREATE TABLE [dbo].[SystemEmailType]
(
[SystemEmailTypeID] [int] NOT NULL IDENTITY(1, 1),
[TypeDescription] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DefaultSubject] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DefaultBodyText] [nvarchar] (4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DefaultHyperLinkText] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SystemEmailType] ADD CONSTRAINT [PK_SystemEmailType] PRIMARY KEY NONCLUSTERED ([SystemEmailTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SystemEmailType] ADD CONSTRAINT [IX_SystemEmailType_TypeDescription] UNIQUE NONCLUSTERED ([TypeDescription]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[SystemEmailType] TO [MssExec]
GRANT INSERT ON [dbo].[SystemEmailType] TO [MssExec]
GRANT DELETE ON [dbo].[SystemEmailType] TO [MssExec]
GRANT UPDATE ON [dbo].[SystemEmailType] TO [MssExec]
GO