[dbo].[VanlineStatementStageHeader]
CREATE TABLE [dbo].[VanlineStatementStageHeader]
(
[VanlineStatementStageHeaderID] [int] NOT NULL IDENTITY(1, 1),
[AgentNumber] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[StatementDate] [datetime] NOT NULL,
[StatementYear] [int] NOT NULL,
[StatementNumber] [int] NOT NULL,
[VanlineGroupExternalCode] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[StatementDescription] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsCRBatch] [bit] NULL,
[IsVanLineStatement] [bit] NULL,
[AutoApply] [bit] NULL,
[Importable] [bit] NOT NULL,
[ImportComplete] [bit] NOT NULL,
[ImportStartDate] [datetime] NOT NULL,
[ImportEndDate] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanlineStatementStageHeader] ADD CONSTRAINT [PK_VanlineStatementStageHeader] PRIMARY KEY CLUSTERED ([VanlineStatementStageHeaderID]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[VanlineStatementStageHeader] TO [MssExec]
GRANT INSERT ON [dbo].[VanlineStatementStageHeader] TO [MssExec]
GRANT DELETE ON [dbo].[VanlineStatementStageHeader] TO [MssExec]
GRANT UPDATE ON [dbo].[VanlineStatementStageHeader] TO [MssExec]
GO