![Tables](../../Images/Table.gif)
[dbo].[CustomerNoteHeader]
CREATE TABLE [dbo].[CustomerNoteHeader]
(
[CustomerNoteHeaderID] [int] NOT NULL IDENTITY(1, 1),
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[NoteTypeFID] [smallint] NOT NULL,
[Subject] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerNoteHeader] ADD CONSTRAINT [PK_CustomerNoteHeader] PRIMARY KEY CLUSTERED ([CustomerNoteHeaderID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CustomerNoteHeader_CustomerNumber] ON [dbo].[CustomerNoteHeader] ([CustomerNumber]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerNoteHeader] ADD CONSTRAINT [FK_CustomerNoteHeader_NoteType] FOREIGN KEY ([NoteTypeFID]) REFERENCES [dbo].[NoteType] ([NoteTypeID])
GO
GRANT SELECT ON [dbo].[CustomerNoteHeader] TO [MssExec]
GRANT INSERT ON [dbo].[CustomerNoteHeader] TO [MssExec]
GRANT DELETE ON [dbo].[CustomerNoteHeader] TO [MssExec]
GRANT UPDATE ON [dbo].[CustomerNoteHeader] TO [MssExec]
GO