[dbo].[CustomerStatementProfile]
CREATE TABLE [dbo].[CustomerStatementProfile]
(
[CustomerStatementProfileID] [int] NOT NULL IDENTITY(1, 1),
[ProfileName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LastRunDate] [datetime] NULL,
[Parameters] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CustomerStatementTitleFID] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementProfile] ADD CONSTRAINT [PK_CustomerStatementProfile] PRIMARY KEY NONCLUSTERED ([CustomerStatementProfileID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementProfile] ADD CONSTRAINT [FK_CustomerStatementProfile_CustomerStatementTitle] FOREIGN KEY ([CustomerStatementTitleFID]) REFERENCES [dbo].[CustomerStatementTitle] ([CustomerStatementTitleID])
GO
GRANT SELECT ON [dbo].[CustomerStatementProfile] TO [MssExec]
GRANT INSERT ON [dbo].[CustomerStatementProfile] TO [MssExec]
GRANT DELETE ON [dbo].[CustomerStatementProfile] TO [MssExec]
GRANT UPDATE ON [dbo].[CustomerStatementProfile] TO [MssExec]
GO