USE [DD_ECM]
GO

/****** Object:  Table [dbo].[TBCUST_PM_RPT_2BCREATED]    Script Date: 21.03.2024 16:55:34 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[TBCUST_PM_RPT_2BCREATED](
	[DocID] [bigint] NOT NULL,
	[GEN_ID] [varchar](3) NOT NULL,
	[COMMENT] [varchar](500) NULL,
	[ADDED_WHEN] [datetime] NOT NULL,
	[Outputfilename] [varchar](50) NULL,
 CONSTRAINT [PK_TBCUST_PM_RPT_2BCREATED] PRIMARY KEY CLUSTERED 
(
	[DocID] ASC,
	[GEN_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
UNIQUE NONCLUSTERED 
(
	[DocID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[TBCUST_PM_RPT_2BCREATED] ADD  DEFAULT ('001') FOR [GEN_ID]
GO

ALTER TABLE [dbo].[TBCUST_PM_RPT_2BCREATED] ADD  DEFAULT (getdate()) FOR [ADDED_WHEN]
GO


