CREATE TABLE [dbo].[OrderEmailType]
(
[OrderEmailTypeID] [int] NOT NULL IDENTITY(1, 1),
[EmailType] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[MobileEmailType] [varchar] (6) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SortOrder] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderEmailType] ADD CONSTRAINT [PK_OrderEmailType] PRIMARY KEY NONCLUSTERED ([OrderEmailTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderEmailType] ADD CONSTRAINT [IX_OrderEmailType_EmailType] UNIQUE NONCLUSTERED ([EmailType]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[OrderEmailType] TO [MssExec]
GRANT INSERT ON [dbo].[OrderEmailType] TO [MssExec]
GRANT DELETE ON [dbo].[OrderEmailType] TO [MssExec]
GRANT UPDATE ON [dbo].[OrderEmailType] TO [MssExec]
GO