USE [DD_ECM]
GO

/****** Object:  Table [dbo].[TBDEX_RUN_PROFILE]    Script Date: 07.12.2025 23:26:49 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[TBDEX_RUN_PROFILE](
	[GUID] [bigint] IDENTITY(1,1) NOT NULL,
	[PROFILE_ID] [bigint] NOT NULL,
	[FIRST_RUN] [datetime] NULL,
	[LAST_RUN] [datetime] NULL,
	[LAST_BATCH_ID] [nvarchar](25) NULL,
	[LAST_RESULT] [nvarchar](250) NULL
 CONSTRAINT [PK_TBDEX_RUN_PROFILE] PRIMARY KEY CLUSTERED 
(
	[GUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = ON, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[TBDEX_RUN_PROFILE]  WITH CHECK ADD  CONSTRAINT [FK_TBDEX_RUN_PROFILE_TBDEX_CFG_PROFILE] FOREIGN KEY([PROFILE_ID])
REFERENCES [dbo].[TBDEX_CFG_PROFILE] ([GUID])
GO

ALTER TABLE [dbo].[TBDEX_RUN_PROFILE] CHECK CONSTRAINT [FK_TBDEX_RUN_PROFILE_TBDEX_CFG_PROFILE]
GO


