[dbo].[InvoiceProperties]
CREATE TABLE [dbo].[InvoiceProperties]
(
[InvoicePropertiesID] [int] NOT NULL IDENTITY(1, 1),
[ReportsFID] [int] NOT NULL,
[IncludeBranchImage] [bit] NOT NULL CONSTRAINT [DF_InvoiceProperties_IncludeBranchImage] DEFAULT ((0)),
[IncludeVanlineImage] [bit] NOT NULL CONSTRAINT [DF_InvoiceProperties_IncludeVanlineImage] DEFAULT ((0)),
[HideHeaderAddress] [bit] NOT NULL CONSTRAINT [DF_InvoiceProperties_HideHeaderAddress] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceProperties] ADD CONSTRAINT [PK_InvoiceProperties] PRIMARY KEY NONCLUSTERED ([InvoicePropertiesID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceProperties] ADD CONSTRAINT [IX_InvoiceProperties_ReportsFID] UNIQUE NONCLUSTERED ([ReportsFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceProperties] ADD CONSTRAINT [FK_InvoiceProperties_Reports] FOREIGN KEY ([ReportsFID]) REFERENCES [dbo].[Reports] ([Prikey])
GO
GRANT SELECT ON [dbo].[InvoiceProperties] TO [MssExec]
GRANT INSERT ON [dbo].[InvoiceProperties] TO [MssExec]
GRANT DELETE ON [dbo].[InvoiceProperties] TO [MssExec]
GRANT UPDATE ON [dbo].[InvoiceProperties] TO [MssExec]
GO