CREATE TABLE [dbo].[NoteType]
(
[NoteTypeID] [smallint] NOT NULL IDENTITY(1, 1),
[NoteType] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[VanLineCode] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_NoteType_Inactive] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[NoteType] ADD CONSTRAINT [PK_NoteType] PRIMARY KEY CLUSTERED ([NoteTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[NoteType] ADD CONSTRAINT [IX_NoteType_NoteType] UNIQUE NONCLUSTERED ([NoteType]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[NoteType] TO [MssExec]
GRANT INSERT ON [dbo].[NoteType] TO [MssExec]
GRANT DELETE ON [dbo].[NoteType] TO [MssExec]
GRANT UPDATE ON [dbo].[NoteType] TO [MssExec]
GO