[dbo].[AdvanceVoidInformation]
CREATE TABLE [dbo].[AdvanceVoidInformation]
(
[AdvanceVoidInformationID] [int] NOT NULL IDENTITY(1, 1),
[AdvanceFID] [int] NOT NULL,
[VoidedDate] [datetime] NOT NULL,
[VoidedBySysUserFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdvanceVoidInformation] ADD CONSTRAINT [PK_AdvanceVoidInformation] PRIMARY KEY NONCLUSTERED ([AdvanceVoidInformationID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_AdvanceVoidInformation_AdvanceFID] ON [dbo].[AdvanceVoidInformation] ([AdvanceFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AdvanceVoidInformation_VoidedBySysUserFID] ON [dbo].[AdvanceVoidInformation] ([VoidedBySysUserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdvanceVoidInformation] ADD CONSTRAINT [FK_AdvanceVoidInformation_Advance] FOREIGN KEY ([AdvanceFID]) REFERENCES [dbo].[Advance] ([PriKey])
GO
ALTER TABLE [dbo].[AdvanceVoidInformation] ADD CONSTRAINT [FK_AdvanceVoidInformation_VoidedBySysUserFID] FOREIGN KEY ([VoidedBySysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON [dbo].[AdvanceVoidInformation] TO [MssExec]
GRANT INSERT ON [dbo].[AdvanceVoidInformation] TO [MssExec]
GRANT DELETE ON [dbo].[AdvanceVoidInformation] TO [MssExec]
GRANT UPDATE ON [dbo].[AdvanceVoidInformation] TO [MssExec]
GO