SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[TBREC_RUN_PROFILE](
	[GUID] [bigint] IDENTITY(1,1) NOT NULL,
	[PROFILE_ID] [bigint] NOT NULL,
	[FIRST_RUN] [datetime] NULL,
	[LAST_RUN] [datetime] NULL,
	[LAST_RESULT] [nvarchar](250) NULL,
 CONSTRAINT [PK_TBREC_RUN_PROFILE_GUID] 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

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Primärschlüssel' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TBREC_RUN_PROFILE', @level2type=N'COLUMN',@level2name=N'GUID'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Profil-Referenz' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TBREC_RUN_PROFILE', @level2type=N'COLUMN',@level2name=N'PROFILE_ID'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Erste Ausfuehrung' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TBREC_RUN_PROFILE', @level2type=N'COLUMN',@level2name=N'FIRST_RUN'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Letzte Ausfuehrung' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TBREC_RUN_PROFILE', @level2type=N'COLUMN',@level2name=N'LAST_RUN'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Letztes Ergebnis' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TBREC_RUN_PROFILE', @level2type=N'COLUMN',@level2name=N'LAST_RESULT'
GO