[dbo].[LongDistanceDispatchComment]
CREATE TABLE [dbo].[LongDistanceDispatchComment]
(
[LongDistanceDispatchCommentID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[Comment] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LongDistanceDispatchComment] ADD CONSTRAINT [PK_LongDistanceDispatchComment] PRIMARY KEY CLUSTERED ([LongDistanceDispatchCommentID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LongDistanceDispatchComment] ADD CONSTRAINT [IX_LongDistanceDispatchComment_OrderFID] UNIQUE NONCLUSTERED ([OrderFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LongDistanceDispatchComment] ADD CONSTRAINT [FK_LongDistanceDispatchComment_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON [dbo].[LongDistanceDispatchComment] TO [MssExec]
GRANT INSERT ON [dbo].[LongDistanceDispatchComment] TO [MssExec]
GRANT DELETE ON [dbo].[LongDistanceDispatchComment] TO [MssExec]
GRANT UPDATE ON [dbo].[LongDistanceDispatchComment] TO [MssExec]
GO