[dbo].[CommissionedDetailHold]
CREATE TABLE [dbo].[CommissionedDetailHold]
(
[CommissionedDetailHoldID] [int] NOT NULL IDENTITY(1, 1),
[CommissionedDetailFID] [int] NOT NULL,
[SysUserFID] [int] NOT NULL,
[ChangedOn] [datetime] NOT NULL,
[HoldUpdateStatus] [bit] NOT NULL,
[HoldUpdateDescription] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CommissionedDetailHold] ADD CONSTRAINT [PK_CommissionedDetailHold] PRIMARY KEY CLUSTERED ([CommissionedDetailHoldID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CommissionedDetailHold_CommissionedDetail] ON [dbo].[CommissionedDetailHold] ([CommissionedDetailFID], [CommissionedDetailHoldID] DESC) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CommissionedDetailHold] ADD CONSTRAINT [FK_CommissionedDetailHold_CommissionedDetail] FOREIGN KEY ([CommissionedDetailFID]) REFERENCES [dbo].[CommissionedDetail] ([CDPriKey])
GO
ALTER TABLE [dbo].[CommissionedDetailHold] ADD CONSTRAINT [FK_CommissionedDetailHold_Sysuser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON [dbo].[CommissionedDetailHold] TO [MssExec]
GRANT INSERT ON [dbo].[CommissionedDetailHold] TO [MssExec]
GRANT DELETE ON [dbo].[CommissionedDetailHold] TO [MssExec]
GRANT UPDATE ON [dbo].[CommissionedDetailHold] TO [MssExec]
GO