[dbo].[SplitCommissionsHold]
CREATE TABLE [dbo].[SplitCommissionsHold]
(
[SplitCommissionsHoldID] [int] NOT NULL IDENTITY(1, 1),
[SplitCommissionsFID] [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].[SplitCommissionsHold] ADD CONSTRAINT [PK_SplitCommissionsHold] PRIMARY KEY CLUSTERED ([SplitCommissionsHoldID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SplitCommissionsHold_SplitCommissions] ON [dbo].[SplitCommissionsHold] ([SplitCommissionsFID], [SplitCommissionsHoldID] DESC) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SplitCommissionsHold] ADD CONSTRAINT [FK_SplitCommissionsHold_SplitCommissions] FOREIGN KEY ([SplitCommissionsFID]) REFERENCES [dbo].[SplitCommissions] ([SCPriKey])
GO
ALTER TABLE [dbo].[SplitCommissionsHold] ADD CONSTRAINT [FK_SplitCommissionsHold_Sysuser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON [dbo].[SplitCommissionsHold] TO [MssExec]
GRANT INSERT ON [dbo].[SplitCommissionsHold] TO [MssExec]
GRANT DELETE ON [dbo].[SplitCommissionsHold] TO [MssExec]
GRANT UPDATE ON [dbo].[SplitCommissionsHold] TO [MssExec]
GO