USE [DD_ECM]
GO

/****** Object:  Table [dbo].[TBCUST_XAP_DOC_EXPORT]    Script Date: 19.03.2024 16:47:52 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[TBCUST_XAP_DOC_EXPORT](
	[GUID] [bigint] IDENTITY(1,1) NOT NULL,
	[XAP_Beleg_ID] [nvarchar](20) NULL,
	[XAP_Kunden_ID] [int] NULL,
	[XAP_Kundenname] [nvarchar](200) NULL,
	[XAP_Objekt_ID] [nvarchar](20) NULL,
	[XAP_Objektbezeichnung] [nvarchar](200) NULL,
	[XAP_Belegdatum] [date] NULL,
	[XAP_Formular_ID] [nvarchar](10) NULL,
	[XAP_Exportpfad] [nvarchar](250) NULL,
	[ADDED_WHO] [varchar](50) NOT NULL,
	[ADDED_WHEN] [datetime] NOT NULL,
	[CHANGED_WHO] [varchar](50) NULL,
	[CHANGED_WHEN] [datetime] NULL,
 CONSTRAINT [PK_TBCUST_XAP_DOC_EXPORT] PRIMARY KEY CLUSTERED 
(
	[GUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[TBCUST_XAP_DOC_EXPORT] ADD  CONSTRAINT [DF_TBCUST_XAP_DOC_EXPORT_ADDED_WHO]  DEFAULT ('DEFAULT') FOR [ADDED_WHO]
GO

ALTER TABLE [dbo].[TBCUST_XAP_DOC_EXPORT] ADD  CONSTRAINT [DF_TBCUST_XAP_DOC_EXPORT_ADDED_WHEN]  DEFAULT (getdate()) FOR [ADDED_WHEN]
GO


