USE [master]
GO
/****** Object:  Database [TELIS]    Script Date: 31.07.2024 13:02:53 ******/
CREATE DATABASE [TELIS]
 CONTAINMENT = NONE
 ON  PRIMARY 
( NAME = N'TELIS', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\TELIS.mdf' , SIZE = 73728KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB )
 LOG ON 
( NAME = N'TELIS_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\TELIS_log.ldf' , SIZE = 73728KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB )
 WITH CATALOG_COLLATION = DATABASE_DEFAULT
GO
ALTER DATABASE [TELIS] SET COMPATIBILITY_LEVEL = 150
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [TELIS].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [TELIS] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [TELIS] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [TELIS] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [TELIS] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [TELIS] SET ARITHABORT OFF 
GO
ALTER DATABASE [TELIS] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [TELIS] SET AUTO_SHRINK OFF 
GO
ALTER DATABASE [TELIS] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [TELIS] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [TELIS] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [TELIS] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [TELIS] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [TELIS] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [TELIS] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [TELIS] SET  DISABLE_BROKER 
GO
ALTER DATABASE [TELIS] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [TELIS] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [TELIS] SET TRUSTWORTHY OFF 
GO
ALTER DATABASE [TELIS] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO
ALTER DATABASE [TELIS] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [TELIS] SET READ_COMMITTED_SNAPSHOT OFF 
GO
ALTER DATABASE [TELIS] SET HONOR_BROKER_PRIORITY OFF 
GO
ALTER DATABASE [TELIS] SET RECOVERY FULL 
GO
ALTER DATABASE [TELIS] SET  MULTI_USER 
GO
ALTER DATABASE [TELIS] SET PAGE_VERIFY CHECKSUM  
GO
ALTER DATABASE [TELIS] SET DB_CHAINING OFF 
GO
ALTER DATABASE [TELIS] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) 
GO
ALTER DATABASE [TELIS] SET TARGET_RECOVERY_TIME = 60 SECONDS 
GO
ALTER DATABASE [TELIS] SET DELAYED_DURABILITY = DISABLED 
GO
ALTER DATABASE [TELIS] SET ACCELERATED_DATABASE_RECOVERY = OFF  
GO
EXEC sys.sp_db_vardecimal_storage_format N'TELIS', N'ON'
GO
ALTER DATABASE [TELIS] SET QUERY_STORE = OFF
GO
/* For security reasons the login is created disabled and with a random password. */
/****** Object:  Login [TELIS]    Script Date: 31.07.2024 13:02:53 ******/
CREATE LOGIN [TELIS] WITH PASSWORD='OH!te8Dp', DEFAULT_DATABASE=[TELIS], DEFAULT_LANGUAGE=[Deutsch], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
GO
USE [TELIS]
GO
/****** Object:  User [TELIS]    Script Date: 31.07.2024 13:02:53 ******/
CREATE USER [TELIS] FOR LOGIN [TELIS] WITH DEFAULT_SCHEMA=[dbo]
GO
ALTER ROLE [db_owner] ADD MEMBER [TELIS]
GO
/****** Object:  Table [dbo].[TEL_USER]    Script Date: 31.07.2024 13:02:53 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TEL_USER](
	[ID_USER] [bigint] IDENTITY(0,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_LOGIN] [char](35) NOT NULL,
	[CH_PW] [char](32) NULL,
	[PERSON_ID] [bigint] NULL,
	[MAIL_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPZ]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPZ](
	[ID_EPZ] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[ARTIKELNR] [nvarchar](16) NOT NULL,
	[RFN_ID] [bigint] NOT NULL,
	[CH_KENNUNG] [char](6) NULL,
	[TEXT] [nvarchar](256) NULL,
	[EPREIS] [decimal](18, 2) NULL,
	[VC_EPZGRUPPE1] [nvarchar](25) NULL,
	[VC_EPZGRUPPE2] [nvarchar](35) NULL,
	[VC_EPZGRUPPE3] [nvarchar](35) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL,
	[GEGEN_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPOS]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPOS](
	[ID_EPOS] [bigint] IDENTITY(1,1) NOT NULL,
	[RECH_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[FKTO] [nvarchar](35) NULL,
	[BKTO_ID] [bigint] NULL,
	[KUNDENNR] [nvarchar](35) NULL,
	[ARTIKELNR] [nvarchar](35) NULL,
	[VERBINDUNG] [bigint] NULL,
	[MENGE] [bigint] NULL,
	[TEXT] [varchar](256) NULL,
	[EPREIS] [decimal](18, 4) NULL,
	[GPREIS] [decimal](18, 2) NULL,
	[UST] [decimal](10, 2) NULL,
	[VONDATUM] [datetime] NULL,
	[BISDATUM] [datetime] NULL,
	[RECHMONAT] [nvarchar](4) NULL,
	[CH_PRODFAM_ID] [bigint] NULL,
	[CH_GEBGRUPPE_ID] [bigint] NULL,
	[EXDATE] [datetime] NULL,
	[WAEHRUNG] [nvarchar](3) NULL,
	[MEINHEIT] [nvarchar](4) NULL,
	[RUFNUMMER] [nvarchar](35) NULL,
	[REFERENZ] [nvarchar](35) NULL,
	[EDINAME] [nvarchar](20) NULL,
	[NETTO_SOLL] [decimal](18, 4) NULL,
	[ISGKU] [smallint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPOS_CTGGRUPPE]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPOS_CTGGRUPPE](
	[ID_EPOS_GEBGRUPPE] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_GEBGRUPPE_IDS] [nvarchar](8) NOT NULL,
	[VC_NAME] [nvarchar](32) NULL,
	[VC_TEXT] [nvarchar](256) NULL,
	[CH_RFN] [char](4) NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPOS_CTPF]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPOS_CTPF](
	[ID_EPOS_CTPF] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_PRODFAM_IDS] [nvarchar](8) NOT NULL,
	[VC_NAME] [nvarchar](32) NULL,
	[VC_TEXT] [nvarchar](256) NULL,
	[CH_RFN] [char](4) NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_JJJJ_EDI_RFN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_EDI_RFN](
	[ID_RFN] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_RFN] [char](5) NOT NULL,
	[VC_NAME] [nvarchar](35) NULL,
	[SERVICEPROVIDER_ID] [bigint] NULL,
	[AUSKUNFTSSTELLE_ID] [bigint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[EPZ_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE   VIEW [dbo].[EPZ_VIEW] (ID, IN_VIEW, ARTIKELNR, CH_RFN, TEXT, PRODFAMNAME, GEBGRUPPENAME, EPREIS, EPZGRUPPE1, EPZGRUPPE2, EPZGRUPPEG, GEGEN_ID, GEGEN_ANR, GEGEN_PTEXT, C_USER_NEW, NEW_DAT, C_USER_EDIT, EDIT_DAT) AS SELECT DISTINCT epz.id_epz, epz.in_view as IN_VIEW, epz.artikelnr, rech_jjjj_edi_rfn.ch_rfn, /*epz.ch_kennung,*/ epz.text, epos_ctpf.vc_name, epos_ctggruppe.vc_name, epz.epreis, epz.vc_epzgruppe1, epz.vc_epzgruppe2, epz.vc_epzgruppe3, gegen.GEGEN_ID, gegen.artikelnr as GEGEN_ANR, gegen.TEXT as GEGEN_PTEXT, NewU.ch_login, epz.new_dat, EditU.ch_login, epz.edit_dat FROM EPZ LEFT JOIN RECH_JJJJ_EDI_RFN ON EPZ.rfn_id = rech_jjjj_edi_rfn.id_rfn LEFT JOIN TEL_USER AS NewU ON EPZ.new_u_id = NewU.id_user LEFT JOIN TEL_USER AS EditU ON EPZ.edit_u_id = EditU.id_user LEFT JOIN EPOS ON EPOS.TEXT = EPZ.TEXT AND EPOS.artikelnr = epz.artikelnr LEFT JOIN epos_ctggruppe ON EPOS.ch_gebgruppe_id = EPOS_CTGGRUPPE.id_epos_gebgruppe LEFT JOIN epos_ctpf ON EPOS.ch_prodfam_id = EPOS_CTPF.id_epos_ctpf LEFT JOIN EPZ as gegen ON EPZ.GEGEN_ID = gegen.ID_EPZ;
GO
/****** Object:  Table [dbo].[STAM_FELD1]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD1](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD10]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD10](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD11]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD11](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD12]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD12](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD13]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD13](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD14]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD14](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MANDANT]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MANDANT](
	[ID_MANDANT] [bigint] IDENTITY(0,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[VC_PFAD] [nvarchar](100) NULL,
	[MAIL_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD15]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD15](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EVZ]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EVZ](
	[ID_EVZ] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[EVZ_ZIELNUMMER] [nvarchar](35) NULL,
	[EVZ_GRUPPE1] [nvarchar](35) NULL,
	[EVZ_GRUPPE2] [nvarchar](35) NULL,
	[VC_BEMERKUNG] [nvarchar](60) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_KST]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_KST](
	[ID_KST] [bigint] IDENTITY(0,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NULL,
	[VC_NAME] [nvarchar](35) NULL,
	[VC_KST_FELD1] [nvarchar](35) NULL,
	[VC_KST_FELD2] [nvarchar](35) NULL,
	[VC_KST_FELD3] [nvarchar](35) NULL,
	[VC_KST_FELD4] [nvarchar](35) NULL,
	[VC_KST_FELD5] [nvarchar](35) NULL,
	[MAIL_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD16]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD16](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD2]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD2](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD3]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD3](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD4]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD4](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD5]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD5](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD6]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD6](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD7]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD7](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD8]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD8](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_FELD9]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD9](
	[ID_STAM_FELD] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EVN_CARRIER]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EVN_CARRIER](
	[ID_EVN_CARRIER] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_CARRIER] [char](50) NULL,
	[VC_CARTEXT] [nvarchar](50) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_JJJJ_KENNUNG](
	[ID_STAM_JJJJ] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[FKTO] [nvarchar](35) NOT NULL,
	[RFN_ID] [bigint] NULL,
	[BKTO_ID] [bigint] NULL,
	[MANDANT_ID] [bigint] NOT NULL,
	[CH_RECHJAHR] [nvarchar](4) NOT NULL,
	[CH_RECHMONAT] [nvarchar](2) NOT NULL,
	[STAM_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EVN_JJJJ_EDI_DATEI]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EVN_JJJJ_EDI_DATEI](
	[ID_EVN_JJJJ_EDI_DATEI] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[EVN_ID] [bigint] NOT NULL,
	[RECH_EDI_ID] [bigint] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EVN_MATERIAL]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EVN_MATERIAL](
	[ID_EVN_MATERIAL] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_MATNUMMER] [nvarchar](16) NULL,
	[VC_MATTEXT] [nvarchar](100) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EVN_TARIFZEIT]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EVN_TARIFZEIT](
	[ID_EVN_TARIFZEIT] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_TARIFZEIT] [char](50) NULL,
	[VC_TARIFTEXT] [nvarchar](50) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EVN_TBEREICH]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EVN_TBEREICH](
	[ID_EVN_TBEREICH] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_TBEREICH] [char](50) NULL,
	[VC_TBTEXT] [nvarchar](50) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_JJJJ_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_JJJJ_DATEN](
	[STAM_JJJJ_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[HAUPTRFN] [nvarchar](35) NULL,
	[KST_ID] [bigint] NULL,
	[MKST] [char](1) NULL,
	[STAM_FELD1_ID] [bigint] NULL,
	[STAM_FELD2_ID] [bigint] NULL,
	[STAM_FELD3_ID] [bigint] NULL,
	[STAM_FELD4_ID] [bigint] NULL,
	[STAM_FELD5_ID] [bigint] NULL,
	[STAM_FELD6_ID] [bigint] NULL,
	[STAM_FELD7_ID] [bigint] NULL,
	[STAM_FELD8_ID] [bigint] NULL,
	[STAM_TARIF_ID] [bigint] NULL,
	[PERSON_ID] [bigint] NULL,
	[MAIL_ID] [bigint] NULL,
	[STAM_FELD9_ID] [bigint] NULL,
	[STAM_FELD10_ID] [bigint] NULL,
	[STAM_FELD11_ID] [bigint] NULL,
	[STAM_FELD12_ID] [bigint] NULL,
	[STAM_FELD13_ID] [bigint] NULL,
	[STAM_FELD14_ID] [bigint] NULL,
	[STAM_FELD15_ID] [bigint] NULL,
	[STAM_FELD16_ID] [bigint] NULL,
	[DA_FELD17] [datetime] NULL,
	[DA_FELD18] [datetime] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[HARDWARE_ID] [bigint] NULL,
	[CH_MULTISIM] [char](1) NULL,
	[STAM_FELD_NST_AUFTEILUNG_ID] [bigint] NULL,
	[STAM_FELD_NST_IS_AUFGETEILT] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DATEN_MAIL]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DATEN_MAIL](
	[ID_MAIL] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_MAIL] [nvarchar](328) NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_JJJJ_EDI_DATEI]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_EDI_DATEI](
	[ID_RECH_EDI] [bigint] IDENTITY(1,1) NOT NULL,
	[VC_DATEI] [nvarchar](100) NOT NULL,
	[IN_FOLGE] [bigint] NOT NULL,
	[KONVERTIER_DAT] [datetime] NOT NULL,
	[CH_TYP] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EVN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EVN](
	[ID_EVN] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[STAMJM_ID] [bigint] NULL,
	[RFN_ID] [bigint] NULL,
	[FKTO] [varchar](35) NOT NULL,
	[RUFNUMMER] [varchar](35) NULL,
	[CH_RECHJAHR] [char](4) NOT NULL,
	[CH_RECHMONAT] [char](2) NOT NULL,
	[DA_DATUM] [datetime] NULL,
	[CH_ZEIT] [char](10) NULL,
	[ZIELNUMMER] [varchar](35) NULL,
	[DAUER] [decimal](7, 2) NULL,
	[ANZAHL] [decimal](10, 0) NULL,
	[EINHEITEN] [varchar](35) NULL,
	[BETRAG] [decimal](10, 4) NULL,
	[WAEHRUNG] [char](3) NULL,
	[CH_ZIELORT] [varchar](512) NULL,
	[CH_ORTSNETZ] [varchar](60) NULL,
	[EVN_MATERIAL_ID] [bigint] NULL,
	[EVN_TBEREICH_ID] [bigint] NULL,
	[EVN_TARIFZEIT_ID] [bigint] NULL,
	[EVN_CARRIER_ID] [bigint] NULL,
	[EVZ_ID] [bigint] NULL,
	[EXDATE] [datetime] NULL,
	[ADRESSE_ID] [bigint] NULL,
	[KUNDENNUMMER] [varchar](35) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[EVN_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE   VIEW [dbo].[EVN_VIEW] AS SELECT dbo.EVN.ID_EVN AS ID, dbo.EVN.IN_VIEW, dbo.EVN.FKTO, dbo.EVN.RUFNUMMER AS sRUFNUMMER, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, dbo.MANDANT.VC_NAME AS Mandant, dbo.EVN.DA_DATUM AS SDatum, dbo.EVN.CH_ZEIT AS SZeit, dbo.EVN.ZIELNUMMER AS ZielNr, dbo.EVN.DAUER, dbo.EVN.ANZAHL, dbo.EVN.EINHEITEN, dbo.EVN.BETRAG, dbo.EVN.WAEHRUNG, dbo.EVN.CH_ZIELORT AS ZielOrt, dbo.EVN.CH_ORTSNETZ AS NETZ, dbo.EVN_MATERIAL.CH_MATNUMMER AS MATERIALNUMMER, dbo.EVN_MATERIAL.VC_MATTEXT AS MATERIALTEXT, dbo.EVN_TBEREICH.CH_TBEREICH AS cTBereich, dbo.EVN_TARIFZEIT.CH_TARIFZEIT AS cTZeit, dbo.EVN_CARRIER.CH_CARRIER AS cCARRIER, dbo.EVN_CARRIER.VC_CARTEXT, dbo.EVZ.EVZ_GRUPPE1 AS EVZGRUPPE1, dbo.EVZ.EVZ_GRUPPE2 AS EVZGRUPPE2, dbo.EVN.EXDATE, dbo.EVN.KUNDENNUMMER, dbo.EVN.CH_RECHJAHR, dbo.EVN.CH_RECHMONAT, dbo.STAM_JJJJ_DATEN.HAUPTRFN, dbo.STAM_KST.VC_NAME AS KST, dbo.STAM_FELD1.VC_NAME AS Feld1, dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, dbo.STAM_FELD6.VC_NAME AS Feld6, dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, dbo.STAM_FELD11.VC_NAME AS Feld11, dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, dbo.STAM_FELD16.VC_NAME AS Feld16, dbo.STAM_JJJJ_DATEN.DA_FELD17 AS Feld17, dbo.STAM_JJJJ_DATEN.DA_FELD18 AS FELD18, dbo.DATEN_MAIL.VC_MAIL AS EMail, 'B' AS CH_TYP_RB, dbo.RECH_JJJJ_EDI_DATEI.VC_DATEI AS ediname, T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.EVN.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.EVN.EDIT_DAT FROM dbo.EVN LEFT OUTER JOIN dbo.EVN_MATERIAL ON dbo.EVN.EVN_MATERIAL_ID = dbo.EVN_MATERIAL.ID_EVN_MATERIAL LEFT OUTER JOIN dbo.EVN_TBEREICH ON dbo.EVN.EVN_TBEREICH_ID = dbo.EVN_TBEREICH.ID_EVN_TBEREICH LEFT OUTER JOIN dbo.EVN_TARIFZEIT ON dbo.EVN.EVN_TARIFZEIT_ID = dbo.EVN_TARIFZEIT.ID_EVN_TARIFZEIT LEFT OUTER JOIN dbo.EVN_CARRIER ON dbo.EVN.EVN_CARRIER_ID = dbo.EVN_CARRIER.ID_EVN_CARRIER LEFT OUTER JOIN dbo.STAM_JJJJ_KENNUNG ON dbo.EVN.STAMJM_ID = dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ LEFT OUTER JOIN dbo.STAM_JJJJ_DATEN ON dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ = dbo.STAM_JJJJ_DATEN.STAM_JJJJ_ID LEFT OUTER JOIN dbo.MANDANT ON dbo.STAM_JJJJ_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN dbo.STAM_FELD1 ON dbo.STAM_JJJJ_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD2 ON dbo.STAM_JJJJ_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD3 ON dbo.STAM_JJJJ_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD4 ON dbo.STAM_JJJJ_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD5 ON dbo.STAM_JJJJ_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD6 ON dbo.STAM_JJJJ_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD7 ON dbo.STAM_JJJJ_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD8 ON dbo.STAM_JJJJ_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD9 ON dbo.STAM_JJJJ_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD10 ON dbo.STAM_JJJJ_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD11 ON dbo.STAM_JJJJ_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD12 ON dbo.STAM_JJJJ_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD13 ON dbo.STAM_JJJJ_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD14 ON dbo.STAM_JJJJ_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD15 ON dbo.STAM_JJJJ_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD16 ON dbo.STAM_JJJJ_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_KST ON dbo.STAM_JJJJ_DATEN.KST_ID = dbo.STAM_KST.ID_KST LEFT OUTER JOIN dbo.DATEN_MAIL ON dbo.STAM_JJJJ_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN dbo.EVZ ON dbo.EVN.EVZ_ID = dbo.EVZ.ID_EVZ LEFT OUTER JOIN dbo.RECH_JJJJ_EDI_RFN ON dbo.EVN.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN dbo.EVN_JJJJ_EDI_DATEI ON dbo.EVN_JJJJ_EDI_DATEI.EVN_ID = dbo.EVN.ID_EVN LEFT OUTER JOIN dbo.RECH_JJJJ_EDI_DATEI ON dbo.RECH_JJJJ_EDI_DATEI.ID_RECH_EDI = dbo.EVN_JJJJ_EDI_DATEI.RECH_EDI_ID LEFT OUTER JOIN dbo.TEL_USER AS T_USER_NEW ON dbo.EVN.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN dbo.TEL_USER AS T_USER_EDIT ON dbo.EVN.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  View [dbo].[EVZ_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[EVZ_VIEW]
AS
SELECT        dbo.EVZ.ID_EVZ AS ID, dbo.EVZ.IN_VIEW, dbo.EVZ.EVZ_ZIELNUMMER AS RUFNUMMER, dbo.EVZ.EVZ_GRUPPE1 AS EVZGRUPPE1, dbo.EVZ.EVZ_GRUPPE2 AS EVZGRUPPE2, dbo.EVZ.VC_BEMERKUNG, 
                         NewU.CH_LOGIN AS C_USER_NEW, dbo.EVZ.NEW_DAT, EditU.CH_LOGIN AS C_USER_EDIT, dbo.EVZ.EDIT_DAT
FROM            dbo.EVZ LEFT OUTER JOIN
                         dbo.TEL_USER AS NewU ON dbo.EVZ.NEW_U_ID = NewU.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS EditU ON dbo.EVZ.EDIT_U_ID = EditU.ID_USER
GO
/****** Object:  Table [dbo].[STAM_BKTO]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_BKTO](
	[ID_BKTO] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_PRUEF]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_PRUEF](
	[STAM_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[GRENZWERTFIX] [decimal](18, 2) NULL,
	[GRENZWERTVARIABEL] [decimal](18, 2) NULL,
	[DE_VAR_MIN] [bigint] NULL,
	[DE_VAR_MAX] [bigint] NULL,
	[ERSTATTUNG] [decimal](18, 2) NULL,
	[DA_AN_DATUM] [datetime] NULL,
	[DA_AB_DATUM] [datetime] NULL,
	[DA_RE_DATUM] [datetime] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_KENNUNG](
	[ID_STAM] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[FKTO] [nvarchar](35) NOT NULL,
	[RFN_ID] [bigint] NULL,
	[BKTO_ID] [bigint] NULL,
	[MANDANT_ID] [bigint] NULL,
	[CH_RECHJAHR] [nvarchar](4) NULL,
	[CH_RECHMONAT] [nvarchar](2) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DATEN_PERSON]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DATEN_PERSON](
	[ID_PERSON] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_NAME] [nvarchar](64) NULL,
	[CH_ANREDE] [char](1) NULL,
	[VC_VORNAME] [nvarchar](64) NULL,
	[VC_NACHNAME] [nvarchar](64) NULL,
	[MAIL_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[VC_PERSONALNUMMER] [nvarchar](35) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_JJJJ_FREIGABE]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_FREIGABE](
	[ID_RECH_FREIGABE] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_FREIGABE] [nvarchar](35) NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_JJJJ_GEBUEHREN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_GEBUEHREN](
	[ID_RECH_JJJJ_GEB] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[RECH_ID] [bigint] NOT NULL,
	[KST_ID] [bigint] NULL,
	[MKST] [char](1) NULL,
	[FIX] [decimal](18, 4) NULL,
	[VAR] [decimal](18, 4) NULL,
	[EIN] [decimal](18, 4) NULL,
	[FREMD] [decimal](18, 4) NULL,
	[RABATT] [decimal](18, 4) NULL,
	[GUTSCHRIFT] [decimal](18, 4) NULL,
	[NETTO] [decimal](18, 4) NULL,
	[USTPFL] [decimal](18, 4) NULL,
	[UST_FIX] [decimal](18, 4) NULL,
	[UST_VAR] [decimal](18, 4) NULL,
	[UST_EIN] [decimal](18, 4) NULL,
	[UST_FREMD] [decimal](18, 4) NULL,
	[UST_RABATT] [decimal](18, 4) NULL,
	[UST_GUTSCHRIFT] [decimal](18, 4) NULL,
	[UST] [decimal](18, 4) NULL,
	[BRUTTO] [decimal](18, 4) NULL,
	[ALIB] [decimal](18, 4) NULL,
	[MPAY] [decimal](18, 4) NULL,
	[UEBERTRAG] [decimal](18, 4) NULL,
	[GESAMT] [decimal](18, 4) NULL,
	[PAUSCHAL] [decimal](18, 4) NULL,
	[NETTO_SOLL] [decimal](18, 4) NULL,
	[WAEHRUNG] [char](3) NULL,
	[ISGKU] [smallint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_JJJJ_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_DATEN](
	[RECH_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[KUNDENNR] [nvarchar](35) NULL,
	[INDIKATOR] [char](1) NULL,
	[ABSGRUPPE] [char](2) NULL,
	[VONDATE] [datetime] NULL,
	[BISDAT] [datetime] NULL,
	[GEBUCHT] [datetime] NULL,
	[GEBUCHT_NAME_ID] [bigint] NULL,
	[RECH_FREIGABE_ID] [bigint] NULL,
	[FREIGABE_DAT] [datetime] NULL,
	[FREIGABE_NAME_ID] [bigint] NULL,
	[HAUPTRFN] [nvarchar](35) NULL,
	[FAELLIG] [datetime] NULL,
	[ZAHLART] [nvarchar](2) NULL,
	[ZUSTAND] [char](1) NULL,
	[ADRESSE_ID] [bigint] NULL,
	[VERTRAGSPARTNER_ID] [bigint] NULL,
	[STANDORT_ID] [bigint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_KENNUNG](
	[ID_RECH] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_TYP_RB] [char](1) NOT NULL,
	[RFN_ID] [bigint] NULL,
	[FKTO] [nvarchar](35) NOT NULL,
	[BKTO_ID] [bigint] NULL,
	[RENU] [nvarchar](35) NOT NULL,
	[DA_RECHDATUM] [datetime] NULL,
	[CH_RECHJAHR] [char](4) NOT NULL,
	[CH_RECHMONAT] [char](2) NOT NULL,
	[STAM_JJJJ_ID] [bigint] NULL,
	[ISGKU] [smallint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_JJJJ_TYP]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_TYP](
	[ID_RECHTYP] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[RECH_ID] [bigint] NOT NULL,
	[IN_RECHTYP] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[EXPORT_BUCHHALTUNG_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[EXPORT_BUCHHALTUNG_VIEW]
AS
SELECT        dbo.RECH_JJJJ_KENNUNG.ID_RECH AS ID, dbo.RECH_JJJJ_KENNUNG.IN_VIEW, dbo.RECH_JJJJ_DATEN.GEBUCHT, T_USER_GEBUCHT.CH_LOGIN AS GEBUCHTNAME, dbo.RECH_JJJJ_KENNUNG.FKTO, 
                         dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, CASE WHEN STAM_JJJJ_DATEN.hauptrfn IS NULL THEN rech_jjjj_daten.hauptrfn ELSE STAM_JJJJ_DATEN.hauptrfn END AS HAUPTRFN, 
                         dbo.MANDANT.VC_NAME AS Mandant, dbo.RECH_JJJJ_KENNUNG.RENU, dbo.RECH_JJJJ_KENNUNG.CH_TYP_RB, CASE WHEN rech_jjjj_gebuehren.kst_id >= 0 THEN KSTG.vc_name ELSE KSTS.vc_name END AS KST, 
                         CASE WHEN rech_jjjj_gebuehren.mkst = 0 THEN 'EINFACH' ELSE CASE WHEN rech_jjjj_gebuehren.mkst = 1 THEN 'MEHRFACH' ELSE CASE WHEN rech_jjjj_gebuehren.mkst = 2 THEN '% - ANTEIL' ELSE 'EINFACH' END END END
                          AS MKST, dbo.DATEN_PERSON.VC_NAME AS PERSON, dbo.STAM_KENNUNG.ID_STAM AS STAM_ID, dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ AS STAM_JJJJ_ID, dbo.STAM_FELD1.VC_NAME AS Feld1, 
                         dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, dbo.STAM_FELD6.VC_NAME AS Feld6, 
                         dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, dbo.STAM_FELD11.VC_NAME AS Feld11, 
                         dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, dbo.STAM_FELD16.VC_NAME AS Feld16, 
                         dbo.STAM_JJJJ_DATEN.DA_FELD17 AS Feld17, dbo.STAM_JJJJ_DATEN.DA_FELD18 AS FELD18, dbo.STAM_PRUEF.DA_AN_DATUM AS ANMELDEDATUM, dbo.STAM_PRUEF.DA_AB_DATUM AS ABMELDEDATUM, 
                         dbo.RECH_JJJJ_KENNUNG.DA_RECHDATUM, dbo.RECH_JJJJ_DATEN.FAELLIG, dbo.RECH_JJJJ_DATEN.ZAHLART, dbo.RECH_JJJJ_DATEN.ABSGRUPPE, dbo.RECH_JJJJ_FREIGABE.VC_FREIGABE AS FREIGABE, 
                         dbo.RECH_JJJJ_DATEN.FREIGABE_DAT AS FREIGABEDATUM, T_USER_FREIGABE.CH_LOGIN AS FREINAME, dbo.RECH_JJJJ_GEBUEHREN.FIX, dbo.RECH_JJJJ_GEBUEHREN.[VAR], dbo.RECH_JJJJ_GEBUEHREN.EIN, 
                         dbo.RECH_JJJJ_GEBUEHREN.FREMD, dbo.RECH_JJJJ_GEBUEHREN.RABATT, dbo.RECH_JJJJ_GEBUEHREN.GUTSCHRIFT, dbo.RECH_JJJJ_GEBUEHREN.NETTO, dbo.RECH_JJJJ_GEBUEHREN.USTPFL, 
                         dbo.RECH_JJJJ_GEBUEHREN.UST_FIX, dbo.RECH_JJJJ_GEBUEHREN.UST_VAR, dbo.RECH_JJJJ_GEBUEHREN.UST_EIN, dbo.RECH_JJJJ_GEBUEHREN.UST_FREMD, dbo.RECH_JJJJ_GEBUEHREN.UST_RABATT, 
                         dbo.RECH_JJJJ_GEBUEHREN.UST_GUTSCHRIFT, dbo.RECH_JJJJ_GEBUEHREN.UST, dbo.RECH_JJJJ_GEBUEHREN.BRUTTO, dbo.RECH_JJJJ_GEBUEHREN.ALIB, dbo.RECH_JJJJ_GEBUEHREN.MPAY, 
                         dbo.RECH_JJJJ_GEBUEHREN.UEBERTRAG, dbo.RECH_JJJJ_GEBUEHREN.GESAMT, dbo.RECH_JJJJ_GEBUEHREN.WAEHRUNG, dbo.RECH_JJJJ_GEBUEHREN.PAUSCHAL, dbo.RECH_JJJJ_GEBUEHREN.NETTO_SOLL, 
                         dbo.STAM_PRUEF.GRENZWERTFIX, dbo.STAM_PRUEF.GRENZWERTVARIABEL, dbo.STAM_PRUEF.ERSTATTUNG, dbo.RECH_JJJJ_KENNUNG.CH_RECHJAHR, dbo.RECH_JJJJ_KENNUNG.CH_RECHMONAT, 
                         dbo.RECH_JJJJ_DATEN.INDIKATOR, dbo.RECH_JJJJ_DATEN.VONDATE, dbo.RECH_JJJJ_DATEN.BISDAT AS BISDATE, dbo.RECH_JJJJ_DATEN.ZUSTAND, dbo.RECH_JJJJ_TYP.IN_RECHTYP, 
                         dbo.DATEN_MAIL.VC_MAIL AS EMail, T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.RECH_JJJJ_KENNUNG.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.RECH_JJJJ_KENNUNG.EDIT_DAT
FROM            dbo.RECH_JJJJ_GEBUEHREN LEFT OUTER JOIN
                         dbo.RECH_JJJJ_KENNUNG ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_GEBUEHREN.RECH_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_DATEN ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_DATEN.RECH_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.RECH_JJJJ_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.STAM_JJJJ_KENNUNG ON dbo.RECH_JJJJ_KENNUNG.STAM_JJJJ_ID = dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ LEFT OUTER JOIN
                         dbo.STAM_JJJJ_DATEN ON dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ = dbo.STAM_JJJJ_DATEN.STAM_JJJJ_ID LEFT OUTER JOIN
                         dbo.MANDANT ON dbo.STAM_JJJJ_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.STAM_JJJJ_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.STAM_KENNUNG ON dbo.STAM_JJJJ_KENNUNG.STAM_ID = dbo.STAM_KENNUNG.ID_STAM LEFT OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.STAM_JJJJ_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.STAM_JJJJ_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.STAM_JJJJ_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.STAM_JJJJ_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.STAM_JJJJ_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.STAM_JJJJ_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.STAM_JJJJ_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.STAM_JJJJ_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.STAM_JJJJ_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.STAM_JJJJ_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.STAM_JJJJ_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.STAM_JJJJ_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.STAM_JJJJ_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.STAM_JJJJ_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.STAM_JJJJ_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.STAM_JJJJ_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_PRUEF ON dbo.STAM_KENNUNG.ID_STAM = dbo.STAM_PRUEF.STAM_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_FREIGABE ON dbo.RECH_JJJJ_DATEN.RECH_FREIGABE_ID = dbo.RECH_JJJJ_FREIGABE.ID_RECH_FREIGABE LEFT OUTER JOIN
                         dbo.RECH_JJJJ_TYP ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_TYP.RECH_ID LEFT OUTER JOIN
                         dbo.STAM_KST AS KSTG ON dbo.RECH_JJJJ_GEBUEHREN.KST_ID = KSTG.ID_KST LEFT OUTER JOIN
                         dbo.STAM_KST AS KSTS ON dbo.STAM_JJJJ_DATEN.KST_ID = KSTS.ID_KST LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_FREIGABE ON dbo.RECH_JJJJ_DATEN.FREIGABE_NAME_ID = T_USER_FREIGABE.ID_USER LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.RECH_JJJJ_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.STAM_JJJJ_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_GEBUCHT ON dbo.RECH_JJJJ_DATEN.GEBUCHT_NAME_ID = T_USER_GEBUCHT.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.RECH_JJJJ_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.RECH_JJJJ_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  Table [dbo].[GKU_EPOS]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GKU_EPOS](
	[ID_GKU_EPOS] [bigint] IDENTITY(1,1) NOT NULL,
	[GKU_EPOS_RECH_ID] [bigint] NULL,
	[IN_VIEW] [int] NOT NULL,
	[FKTO] [varchar](35) NULL,
	[BKTO_ID] [bigint] NULL,
	[KUNDENNR] [varchar](35) NULL,
	[ARTIKELNR] [varchar](35) NULL,
	[VERBINDUNG] [bigint] NULL,
	[TEXT] [varchar](256) NULL,
	[EPREIS] [decimal](12, 4) NULL,
	[UST] [decimal](3, 2) NULL,
	[VONDATUM] [date] NULL,
	[BISDATUM] [date] NULL,
	[RECHMONAT] [varchar](4) NULL,
	[CH_PRODFAM_ID] [bigint] NULL,
	[CH_GEBGRUPPE_ID] [bigint] NULL,
	[EXDATE] [date] NULL,
	[WAEHRUNG] [varchar](3) NULL,
	[MEINHEIT] [varchar](3) NULL,
	[RUFNUMMER] [varchar](35) NULL,
	[REFERENZ] [varchar](35) NULL,
	[NETTO_SOLL] [decimal](12, 4) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL,
 CONSTRAINT [PK_GKU_EPOS] PRIMARY KEY CLUSTERED 
(
	[ID_GKU_EPOS] 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
/****** Object:  View [dbo].[GKU_EPOS_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[GKU_EPOS_VIEW]
AS
SELECT        dbo.GKU_EPOS.ID_GKU_EPOS AS ID, dbo.GKU_EPOS.IN_VIEW, dbo.GKU_EPOS.ARTIKELNR, dbo.GKU_EPOS.TEXT AS EPOSTEXT, dbo.GKU_EPOS.EPREIS, dbo.GKU_EPOS.WAEHRUNG, 
                         dbo.EPOS_CTPF.VC_NAME AS PRODFAMNAME, dbo.EPOS_CTPF.VC_TEXT AS PRODFAMTEXT, dbo.EPOS_CTGGRUPPE.VC_NAME AS GEBGRUPPENAME, dbo.EPOS_CTGGRUPPE.VC_TEXT AS GEBGRUPPETEXT, 
                         T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.GKU_EPOS.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.GKU_EPOS.EDIT_DAT
FROM            dbo.GKU_EPOS LEFT OUTER JOIN
                         dbo.EPOS_CTPF ON dbo.GKU_EPOS.CH_PRODFAM_ID = dbo.EPOS_CTPF.ID_EPOS_CTPF LEFT OUTER JOIN
                         dbo.EPOS_CTGGRUPPE ON dbo.GKU_EPOS.CH_GEBGRUPPE_ID = dbo.EPOS_CTGGRUPPE.ID_EPOS_GEBGRUPPE LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.GKU_EPOS.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.GKU_EPOS.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  Table [dbo].[GKU_RECH_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GKU_RECH_JJJJ_KENNUNG](
	[ID_GKU_RECH] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_TYP_RB] [char](1) NOT NULL,
	[RFN_ID] [bigint] NULL,
	[FKTO] [nvarchar](35) NULL,
	[BKTO_ID] [bigint] NULL,
	[RENU] [nvarchar](35) NULL,
	[DA_RECHDATUM] [datetime] NULL,
	[CH_RECHJAHR] [char](4) NULL,
	[CH_RECHMONAT] [char](2) NULL,
	[STAM_ID] [bigint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GKU_RECH_JJJJ_GEBUEHREN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN](
	[ID_GKU_RECH_JJJJ_GEB] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[GKU_RECH_ID] [bigint] NOT NULL,
	[KST_ID] [bigint] NULL,
	[MKST] [char](1) NULL,
	[FIX] [decimal](18, 4) NULL,
	[VAR] [decimal](18, 4) NULL,
	[EIN] [decimal](18, 4) NULL,
	[FREMD] [decimal](18, 4) NULL,
	[RABATT] [decimal](18, 4) NULL,
	[GUTSCHRIFT] [decimal](18, 4) NULL,
	[NETTO] [decimal](18, 4) NULL,
	[USTPFL] [decimal](18, 4) NULL,
	[UST_FIX] [decimal](18, 4) NULL,
	[UST_VAR] [decimal](18, 4) NULL,
	[UST_EIN] [decimal](18, 4) NULL,
	[UST_FREMD] [decimal](18, 4) NULL,
	[UST_RABATT] [decimal](18, 4) NULL,
	[UST_GUTSCHRIFT] [decimal](18, 4) NULL,
	[UST] [decimal](18, 4) NULL,
	[BRUTTO] [decimal](18, 4) NULL,
	[MPAY] [decimal](18, 4) NULL,
	[UEBERTRAG] [decimal](18, 4) NULL,
	[GESAMT] [decimal](18, 4) NULL,
	[PAUSCHAL] [decimal](18, 4) NULL,
	[NETTO_SOLL] [decimal](18, 4) NULL,
	[WAEHRUNG] [char](3) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GKU_RECH_JJJJ_TYP]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GKU_RECH_JJJJ_TYP](
	[ID_GKU_RECHTYP] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[GKU_RECH_ID] [bigint] NOT NULL,
	[IN_RECHTYP] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_DATEN](
	[STAM_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[HAUPTRFN] [nvarchar](35) NULL,
	[KST_ID] [bigint] NULL,
	[MKST] [char](1) NULL,
	[STAM_FELD1_ID] [bigint] NULL,
	[STAM_FELD2_ID] [bigint] NULL,
	[STAM_FELD3_ID] [bigint] NULL,
	[STAM_FELD4_ID] [bigint] NULL,
	[STAM_FELD5_ID] [bigint] NULL,
	[STAM_FELD6_ID] [bigint] NULL,
	[STAM_FELD7_ID] [bigint] NULL,
	[STAM_FELD8_ID] [bigint] NULL,
	[STAM_TARIF_ID] [bigint] NULL,
	[PERSON_ID] [bigint] NULL,
	[MAIL_ID] [bigint] NULL,
	[STAM_FELD9_ID] [bigint] NULL,
	[STAM_FELD10_ID] [bigint] NULL,
	[STAM_FELD11_ID] [bigint] NULL,
	[STAM_FELD12_ID] [bigint] NULL,
	[STAM_FELD13_ID] [bigint] NULL,
	[STAM_FELD14_ID] [bigint] NULL,
	[STAM_FELD15_ID] [bigint] NULL,
	[STAM_FELD16_ID] [bigint] NULL,
	[DA_FELD17] [datetime] NULL,
	[DA_FELD18] [datetime] NULL,
	[STAM_FELD_NST_AUFTEILUNG_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[HARDWARE_ID] [bigint] NULL,
	[CH_MULTISIM] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[GKU_RECH_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE   VIEW [dbo].[GKU_RECH_VIEW]
AS
SELECT        dbo.GKU_RECH_JJJJ_KENNUNG.ID_GKU_RECH AS ID, dbo.GKU_RECH_JJJJ_KENNUNG.IN_VIEW, dbo.STAM_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, 
                         dbo.STAM_DATEN.HAUPTRFN AS Hauptrufnummer, dbo.GKU_RECH_JJJJ_KENNUNG.CH_TYP_RB, KSTS.VC_NAME AS KST, dbo.DATEN_PERSON.VC_NAME AS PERSON, dbo.STAM_KENNUNG.ID_STAM AS STAM_ID, 
                         dbo.STAM_FELD1.VC_NAME AS Feld1, dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, 
                         dbo.STAM_FELD6.VC_NAME AS Feld6, dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, 
                         dbo.STAM_FELD11.VC_NAME AS Feld11, dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, 
                         dbo.STAM_FELD16.VC_NAME AS Feld16, dbo.STAM_DATEN.DA_FELD17 AS Feld17, dbo.STAM_DATEN.DA_FELD18 AS FELD18, dbo.MANDANT.VC_NAME AS MANDANT, dbo.GKU_RECH_JJJJ_GEBUEHREN.FIX, 
                         dbo.GKU_RECH_JJJJ_GEBUEHREN.NETTO, dbo.GKU_RECH_JJJJ_GEBUEHREN.WAEHRUNG, dbo.DATEN_MAIL.VC_MAIL AS EMail, T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.GKU_RECH_JJJJ_KENNUNG.NEW_DAT, 
                         T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.GKU_RECH_JJJJ_KENNUNG.EDIT_DAT
FROM            dbo.GKU_RECH_JJJJ_GEBUEHREN FULL OUTER JOIN
                         dbo.GKU_RECH_JJJJ_KENNUNG ON dbo.GKU_RECH_JJJJ_KENNUNG.ID_GKU_RECH = dbo.GKU_RECH_JJJJ_GEBUEHREN.GKU_RECH_ID FULL OUTER JOIN
                         dbo.STAM_KENNUNG ON dbo.GKU_RECH_JJJJ_KENNUNG.STAM_ID = dbo.STAM_KENNUNG.ID_STAM FULL OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.STAM_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN FULL OUTER JOIN
                         dbo.STAM_DATEN ON dbo.STAM_KENNUNG.ID_STAM = dbo.STAM_DATEN.STAM_ID FULL OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.STAM_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON FULL OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.STAM_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.STAM_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.STAM_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.STAM_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.STAM_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.STAM_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.STAM_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.STAM_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.STAM_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.STAM_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.STAM_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.STAM_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.STAM_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.STAM_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.STAM_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD FULL OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.STAM_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD FULL OUTER JOIN
                         dbo.MANDANT ON dbo.STAM_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT FULL OUTER JOIN
                         dbo.GKU_RECH_JJJJ_TYP ON dbo.GKU_RECH_JJJJ_KENNUNG.ID_GKU_RECH = dbo.GKU_RECH_JJJJ_TYP.GKU_RECH_ID FULL OUTER JOIN
                         dbo.STAM_KST AS KSTS ON dbo.STAM_DATEN.KST_ID = KSTS.ID_KST FULL OUTER JOIN
                         dbo.STAM_BKTO ON dbo.STAM_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO FULL OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.STAM_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL FULL OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.GKU_RECH_JJJJ_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER FULL OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.GKU_RECH_JJJJ_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  Table [dbo].[GRUPPE]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GRUPPE](
	[ID_GRUPPE] [bigint] IDENTITY(0,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_NAME] [nvarchar](35) NOT NULL,
	[VC_TEXT] [nvarchar](128) NULL,
	[BI_RECHTE] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[GRUPPE_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[GRUPPE_VIEW]
AS
SELECT        dbo.GRUPPE.ID_GRUPPE AS ID, dbo.GRUPPE.IN_VIEW, dbo.GRUPPE.VC_NAME AS VC_GRUPPENNAME, dbo.GRUPPE.VC_TEXT AS VC_GRUPPENTEXT, dbo.GRUPPE.BI_RECHTE, dbo.GRUPPE.NEW_U_ID, 
                         User_New.CH_LOGIN AS C_USER_NEW, dbo.GRUPPE.NEW_DAT, dbo.GRUPPE.EDIT_U_ID, User_Edit.CH_LOGIN AS C_USER_EDIT, dbo.GRUPPE.EDIT_DAT
FROM            dbo.GRUPPE LEFT OUTER JOIN
                         dbo.TEL_USER AS User_New ON dbo.GRUPPE.NEW_U_ID = User_New.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS User_Edit ON dbo.GRUPPE.EDIT_U_ID = User_Edit.ID_USER
GO
/****** Object:  Table [dbo].[HWV_HARDWARE_KOMPLEX]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HWV_HARDWARE_KOMPLEX](
	[ID_HARDWARE_KOMPLEX] [bigint] IDENTITY(1,1) NOT NULL,
	[VC_KOMPLEXNAME] [varchar](60) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[HWV_HARDWARE_TYPEN_KOMPLEX]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HWV_HARDWARE_TYPEN_KOMPLEX](
	[ID_HARDWARE_TYPEN_KOMPLEX] [bigint] IDENTITY(1,1) NOT NULL,
	[HARDWARE_TYPEN_ID] [bigint] NOT NULL,
	[HARDWARE_KOMPLEX_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[HWV_HARDWARE_DETAIL]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HWV_HARDWARE_DETAIL](
	[ID_HARDWARE_DETAIL] [bigint] IDENTITY(1,1) NOT NULL,
	[HARDWARE_TYPEN_KOMPLEX_ID] [bigint] NOT NULL,
	[STAM_ID] [bigint] NOT NULL,
	[VC_SERIENNUMMER] [varchar](60) NULL,
	[VC_INVENTARNUMMER] [varchar](60) NULL,
	[DEC_KAUFPREIS] [decimal](10, 2) NULL,
	[VC_RECHNUNGSNUMMER] [varchar](60) NULL,
	[DA_RECHNUNGSDATUM] [datetime] NULL,
	[CH_MULTISIM] [char](1) NULL,
	[VC_ZUSTAND] [varchar](60) NULL,
	[CH_ZUBEHOER] [char](1) NULL,
	[IN_VIEW] [int] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[HWV_HARDWARE_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[HWV_HARDWARE_VIEW]
AS
SELECT DISTINCT 
                         dbo.HWV_HARDWARE_KOMPLEX.ID_HARDWARE_KOMPLEX AS ID, dbo.HWV_HARDWARE_KOMPLEX.VC_KOMPLEXNAME, dbo.STAM_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, 
                         dbo.HWV_HARDWARE_KOMPLEX.IN_VIEW, T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.HWV_HARDWARE_KOMPLEX.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, 
                         dbo.HWV_HARDWARE_KOMPLEX.EDIT_DAT
FROM            dbo.HWV_HARDWARE_KOMPLEX INNER JOIN
                         dbo.HWV_HARDWARE_TYPEN_KOMPLEX ON dbo.HWV_HARDWARE_KOMPLEX.ID_HARDWARE_KOMPLEX = dbo.HWV_HARDWARE_TYPEN_KOMPLEX.HARDWARE_KOMPLEX_ID INNER JOIN
                         dbo.HWV_HARDWARE_DETAIL ON dbo.HWV_HARDWARE_TYPEN_KOMPLEX.ID_HARDWARE_TYPEN_KOMPLEX = dbo.HWV_HARDWARE_DETAIL.HARDWARE_TYPEN_KOMPLEX_ID LEFT OUTER JOIN
                         dbo.STAM_KENNUNG ON dbo.STAM_KENNUNG.ID_STAM = dbo.HWV_HARDWARE_DETAIL.STAM_ID LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.STAM_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.HWV_HARDWARE_KOMPLEX.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.HWV_HARDWARE_KOMPLEX.EDIT_U_ID = T_USER_EDIT.ID_USER
WHERE        (dbo.HWV_HARDWARE_KOMPLEX.IN_VIEW = 0)
GO
/****** Object:  View [dbo].[MANDANT_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[MANDANT_VIEW]
AS
SELECT        dbo.MANDANT.ID_MANDANT AS ID, dbo.MANDANT.IN_VIEW, dbo.MANDANT.VC_NAME, dbo.MANDANT.VC_PFAD, dbo.DATEN_MAIL.VC_MAIL AS EMAIL, dbo.MANDANT.NEW_U_ID, 
                         T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.MANDANT.NEW_DAT, dbo.MANDANT.EDIT_U_ID, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.MANDANT.EDIT_DAT
FROM            dbo.MANDANT LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.MANDANT.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.MANDANT.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.MANDANT.NEW_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  Table [dbo].[NSTA_JJJJ_BEM]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NSTA_JJJJ_BEM](
	[ID_NSTA_BEM] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[NSTA_ID] [bigint] NOT NULL,
	[VC_BEMERKUNG] [nvarchar](100) NOT NULL,
	[SI_REIHENFOLGE] [smallint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[NSTA_JJJJ_BEMERKUNG_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[NSTA_JJJJ_BEMERKUNG_VIEW]
AS
SELECT        dbo.NSTA_JJJJ_BEM.NEW_DAT, dbo.TEL_USER.CH_LOGIN, dbo.NSTA_JJJJ_BEM.VC_BEMERKUNG, dbo.NSTA_JJJJ_BEM.NSTA_ID, dbo.NSTA_JJJJ_BEM.SI_REIHENFOLGE
FROM            dbo.NSTA_JJJJ_BEM LEFT OUTER JOIN
                         dbo.TEL_USER ON dbo.NSTA_JJJJ_BEM.NEW_U_ID = dbo.TEL_USER.ID_USER
WHERE        (dbo.NSTA_JJJJ_BEM.IN_VIEW = 0)
GO
/****** Object:  Table [dbo].[STAM_FELD_NST_AUFTEILUNG]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_FELD_NST_AUFTEILUNG](
	[ID_STAM_FELD_NST_AUFTEILUNG] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [bigint] NOT NULL,
	[M_ID] [bigint] NULL,
	[VC_NAME] [varchar](35) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NSTA_JJJJ_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NSTA_JJJJ_DATEN](
	[NSTA_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[KUNDENNR] [nvarchar](35) NULL,
	[INDIKATOR] [char](1) NULL,
	[ABSGRUPPE] [char](2) NULL,
	[VONDATE] [datetime] NULL,
	[BISDAT] [datetime] NULL,
	[GEBUCHT] [datetime] NULL,
	[GEBUCHT_NAME_ID] [bigint] NULL,
	[RECH_FREIGABE_ID] [bigint] NULL,
	[FREIGABE_DAT] [datetime] NULL,
	[FREIGABE_NAME_ID] [bigint] NULL,
	[HAUPTRFN] [nvarchar](35) NULL,
	[FAELLIG] [datetime] NULL,
	[ZAHLART] [nvarchar](2) NULL,
	[ZUSTAND] [char](1) NULL,
	[ADRESSE_ID] [bigint] NULL,
	[VERTRAGSPARTNER_ID] [bigint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL,
	[STAM_FELD_NST_AUFTEILUNG_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NSTA_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NSTA_JJJJ_KENNUNG](
	[ID_NSTA] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[CH_TYP_RB] [char](1) NOT NULL,
	[STARTRUFNUMMER] [nvarchar](35) NOT NULL,
	[RFN_ID] [bigint] NOT NULL,
	[FKTO] [nvarchar](35) NOT NULL,
	[BKTO_ID] [bigint] NULL,
	[RENU] [nvarchar](35) NULL,
	[DA_RECHDATUM] [datetime] NULL,
	[CH_RECHJAHR] [char](4) NOT NULL,
	[CH_RECHMONAT] [char](2) NOT NULL,
	[NST_STAM_JJJJ_ID] [bigint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NSTA_JJJJ_GEBUEHREN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NSTA_JJJJ_GEBUEHREN](
	[ID_NSTA_JJJJ_GEB] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[NSTA_ID] [bigint] NOT NULL,
	[MKST] [char](1) NULL,
	[FIX] [decimal](18, 4) NULL,
	[VAR] [decimal](18, 4) NULL,
	[EIN] [decimal](18, 4) NULL,
	[FREMD] [decimal](18, 4) NULL,
	[RABATT] [decimal](18, 4) NULL,
	[GUTSCHRIFT] [decimal](18, 4) NULL,
	[NETTO] [decimal](18, 4) NULL,
	[USTPFL] [decimal](18, 4) NULL,
	[UST_FIX] [decimal](18, 4) NULL,
	[UST_VAR] [decimal](18, 4) NULL,
	[UST_EIN] [decimal](18, 4) NULL,
	[UST_FREMD] [decimal](18, 4) NULL,
	[UST_RABATT] [decimal](18, 4) NULL,
	[UST_GUTSCHRIFT] [decimal](18, 4) NULL,
	[UST] [decimal](18, 4) NULL,
	[BRUTTO] [decimal](18, 4) NULL,
	[MPAY] [decimal](18, 4) NULL,
	[UEBERTRAG] [decimal](18, 4) NULL,
	[GESAMT] [decimal](18, 4) NULL,
	[PAUSCHAL] [decimal](18, 4) NULL,
	[NETTO_SOLL] [decimal](18, 4) NULL,
	[WAEHRUNG] [char](3) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL,
	[DAUER] [decimal](10, 2) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NST_STAM_PRUEF]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NST_STAM_PRUEF](
	[NST_STAM_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[GRENZWERTFIX] [decimal](18, 2) NULL,
	[GRENZWERTVARIABEL] [decimal](18, 2) NULL,
	[DE_VAR_MIN] [bigint] NULL,
	[DE_VAR_MAX] [bigint] NULL,
	[ERSTATTUNG] [decimal](18, 2) NULL,
	[DA_AN_DATUM] [datetime] NULL,
	[DA_AB_DATUM] [datetime] NULL,
	[DA_RE_DATUM] [datetime] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NST_STAM_JJJJ_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NST_STAM_JJJJ_DATEN](
	[NST_STAM_JJJJ_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[HAUPTRFN] [nvarchar](35) NULL,
	[KST_ID] [bigint] NULL,
	[MKST] [char](1) NULL,
	[STAM_FELD1_ID] [bigint] NULL,
	[STAM_FELD2_ID] [bigint] NULL,
	[STAM_FELD3_ID] [bigint] NULL,
	[STAM_FELD4_ID] [bigint] NULL,
	[STAM_FELD5_ID] [bigint] NULL,
	[STAM_FELD6_ID] [bigint] NULL,
	[STAM_FELD7_ID] [bigint] NULL,
	[STAM_FELD8_ID] [bigint] NULL,
	[STAM_TARIF_ID] [bigint] NULL,
	[PERSON_ID] [bigint] NULL,
	[MAIL_ID] [bigint] NULL,
	[STAM_FELD9_ID] [bigint] NULL,
	[STAM_FELD10_ID] [bigint] NULL,
	[STAM_FELD11_ID] [bigint] NULL,
	[STAM_FELD12_ID] [bigint] NULL,
	[STAM_FELD13_ID] [bigint] NULL,
	[STAM_FELD14_ID] [bigint] NULL,
	[STAM_FELD15_ID] [bigint] NULL,
	[STAM_FELD16_ID] [bigint] NULL,
	[DA_FELD17] [datetime] NULL,
	[DA_FELD18] [datetime] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[HARDWARE_ID] [bigint] NULL,
	[STAM_FELD_NST_AUFTEILUNG_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NSTA_JJJJ_TYP]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NSTA_JJJJ_TYP](
	[ID_NSTATYP] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[NSTA_ID] [bigint] NOT NULL,
	[IN_NSTATYP] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NST_STAM_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NST_STAM_JJJJ_KENNUNG](
	[ID_NST_STAM_JJJJ] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[STARTRUFNUMMER] [nvarchar](35) NOT NULL,
	[FKTO] [nvarchar](35) NULL,
	[RFN_ID] [bigint] NULL,
	[BKTO_ID] [bigint] NULL,
	[MANDANT_ID] [bigint] NULL,
	[CH_RECHJAHR] [nvarchar](4) NULL,
	[CH_RECHMONAT] [nvarchar](2) NULL,
	[NST_STAM_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NST_STAM_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NST_STAM_KENNUNG](
	[ID_NST_STAM] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[STARTRUFNUMMER] [nvarchar](35) NOT NULL,
	[FKTO] [nvarchar](35) NULL,
	[RFN_ID] [bigint] NULL,
	[BKTO_ID] [bigint] NULL,
	[MANDANT_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[NST_AUSW_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[NST_AUSW_VIEW]
AS
SELECT        dbo.NSTA_JJJJ_KENNUNG.ID_NSTA AS ID, dbo.NSTA_JJJJ_KENNUNG.IN_VIEW, dbo.NSTA_JJJJ_KENNUNG.STARTRUFNUMMER AS RUFNUMMER, dbo.NSTA_JJJJ_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, 
                         dbo.RECH_JJJJ_EDI_RFN.CH_RFN, dbo.NSTA_JJJJ_DATEN.HAUPTRFN, dbo.MANDANT.VC_NAME AS Mandant, dbo.NSTA_JJJJ_KENNUNG.RENU, dbo.NSTA_JJJJ_KENNUNG.CH_TYP_RB, dbo.STAM_KST.VC_NAME AS KST, 
                         dbo.DATEN_PERSON.VC_NAME AS PERSON, dbo.NST_STAM_KENNUNG.ID_NST_STAM AS NST_STAM_ID, dbo.NST_STAM_JJJJ_KENNUNG.ID_NST_STAM_JJJJ AS NST_STAM_JJJJ_ID, dbo.STAM_FELD1.VC_NAME AS Feld1, 
                         dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, dbo.STAM_FELD6.VC_NAME AS Feld6, 
                         dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, dbo.STAM_FELD11.VC_NAME AS Feld11, 
                         dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, dbo.STAM_FELD16.VC_NAME AS Feld16, 
                         dbo.NST_STAM_JJJJ_DATEN.DA_FELD17 AS Feld17, dbo.NST_STAM_JJJJ_DATEN.DA_FELD18 AS FELD18, dbo.STAM_FELD_NST_AUFTEILUNG.VC_NAME AS FELD_NST_AUFTEILUNG, 
                         dbo.NST_STAM_PRUEF.DA_AN_DATUM AS ANMELDEDATUM, dbo.NST_STAM_PRUEF.DA_AB_DATUM AS ABMELDEDATUM, dbo.NSTA_JJJJ_KENNUNG.DA_RECHDATUM, dbo.NSTA_JJJJ_DATEN.FAELLIG, 
                         dbo.NSTA_JJJJ_DATEN.ZAHLART, dbo.NSTA_JJJJ_DATEN.ABSGRUPPE, dbo.RECH_JJJJ_FREIGABE.VC_FREIGABE AS FREIGABE, dbo.NSTA_JJJJ_DATEN.FREIGABE_DAT AS FREIGABEDATUM, 
                         T_USER_FREIGABE.CH_LOGIN AS FREINAME, dbo.NSTA_JJJJ_GEBUEHREN.FIX, dbo.NSTA_JJJJ_GEBUEHREN.[VAR], dbo.NSTA_JJJJ_GEBUEHREN.EIN, dbo.NSTA_JJJJ_GEBUEHREN.FREMD, 
                         dbo.NSTA_JJJJ_GEBUEHREN.RABATT, dbo.NSTA_JJJJ_GEBUEHREN.GUTSCHRIFT, dbo.NSTA_JJJJ_GEBUEHREN.NETTO, dbo.NSTA_JJJJ_GEBUEHREN.USTPFL, dbo.NSTA_JJJJ_GEBUEHREN.UST_FIX, 
                         dbo.NSTA_JJJJ_GEBUEHREN.UST_VAR, dbo.NSTA_JJJJ_GEBUEHREN.UST_EIN, dbo.NSTA_JJJJ_GEBUEHREN.UST_FREMD, dbo.NSTA_JJJJ_GEBUEHREN.UST_RABATT, dbo.NSTA_JJJJ_GEBUEHREN.UST_GUTSCHRIFT, 
                         dbo.NSTA_JJJJ_GEBUEHREN.UST, dbo.NSTA_JJJJ_GEBUEHREN.BRUTTO, dbo.NSTA_JJJJ_GEBUEHREN.MPAY, dbo.NSTA_JJJJ_GEBUEHREN.UEBERTRAG, dbo.NSTA_JJJJ_GEBUEHREN.GESAMT, 
                         dbo.NSTA_JJJJ_GEBUEHREN.WAEHRUNG, dbo.NSTA_JJJJ_GEBUEHREN.PAUSCHAL, dbo.NSTA_JJJJ_GEBUEHREN.NETTO_SOLL, dbo.NSTA_JJJJ_GEBUEHREN.DAUER, dbo.NSTA_JJJJ_KENNUNG.CH_RECHJAHR, 
                         dbo.NSTA_JJJJ_KENNUNG.CH_RECHMONAT, dbo.NSTA_JJJJ_GEBUEHREN.MKST, dbo.NSTA_JJJJ_DATEN.INDIKATOR, dbo.NSTA_JJJJ_DATEN.VONDATE, dbo.NSTA_JJJJ_DATEN.BISDAT AS BISDATE, 
                         dbo.NSTA_JJJJ_DATEN.ZUSTAND, dbo.NSTA_JJJJ_TYP.IN_NSTATYP AS IN_RECHTYP, dbo.DATEN_MAIL.VC_MAIL AS EMail, dbo.NSTA_JJJJ_DATEN.GEBUCHT, T_USER_NEW.CH_LOGIN AS C_USER_NEW, 
                         dbo.NSTA_JJJJ_KENNUNG.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.NSTA_JJJJ_KENNUNG.EDIT_DAT
FROM            dbo.NSTA_JJJJ_KENNUNG LEFT OUTER JOIN
                         dbo.NSTA_JJJJ_DATEN ON dbo.NSTA_JJJJ_KENNUNG.ID_NSTA = dbo.NSTA_JJJJ_DATEN.NSTA_ID LEFT OUTER JOIN
                         dbo.NSTA_JJJJ_GEBUEHREN ON dbo.NSTA_JJJJ_KENNUNG.ID_NSTA = dbo.NSTA_JJJJ_GEBUEHREN.NSTA_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.NSTA_JJJJ_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.NST_STAM_JJJJ_KENNUNG ON dbo.NSTA_JJJJ_KENNUNG.NST_STAM_JJJJ_ID = dbo.NST_STAM_JJJJ_KENNUNG.ID_NST_STAM_JJJJ LEFT OUTER JOIN
                         dbo.NST_STAM_JJJJ_DATEN ON dbo.NST_STAM_JJJJ_KENNUNG.ID_NST_STAM_JJJJ = dbo.NST_STAM_JJJJ_DATEN.NST_STAM_JJJJ_ID LEFT OUTER JOIN
                         dbo.MANDANT ON dbo.NST_STAM_JJJJ_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.NST_STAM_JJJJ_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.NST_STAM_KENNUNG ON dbo.NST_STAM_JJJJ_KENNUNG.NST_STAM_ID = dbo.NST_STAM_KENNUNG.ID_NST_STAM LEFT OUTER JOIN
                         dbo.NST_STAM_PRUEF ON dbo.NST_STAM_KENNUNG.ID_NST_STAM = dbo.NST_STAM_PRUEF.NST_STAM_ID LEFT OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD_NST_AUFTEILUNG ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD_NST_AUFTEILUNG_ID = dbo.STAM_FELD_NST_AUFTEILUNG.ID_STAM_FELD_NST_AUFTEILUNG LEFT OUTER JOIN
                         dbo.RECH_JJJJ_FREIGABE ON dbo.NSTA_JJJJ_DATEN.RECH_FREIGABE_ID = dbo.RECH_JJJJ_FREIGABE.ID_RECH_FREIGABE LEFT OUTER JOIN
                         dbo.NSTA_JJJJ_TYP ON dbo.NSTA_JJJJ_KENNUNG.ID_NSTA = dbo.NSTA_JJJJ_TYP.NSTA_ID LEFT OUTER JOIN
                         dbo.STAM_KST ON dbo.NST_STAM_JJJJ_DATEN.KST_ID = dbo.STAM_KST.ID_KST LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_FREIGABE ON dbo.NSTA_JJJJ_DATEN.FREIGABE_NAME_ID = T_USER_FREIGABE.ID_USER LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.NSTA_JJJJ_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.NST_STAM_JJJJ_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.NSTA_JJJJ_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.NSTA_JJJJ_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  Table [dbo].[NST_STAM_BEM]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NST_STAM_BEM](
	[ID_NST_STA_BEM] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[NST_STAM_ID] [bigint] NOT NULL,
	[VC_BEMERKUNG] [nvarchar](100) NOT NULL,
	[SI_REIHENFOLGE] [smallint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[NST_STAM_BEMERKUNG_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[NST_STAM_BEMERKUNG_VIEW]
AS
SELECT        dbo.NST_STAM_BEM.NEW_DAT, dbo.TEL_USER.CH_LOGIN, dbo.NST_STAM_BEM.VC_BEMERKUNG, dbo.NST_STAM_BEM.NST_STAM_ID, dbo.NST_STAM_BEM.SI_REIHENFOLGE
FROM            dbo.NST_STAM_BEM LEFT OUTER JOIN
                         dbo.TEL_USER ON dbo.NST_STAM_BEM.NEW_U_ID = dbo.TEL_USER.ID_USER
WHERE        (dbo.NST_STAM_BEM.IN_VIEW = 0)
GO
/****** Object:  View [dbo].[NST_STAM_RECH_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[NST_STAM_RECH_VIEW]
AS
SELECT        dbo.NST_STAM_JJJJ_KENNUNG.ID_NST_STAM_JJJJ AS ID, dbo.NST_STAM_JJJJ_KENNUNG.STARTRUFNUMMER AS RUFNUMMER, dbo.NST_STAM_JJJJ_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, 
                         dbo.RECH_JJJJ_EDI_RFN.CH_RFN, dbo.NST_STAM_JJJJ_DATEN.HAUPTRFN AS Hauptrufnummer, dbo.STAM_KST.VC_NAME AS KST, dbo.MANDANT.VC_NAME AS Mandant, 
                         dbo.DATEN_PERSON.VC_NAME AS PERSON, dbo.STAM_FELD1.VC_NAME AS Feld1, dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, 
                         dbo.STAM_FELD5.VC_NAME AS Feld5, dbo.STAM_FELD6.VC_NAME AS Feld6, dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, 
                         dbo.STAM_FELD10.VC_NAME AS Feld10, dbo.STAM_FELD11.VC_NAME AS Feld11, dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, 
                         dbo.STAM_FELD15.VC_NAME AS Feld15, dbo.STAM_FELD16.VC_NAME AS Feld16, dbo.NST_STAM_JJJJ_DATEN.DA_FELD17 AS Feld17, dbo.NST_STAM_JJJJ_DATEN.DA_FELD18 AS FELD18, 
                         dbo.DATEN_MAIL.VC_MAIL AS EMail, dbo.NST_STAM_JJJJ_KENNUNG.CH_RECHJAHR, dbo.NST_STAM_JJJJ_KENNUNG.CH_RECHMONAT, T_USER_NEW.CH_LOGIN AS C_USER_NEW, 
                         dbo.NST_STAM_JJJJ_KENNUNG.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.NST_STAM_JJJJ_KENNUNG.EDIT_DAT
FROM            dbo.NST_STAM_JJJJ_DATEN LEFT OUTER JOIN
                         dbo.NST_STAM_JJJJ_KENNUNG ON dbo.NST_STAM_JJJJ_DATEN.NST_STAM_JJJJ_ID = dbo.NST_STAM_JJJJ_KENNUNG.ID_NST_STAM_JJJJ LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.NST_STAM_JJJJ_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.NST_STAM_JJJJ_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.MANDANT ON dbo.NST_STAM_JJJJ_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.NST_STAM_JJJJ_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.NST_STAM_JJJJ_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.NST_STAM_PRUEF ON dbo.NST_STAM_JJJJ_KENNUNG.ID_NST_STAM_JJJJ = dbo.NST_STAM_PRUEF.NST_STAM_ID LEFT OUTER JOIN
                         dbo.STAM_KST ON dbo.NST_STAM_JJJJ_DATEN.KST_ID = dbo.STAM_KST.ID_KST LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.NST_STAM_JJJJ_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.NST_STAM_JJJJ_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.NST_STAM_JJJJ_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
WHERE        (dbo.NST_STAM_JJJJ_KENNUNG.IN_VIEW = 0)
GO
/****** Object:  Table [dbo].[NST_STAM_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NST_STAM_DATEN](
	[NST_STAM_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[HAUPTRFN] [nvarchar](35) NULL,
	[KST_ID] [bigint] NULL,
	[MKST] [char](1) NULL,
	[STAM_FELD1_ID] [bigint] NULL,
	[STAM_FELD2_ID] [bigint] NULL,
	[STAM_FELD3_ID] [bigint] NULL,
	[STAM_FELD4_ID] [bigint] NULL,
	[STAM_FELD5_ID] [bigint] NULL,
	[STAM_FELD6_ID] [bigint] NULL,
	[STAM_FELD7_ID] [bigint] NULL,
	[STAM_FELD8_ID] [bigint] NULL,
	[STAM_TARIF_ID] [bigint] NULL,
	[PERSON_ID] [bigint] NULL,
	[MAIL_ID] [bigint] NULL,
	[STAM_FELD9_ID] [bigint] NULL,
	[STAM_FELD10_ID] [bigint] NULL,
	[STAM_FELD11_ID] [bigint] NULL,
	[STAM_FELD12_ID] [bigint] NULL,
	[STAM_FELD13_ID] [bigint] NULL,
	[STAM_FELD14_ID] [bigint] NULL,
	[STAM_FELD15_ID] [bigint] NULL,
	[STAM_FELD16_ID] [bigint] NULL,
	[DA_FELD17] [datetime] NULL,
	[DA_FELD18] [datetime] NULL,
	[STAM_FELD_NST_AUFTEILUNG_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[HARDWARE_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[NST_STAM_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[NST_STAM_VIEW]
AS
SELECT        dbo.NST_STAM_KENNUNG.ID_NST_STAM AS ID, dbo.NST_STAM_KENNUNG.IN_VIEW, dbo.NST_STAM_KENNUNG.STARTRUFNUMMER AS RUFNUMMER, dbo.NST_STAM_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO,
                          dbo.RECH_JJJJ_EDI_RFN.CH_RFN, dbo.NST_STAM_DATEN.HAUPTRFN AS Hauptrufnummer, dbo.MANDANT.VC_NAME AS Mandant, dbo.STAM_KST.VC_NAME AS KST, dbo.DATEN_PERSON.VC_NAME AS PERSON, 
                         dbo.STAM_FELD1.VC_NAME AS Feld1, dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, 
                         dbo.STAM_FELD6.VC_NAME AS Feld6, dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, 
                         dbo.STAM_FELD11.VC_NAME AS Feld11, dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, 
                         dbo.STAM_FELD16.VC_NAME AS Feld16, dbo.NST_STAM_DATEN.DA_FELD17 AS Feld17, dbo.NST_STAM_DATEN.DA_FELD18 AS FELD18, dbo.STAM_FELD_NST_AUFTEILUNG.VC_NAME AS FELD_NST_AUFTEILUNG, 
                         dbo.NST_STAM_PRUEF.DA_AN_DATUM AS ANMELDEDATUM, dbo.NST_STAM_PRUEF.DA_AB_DATUM AS ABMELDEDATUM, dbo.DATEN_MAIL.VC_MAIL AS EMail, dbo.NST_STAM_PRUEF.DA_RE_DATUM AS LETZTERECHNUNG, 
                         T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.NST_STAM_KENNUNG.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.NST_STAM_KENNUNG.EDIT_DAT
FROM            dbo.NST_STAM_DATEN LEFT OUTER JOIN
                         dbo.NST_STAM_KENNUNG ON dbo.NST_STAM_DATEN.NST_STAM_ID = dbo.NST_STAM_KENNUNG.ID_NST_STAM LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.NST_STAM_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.NST_STAM_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.MANDANT ON dbo.NST_STAM_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.NST_STAM_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.NST_STAM_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.NST_STAM_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.NST_STAM_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.NST_STAM_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.NST_STAM_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.NST_STAM_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.NST_STAM_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.NST_STAM_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.NST_STAM_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.NST_STAM_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.NST_STAM_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.NST_STAM_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.NST_STAM_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.NST_STAM_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.NST_STAM_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.NST_STAM_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD_NST_AUFTEILUNG ON dbo.NST_STAM_DATEN.STAM_FELD_NST_AUFTEILUNG_ID = dbo.STAM_FELD_NST_AUFTEILUNG.ID_STAM_FELD_NST_AUFTEILUNG LEFT OUTER JOIN
                         dbo.NST_STAM_PRUEF ON dbo.NST_STAM_KENNUNG.ID_NST_STAM = dbo.NST_STAM_PRUEF.NST_STAM_ID LEFT OUTER JOIN
                         dbo.STAM_KST ON dbo.NST_STAM_DATEN.KST_ID = dbo.STAM_KST.ID_KST LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.NST_STAM_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.NST_STAM_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.NST_STAM_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  View [dbo].[PERSON_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[PERSON_VIEW]
AS
SELECT        dbo.DATEN_PERSON.ID_PERSON, dbo.DATEN_PERSON.IN_VIEW, dbo.DATEN_PERSON.VC_PERSONALNUMMER, dbo.DATEN_PERSON.VC_NAME, dbo.DATEN_PERSON.CH_ANREDE, 
                         dbo.DATEN_PERSON.VC_VORNAME, dbo.DATEN_PERSON.VC_NACHNAME, dbo.DATEN_PERSON.MAIL_ID AS AN_MAIL_ID, dbo.DATEN_MAIL.VC_MAIL AS VC_AN_MAIL, User_New.CH_LOGIN AS C_USER_NEW, 
                         dbo.DATEN_PERSON.NEW_DAT, User_Edit.CH_LOGIN AS C_USER_EDIT, dbo.DATEN_PERSON.EDIT_DAT
FROM            dbo.DATEN_PERSON LEFT OUTER JOIN
                         dbo.TEL_USER AS User_New ON dbo.DATEN_PERSON.NEW_U_ID = User_New.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS User_Edit ON dbo.DATEN_PERSON.EDIT_U_ID = User_Edit.ID_USER LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.DATEN_PERSON.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL
GO
/****** Object:  View [dbo].[RECHPRUEFUNG_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[RECHPRUEFUNG_VIEW]
AS
SELECT        dbo.RECH_JJJJ_KENNUNG.ID_RECH AS ID, dbo.RECH_JJJJ_KENNUNG.IN_VIEW, dbo.RECH_JJJJ_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, 
                         CASE WHEN STAM_JJJJ_DATEN.hauptrfn IS NULL THEN rech_jjjj_daten.hauptrfn ELSE STAM_JJJJ_DATEN.hauptrfn END AS HAUPTRFN, dbo.MANDANT.VC_NAME AS Mandant, dbo.RECH_JJJJ_KENNUNG.RENU, 
                         dbo.RECH_JJJJ_KENNUNG.CH_TYP_RB, CASE WHEN rech_jjjj_gebuehren.kst_id >= 0 THEN KSTG.vc_name ELSE KSTS.vc_name END AS KST, 
                         CASE WHEN rech_jjjj_gebuehren.mkst = 0 THEN 'EINFACH' ELSE CASE WHEN rech_jjjj_gebuehren.mkst = 1 THEN 'MEHRFACH' ELSE CASE WHEN rech_jjjj_gebuehren.mkst = 2 THEN '% - ANTEIL' ELSE 'EINFACH' END END END
                          AS MKST, dbo.DATEN_PERSON.VC_NAME AS PERSON, dbo.STAM_KENNUNG.ID_STAM AS STAM_ID, dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ AS STAM_JJJJ_ID, dbo.STAM_FELD1.VC_NAME AS Feld1, 
                         dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, dbo.STAM_FELD6.VC_NAME AS Feld6, 
                         dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, dbo.STAM_FELD11.VC_NAME AS Feld11, 
                         dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, dbo.STAM_FELD16.VC_NAME AS Feld16, 
                         dbo.STAM_JJJJ_DATEN.DA_FELD17 AS Feld17, dbo.STAM_JJJJ_DATEN.DA_FELD18 AS FELD18, dbo.STAM_PRUEF.DA_AN_DATUM AS ANMELDEDATUM, dbo.STAM_PRUEF.DA_AB_DATUM AS ABMELDEDATUM, 
                         dbo.RECH_JJJJ_KENNUNG.DA_RECHDATUM, dbo.RECH_JJJJ_DATEN.FAELLIG, dbo.RECH_JJJJ_DATEN.ZAHLART, dbo.RECH_JJJJ_DATEN.ABSGRUPPE, dbo.RECH_JJJJ_FREIGABE.VC_FREIGABE AS FREIGABE, 
                         dbo.RECH_JJJJ_DATEN.FREIGABE_DAT AS FREIGABEDATUM, T_USER_FREIGABE.CH_LOGIN AS FREINAME, dbo.RECH_JJJJ_GEBUEHREN.FIX, dbo.RECH_JJJJ_GEBUEHREN.[VAR], dbo.RECH_JJJJ_GEBUEHREN.EIN, 
                         dbo.RECH_JJJJ_GEBUEHREN.FREMD, dbo.RECH_JJJJ_GEBUEHREN.RABATT, dbo.RECH_JJJJ_GEBUEHREN.GUTSCHRIFT, dbo.RECH_JJJJ_GEBUEHREN.NETTO, dbo.RECH_JJJJ_GEBUEHREN.USTPFL, 
                         dbo.RECH_JJJJ_GEBUEHREN.UST_FIX, dbo.RECH_JJJJ_GEBUEHREN.UST_VAR, dbo.RECH_JJJJ_GEBUEHREN.UST_EIN, dbo.RECH_JJJJ_GEBUEHREN.UST_FREMD, dbo.RECH_JJJJ_GEBUEHREN.UST_RABATT, 
                         dbo.RECH_JJJJ_GEBUEHREN.UST_GUTSCHRIFT, dbo.RECH_JJJJ_GEBUEHREN.UST, dbo.RECH_JJJJ_GEBUEHREN.BRUTTO, dbo.RECH_JJJJ_GEBUEHREN.ALIB, dbo.RECH_JJJJ_GEBUEHREN.MPAY, 
                         dbo.RECH_JJJJ_GEBUEHREN.UEBERTRAG, dbo.RECH_JJJJ_GEBUEHREN.GESAMT, dbo.RECH_JJJJ_GEBUEHREN.WAEHRUNG, dbo.RECH_JJJJ_GEBUEHREN.PAUSCHAL, dbo.RECH_JJJJ_GEBUEHREN.NETTO_SOLL, 
                         dbo.STAM_PRUEF.GRENZWERTFIX, dbo.STAM_PRUEF.GRENZWERTVARIABEL, dbo.STAM_PRUEF.ERSTATTUNG, dbo.RECH_JJJJ_KENNUNG.CH_RECHJAHR, dbo.RECH_JJJJ_KENNUNG.CH_RECHMONAT, 
                         dbo.RECH_JJJJ_DATEN.INDIKATOR, dbo.RECH_JJJJ_DATEN.VONDATE, dbo.RECH_JJJJ_DATEN.BISDAT AS BISDATE, dbo.RECH_JJJJ_DATEN.ZUSTAND, dbo.RECH_JJJJ_TYP.IN_RECHTYP, 
                         dbo.DATEN_MAIL.VC_MAIL AS EMail, T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.RECH_JJJJ_KENNUNG.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.RECH_JJJJ_KENNUNG.EDIT_DAT
FROM            dbo.RECH_JJJJ_GEBUEHREN LEFT OUTER JOIN
                         dbo.RECH_JJJJ_KENNUNG ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_GEBUEHREN.RECH_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_DATEN ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_DATEN.RECH_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.RECH_JJJJ_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.STAM_JJJJ_KENNUNG ON dbo.RECH_JJJJ_KENNUNG.STAM_JJJJ_ID = dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ LEFT OUTER JOIN
                         dbo.STAM_JJJJ_DATEN ON dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ = dbo.STAM_JJJJ_DATEN.STAM_JJJJ_ID LEFT OUTER JOIN
                         dbo.MANDANT ON dbo.STAM_JJJJ_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.STAM_JJJJ_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.STAM_KENNUNG ON dbo.STAM_JJJJ_KENNUNG.STAM_ID = dbo.STAM_KENNUNG.ID_STAM LEFT OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.STAM_JJJJ_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.STAM_JJJJ_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.STAM_JJJJ_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.STAM_JJJJ_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.STAM_JJJJ_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.STAM_JJJJ_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.STAM_JJJJ_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.STAM_JJJJ_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.STAM_JJJJ_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.STAM_JJJJ_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.STAM_JJJJ_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.STAM_JJJJ_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.STAM_JJJJ_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.STAM_JJJJ_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.STAM_JJJJ_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.STAM_JJJJ_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_PRUEF ON dbo.STAM_KENNUNG.ID_STAM = dbo.STAM_PRUEF.STAM_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_FREIGABE ON dbo.RECH_JJJJ_DATEN.RECH_FREIGABE_ID = dbo.RECH_JJJJ_FREIGABE.ID_RECH_FREIGABE LEFT OUTER JOIN
                         dbo.RECH_JJJJ_TYP ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_TYP.RECH_ID LEFT OUTER JOIN
                         dbo.STAM_KST AS KSTG ON dbo.RECH_JJJJ_GEBUEHREN.KST_ID = KSTG.ID_KST LEFT OUTER JOIN
                         dbo.STAM_KST AS KSTS ON dbo.STAM_JJJJ_DATEN.KST_ID = KSTS.ID_KST LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_FREIGABE ON dbo.RECH_JJJJ_DATEN.FREIGABE_NAME_ID = T_USER_FREIGABE.ID_USER LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.RECH_JJJJ_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.STAM_JJJJ_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.RECH_JJJJ_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.RECH_JJJJ_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
WHERE        (dbo.RECH_JJJJ_GEBUEHREN.MKST = 0) OR
                         (dbo.RECH_JJJJ_GEBUEHREN.MKST = 1)
GO
/****** Object:  Table [dbo].[RECH_JJJJ_BEM]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_BEM](
	[ID_RECH_BEM] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[RECH_ID] [bigint] NOT NULL,
	[VC_BEMERKUNG] [nvarchar](100) NOT NULL,
	[SI_REIHENFOLGE] [smallint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[RECH_JJJJ_BEMERKUNG_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[RECH_JJJJ_BEMERKUNG_VIEW]
AS
SELECT        dbo.RECH_JJJJ_BEM.NEW_DAT, dbo.TEL_USER.CH_LOGIN, dbo.RECH_JJJJ_BEM.VC_BEMERKUNG, dbo.RECH_JJJJ_BEM.RECH_ID, dbo.RECH_JJJJ_BEM.SI_REIHENFOLGE
FROM            dbo.RECH_JJJJ_BEM LEFT OUTER JOIN
                         dbo.TEL_USER ON dbo.RECH_JJJJ_BEM.NEW_U_ID = dbo.TEL_USER.ID_USER
WHERE        (dbo.RECH_JJJJ_BEM.IN_VIEW = 0)
GO
/****** Object:  View [dbo].[REK_VORMONAT_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[REK_VORMONAT_VIEW]
AS
SELECT        dbo.RECH_JJJJ_KENNUNG.ID_RECH AS VORMONATID, dbo.RECH_JJJJ_KENNUNG.FKTO AS VORMONATFKTO, BKTO.VC_NAME AS VORMONATBKTO, RFN.CH_RFN AS VORMONATRFN, 
                         dbo.RECH_JJJJ_KENNUNG.RENU AS VORMONATRENU, dbo.RECH_JJJJ_GEBUEHREN.FIX AS VORMONATFIX, dbo.RECH_JJJJ_GEBUEHREN.[VAR] AS VORMONATVAR, 
                         dbo.RECH_JJJJ_GEBUEHREN.EIN AS VORMONATEIN, dbo.RECH_JJJJ_KENNUNG.CH_RECHMONAT AS VORMONATMONAT, dbo.RECH_JJJJ_KENNUNG.CH_RECHJAHR AS VORMONATJAHR
FROM            dbo.RECH_JJJJ_KENNUNG INNER JOIN
                         dbo.STAM_BKTO AS BKTO ON BKTO.ID_BKTO = dbo.RECH_JJJJ_KENNUNG.BKTO_ID INNER JOIN
                         dbo.RECH_JJJJ_EDI_RFN AS RFN ON RFN.ID_RFN = dbo.RECH_JJJJ_KENNUNG.RFN_ID INNER JOIN
                         dbo.RECH_JJJJ_GEBUEHREN ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_GEBUEHREN.RECH_ID
GO
/****** Object:  Table [dbo].[SEMV]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SEMV](
	[ID_SEMV] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VERSANDDATUM] [datetime] NULL,
	[SEMV_VIEW_INFO_ID] [bigint] NOT NULL,
	[USER_ID] [bigint] NOT NULL,
	[BCC] [smallint] NOT NULL,
	[MAILSTATUS] [nvarchar](60) NOT NULL,
	[SEMV_MAILTEXT_ID] [bigint] NULL,
	[SEMV_RECHDATA_ID] [bigint] NULL,
	[SEMV_EPOSDATA_ID] [bigint] NULL,
	[SEMV_EVNDATA_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[SEMV_SONDERDATA_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SEMV_MAILSTATUS]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SEMV_MAILSTATUS](
	[ID_MAILSTATUS] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[SEMV_ID] [bigint] NULL,
	[RECH_ID] [bigint] NULL,
	[STATUS] [nvarchar](60) NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[SEMV_MAILS_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[SEMV_MAILS_VIEW]
AS
SELECT        dbo.SEMV.ID_SEMV AS ID, dbo.SEMV.VERSANDDATUM, dbo.SEMV_MAILSTATUS.STATUS AS MAILSTATUS, dbo.RECH_JJJJ_KENNUNG.FKTO, dbo.DATEN_PERSON.VC_NAME AS PERSON, 
                         dbo.DATEN_MAIL.VC_MAIL AS EMAIL, dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.RECH_JJJJ_KENNUNG.RENU, dbo.RECH_JJJJ_KENNUNG.DA_RECHDATUM, T_USER_NEW.CH_LOGIN AS C_USER_NEW, 
                         dbo.SEMV.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.SEMV.EDIT_DAT
FROM            dbo.SEMV LEFT OUTER JOIN
                         dbo.SEMV_MAILSTATUS ON dbo.SEMV.ID_SEMV = dbo.SEMV_MAILSTATUS.SEMV_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_KENNUNG ON dbo.SEMV_MAILSTATUS.RECH_ID = dbo.RECH_JJJJ_KENNUNG.ID_RECH LEFT OUTER JOIN
                         dbo.STAM_JJJJ_DATEN ON dbo.RECH_JJJJ_KENNUNG.STAM_JJJJ_ID = dbo.STAM_JJJJ_DATEN.STAM_JJJJ_ID LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.STAM_JJJJ_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.STAM_JJJJ_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.RECH_JJJJ_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.SEMV.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.SEMV.EDIT_U_ID = T_USER_EDIT.ID_USER
WHERE        (dbo.SEMV.IN_VIEW = 0)
GO
/****** Object:  Table [dbo].[SEMV_EPOSDATA]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SEMV_EPOSDATA](
	[ID_SEMV_EPOSDATA] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[EPOS_ACTIVE] [smallint] NOT NULL,
	[EPOS_RECH_MODUL] [nvarchar](35) NOT NULL,
	[EPOS_RECH_VIEW] [nvarchar](35) NOT NULL,
	[RECH_OBJECT] [image] NULL,
	[RECH_TABLE] [image] NULL,
	[EPOS_VIEW] [nvarchar](35) NOT NULL,
	[EPOS_TABLE] [image] NULL,
	[EPOS_OBJECT] [image] NULL,
	[EPOS_FORMAT] [nvarchar](35) NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SEMV_EVNDATA]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SEMV_EVNDATA](
	[ID_SEMV_EVNDATA] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[EVN_ACTIVE] [smallint] NOT NULL,
	[EVN_RECH_MODUL] [nvarchar](35) NOT NULL,
	[EVN_RECH_VIEW] [nvarchar](35) NOT NULL,
	[RECH_OBJECT] [image] NULL,
	[RECH_TABLE] [image] NULL,
	[EVN_VIEW] [nvarchar](35) NOT NULL,
	[EVN_OBJECT] [image] NULL,
	[EVN_TABLE] [image] NULL,
	[EVN_FORMAT] [nvarchar](35) NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SEMV_RECHDATA]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SEMV_RECHDATA](
	[ID_SEMV_RECHDATA] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[RECH_ACTIVE] [smallint] NOT NULL,
	[RECH_MODUL] [nvarchar](35) NOT NULL,
	[RECH_VIEW] [nvarchar](35) NOT NULL,
	[RECH_OBJECT] [image] NULL,
	[RECH_TABLE] [image] NULL,
	[RECH_FORMAT] [nvarchar](35) NOT NULL,
	[MITEPOS] [smallint] NULL,
	[MITBEMERKUNG] [smallint] NULL,
	[MITGKU] [smallint] NULL,
	[MITNST] [smallint] NULL,
	[MITABWEICHUNG] [smallint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[RECH_MITDETAILRECH] [smallint] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SEMV_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SEMV_VIEW_INFO](
	[ID_SEMV_VIEW_INFO] [bigint] IDENTITY(1,1) NOT NULL,
	[CH_RECHJAHR] [nvarchar](4) NULL,
	[CH_RECHMONAT] [nvarchar](2) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SEMV_SONDERDATA]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SEMV_SONDERDATA](
	[ID_SEMV_SONDERDATA] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NULL,
	[RECH_ACTIVE] [smallint] NOT NULL,
	[RECH_MODUL] [varchar](35) NOT NULL,
	[RECH_VIEW] [varchar](35) NOT NULL,
	[RECH_OBJECT] [image] NULL,
	[RECH_TABLE] [image] NULL,
	[RECH_FORMAT] [varchar](35) NOT NULL,
	[MITEPOS] [smallint] NULL,
	[MITBEMERKUNG] [smallint] NULL,
	[MITGKU] [smallint] NULL,
	[MITNST] [smallint] NULL,
	[MITABWEICHUNG] [smallint] NULL,
	[NEW_U_ID] [bigint] NULL,
	[NEW_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID_SEMV_SONDERDATA] 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] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SEMV_MAILTEXT]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SEMV_MAILTEXT](
	[ID_SEMV_MAILTEXT] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[FORMATHTML] [smallint] NOT NULL,
	[FORMATZIP] [smallint] NOT NULL,
	[BETREFFTEXT] [nvarchar](60) NOT NULL,
	[MAILTEXT] [varchar](max) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  View [dbo].[SEMV_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE   VIEW [dbo].[SEMV_VIEW] (ID, IN_VIEW, VERSANDDATUM, MAILSTATUS, USERNAME, CH_RECHJAHR, CH_RECHMONAT, BETREFFTEXT, BCC, HTML, ZIP, RECH_ACTIVE, RECH_MODUL, RECH_VIEW, RECH_FORMAT, MITGKU, EPOS_ACTIVE, EPOS_RECH_MODUL, EPOS_RECH_VIEW, EPOS_VIEW, EPOS_FORMAT, EVN_ACTIVE, EVN_RECH_MODUL, EVN_RECH_VIEW, EVN_VIEW, EVN_FORMAT, SONDER_ACTIVE, SONDER_MODUL, SONDER_VIEW, SONDER_FORMAT, C_USER_NEW, NEW_DAT, C_USER_EDIT, EDIT_DAT) AS select semv.id_semv, semv.IN_VIEW AS IN_VIEW, semv.versanddatum, semv.mailstatus, tel_user.ch_login, semv_view_info.CH_RECHJAHR, semv_view_info.CH_RECHMONAT, semv_mailtext.betrefftext, semv.bcc, semv_mailtext.formathtml, semv_mailtext.formatzip, semv_rechdata.rech_active, semv_rechdata.rech_modul, semv_rechdata.rech_view, semv_rechdata.rech_format, semv_rechdata.mitgku, semv_eposdata.epos_active, semv_eposdata.epos_rech_modul, semv_eposdata.epos_rech_view, semv_eposdata.epos_view, semv_eposdata.epos_format, semv_evndata.evn_active, semv_evndata.evn_rech_modul, semv_evndata.evn_rech_view, semv_evndata.evn_view, semv_evndata.evn_format, SEMV_SONDERDATA.rech_active, SEMV_SONDERDATA.rech_modul, SEMV_SONDERDATA.rech_view, SEMV_SONDERDATA.rech_format, T_USER_NEW.CH_LOGIN AS C_USER_NEW, semv.new_dat, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, semv.edit_dat from semv left join tel_user on tel_user.id_user = semv.user_id left join semv_view_info on semv.semv_view_info_id = semv_view_info.id_semv_view_info left join semv_mailtext on semv.semv_mailtext_id = semv_mailtext.id_semv_mailtext left join semv_rechdata on semv.semv_rechdata_id = semv_rechdata.id_semv_rechdata left join semv_eposdata on semv.semv_eposdata_id = semv_eposdata.id_semv_eposdata left join semv_evndata on semv.semv_evndata_id = semv_evndata.id_semv_evndata left join SEMV_SONDERDATA on semv.SEMV_SONDERDATA_ID = SEMV_SONDERDATA.ID_SEMV_SONDERDATA left join TEL_USER AS T_USER_NEW ON SEMV.NEW_U_ID = T_USER_NEW.ID_USER left join TEL_USER AS T_USER_EDIT ON SEMV.EDIT_U_ID = T_USER_EDIT.ID_USER;
GO
/****** Object:  Table [dbo].[STAM_BEM]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_BEM](
	[ID_STA_BEM] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[STAM_ID] [bigint] NOT NULL,
	[VC_BEMERKUNG] [nvarchar](100) NOT NULL,
	[SI_REIHENFOLGE] [smallint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[STAM_BEMERKUNG_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[STAM_BEMERKUNG_VIEW]
AS
SELECT        dbo.STAM_BEM.NEW_DAT, dbo.TEL_USER.CH_LOGIN, dbo.STAM_BEM.VC_BEMERKUNG, dbo.STAM_BEM.STAM_ID, dbo.STAM_BEM.SI_REIHENFOLGE
FROM            dbo.STAM_BEM LEFT OUTER JOIN
                         dbo.TEL_USER ON dbo.STAM_BEM.NEW_U_ID = dbo.TEL_USER.ID_USER
WHERE        (dbo.STAM_BEM.IN_VIEW = 0)
GO
/****** Object:  Table [dbo].[STAM_SAFE]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_SAFE](
	[STAM_ID] [bigint] NOT NULL,
	[VC_SAFEFELD1] [nvarchar](35) NULL,
	[VC_SAFEFELD2] [nvarchar](35) NULL,
	[VC_SAFEFELD3] [nvarchar](35) NULL,
	[VC_SAFEFELD4] [nvarchar](35) NULL,
	[VC_SAFEFELD5] [nvarchar](35) NULL,
	[VC_SAFEFELD6] [nvarchar](35) NULL,
	[VC_SAFEFELD7] [nvarchar](35) NULL,
	[VC_SAFEFELD8] [nvarchar](35) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[STAM_RECH_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[STAM_RECH_VIEW]
AS
SELECT        dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ AS ID, dbo.STAM_JJJJ_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, 
                         dbo.STAM_JJJJ_DATEN.HAUPTRFN AS Hauptrufnummer, dbo.STAM_KST.VC_NAME AS KST, dbo.MANDANT.VC_NAME AS Mandant, dbo.DATEN_PERSON.VC_NAME AS PERSON, 
                         dbo.STAM_FELD1.VC_NAME AS Feld1, dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, 
                         dbo.STAM_FELD6.VC_NAME AS Feld6, dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, 
                         dbo.STAM_FELD11.VC_NAME AS Feld11, dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, 
                         dbo.STAM_FELD16.VC_NAME AS Feld16, dbo.STAM_JJJJ_DATEN.DA_FELD17 AS Feld17, dbo.STAM_JJJJ_DATEN.DA_FELD18 AS FELD18, dbo.DATEN_MAIL.VC_MAIL AS EMail, 
                         dbo.STAM_JJJJ_KENNUNG.CH_RECHJAHR, dbo.STAM_JJJJ_KENNUNG.CH_RECHMONAT, T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.STAM_JJJJ_KENNUNG.NEW_DAT, 
                         T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.STAM_JJJJ_KENNUNG.EDIT_DAT
FROM            dbo.STAM_JJJJ_DATEN LEFT OUTER JOIN
                         dbo.STAM_JJJJ_KENNUNG ON dbo.STAM_JJJJ_DATEN.STAM_JJJJ_ID = dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.STAM_JJJJ_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.STAM_JJJJ_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.MANDANT ON dbo.STAM_JJJJ_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.STAM_JJJJ_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.STAM_JJJJ_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.STAM_JJJJ_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.STAM_JJJJ_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.STAM_JJJJ_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.STAM_JJJJ_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.STAM_JJJJ_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.STAM_JJJJ_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.STAM_JJJJ_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.STAM_JJJJ_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.STAM_JJJJ_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.STAM_JJJJ_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.STAM_JJJJ_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.STAM_JJJJ_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.STAM_JJJJ_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.STAM_JJJJ_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.STAM_JJJJ_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_PRUEF ON dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ = dbo.STAM_PRUEF.STAM_ID LEFT OUTER JOIN
                         dbo.STAM_SAFE ON dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ = dbo.STAM_SAFE.STAM_ID LEFT OUTER JOIN
                         dbo.STAM_KST ON dbo.STAM_JJJJ_DATEN.KST_ID = dbo.STAM_KST.ID_KST LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.STAM_JJJJ_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.STAM_JJJJ_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.STAM_JJJJ_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
WHERE        (dbo.STAM_JJJJ_KENNUNG.IN_VIEW = 0)
GO
/****** Object:  View [dbo].[STAM_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[STAM_VIEW]
AS
SELECT        dbo.STAM_KENNUNG.ID_STAM AS ID, dbo.STAM_KENNUNG.IN_VIEW, dbo.STAM_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, 
                         dbo.STAM_DATEN.HAUPTRFN AS Hauptrufnummer, dbo.MANDANT.VC_NAME AS Mandant, dbo.STAM_KST.VC_NAME AS KST, dbo.DATEN_PERSON.VC_NAME AS PERSON, dbo.STAM_FELD1.VC_NAME AS Feld1, 
                         dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, dbo.STAM_FELD6.VC_NAME AS Feld6, 
                         dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, dbo.STAM_FELD11.VC_NAME AS Feld11, 
                         dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, dbo.STAM_FELD16.VC_NAME AS Feld16, 
                         dbo.STAM_DATEN.DA_FELD17 AS Feld17, dbo.STAM_DATEN.DA_FELD18 AS FELD18, dbo.STAM_PRUEF.DA_AN_DATUM AS ANMELDEDATUM, dbo.STAM_PRUEF.DA_AB_DATUM AS ABMELDEDATUM, 
                         dbo.DATEN_MAIL.VC_MAIL AS EMail, dbo.STAM_PRUEF.GRENZWERTFIX, dbo.STAM_PRUEF.GRENZWERTVARIABEL, dbo.STAM_PRUEF.ERSTATTUNG, dbo.STAM_PRUEF.DA_RE_DATUM AS LETZTERECHNUNG,
                          T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.STAM_KENNUNG.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.STAM_KENNUNG.EDIT_DAT
FROM            dbo.STAM_DATEN LEFT OUTER JOIN
                         dbo.STAM_KENNUNG ON dbo.STAM_DATEN.STAM_ID = dbo.STAM_KENNUNG.ID_STAM LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.STAM_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.STAM_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.MANDANT ON dbo.STAM_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.STAM_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.STAM_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.STAM_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.STAM_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.STAM_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.STAM_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.STAM_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.STAM_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.STAM_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.STAM_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.STAM_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.STAM_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.STAM_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.STAM_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.STAM_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.STAM_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.STAM_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_PRUEF ON dbo.STAM_KENNUNG.ID_STAM = dbo.STAM_PRUEF.STAM_ID LEFT OUTER JOIN
                         dbo.STAM_KST ON dbo.STAM_DATEN.KST_ID = dbo.STAM_KST.ID_KST LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.STAM_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.STAM_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.STAM_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  Table [dbo].[EPL]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPL](
	[ID_EPL] [bigint] NOT NULL,
	[IN_VIEW] [bigint] NOT NULL,
	[BKTO_ID] [bigint] NULL,
	[ARTIKELNR] [varchar](35) NOT NULL,
	[RFN_ID] [bigint] NULL,
	[TEXT] [varchar](256) NULL,
	[EPREIS] [decimal](12, 4) NULL,
	[WAEHRUNG] [varchar](3) NULL,
	[MEINHEIT] [varchar](4) NULL,
	[NEW_DAT] [datetime] NULL,
	[NEW_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL,
 CONSTRAINT [PK_EPL] PRIMARY KEY CLUSTERED 
(
	[ID_EPL] 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
/****** Object:  View [dbo].[EPL_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[EPL_VIEW]
AS
SELECT DISTINCT 
                         dbo.EPL.ID_EPL, dbo.EPL.IN_VIEW, dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.EPL.ARTIKELNR, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, dbo.EPL.TEXT, dbo.EPL.EPREIS, dbo.EPL.WAEHRUNG, dbo.EPL.MEINHEIT, 
                         NewU.CH_LOGIN, dbo.EPL.NEW_DAT, EditU.CH_LOGIN AS Expr1, dbo.EPL.EDIT_DAT
FROM            dbo.EPL LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.EPL.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.EPL.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.TEL_USER AS NewU ON dbo.EPL.NEW_U_ID = NewU.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS EditU ON dbo.EPL.EDIT_U_ID = EditU.ID_USER
GO
/****** Object:  View [dbo].[RECH_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[RECH_VIEW]
AS
SELECT        dbo.RECH_JJJJ_KENNUNG.ID_RECH AS ID, dbo.RECH_JJJJ_KENNUNG.IN_VIEW, dbo.RECH_JJJJ_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, 
                         CASE WHEN STAM_JJJJ_DATEN.hauptrfn IS NULL THEN rech_jjjj_daten.hauptrfn ELSE STAM_JJJJ_DATEN.hauptrfn END AS HAUPTRFN, dbo.MANDANT.VC_NAME AS Mandant, dbo.RECH_JJJJ_KENNUNG.RENU, 
                         dbo.RECH_JJJJ_KENNUNG.CH_TYP_RB, CASE WHEN rech_jjjj_gebuehren.kst_id >= 0 THEN KSTG.vc_name ELSE KSTS.vc_name END AS KST, 
                         CASE WHEN rech_jjjj_gebuehren.mkst = 0 THEN 'EINFACH' ELSE CASE WHEN rech_jjjj_gebuehren.mkst = 1 THEN 'MEHRFACH' ELSE CASE WHEN rech_jjjj_gebuehren.mkst = 2 THEN '% - ANTEIL' ELSE 'EINFACH' END END END
                          AS MKST, dbo.DATEN_PERSON.VC_NAME AS PERSON, dbo.STAM_KENNUNG.ID_STAM AS stam_id, dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ AS stam_jjjj_id, dbo.STAM_FELD1.VC_NAME AS Feld1, 
                         dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, dbo.STAM_FELD6.VC_NAME AS Feld6, 
                         dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, dbo.STAM_FELD11.VC_NAME AS Feld11, 
                         dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, dbo.STAM_FELD16.VC_NAME AS Feld16, 
                         dbo.STAM_JJJJ_DATEN.DA_FELD17 AS Feld17, dbo.STAM_JJJJ_DATEN.DA_FELD18 AS FELD18, dbo.STAM_FELD_NST_AUFTEILUNG.VC_NAME AS FELD_NST_AUFTEILUNG, 
                         dbo.STAM_JJJJ_DATEN.STAM_FELD_NST_IS_AUFGETEILT AS FELD_NST_IS_AUFGETEILT, dbo.STAM_PRUEF.DA_AN_DATUM AS ANMELDEDATUM, dbo.STAM_PRUEF.DA_AB_DATUM AS ABMELDEDATUM, 
                         dbo.RECH_JJJJ_KENNUNG.DA_RECHDATUM, dbo.STAM_JJJJ_DATEN.CH_MULTISIM, dbo.RECH_JJJJ_DATEN.FAELLIG, dbo.RECH_JJJJ_DATEN.ZAHLART, dbo.RECH_JJJJ_DATEN.ABSGRUPPE, 
                         dbo.RECH_JJJJ_FREIGABE.VC_FREIGABE AS freigabe, dbo.RECH_JJJJ_DATEN.FREIGABE_DAT AS freigabedatum, T_USER_FREIGABE.CH_LOGIN AS FREINAME, dbo.RECH_JJJJ_GEBUEHREN.FIX, 
                         dbo.RECH_JJJJ_GEBUEHREN.[VAR], dbo.RECH_JJJJ_GEBUEHREN.EIN, dbo.RECH_JJJJ_GEBUEHREN.FREMD, dbo.RECH_JJJJ_GEBUEHREN.RABATT, dbo.RECH_JJJJ_GEBUEHREN.GUTSCHRIFT, 
                         dbo.RECH_JJJJ_GEBUEHREN.NETTO, dbo.RECH_JJJJ_GEBUEHREN.USTPFL, dbo.RECH_JJJJ_GEBUEHREN.UST_FIX, dbo.RECH_JJJJ_GEBUEHREN.UST_VAR, dbo.RECH_JJJJ_GEBUEHREN.UST_EIN, 
                         dbo.RECH_JJJJ_GEBUEHREN.UST_FREMD, dbo.RECH_JJJJ_GEBUEHREN.UST_RABATT, dbo.RECH_JJJJ_GEBUEHREN.UST_GUTSCHRIFT, dbo.RECH_JJJJ_GEBUEHREN.UST, dbo.RECH_JJJJ_GEBUEHREN.BRUTTO, 
                         dbo.RECH_JJJJ_GEBUEHREN.ALIB, dbo.RECH_JJJJ_GEBUEHREN.MPAY, dbo.RECH_JJJJ_GEBUEHREN.UEBERTRAG, dbo.RECH_JJJJ_GEBUEHREN.GESAMT, dbo.RECH_JJJJ_GEBUEHREN.WAEHRUNG, 
                         dbo.RECH_JJJJ_GEBUEHREN.PAUSCHAL, dbo.RECH_JJJJ_GEBUEHREN.NETTO_SOLL, dbo.RECH_JJJJ_KENNUNG.CH_RECHJAHR, dbo.RECH_JJJJ_KENNUNG.CH_RECHMONAT, dbo.RECH_JJJJ_DATEN.INDIKATOR, 
                         dbo.RECH_JJJJ_DATEN.VONDATE, dbo.RECH_JJJJ_DATEN.BISDAT AS bisdate, dbo.RECH_JJJJ_DATEN.ZUSTAND, dbo.RECH_JJJJ_TYP.IN_RECHTYP, dbo.DATEN_MAIL.VC_MAIL AS EMail, dbo.RECH_JJJJ_DATEN.GEBUCHT, 
                         T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.RECH_JJJJ_KENNUNG.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.RECH_JJJJ_KENNUNG.EDIT_DAT
FROM            dbo.RECH_JJJJ_GEBUEHREN LEFT OUTER JOIN
                         dbo.RECH_JJJJ_KENNUNG ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_GEBUEHREN.RECH_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_DATEN ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_DATEN.RECH_ID LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.RECH_JJJJ_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.STAM_JJJJ_KENNUNG ON dbo.RECH_JJJJ_KENNUNG.STAM_JJJJ_ID = dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ LEFT OUTER JOIN
                         dbo.STAM_JJJJ_DATEN ON dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ = dbo.STAM_JJJJ_DATEN.STAM_JJJJ_ID LEFT OUTER JOIN
                         dbo.MANDANT ON dbo.STAM_JJJJ_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.STAM_JJJJ_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.STAM_KENNUNG ON dbo.STAM_JJJJ_KENNUNG.STAM_ID = dbo.STAM_KENNUNG.ID_STAM LEFT OUTER JOIN
                         dbo.STAM_PRUEF ON dbo.STAM_KENNUNG.ID_STAM = dbo.STAM_PRUEF.STAM_ID LEFT OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.STAM_JJJJ_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.STAM_JJJJ_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.STAM_JJJJ_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.STAM_JJJJ_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.STAM_JJJJ_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.STAM_JJJJ_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.STAM_JJJJ_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.STAM_JJJJ_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.STAM_JJJJ_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.STAM_JJJJ_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.STAM_JJJJ_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.STAM_JJJJ_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.STAM_JJJJ_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.STAM_JJJJ_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.STAM_JJJJ_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.STAM_JJJJ_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD_NST_AUFTEILUNG ON dbo.STAM_JJJJ_DATEN.STAM_FELD_NST_AUFTEILUNG_ID = dbo.STAM_FELD_NST_AUFTEILUNG.ID_STAM_FELD_NST_AUFTEILUNG LEFT OUTER JOIN
                         dbo.RECH_JJJJ_FREIGABE ON dbo.RECH_JJJJ_DATEN.RECH_FREIGABE_ID = dbo.RECH_JJJJ_FREIGABE.ID_RECH_FREIGABE LEFT OUTER JOIN
                         dbo.RECH_JJJJ_TYP ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_TYP.RECH_ID LEFT OUTER JOIN
                         dbo.STAM_KST AS KSTG ON dbo.RECH_JJJJ_GEBUEHREN.KST_ID = KSTG.ID_KST LEFT OUTER JOIN
                         dbo.STAM_KST AS KSTS ON dbo.STAM_JJJJ_DATEN.KST_ID = KSTS.ID_KST LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_FREIGABE ON dbo.RECH_JJJJ_DATEN.FREIGABE_NAME_ID = T_USER_FREIGABE.ID_USER LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.RECH_JJJJ_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.STAM_JJJJ_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.RECH_JJJJ_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.RECH_JJJJ_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  View [dbo].[STAM_SAFE_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[STAM_SAFE_VIEW]
AS
SELECT        dbo.STAM_KENNUNG.ID_STAM AS ID, dbo.STAM_KENNUNG.IN_VIEW, dbo.STAM_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, dbo.STAM_DATEN.HAUPTRFN AS Hauptrufnummer, 
                         dbo.MANDANT.VC_NAME AS Mandant, dbo.STAM_KST.VC_NAME AS KST, dbo.DATEN_PERSON.VC_NAME AS PERSON, dbo.STAM_FELD1.VC_NAME AS Feld1, dbo.STAM_FELD2.VC_NAME AS Feld2, 
                         dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, dbo.STAM_FELD6.VC_NAME AS Feld6, dbo.STAM_FELD7.VC_NAME AS Feld7, 
                         dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, dbo.STAM_FELD11.VC_NAME AS Feld11, dbo.STAM_FELD12.VC_NAME AS Feld12, 
                         dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, dbo.STAM_FELD16.VC_NAME AS Feld16, dbo.STAM_DATEN.DA_FELD17 AS Feld17, 
                         dbo.STAM_DATEN.DA_FELD18 AS FELD18, dbo.STAM_FELD_NST_AUFTEILUNG.VC_NAME AS FELD_NST_AUFTEILUNG, dbo.STAM_PRUEF.DA_AN_DATUM AS ANMELDEDATUM, 
                         dbo.STAM_PRUEF.DA_AB_DATUM AS ABMELDEDATUM, dbo.DATEN_MAIL.VC_MAIL AS EMail, dbo.STAM_PRUEF.GRENZWERTFIX, dbo.STAM_PRUEF.GRENZWERTVARIABEL, dbo.STAM_PRUEF.ERSTATTUNG, 
                         dbo.STAM_PRUEF.DA_RE_DATUM AS LETZTERECHNUNG, dbo.STAM_DATEN.CH_MULTISIM, dbo.STAM_SAFE.VC_SAFEFELD1 AS SAFEFELD1, dbo.STAM_SAFE.VC_SAFEFELD2 AS SAFEFELD2, 
                         dbo.STAM_SAFE.VC_SAFEFELD3 AS SAFEFELD3, dbo.STAM_SAFE.VC_SAFEFELD4 AS SAFEFELD4, dbo.STAM_SAFE.VC_SAFEFELD5 AS SAFEFELD5, dbo.STAM_SAFE.VC_SAFEFELD6 AS SAFEFELD6, 
                         dbo.STAM_SAFE.VC_SAFEFELD7 AS SAFEFELD7, dbo.STAM_SAFE.VC_SAFEFELD8 AS SAFEFELD8, T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.STAM_KENNUNG.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, 
                         dbo.STAM_KENNUNG.EDIT_DAT
FROM            dbo.STAM_DATEN LEFT OUTER JOIN
                         dbo.STAM_KENNUNG ON dbo.STAM_DATEN.STAM_ID = dbo.STAM_KENNUNG.ID_STAM LEFT OUTER JOIN
                         dbo.STAM_BKTO ON dbo.STAM_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN
                         dbo.RECH_JJJJ_EDI_RFN ON dbo.STAM_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN
                         dbo.MANDANT ON dbo.STAM_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN
                         dbo.DATEN_PERSON ON dbo.STAM_DATEN.PERSON_ID = dbo.DATEN_PERSON.ID_PERSON LEFT OUTER JOIN
                         dbo.STAM_FELD1 ON dbo.STAM_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD2 ON dbo.STAM_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD3 ON dbo.STAM_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD4 ON dbo.STAM_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD5 ON dbo.STAM_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD6 ON dbo.STAM_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD7 ON dbo.STAM_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD8 ON dbo.STAM_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD9 ON dbo.STAM_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD10 ON dbo.STAM_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD11 ON dbo.STAM_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD12 ON dbo.STAM_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD13 ON dbo.STAM_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD14 ON dbo.STAM_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD15 ON dbo.STAM_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD16 ON dbo.STAM_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN
                         dbo.STAM_FELD_NST_AUFTEILUNG ON dbo.STAM_DATEN.STAM_FELD_NST_AUFTEILUNG_ID = dbo.STAM_FELD_NST_AUFTEILUNG.ID_STAM_FELD_NST_AUFTEILUNG LEFT OUTER JOIN
                         dbo.STAM_PRUEF ON dbo.STAM_KENNUNG.ID_STAM = dbo.STAM_PRUEF.STAM_ID LEFT OUTER JOIN
                         dbo.STAM_SAFE ON dbo.STAM_KENNUNG.ID_STAM = dbo.STAM_SAFE.STAM_ID LEFT OUTER JOIN
                         dbo.STAM_KST ON dbo.STAM_DATEN.KST_ID = dbo.STAM_KST.ID_KST LEFT OUTER JOIN
                         dbo.DATEN_MAIL ON dbo.STAM_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_NEW ON dbo.STAM_KENNUNG.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS T_USER_EDIT ON dbo.STAM_KENNUNG.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  View [dbo].[BENUTZER_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[BENUTZER_VIEW]
AS
SELECT        dbo.TEL_USER.ID_USER AS ID, dbo.TEL_USER.IN_VIEW, dbo.TEL_USER.CH_LOGIN, dbo.TEL_USER.PERSON_ID, Person.CH_ANREDE, Person.VC_VORNAME, Person.VC_NACHNAME, dbo.TEL_USER.CH_PW, 
                         Person.MAIL_ID AS AN_MAIL_ID, MAIL_AN.VC_MAIL AS VC_AN_MAIL, dbo.TEL_USER.MAIL_ID AS VON_MAIL_ID, MAIL_VON.VC_MAIL AS VC_VON_MAIL, dbo.TEL_USER.NEW_U_ID, 
                         User_New.CH_LOGIN AS C_USER_NEW, dbo.TEL_USER.NEW_DAT, dbo.TEL_USER.EDIT_U_ID, User_Edit.CH_LOGIN AS C_USER_EDIT, dbo.TEL_USER.EDIT_DAT
FROM            dbo.TEL_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS User_New ON dbo.TEL_USER.NEW_U_ID = User_New.ID_USER LEFT OUTER JOIN
                         dbo.TEL_USER AS User_Edit ON dbo.TEL_USER.EDIT_U_ID = User_Edit.ID_USER LEFT OUTER JOIN
                         dbo.DATEN_PERSON AS Person ON dbo.TEL_USER.PERSON_ID = Person.ID_PERSON LEFT OUTER JOIN
                         dbo.DATEN_MAIL AS MAIL_AN ON Person.MAIL_ID = MAIL_AN.ID_MAIL LEFT OUTER JOIN
                         dbo.DATEN_MAIL AS MAIL_VON ON dbo.TEL_USER.MAIL_ID = MAIL_VON.ID_MAIL
GO
/****** Object:  Table [dbo].[EPOS_TEXT]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPOS_TEXT](
	[ID_EPOS_TEXT] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[EPOS_ID] [bigint] NOT NULL,
	[VC_TEXT] [nvarchar](256) NOT NULL,
	[IN_POSITION] [smallint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[EPOSTEXTE_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[EPOSTEXTE_VIEW]
AS
SELECT        dbo.EPOS_TEXT.NEW_DAT, dbo.TEL_USER.CH_LOGIN, dbo.EPOS_TEXT.IN_POSITION, dbo.EPOS_TEXT.VC_TEXT AS EINZELPOSITIONSTEXT, dbo.EPOS_TEXT.EPOS_ID
FROM            dbo.EPOS_TEXT LEFT OUTER JOIN
                         dbo.TEL_USER ON dbo.EPOS_TEXT.NEW_U_ID = dbo.TEL_USER.ID_USER
WHERE        (dbo.EPOS_TEXT.IN_VIEW = 0)
GO
/****** Object:  Table [dbo].[RECH_JJJJ_EDI_DATEIEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_EDI_DATEIEN](
	[RECH_ID] [bigint] NOT NULL,
	[RECH_EDI_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  View [dbo].[EPOS_VIEW]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE   VIEW [dbo].[EPOS_VIEW] AS SELECT dbo.EPOS.ID_EPOS AS ID, dbo.EPOS.IN_VIEW, dbo.RECH_JJJJ_KENNUNG.FKTO, dbo.STAM_BKTO.VC_NAME AS BKTO, dbo.EPOS.RUFNUMMER, dbo.RECH_JJJJ_EDI_RFN.CH_RFN, dbo.RECH_JJJJ_KENNUNG.CH_TYP_RB, dbo.MANDANT.VC_NAME AS Mandant, dbo.EPOS.ARTIKELNR, dbo.EPOS.VERBINDUNG, dbo.EPOS.MENGE, dbo.EPOS.MEINHEIT, dbo.EPOS.TEXT AS EPOSTEXT, dbo.EPZ.VC_EPZGRUPPE1 AS EPZGRUPPE1, dbo.EPZ.VC_EPZGRUPPE2 AS EPZGRUPPE2, dbo.EPOS.EPREIS, dbo.EPOS.GPREIS, dbo.EPOS.NETTO_SOLL, dbo.EPOS.WAEHRUNG, dbo.EPOS.UST AS TAX, dbo.EPOS.VONDATUM, dbo.EPOS.BISDATUM, dbo.RECH_JJJJ_KENNUNG.CH_RECHJAHR, dbo.RECH_JJJJ_KENNUNG.CH_RECHMONAT, dbo.EPOS_CTPF.VC_NAME AS PRODFAMNAME, dbo.EPOS_CTPF.VC_TEXT AS PRODFAMTEXT, CASE WHEN epos_ctggruppe.ch_gebgruppe_ids IS NULL THEN epos_ctggruppe.vc_name ELSE epos_ctggruppe.ch_gebgruppe_ids END AS GEBGRUPPENAME, dbo.EPOS_CTGGRUPPE.VC_TEXT AS GEBGRUPPETEXT, dbo.EPOS.EXDATE, dbo.EPOS.REFERENZ, ZUSATZTEXT1.VC_TEXT AS ZUSATZTEXT1, ZUSATZTEXT2.VC_TEXT AS ZUSATZTEXT2, ZUSATZTEXT3.VC_TEXT AS ZUSATZTEXT3, ZUSATZTEXT4.VC_TEXT AS ZUSATZTEXT4, ZUSATZTEXT5.VC_TEXT AS ZUSATZTEXT5, CASE WHEN STAM_JJJJ_DATEN.hauptrfn IS NULL THEN rech_jjjj_daten.hauptrfn ELSE STAM_JJJJ_DATEN.hauptrfn END AS HAUPTRFN, dbo.STAM_KST.VC_NAME AS KST, dbo.STAM_FELD1.VC_NAME AS Feld1, dbo.STAM_FELD2.VC_NAME AS Feld2, dbo.STAM_FELD3.VC_NAME AS Feld3, dbo.STAM_FELD4.VC_NAME AS Feld4, dbo.STAM_FELD5.VC_NAME AS Feld5, dbo.STAM_FELD6.VC_NAME AS Feld6, dbo.STAM_FELD7.VC_NAME AS Feld7, dbo.STAM_FELD8.VC_NAME AS Feld8, dbo.STAM_FELD9.VC_NAME AS Feld9, dbo.STAM_FELD10.VC_NAME AS Feld10, dbo.STAM_FELD11.VC_NAME AS Feld11, dbo.STAM_FELD12.VC_NAME AS Feld12, dbo.STAM_FELD13.VC_NAME AS Feld13, dbo.STAM_FELD14.VC_NAME AS Feld14, dbo.STAM_FELD15.VC_NAME AS Feld15, dbo.STAM_FELD16.VC_NAME AS Feld16, dbo.STAM_JJJJ_DATEN.DA_FELD17 AS Feld17, dbo.STAM_JJJJ_DATEN.DA_FELD18 AS FELD18, dbo.RECH_JJJJ_TYP.IN_RECHTYP, dbo.DATEN_MAIL.VC_MAIL AS EMail, dbo.RECH_JJJJ_EDI_DATEI.VC_DATEI AS EDINAME, dbo.EPOS.RECH_ID, dbo.RECH_JJJJ_KENNUNG.STAM_JJJJ_ID, T_USER_NEW.CH_LOGIN AS C_USER_NEW, dbo.EPOS.NEW_DAT, T_USER_EDIT.CH_LOGIN AS C_USER_EDIT, dbo.EPOS.EDIT_DAT FROM dbo.EPOS LEFT OUTER JOIN dbo.RECH_JJJJ_KENNUNG ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.EPOS.RECH_ID LEFT OUTER JOIN dbo.RECH_JJJJ_DATEN ON dbo.RECH_JJJJ_KENNUNG.ID_RECH = dbo.RECH_JJJJ_DATEN.RECH_ID LEFT OUTER JOIN dbo.RECH_JJJJ_EDI_DATEIEN ON dbo.RECH_JJJJ_EDI_DATEIEN.RECH_ID = dbo.EPOS.RECH_ID LEFT OUTER JOIN dbo.RECH_JJJJ_EDI_DATEI ON dbo.RECH_JJJJ_EDI_DATEI.ID_RECH_EDI = dbo.RECH_JJJJ_EDI_DATEIEN.RECH_EDI_ID LEFT OUTER JOIN dbo.STAM_BKTO ON dbo.RECH_JJJJ_KENNUNG.BKTO_ID = dbo.STAM_BKTO.ID_BKTO LEFT OUTER JOIN dbo.RECH_JJJJ_EDI_RFN ON dbo.RECH_JJJJ_KENNUNG.RFN_ID = dbo.RECH_JJJJ_EDI_RFN.ID_RFN LEFT OUTER JOIN dbo.EPZ ON dbo.EPOS.TEXT = dbo.EPZ.TEXT AND dbo.EPOS.ARTIKELNR = dbo.EPZ.ARTIKELNR LEFT OUTER JOIN dbo.STAM_JJJJ_KENNUNG ON dbo.RECH_JJJJ_KENNUNG.STAM_JJJJ_ID = dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ LEFT OUTER JOIN dbo.STAM_JJJJ_DATEN ON dbo.STAM_JJJJ_KENNUNG.ID_STAM_JJJJ = dbo.STAM_JJJJ_DATEN.STAM_JJJJ_ID LEFT OUTER JOIN dbo.MANDANT ON dbo.STAM_JJJJ_KENNUNG.MANDANT_ID = dbo.MANDANT.ID_MANDANT LEFT OUTER JOIN dbo.STAM_FELD1 ON dbo.STAM_JJJJ_DATEN.STAM_FELD1_ID = dbo.STAM_FELD1.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD2 ON dbo.STAM_JJJJ_DATEN.STAM_FELD2_ID = dbo.STAM_FELD2.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD3 ON dbo.STAM_JJJJ_DATEN.STAM_FELD3_ID = dbo.STAM_FELD3.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD4 ON dbo.STAM_JJJJ_DATEN.STAM_FELD4_ID = dbo.STAM_FELD4.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD5 ON dbo.STAM_JJJJ_DATEN.STAM_FELD5_ID = dbo.STAM_FELD5.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD6 ON dbo.STAM_JJJJ_DATEN.STAM_FELD6_ID = dbo.STAM_FELD6.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD7 ON dbo.STAM_JJJJ_DATEN.STAM_FELD7_ID = dbo.STAM_FELD7.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD8 ON dbo.STAM_JJJJ_DATEN.STAM_FELD8_ID = dbo.STAM_FELD8.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD9 ON dbo.STAM_JJJJ_DATEN.STAM_FELD9_ID = dbo.STAM_FELD9.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD10 ON dbo.STAM_JJJJ_DATEN.STAM_FELD10_ID = dbo.STAM_FELD10.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD11 ON dbo.STAM_JJJJ_DATEN.STAM_FELD11_ID = dbo.STAM_FELD11.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD12 ON dbo.STAM_JJJJ_DATEN.STAM_FELD12_ID = dbo.STAM_FELD12.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD13 ON dbo.STAM_JJJJ_DATEN.STAM_FELD13_ID = dbo.STAM_FELD13.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD14 ON dbo.STAM_JJJJ_DATEN.STAM_FELD14_ID = dbo.STAM_FELD14.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD15 ON dbo.STAM_JJJJ_DATEN.STAM_FELD15_ID = dbo.STAM_FELD15.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_FELD16 ON dbo.STAM_JJJJ_DATEN.STAM_FELD16_ID = dbo.STAM_FELD16.ID_STAM_FELD LEFT OUTER JOIN dbo.STAM_KST ON dbo.STAM_JJJJ_DATEN.KST_ID = dbo.STAM_KST.ID_KST LEFT OUTER JOIN dbo.RECH_JJJJ_TYP ON dbo.EPOS.RECH_ID = dbo.RECH_JJJJ_TYP.RECH_ID LEFT OUTER JOIN dbo.DATEN_MAIL ON dbo.STAM_JJJJ_DATEN.MAIL_ID = dbo.DATEN_MAIL.ID_MAIL LEFT OUTER JOIN dbo.EPOS_TEXT AS ZUSATZTEXT1 ON dbo.EPOS.ID_EPOS = ZUSATZTEXT1.EPOS_ID AND ZUSATZTEXT1.IN_POSITION = 0 LEFT OUTER JOIN dbo.EPOS_TEXT AS ZUSATZTEXT2 ON dbo.EPOS.ID_EPOS = ZUSATZTEXT2.EPOS_ID AND ZUSATZTEXT2.IN_POSITION = 1 LEFT OUTER JOIN dbo.EPOS_TEXT AS ZUSATZTEXT3 ON dbo.EPOS.ID_EPOS = ZUSATZTEXT3.EPOS_ID AND ZUSATZTEXT3.IN_POSITION = 2 LEFT OUTER JOIN dbo.EPOS_TEXT AS ZUSATZTEXT4 ON dbo.EPOS.ID_EPOS = ZUSATZTEXT4.EPOS_ID AND ZUSATZTEXT4.IN_POSITION = 3 LEFT OUTER JOIN dbo.EPOS_TEXT AS ZUSATZTEXT5 ON dbo.EPOS.ID_EPOS = ZUSATZTEXT5.EPOS_ID AND ZUSATZTEXT5.IN_POSITION = 4 LEFT OUTER JOIN dbo.EPOS_CTPF ON dbo.EPOS.CH_PRODFAM_ID = dbo.EPOS_CTPF.ID_EPOS_CTPF LEFT OUTER JOIN dbo.EPOS_CTGGRUPPE ON dbo.EPOS.CH_GEBGRUPPE_ID = dbo.EPOS_CTGGRUPPE.ID_EPOS_GEBGRUPPE LEFT OUTER JOIN dbo.TEL_USER AS T_USER_NEW ON dbo.EPOS.NEW_U_ID = T_USER_NEW.ID_USER LEFT OUTER JOIN dbo.TEL_USER AS T_USER_EDIT ON dbo.EPOS.EDIT_U_ID = T_USER_EDIT.ID_USER
GO
/****** Object:  Table [dbo].[DATEN_ADRESSE]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DATEN_ADRESSE](
	[ID_ADRESE] [bigint] IDENTITY(0,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_NAME] [nvarchar](175) NULL,
	[VC_NAME2] [nvarchar](175) NULL,
	[VC_STRASSE] [nvarchar](175) NULL,
	[VC_POSTFACH] [nvarchar](16) NULL,
	[VC_ORT] [nvarchar](175) NULL,
	[VC_PLZ] [nvarchar](16) NULL,
	[CH_LAND] [nvarchar](16) NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EMV_EMAILS]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EMV_EMAILS](
	[ID_EMV_EMAILS] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[ID_SEMV] [bigint] NULL,
	[BETREFFTEXT] [nvarchar](60) NULL,
	[MAILTEXT] [nvarchar](256) NULL,
	[ABSENDERADRESSE_ID] [bigint] NULL,
	[EMPFAENGERADRESSE_ID] [bigint] NULL,
	[NEW_U_ID] [bigint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPOS_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPOS_VIEW_INFO](
	[ID_EPOS_VIEW_INFO] [bigint] IDENTITY(1,1) NOT NULL,
	[CH_RECHJAHR] [nvarchar](4) NOT NULL,
	[CH_RECHMONAT] [nvarchar](2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EVN_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EVN_VIEW_INFO](
	[ID_EVN_VIEW_INFO] [bigint] IDENTITY(1,1) NOT NULL,
	[CH_RECHJAHR] [nvarchar](4) NOT NULL,
	[CH_RECHMONAT] [nvarchar](2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EXPORT_BUCHHALTUNG_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EXPORT_BUCHHALTUNG_VIEW_INFO](
	[ID_EXPORT_BUCHHALTUNG_INFO] [bigint] IDENTITY(1,1) NOT NULL,
	[CH_RECHJAHR] [nvarchar](4) NOT NULL,
	[CH_RECHMONAT] [nvarchar](2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[FELD_NAMEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FELD_NAMEN](
	[ID_FELD_NAMEN] [bigint] IDENTITY(1,1) NOT NULL,
	[M_ID] [bigint] NOT NULL,
	[VC_SPALTEN] [nvarchar](35) NULL,
	[VC_NAME] [nvarchar](35) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GKU_EPOS_TEXT]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GKU_EPOS_TEXT](
	[ID_GKU_EPOS_TEXT] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[GKU_EPOS_ID] [bigint] NOT NULL,
	[VC_TEXT] [varchar](256) NOT NULL,
	[IN_POSITION] [smallint] NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GKU_RECH_EPOS]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GKU_RECH_EPOS](
	[ID_GKU_RECH_EPOS] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[GKU_RECH_ID] [bigint] NULL,
	[GKU_EPOS_ID] [bigint] NULL,
	[MENGE] [bigint] NULL,
	[GPREIS] [decimal](10, 2) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
 CONSTRAINT [PK_GKU_RECH_EPOS] PRIMARY KEY CLUSTERED 
(
	[ID_GKU_RECH_EPOS] 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
/****** Object:  Table [dbo].[GL_CONFIG]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GL_CONFIG](
	[ID_CONFIG] [bigint] IDENTITY(5,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[MANDANT_ID] [bigint] NULL,
	[BI_EINTRAG] [bigint] NOT NULL,
	[VC_WERT] [nvarchar](35) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GL_DIRECTORY]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GL_DIRECTORY](
	[ID_DIRECTORY] [bigint] NOT NULL,
	[PATH_ELFE] [nvarchar](1000) NULL,
	[PATH_EXPORT] [nvarchar](1000) NULL,
	[PATH_LOG] [nvarchar](1000) NULL,
	[PATH_DETAIL] [nvarchar](1000) NULL,
	[PATH_REPORT] [nvarchar](1000) NULL,
	[PATH_VERSAND] [nvarchar](1000) NULL,
	[PATH_TELIS7] [nvarchar](1000) NULL,
	[PATH_TELRETRANS] [nvarchar](1000) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GRUPPE_USER]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GRUPPE_USER](
	[ID_GRUPPE_USER] [bigint] IDENTITY(1,1) NOT NULL,
	[USER_ID] [bigint] NOT NULL,
	[GRUPPE_ID] [bigint] NOT NULL,
	[MANDANT_ID] [bigint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[HWV_HARDWARE_TYPEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HWV_HARDWARE_TYPEN](
	[ID_HARDWARE_TYPEN] [bigint] IDENTITY(1,1) NOT NULL,
	[VC_HARDWARENAME] [varchar](512) NOT NULL,
	[VC_HARDWAREBESCHREIBUNG] [varchar](1000) NULL,
	[VC_HARDWAREGRUPPE] [varchar](512) NULL,
	[VC_HERSTELLERWEBSEITE] [varchar](2048) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[IN_VIEW] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KST_MKST]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KST_MKST](
	[ID_KST_MKST] [bigint] IDENTITY(1,1) NOT NULL,
	[KST_ID] [bigint] NOT NULL,
	[MKST_ID] [bigint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MKST]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MKST](
	[ID_MKST] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[STAM_ID] [bigint] NOT NULL,
	[KST_ID] [bigint] NULL,
	[DE_PR_FIX] [decimal](10, 2) NOT NULL,
	[DE_PR_VAR] [decimal](10, 2) NOT NULL,
	[DE_PR_EIN] [decimal](10, 2) NOT NULL,
	[DE_PR_FREMD] [decimal](10, 2) NOT NULL,
	[DE_PR_RABATT] [decimal](10, 2) NOT NULL,
	[DE_PR_GUTSCHRIFT] [decimal](10, 2) NOT NULL,
	[DE_PR_MPAY] [decimal](10, 2) NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NST_AUSW_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NST_AUSW_VIEW_INFO](
	[ID_AUSW_VIEW_INFO] [bigint] IDENTITY(1,1) NOT NULL,
	[CH_RECHJAHR] [nvarchar](4) NOT NULL,
	[CH_RECHMONAT] [nvarchar](2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NST_STAM_JJJJ_BEM]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NST_STAM_JJJJ_BEM](
	[ID_NST_STA_JJJJ_BEM] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[NST_STAM_JJJJ_ID] [bigint] NOT NULL,
	[VC_BEMERKUNG] [nvarchar](100) NOT NULL,
	[SI_REIHENFOLGE] [smallint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NSTA_JJJJ_EDI_DATEIEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NSTA_JJJJ_EDI_DATEIEN](
	[NSTA_ID] [bigint] NOT NULL,
	[RECH_EDI_ID] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[EDIT_DAT] [datetime] NULL,
	[EDIT_U_ID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_JJJJ_EDI_DATEI_HASH]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_EDI_DATEI_HASH](
	[ID_RECH_EDI_DATEI_HASH] [bigint] IDENTITY(0,1) NOT NULL,
	[RECH_EDI_ID] [bigint] NULL,
	[VC_HASH] [varchar](35) NULL,
	[NEW_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_JJJJ_EDI_DATEI_STATE]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_JJJJ_EDI_DATEI_STATE](
	[ID_RECH_EDI_STATE] [bigint] IDENTITY(0,1) NOT NULL,
	[RECH_EDI_ID] [bigint] NULL,
	[VC_STATE] [varchar](100) NULL,
	[NEW_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECH_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECH_VIEW_INFO](
	[ID_RECH_VIEW_INFO] [bigint] IDENTITY(1,1) NOT NULL,
	[CH_RECHJAHR] [nvarchar](4) NOT NULL,
	[CH_RECHMONAT] [nvarchar](2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RECHPRUEFUNG_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RECHPRUEFUNG_VIEW_INFO](
	[ID_RECHPRUEFUNG_VIEW_INFO] [bigint] IDENTITY(1,1) NOT NULL,
	[CH_RECHJAHR] [nvarchar](4) NOT NULL,
	[CH_RECHMONAT] [nvarchar](2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[REK_PROTOKOLL]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[REK_PROTOKOLL](
	[ID_REK_PROTOKOLL] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_ANBIETER] [nvarchar](100) NOT NULL,
	[START_DAT] [datetime] NOT NULL,
	[ENDE_DATUM] [datetime] NOT NULL,
	[ANZAHL_DS] [bigint] NOT NULL,
	[VC_PROTOKOLLDATEI] [nvarchar](1000) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[REPORT]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[REPORT](
	[ID_REPORT] [bigint] NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_REPORTNAME] [nvarchar](35) NULL,
	[IN_MODUL] [bigint] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[REPORT_BEM]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[REPORT_BEM](
	[ID_REPORT_BEM] [bigint] NOT NULL,
	[REPORT_ID] [bigint] NULL,
	[M_REPORTBESCHREIBUNG] [text] NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[REPORT_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[REPORT_DATEN](
	[ID_REPORT_DATEN] [bigint] NOT NULL,
	[REPORT_ID] [bigint] NOT NULL,
	[VC_RPTNAME] [nvarchar](256) NOT NULL,
	[IN_SEITENFORMAT] [bigint] NULL,
	[VC_KURZTEXT] [nvarchar](100) NULL,
	[VC_VORSCHAUBILD] [nvarchar](256) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAM_TARIF]    Script Date: 31.07.2024 13:02:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAM_TARIF](
	[ID_STAM_TARIF] [bigint] IDENTITY(1,1) NOT NULL,
	[IN_VIEW] [int] NOT NULL,
	[VC_NAME] [nvarchar](35) NULL,
	[VC_TEXT] [nvarchar](256) NULL,
	[NEW_U_ID] [bigint] NOT NULL,
	[NEW_DAT] [datetime] NOT NULL,
	[EDIT_U_ID] [bigint] NULL,
	[EDIT_DAT] [datetime] NULL,
	[ID_STA] [bigint] NULL
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[DATEN_ADRESSE] ON 

INSERT [dbo].[DATEN_ADRESSE] ([ID_ADRESE], [IN_VIEW], [VC_NAME], [VC_NAME2], [VC_STRASSE], [VC_POSTFACH], [VC_ORT], [VC_PLZ], [CH_LAND], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (2, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 0, NULL, NULL)
SET IDENTITY_INSERT [dbo].[DATEN_ADRESSE] OFF
GO
SET IDENTITY_INSERT [dbo].[DATEN_PERSON] ON 

INSERT [dbo].[DATEN_PERSON] ([ID_PERSON], [IN_VIEW], [VC_NAME], [CH_ANREDE], [VC_VORNAME], [VC_NACHNAME], [MAIL_ID], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT], [VC_PERSONALNUMMER]) VALUES (1, 1, N'SYSTEM', N'H', N'System', N'System', NULL, 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[DATEN_PERSON] OFF
GO
SET IDENTITY_INSERT [dbo].[EPOS_CTGGRUPPE] ON 

INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (1, 0, N'0', NULL, NULL, N'    ', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (3, 0, N'00', N'Variabel', N'Veränderungen bei monatlichen Beträgen', N'022 ', 0, CAST(N'2017-10-06T08:29:21.070' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (4, 0, N'05', N'SONDER', N'Veränderungen bei Sondertarifen', N'022 ', 0, CAST(N'2017-10-06T08:29:21.130' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (5, 0, N'10', N'Grund', N'Grundpreis (Anschlusse)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.130' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (6, 0, N'11', N'Zusatz', N'Zusatzliche Leistungen (Zusatzleistungen für Anschlusse)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.130' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (7, 0, N'12', N'Verbindu', N'Verbindungen (Beträge fur Festverbindungen, Presse, Warndienst)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.130' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (8, 0, N'14', N'Sonder', N'Sonderleistungen (T-Online-Leitseiten, T-Online-Zugangsberechtigung etc.)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.130' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (9, 0, N'19', N'InkassoE', N'Inkasso fur Andere (Eurofunk)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (10, 0, N'20', N'Miete', N'Miete (fur Endgeräte)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (11, 0, N'23', N'Instand', N'Instandhaltung (Endgeräte, Kaufgerate, TKAnl., etc.)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (12, 0, N'24', N'SchadenE', N'Schadensersatz (Endgeräte)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (13, 0, N'28', N'Monat', N'Monatliche Beträge', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (14, 0, N'29', N'Genehmig', N'Genehmigungsgebühren', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (15, 0, N'30', N'Ratenzah', N'Ratenzahlung (Kauf von Endgeräten, Installationskosten, etc.)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (16, 0, N'35', N'MonatSon', N'Monatliche Beträge zu Sondertarifen', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (17, 0, N'50', N'SVerbind', N'Beträge fur besondere Verbindungen (Verbindungsentgelte: Betrag)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (18, 0, N'54', N'BVerbind', N'Beträge fur Verbindungen', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (19, 0, N'55', N'EVerbind', N'Beträge fur Verbindungen (Verbindungsentgelte: Menge, Einzelbetrag)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.133' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (20, 0, N'56', N'Options', N'Optionstarife, Optionierung', N'022 ', 0, CAST(N'2017-10-06T08:29:21.143' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (21, 0, N'57', N'Freie Te', N'Freie Tarifeinheiten', N'022 ', 0, CAST(N'2017-10-06T08:29:21.143' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (22, 0, N'60', N'Sonstige', N'Sonstige Beträge, einmalige und fallweise Entgelte', N'022 ', 0, CAST(N'2017-10-06T08:29:21.143' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (23, 0, N'70', N'InkassoD', N'Inkasso im Namen und fur Rechnung Dritter, Durchlaufende Gelder', N'022 ', 0, CAST(N'2017-10-06T08:29:21.143' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (24, 0, N'71', N'Kauf', N'Kauf (Endgeräte, TKAnl., etc.)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.147' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (25, 0, N'72', N'Schadene', N'Schadensersatz (Endgeräte, TKAnl., etc.)', N'022 ', 0, CAST(N'2017-10-06T08:29:21.147' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (26, 0, N'75', N'VerbindW', N'Verbindungen uber Verbindungsentgelte der Wettbewerber = abgekaufte Leistungen', N'022 ', 0, CAST(N'2017-10-06T08:29:21.147' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (27, 0, N'80', N'Gutschri', N'Erstattung, Gutschrift', N'022 ', 0, CAST(N'2017-10-06T08:29:21.147' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (28, 0, N'85', N'S.Tarife', N'Sondertarife', N'022 ', 0, CAST(N'2017-10-06T08:29:21.147' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (29, 0, N'90', N'Zusammen', N'Zusammenstellung der Beträge', N'022 ', 0, CAST(N'2017-10-06T08:29:21.147' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (30, 0, N'91', N'UST', N'Umsatzsteuer', N'022 ', 0, CAST(N'2017-10-06T08:29:21.150' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (31, 0, N'95', N'T-STarif', N'Texte zu Sondertarifen', N'022 ', 0, CAST(N'2017-10-06T08:29:21.150' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (32, 0, N'96', N'R-Betrag', N'Rechnungsbetrag', N'022 ', 0, CAST(N'2017-10-06T08:29:21.150' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (33, 0, N'97', N'ZRS', N'Zahlungsruckstand', N'022 ', 0, CAST(N'2017-10-06T08:29:21.150' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (34, 0, N'98', N'Guthaben', N'Guthaben', N'022 ', 0, CAST(N'2017-10-06T08:29:21.150' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (35, 0, N'99', N'ZzBetrag', N'Zu zahlender Beträg', N'022 ', 0, CAST(N'2017-10-06T08:29:21.150' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (36, 0, N'00', N'Variabel', N'Veränderungen bei monatlichen Beträgen', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.150' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (37, 0, N'05', N'SONDER', N'Veranderungen bei Sondertarifen', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.153' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (38, 0, N'10', N'Grund', N'Grundpreis (Anschlusse)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.153' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (39, 0, N'11', N'Zusatz', N'Zusatzliche Leistungen (Zusatzleistungen fur Anschlusse)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.153' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (40, 0, N'12', N'Verbindu', N'Verbindungen (Beträge fur Festverbindungen, Presse, Warndienst)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.153' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (41, 0, N'14', N'Sonder', N'Sonderleistungen (T-Online-Leitseiten, T-Online-Zugangsberechtigung etc.)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.153' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (42, 0, N'19', N'InkassoE', N'Inkasso fur Andere (Eurofunk)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.153' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (43, 0, N'20', N'Miete', N'Miete (fur Endgeräte)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.157' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (44, 0, N'23', N'Instand', N'Instandhaltung (Endgeräte, Kaufgerate, TKAnl., etc.)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.157' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (45, 0, N'24', N'SchadenE', N'Schadensersatz (Endgeräte)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.157' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (46, 0, N'28', N'Monat', N'Monatliche Beträge', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.157' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (47, 0, N'29', N'Genehmig', N'Genehmigungsgebühren', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.157' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (48, 0, N'30', N'Ratenzah', N'Ratenzahlung (Kauf von Endgeräten, Installationskosten, etc.)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.160' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (49, 0, N'35', N'MonatSon', N'Monatliche Beträge zu Sondertarifen', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.160' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (50, 0, N'50', N'SVerbind', N'Beträge fur besondere Verbindungen (Verbindungsentgelte: Betrag)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.160' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (51, 0, N'54', N'BVerbind', N'Beträge fur Verbindungen', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.160' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (52, 0, N'55', N'EVerbind', N'Beträge fur Verbindungen (Verbindungsentgelte: Menge, Einzelbetrag)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.160' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (53, 0, N'56', N'Options', N'Optionstarife, Optionierung', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.160' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (54, 0, N'57', N'Freie Te', N'Freie Tarifeinheiten', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.160' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (55, 0, N'60', N'Sonstige', N'Sonstige Beträge, einmalige und fallweise Entgelte', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.160' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (56, 0, N'70', N'InkassoD', N'Inkasso im Namen und fur Rechnung Dritter, Durchlaufende Gelder', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.160' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (57, 0, N'71', N'Kauf', N'Kauf (Endgerate, TKAnl., etc.)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.163' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (58, 0, N'72', N'Schadene', N'Schadensersatz (Endgeräte, TKAnl., etc.)', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.163' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (59, 0, N'75', N'VerbindW', N'Verbindungen uber Verbindungsentgelte der Wettbewerber = abgekaufte Leistungen', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.163' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (60, 0, N'80', N'Gutschri', N'Erstattung, Gutschrift', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.163' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (61, 0, N'85', N'S.Tarife', N'Sondertarife', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.163' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (62, 0, N'90', N'Zusammen', N'Zusammenstellung der Beträge', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.163' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (63, 0, N'91', N'UST', N'Umsatzsteuer', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.167' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (64, 0, N'95', N'T-STarif', N'Texte zu Sondertarifen', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.167' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (65, 0, N'96', N'R-Betrag', N'Rechnungsbetrag', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.167' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (66, 0, N'97', N'ZRS', N'Zahlungsruckstand', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.167' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (67, 0, N'98', N'Guthaben', N'Guthaben', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.167' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (68, 0, N'99', N'ZzBetrag', N'Zu zahlender Betrag', N'SYS ', 0, CAST(N'2017-10-06T08:29:21.170' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (69, 0, N'1', N'FIX', N'Monatliche Beträge', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.170' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (70, 0, N'2', N'VAR', N'Beträge für Verbindungen|Nutzungsabhängige Beträge', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.170' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (71, 0, N'4', N'Sonder', N'Sondertarife', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.170' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (72, 0, N'5', N'Einmal I', N'Einmalige Instandhaltung', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.170' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (73, 0, N'6', N'Kauf', N'Beträge für Kauf', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.170' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (74, 0, N'7', N'Install', N'Installation', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.170' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (75, 0, N'8', N'Einmal E', N'Einmalige|fallweise Entgelte', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.170' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (76, 0, N'9', N'Gutschri', N'Erstattung|Gutschrift|Gutschein', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.173' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (77, 0, N'10', N'Schaden', N'Schadensersatz', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.173' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (78, 0, N'88', N'Unbekann', N'Unbekannt', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.173' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (79, 0, N'99', N'Sonstige', N'Sonstige', N'DTM ', 0, CAST(N'2017-10-06T08:29:21.173' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (80, 0, N'127', N'EIN', N'Anschlußpreis (einmalig)', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.173' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (81, 0, N'140', N'FIX', N'Basispreis (monatlich)', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.173' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (82, 0, N'150', N'VAR', N'Verbindungspreise', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.177' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (83, 0, N'160', N'ZUSATZ', N'Zusatzleistungen', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.177' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (84, 0, N'165', N'Waren', N'Waren und Leistungen', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.177' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (85, 0, N'170', N'Sonstige', N'Sonstiges', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.177' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (86, 0, N'180', N'Gunst', N'Zu Ihren Gunsten', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.177' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (87, 0, N'131', N'GPRS e', N'GPRS Datenvolumen empfangen / gesendet', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.177' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (88, 0, N'192', N'MPayment', N'Mobile Payment Transaktionen', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.180' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (89, 0, N'195', N'V Stars', N'Vodafone Stars Information', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.180' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (90, 0, N'227', N'Anschlus', N'Anschlusspreis (einmalig)', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.180' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (91, 0, N'231', N'GPRS g', N'GPRS Datenvolumen empfangen / gesendet', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.180' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (92, 0, N'240', N'Basis', N'Basispreis (monatlich)', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.180' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (93, 0, N'250', N'Vpreis', N'Verbindungspreise', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.180' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (94, 0, N'270', N'Sonstige', N'Sonstiges', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.180' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (95, 0, N'280', N'Gunsten', N'Zu Ihren Gunsten', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.180' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (96, 0, N'292', N'MPayment', N'Mobile Payment Transaktionen', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.183' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (97, 0, N'295', N'V Stars', N'Vodafone Stars Information', N'MMO ', 0, CAST(N'2017-10-06T08:29:21.183' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (98, 0, N'TD', N'TD', N'Positionsbetrag Mobiles Bezahlen Transaktionen (Brutto)', N'VST ', 0, CAST(N'2017-10-06T08:29:21.183' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (99, 0, N'MP', N'MP', N'Positionsbetrag CallNow-Transfer (Brutto)', N'VST ', 0, CAST(N'2017-10-06T08:29:21.183' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (100, 0, N'1', N'VAR', N'Verbindungsentgelte', N'VST ', 0, CAST(N'2017-10-06T08:29:21.183' AS DateTime))
GO
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (101, 0, N'2', N'FIX', N'Monatliche Grundbetrage', N'VST ', 0, CAST(N'2017-10-06T08:29:21.183' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (102, 0, N'4', N'Gutschri', N'Erstattungen | GUTSCHRIFT', N'VST ', 0, CAST(N'2017-10-06T08:29:21.183' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (103, 0, N'9', N'Sonder', N'Sondernachlass', N'VST ', 0, CAST(N'2017-10-06T08:29:21.187' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (104, 0, N'6', N'VAR', N'Datendienste', N'VST ', 0, CAST(N'2017-10-06T08:29:21.187' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (105, 0, N'7', N'VAR', N'Internet', N'VST ', 0, CAST(N'2017-10-06T08:29:21.187' AS DateTime))
INSERT [dbo].[EPOS_CTGGRUPPE] ([ID_EPOS_GEBGRUPPE], [IN_VIEW], [CH_GEBGRUPPE_IDS], [VC_NAME], [VC_TEXT], [CH_RFN], [NEW_U_ID], [NEW_DAT]) VALUES (106, 0, N'8', N'VAR', N'Mehrwertdienste', N'VST ', 0, CAST(N'2017-10-06T08:29:21.187' AS DateTime))
SET IDENTITY_INSERT [dbo].[EPOS_CTGGRUPPE] OFF
GO
SET IDENTITY_INSERT [dbo].[EVN_CARRIER] ON 

INSERT [dbo].[EVN_CARRIER] ([ID_EVN_CARRIER], [IN_VIEW], [CH_CARRIER], [VC_CARTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (1, 1, NULL, NULL, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_CARRIER] ([ID_EVN_CARRIER], [IN_VIEW], [CH_CARRIER], [VC_CARTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (3, 0, N'TSYS                                              ', N'T-Systems', CAST(N'2017-06-28T00:00:00.000' AS DateTime), 0, NULL, NULL)
SET IDENTITY_INSERT [dbo].[EVN_CARRIER] OFF
GO
SET IDENTITY_INSERT [dbo].[EVN_TARIFZEIT] ON 

INSERT [dbo].[EVN_TARIFZEIT] ([ID_EVN_TARIFZEIT], [IN_VIEW], [CH_TARIFZEIT], [VC_TARIFTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (2, 0, N'N                                                 ', N'Nebenzeit', CAST(N'2017-07-20T14:13:28.480' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_TARIFZEIT] ([ID_EVN_TARIFZEIT], [IN_VIEW], [CH_TARIFZEIT], [VC_TARIFTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (3, 0, N'H                                                 ', N'Hauptzeit', CAST(N'2017-07-20T14:13:28.517' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_TARIFZEIT] ([ID_EVN_TARIFZEIT], [IN_VIEW], [CH_TARIFZEIT], [VC_TARIFTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (4, 0, N'D                                                 ', N'DataNight', CAST(N'2017-07-20T14:13:28.517' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_TARIFZEIT] ([ID_EVN_TARIFZEIT], [IN_VIEW], [CH_TARIFZEIT], [VC_TARIFTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (5, 0, N'W                                                 ', N'Wochenende', CAST(N'2017-07-20T14:13:28.517' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_TARIFZEIT] ([ID_EVN_TARIFZEIT], [IN_VIEW], [CH_TARIFZEIT], [VC_TARIFTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (6, 0, N'A                                                 ', N'im Ausland', CAST(N'2017-07-20T14:13:28.520' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_TARIFZEIT] ([ID_EVN_TARIFZEIT], [IN_VIEW], [CH_TARIFZEIT], [VC_TARIFTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (7, 0, N'F                                                 ', N'Freizeit', CAST(N'2017-07-20T14:13:28.520' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_TARIFZEIT] ([ID_EVN_TARIFZEIT], [IN_VIEW], [CH_TARIFZEIT], [VC_TARIFTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (8, 0, N'g                                                 ', N'Ganztägig', CAST(N'2017-07-20T14:13:28.520' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_TARIFZEIT] ([ID_EVN_TARIFZEIT], [IN_VIEW], [CH_TARIFZEIT], [VC_TARIFTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (9, 0, N'X                                                 ', N'Nachtzeit', CAST(N'2017-07-20T14:13:28.520' AS DateTime), 0, NULL, NULL)
SET IDENTITY_INSERT [dbo].[EVN_TARIFZEIT] OFF
GO
SET IDENTITY_INSERT [dbo].[EVN_TBEREICH] ON 

INSERT [dbo].[EVN_TBEREICH] ([ID_EVN_TBEREICH], [IN_VIEW], [CH_TBEREICH], [VC_TBTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (2, 0, N'EN000001                                          ', N'Gespräche Vodafone zu Vodafone', CAST(N'2017-10-26T16:29:21.173' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_TBEREICH] ([ID_EVN_TBEREICH], [IN_VIEW], [CH_TBEREICH], [VC_TBTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (3, 0, N'EN000002                                          ', N'Gespräche ins nationale Festnetz', CAST(N'2017-10-26T16:29:21.210' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[EVN_TBEREICH] ([ID_EVN_TBEREICH], [IN_VIEW], [CH_TBEREICH], [VC_TBTEXT], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (4, 0, N'EN000003                                          ', N'Gespräche in andere nationale Mobilfunknetze', CAST(N'2017-10-26T16:29:21.210' AS DateTime), 0, NULL, NULL)
SET IDENTITY_INSERT [dbo].[EVN_TBEREICH] OFF
GO
SET IDENTITY_INSERT [dbo].[FELD_NAMEN] ON 

INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (1, 0, N'FKTO', N'Verrechnungsnummer (FKTO)', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (2, 0, N'BKTO', N'Buchungskonto (BKTO)', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (3, 0, N'KST', N'Kostenst.', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (4, 0, N'FELD1', N'Art', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (5, 0, N'FELD2', N'Bereich', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (6, 0, N'FELD3', N'Kontonr.', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (7, 0, N'FELD4', N'BLZ', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (8, 0, N'FELD5', N'Ort', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (9, 0, N'FELD6', N'Name', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (10, 0, N'FELD7', N'Ltngsbez', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (11, 0, N'FELD8', N'Sachkonto', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (12, 0, N'FELD9', N'Feld 9', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (13, 0, N'FELD10', N'Feld 10', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (15, 0, N'FELD11', N'Feld 11', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (16, 0, N'FELD12', N'Feld 12', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (17, 0, N'FELD13', N'Feld 13', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (18, 0, N'FELD14', N'Feld 14', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (19, 0, N'FELD15', N'Feld 15', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (20, 0, N'FELD16', N'Feld 16', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (21, 0, N'SAFEFELD1', N'Zusatzfeld 1', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (22, 0, N'SAFEFELD2', N'Zusatzfeld 2', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (23, 0, N'SAFEFELD3', N'Zusatzfeld 3', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (24, 0, N'SAFEFELD4', N'Zusatzfeld 4', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (25, 0, N'SAFEFELD5', N'Zusatzfeld 5', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (26, 0, N'SAFEFELD6', N'Zusatzfeld 6', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (27, 0, N'SAFEFELD7', N'Zusatzfeld 7', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (28, 0, N'SAFEFELD8', N'Zusatzfeld 8', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (29, 0, N'FELD17', N'Upgrade', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (30, 0, N'FELD18', N'letztes Handy', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (31, 0, N'FIX', N'Monatliche Beträge (FIX)', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (32, 0, N'VAR', N'Nutzungsabh. Beträge (VAR)', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (33, 0, N'EIN', N'Einmalige Beträge', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (34, 0, N'FREMD', N'Fremdleistungen', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (35, 0, N'RABATT', N'Rabatte', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (36, 0, N'GUTSCHRIFT', N'Gutschriften', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (37, 0, N'NETTO', N'Netto', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (38, 0, N'USTPFL', N'Ust-pflichtig', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (39, 0, N'UST', N'UST Umsatzsteuer', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (40, 0, N'BRUTTO', N'Brutto', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (41, 0, N'ALIB', N'Anbieterleistung Brutto', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (42, 0, N'MPAY', N'Drittanbieter (MPAY)', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (43, 0, N'UEBERTRAG', N'Übertrag vom Vormonat', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
INSERT [dbo].[FELD_NAMEN] ([ID_FELD_NAMEN], [M_ID], [VC_SPALTEN], [VC_NAME], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (44, 0, N'GESAMT', N'Zahlbetrag', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime))
SET IDENTITY_INSERT [dbo].[FELD_NAMEN] OFF
GO
SET IDENTITY_INSERT [dbo].[GL_CONFIG] ON 

INSERT [dbo].[GL_CONFIG] ([ID_CONFIG], [IN_VIEW], [MANDANT_ID], [BI_EINTRAG], [VC_WERT], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (1, 0, 0, 0, N'2', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[GL_CONFIG] ([ID_CONFIG], [IN_VIEW], [MANDANT_ID], [BI_EINTRAG], [VC_WERT], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (2, 0, 0, 1, N'20240711', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[GL_CONFIG] ([ID_CONFIG], [IN_VIEW], [MANDANT_ID], [BI_EINTRAG], [VC_WERT], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (3, 0, 0, 54, N'True', 1, CAST(N'2019-02-22T10:41:26.000' AS DateTime), NULL, NULL)
INSERT [dbo].[GL_CONFIG] ([ID_CONFIG], [IN_VIEW], [MANDANT_ID], [BI_EINTRAG], [VC_WERT], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (4, 0, 0, 55, N'False', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
SET IDENTITY_INSERT [dbo].[GL_CONFIG] OFF
GO
INSERT [dbo].[GL_DIRECTORY] ([ID_DIRECTORY], [PATH_ELFE], [PATH_EXPORT], [PATH_LOG], [PATH_DETAIL], [PATH_REPORT], [PATH_VERSAND], [PATH_TELIS7], [PATH_TELRETRANS], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, CAST(N'2019-05-14T00:00:00.000' AS DateTime), NULL, NULL)
GO
SET IDENTITY_INSERT [dbo].[GRUPPE] ON 

INSERT [dbo].[GRUPPE] ([ID_GRUPPE], [IN_VIEW], [VC_NAME], [VC_TEXT], [BI_RECHTE], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (0, 0, N'SUPERVISOR', N'Alle Rechte', -1, 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
SET IDENTITY_INSERT [dbo].[GRUPPE] OFF
GO
SET IDENTITY_INSERT [dbo].[GRUPPE_USER] ON 

INSERT [dbo].[GRUPPE_USER] ([ID_GRUPPE_USER], [USER_ID], [GRUPPE_ID], [MANDANT_ID]) VALUES (1, 0, 0, 0)
INSERT [dbo].[GRUPPE_USER] ([ID_GRUPPE_USER], [USER_ID], [GRUPPE_ID], [MANDANT_ID]) VALUES (2, 1, 0, 0)
SET IDENTITY_INSERT [dbo].[GRUPPE_USER] OFF
GO
SET IDENTITY_INSERT [dbo].[MANDANT] ON 

INSERT [dbo].[MANDANT] ([ID_MANDANT], [IN_VIEW], [VC_NAME], [VC_PFAD], [MAIL_ID], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (0, 0, N'SUPERMANDANT', NULL, NULL, 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[MANDANT] ([ID_MANDANT], [IN_VIEW], [VC_NAME], [VC_PFAD], [MAIL_ID], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (1, 0, N'Muster', N'C:\Users\ASKirschner\AppData\Roaming\Oberhollenzer\TELIS\DATA\EXPORT\\MUSTERORDNER', NULL, 0, CAST(N'2018-11-09T10:39:27.877' AS DateTime), NULL, NULL)
SET IDENTITY_INSERT [dbo].[MANDANT] OFF
GO
SET IDENTITY_INSERT [dbo].[RECH_JJJJ_EDI_RFN] ON 

INSERT [dbo].[RECH_JJJJ_EDI_RFN] ([ID_RFN], [IN_VIEW], [CH_RFN], [VC_NAME], [SERVICEPROVIDER_ID], [AUSKUNFTSSTELLE_ID], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (2, 0, N'GKU  ', N'Gemeinkosten', NULL, NULL, CAST(N'2000-01-01T00:00:00.000' AS DateTime), 0, NULL, NULL)
INSERT [dbo].[RECH_JJJJ_EDI_RFN] ([ID_RFN], [IN_VIEW], [CH_RFN], [VC_NAME], [SERVICEPROVIDER_ID], [AUSKUNFTSSTELLE_ID], [NEW_DAT], [NEW_U_ID], [EDIT_DAT], [EDIT_U_ID]) VALUES (3, 0, N'SYS  ', N'T-Systems', NULL, NULL, CAST(N'2016-01-01T00:00:00.000' AS DateTime), 0, NULL, NULL)
SET IDENTITY_INSERT [dbo].[RECH_JJJJ_EDI_RFN] OFF
GO
INSERT [dbo].[REPORT] ([ID_REPORT], [IN_VIEW], [VC_REPORTNAME], [IN_MODUL], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (0, 0, N'Rech_View_Report_KST02', 1, 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[REPORT] ([ID_REPORT], [IN_VIEW], [VC_REPORTNAME], [IN_MODUL], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (1, 0, N'Rech_View_Report_BKTOKST', 1, 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
GO
INSERT [dbo].[REPORT_BEM] ([ID_REPORT_BEM], [REPORT_ID], [M_REPORTBESCHREIBUNG], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (0, 0, N'Dieser Report bildet eine Summe über Ihre Verrechnungsnummern und gruppiert diese nach den Kostenstellen.', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[REPORT_BEM] ([ID_REPORT_BEM], [REPORT_ID], [M_REPORTBESCHREIBUNG], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (1, 1, N'Dieser Report bildet eine Summe über Ihre Kostenstellen und gruppiert nach Ihren Kundennummern. Zusätzlich wird je Kundenkonto eine Gesamtsumme berechnet.', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
GO
INSERT [dbo].[REPORT_DATEN] ([ID_REPORT_DATEN], [REPORT_ID], [VC_RPTNAME], [IN_SEITENFORMAT], [VC_KURZTEXT], [VC_VORSCHAUBILD], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (0, 0, N'Rech_View_Report_KST02.rpt', 2, N'Kostenstellen Report (Summe pro FKTO)', N'Rech_View_Report_KST02.png', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[REPORT_DATEN] ([ID_REPORT_DATEN], [REPORT_ID], [VC_RPTNAME], [IN_SEITENFORMAT], [VC_KURZTEXT], [VC_VORSCHAUBILD], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (1, 1, N'Rech_View_Report_BKTOKST.rpt', 2, N'BKTO Report (Summe pro KST / Gesamtsumme pro BKTO)', N'Rech_View_Report_BKTOKST.png', 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
GO
SET IDENTITY_INSERT [dbo].[TEL_USER] ON 

INSERT [dbo].[TEL_USER] ([ID_USER], [IN_VIEW], [CH_LOGIN], [CH_PW], [PERSON_ID], [MAIL_ID], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (0, 0, N'System                             ', N'TELIS8                          ', NULL, NULL, 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[TEL_USER] ([ID_USER], [IN_VIEW], [CH_LOGIN], [CH_PW], [PERSON_ID], [MAIL_ID], [NEW_U_ID], [NEW_DAT], [EDIT_U_ID], [EDIT_DAT]) VALUES (1, 0, N'TELIS                              ', N'TELIS                           ', NULL, NULL, 0, CAST(N'2017-06-28T00:00:00.000' AS DateTime), NULL, NULL)
SET IDENTITY_INSERT [dbo].[TEL_USER] OFF
GO
/****** Object:  Index [DATEN_ADRESSE_PK_DATEN_ADRESSE]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[DATEN_ADRESSE] ADD  CONSTRAINT [DATEN_ADRESSE_PK_DATEN_ADRESSE] PRIMARY KEY NONCLUSTERED 
(
	[ID_ADRESE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [DATEN_MAIL_PK_DATEN_MAIL]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[DATEN_MAIL] ADD  CONSTRAINT [DATEN_MAIL_PK_DATEN_MAIL] PRIMARY KEY NONCLUSTERED 
(
	[ID_MAIL] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [DATEN_PERSON_PK_DATEN_PERSON]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[DATEN_PERSON] ADD  CONSTRAINT [DATEN_PERSON_PK_DATEN_PERSON] PRIMARY KEY NONCLUSTERED 
(
	[ID_PERSON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EPOS_PK_EPOS]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EPOS] ADD  CONSTRAINT [EPOS_PK_EPOS] PRIMARY KEY NONCLUSTERED 
(
	[ID_EPOS] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EPOS_CTGGRUPPE_PK_EPOS_CTGGRUPPE]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EPOS_CTGGRUPPE] ADD  CONSTRAINT [EPOS_CTGGRUPPE_PK_EPOS_CTGGRUPPE] PRIMARY KEY NONCLUSTERED 
(
	[ID_EPOS_GEBGRUPPE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EPOS_CTPF_PK_EPOS_CTPF]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EPOS_CTPF] ADD  CONSTRAINT [EPOS_CTPF_PK_EPOS_CTPF] PRIMARY KEY NONCLUSTERED 
(
	[ID_EPOS_CTPF] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EPOS_TEXT_PK_EPOS_TEXT]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EPOS_TEXT] ADD  CONSTRAINT [EPOS_TEXT_PK_EPOS_TEXT] PRIMARY KEY NONCLUSTERED 
(
	[ID_EPOS_TEXT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EPOS_VIEW_INFO_PK_EPOS_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EPOS_VIEW_INFO] ADD  CONSTRAINT [EPOS_VIEW_INFO_PK_EPOS_VIEW_INFO] PRIMARY KEY NONCLUSTERED 
(
	[ID_EPOS_VIEW_INFO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EPZ_PK_EPZ]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EPZ] ADD  CONSTRAINT [EPZ_PK_EPZ] PRIMARY KEY NONCLUSTERED 
(
	[ID_EPZ] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EVN_CARRIER_PK_EVN_CARRIER]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EVN_CARRIER] ADD  CONSTRAINT [EVN_CARRIER_PK_EVN_CARRIER] PRIMARY KEY NONCLUSTERED 
(
	[ID_EVN_CARRIER] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EVN_JJJJ_EDI_DATEI_PK_EVN_JJJJ_EDI_DATEI]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EVN_JJJJ_EDI_DATEI] ADD  CONSTRAINT [EVN_JJJJ_EDI_DATEI_PK_EVN_JJJJ_EDI_DATEI] PRIMARY KEY NONCLUSTERED 
(
	[ID_EVN_JJJJ_EDI_DATEI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EVN_MATERIAL_PK_EVN_MATERIAL]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EVN_MATERIAL] ADD  CONSTRAINT [EVN_MATERIAL_PK_EVN_MATERIAL] PRIMARY KEY NONCLUSTERED 
(
	[ID_EVN_MATERIAL] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EVN_TARIFZEIT_PK_EVN_TARIFZEIT]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EVN_TARIFZEIT] ADD  CONSTRAINT [EVN_TARIFZEIT_PK_EVN_TARIFZEIT] PRIMARY KEY NONCLUSTERED 
(
	[ID_EVN_TARIFZEIT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EVN_TBEREICH_PK_EVN_TBEREICH]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EVN_TBEREICH] ADD  CONSTRAINT [EVN_TBEREICH_PK_EVN_TBEREICH] PRIMARY KEY NONCLUSTERED 
(
	[ID_EVN_TBEREICH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EVN_VIEW_INFO_PK_EVN_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EVN_VIEW_INFO] ADD  CONSTRAINT [EVN_VIEW_INFO_PK_EVN_VIEW_INFO] PRIMARY KEY NONCLUSTERED 
(
	[ID_EVN_VIEW_INFO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EVZ_PK_EVZ]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EVZ] ADD  CONSTRAINT [EVZ_PK_EVZ] PRIMARY KEY NONCLUSTERED 
(
	[ID_EVZ] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [EXPORT_BUCHHALTUNG_VIEW_INFO_PK_EXPORT_BUCHHALTUNG_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[EXPORT_BUCHHALTUNG_VIEW_INFO] ADD  CONSTRAINT [EXPORT_BUCHHALTUNG_VIEW_INFO_PK_EXPORT_BUCHHALTUNG_VIEW_INFO] PRIMARY KEY NONCLUSTERED 
(
	[ID_EXPORT_BUCHHALTUNG_INFO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [FELD_NAMEN_PK_FELD_NAMEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[FELD_NAMEN] ADD  CONSTRAINT [FELD_NAMEN_PK_FELD_NAMEN] PRIMARY KEY NONCLUSTERED 
(
	[ID_FELD_NAMEN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [GKU_RECH_JJJJ_GEBUEHREN_PK_GKU_RECH_JJJJ_GEBUEHREN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [GKU_RECH_JJJJ_GEBUEHREN_PK_GKU_RECH_JJJJ_GEBUEHREN] PRIMARY KEY NONCLUSTERED 
(
	[ID_GKU_RECH_JJJJ_GEB] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [GKU_RECH_JJJJ_KENNUNG_PK_GKU_RECH_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[GKU_RECH_JJJJ_KENNUNG] ADD  CONSTRAINT [GKU_RECH_JJJJ_KENNUNG_PK_GKU_RECH_JJJJ_KENNUNG] PRIMARY KEY NONCLUSTERED 
(
	[ID_GKU_RECH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [GKU_RECH_JJJJ_TYP_PK_GKU_RECH_JJJJ_TYP]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[GKU_RECH_JJJJ_TYP] ADD  CONSTRAINT [GKU_RECH_JJJJ_TYP_PK_GKU_RECH_JJJJ_TYP] PRIMARY KEY NONCLUSTERED 
(
	[ID_GKU_RECHTYP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [GKU_RECH_JJJJ_TYP_UNQ1_GKU_RECH_JJJJ_TYP]    Script Date: 31.07.2024 13:02:54 ******/
CREATE UNIQUE NONCLUSTERED INDEX [GKU_RECH_JJJJ_TYP_UNQ1_GKU_RECH_JJJJ_TYP] ON [dbo].[GKU_RECH_JJJJ_TYP]
(
	[GKU_RECH_ID] ASC,
	[IN_RECHTYP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [GL_CONFIG_PK_GL_CONFIG]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[GL_CONFIG] ADD  CONSTRAINT [GL_CONFIG_PK_GL_CONFIG] PRIMARY KEY NONCLUSTERED 
(
	[ID_CONFIG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [GL_DIRECTORY_PK_GL_DIRECTORY]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[GL_DIRECTORY] ADD  CONSTRAINT [GL_DIRECTORY_PK_GL_DIRECTORY] PRIMARY KEY NONCLUSTERED 
(
	[ID_DIRECTORY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [GRUPPE_PK_GRUPPE]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[GRUPPE] ADD  CONSTRAINT [GRUPPE_PK_GRUPPE] PRIMARY KEY NONCLUSTERED 
(
	[ID_GRUPPE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [GRUPPE_USER_PK_GRUPPE_USER]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[GRUPPE_USER] ADD  CONSTRAINT [GRUPPE_USER_PK_GRUPPE_USER] PRIMARY KEY NONCLUSTERED 
(
	[ID_GRUPPE_USER] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [KST_MKST_PK_KST_MKST]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[KST_MKST] ADD  CONSTRAINT [KST_MKST_PK_KST_MKST] PRIMARY KEY NONCLUSTERED 
(
	[ID_KST_MKST] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [MANDANT_PK_MANDANT]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[MANDANT] ADD  CONSTRAINT [MANDANT_PK_MANDANT] PRIMARY KEY NONCLUSTERED 
(
	[ID_MANDANT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [MKST_PK_MKST]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[MKST] ADD  CONSTRAINT [MKST_PK_MKST] PRIMARY KEY NONCLUSTERED 
(
	[ID_MKST] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NST_STAM_BEM_PK_NST_STAM_BEM]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NST_STAM_BEM] ADD  CONSTRAINT [NST_STAM_BEM_PK_NST_STAM_BEM] PRIMARY KEY NONCLUSTERED 
(
	[ID_NST_STA_BEM] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NST_STAM_DATEN_PK_NST_STAM_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NST_STAM_DATEN] ADD  CONSTRAINT [NST_STAM_DATEN_PK_NST_STAM_DATEN] PRIMARY KEY NONCLUSTERED 
(
	[NST_STAM_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NST_STAM_JJJJ_BEM_PK_NST_STAM_JJJJ_BEM]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NST_STAM_JJJJ_BEM] ADD  CONSTRAINT [NST_STAM_JJJJ_BEM_PK_NST_STAM_JJJJ_BEM] PRIMARY KEY NONCLUSTERED 
(
	[ID_NST_STA_JJJJ_BEM] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NST_STAM_JJJJ_DATEN_PK_NST_STAM_JJJJ_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NST_STAM_JJJJ_DATEN] ADD  CONSTRAINT [NST_STAM_JJJJ_DATEN_PK_NST_STAM_JJJJ_DATEN] PRIMARY KEY NONCLUSTERED 
(
	[NST_STAM_JJJJ_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NST_STAM_JJJJ_KENNUNG_PK_NST_STAM_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NST_STAM_JJJJ_KENNUNG] ADD  CONSTRAINT [NST_STAM_JJJJ_KENNUNG_PK_NST_STAM_JJJJ_KENNUNG] PRIMARY KEY NONCLUSTERED 
(
	[ID_NST_STAM_JJJJ] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NST_STAM_KENNUNG_PK_NST_STAM_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NST_STAM_KENNUNG] ADD  CONSTRAINT [NST_STAM_KENNUNG_PK_NST_STAM_KENNUNG] PRIMARY KEY NONCLUSTERED 
(
	[ID_NST_STAM] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NST_STAM_PRUEF_PK_NST_STAM_PRUEF]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NST_STAM_PRUEF] ADD  CONSTRAINT [NST_STAM_PRUEF_PK_NST_STAM_PRUEF] PRIMARY KEY NONCLUSTERED 
(
	[NST_STAM_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NSTA_JJJJ_BEM_PK_NSTA_JJJJ_BEM]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NSTA_JJJJ_BEM] ADD  CONSTRAINT [NSTA_JJJJ_BEM_PK_NSTA_JJJJ_BEM] PRIMARY KEY NONCLUSTERED 
(
	[ID_NSTA_BEM] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NSTA_JJJJ_DATEN_PK_NSTA_JJJJ_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NSTA_JJJJ_DATEN] ADD  CONSTRAINT [NSTA_JJJJ_DATEN_PK_NSTA_JJJJ_DATEN] PRIMARY KEY NONCLUSTERED 
(
	[NSTA_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NSTA_JJJJ_EDI_DATEIEN_PK_NSTA_JJJJ_EDI_DATEIEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NSTA_JJJJ_EDI_DATEIEN] ADD  CONSTRAINT [NSTA_JJJJ_EDI_DATEIEN_PK_NSTA_JJJJ_EDI_DATEIEN] PRIMARY KEY NONCLUSTERED 
(
	[RECH_EDI_ID] ASC,
	[NSTA_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NSTA_JJJJ_GEBUEHREN_PK_NSTA_JJJJ_GEBUEHREN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [NSTA_JJJJ_GEBUEHREN_PK_NSTA_JJJJ_GEBUEHREN] PRIMARY KEY NONCLUSTERED 
(
	[ID_NSTA_JJJJ_GEB] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NSTA_JJJJ_KENNUNG_PK_NSTA_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NSTA_JJJJ_KENNUNG] ADD  CONSTRAINT [NSTA_JJJJ_KENNUNG_PK_NSTA_JJJJ_KENNUNG] PRIMARY KEY NONCLUSTERED 
(
	[ID_NSTA] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NSTA_JJJJ_TYP_PK_NSTA_JJJJ_TYP]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[NSTA_JJJJ_TYP] ADD  CONSTRAINT [NSTA_JJJJ_TYP_PK_NSTA_JJJJ_TYP] PRIMARY KEY NONCLUSTERED 
(
	[ID_NSTATYP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NSTA_JJJJ_TYP_UNQ1_NSTA_JJJJ_TYP]    Script Date: 31.07.2024 13:02:54 ******/
CREATE UNIQUE NONCLUSTERED INDEX [NSTA_JJJJ_TYP_UNQ1_NSTA_JJJJ_TYP] ON [dbo].[NSTA_JJJJ_TYP]
(
	[NSTA_ID] ASC,
	[IN_NSTATYP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_BEM_PK_RECH_JJJJ_BEM]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_JJJJ_BEM] ADD  CONSTRAINT [RECH_JJJJ_BEM_PK_RECH_JJJJ_BEM] PRIMARY KEY NONCLUSTERED 
(
	[ID_RECH_BEM] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_DATEN_PK_RECH_JJJJ_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_JJJJ_DATEN] ADD  CONSTRAINT [RECH_JJJJ_DATEN_PK_RECH_JJJJ_DATEN] PRIMARY KEY NONCLUSTERED 
(
	[RECH_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_EDI_DATEI_PK_RECH_JJJJ_EDI_DATEI]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_JJJJ_EDI_DATEI] ADD  CONSTRAINT [RECH_JJJJ_EDI_DATEI_PK_RECH_JJJJ_EDI_DATEI] PRIMARY KEY NONCLUSTERED 
(
	[ID_RECH_EDI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_EDI_DATEIEN_PK_RECH_JJJJ_EDI_DATEIEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_JJJJ_EDI_DATEIEN] ADD  CONSTRAINT [RECH_JJJJ_EDI_DATEIEN_PK_RECH_JJJJ_EDI_DATEIEN] PRIMARY KEY NONCLUSTERED 
(
	[RECH_EDI_ID] ASC,
	[RECH_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_EDI_RFN_PK_RECH_JJJJ_EDI_RFN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_JJJJ_EDI_RFN] ADD  CONSTRAINT [RECH_JJJJ_EDI_RFN_PK_RECH_JJJJ_EDI_RFN] PRIMARY KEY NONCLUSTERED 
(
	[ID_RFN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_FREIGABE_PK_RECH_JJJJ_FREIGABE]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_JJJJ_FREIGABE] ADD  CONSTRAINT [RECH_JJJJ_FREIGABE_PK_RECH_JJJJ_FREIGABE] PRIMARY KEY NONCLUSTERED 
(
	[ID_RECH_FREIGABE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_GEBUEHREN_PK_RECH_JJJJ_GEBUEHREN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [RECH_JJJJ_GEBUEHREN_PK_RECH_JJJJ_GEBUEHREN] PRIMARY KEY NONCLUSTERED 
(
	[ID_RECH_JJJJ_GEB] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_KENNUNG_PK_RECH_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_JJJJ_KENNUNG] ADD  CONSTRAINT [RECH_JJJJ_KENNUNG_PK_RECH_JJJJ_KENNUNG] PRIMARY KEY NONCLUSTERED 
(
	[ID_RECH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_TYP_PK_RECH_JJJJ_TYP]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_JJJJ_TYP] ADD  CONSTRAINT [RECH_JJJJ_TYP_PK_RECH_JJJJ_TYP] PRIMARY KEY NONCLUSTERED 
(
	[ID_RECHTYP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_JJJJ_TYP_UNQ1_RECH_JJJJ_TYP]    Script Date: 31.07.2024 13:02:54 ******/
CREATE UNIQUE NONCLUSTERED INDEX [RECH_JJJJ_TYP_UNQ1_RECH_JJJJ_TYP] ON [dbo].[RECH_JJJJ_TYP]
(
	[RECH_ID] ASC,
	[IN_RECHTYP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECH_VIEW_INFO_PK_RECH_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECH_VIEW_INFO] ADD  CONSTRAINT [RECH_VIEW_INFO_PK_RECH_VIEW_INFO] PRIMARY KEY NONCLUSTERED 
(
	[ID_RECH_VIEW_INFO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [RECHPRUEFUNG_VIEW_INFO_PK_RECHPRUEFUNG_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[RECHPRUEFUNG_VIEW_INFO] ADD  CONSTRAINT [RECHPRUEFUNG_VIEW_INFO_PK_RECHPRUEFUNG_VIEW_INFO] PRIMARY KEY NONCLUSTERED 
(
	[ID_RECHPRUEFUNG_VIEW_INFO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [REK_PROTOKOLL_PK_REK_PROTOKOLL]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[REK_PROTOKOLL] ADD  CONSTRAINT [REK_PROTOKOLL_PK_REK_PROTOKOLL] PRIMARY KEY NONCLUSTERED 
(
	[ID_REK_PROTOKOLL] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [REPORT_PK_REPORT]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[REPORT] ADD  CONSTRAINT [REPORT_PK_REPORT] PRIMARY KEY NONCLUSTERED 
(
	[ID_REPORT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [REPORT_BEM_PK_REPORT_BEM]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[REPORT_BEM] ADD  CONSTRAINT [REPORT_BEM_PK_REPORT_BEM] PRIMARY KEY NONCLUSTERED 
(
	[ID_REPORT_BEM] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [REPORT_DATEN_PK_REPORT_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[REPORT_DATEN] ADD  CONSTRAINT [REPORT_DATEN_PK_REPORT_DATEN] PRIMARY KEY NONCLUSTERED 
(
	[ID_REPORT_DATEN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [SEMV_VIEW_INFO_PK_SEMV_VIEW_INFO]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[SEMV_VIEW_INFO] ADD  CONSTRAINT [SEMV_VIEW_INFO_PK_SEMV_VIEW_INFO] PRIMARY KEY NONCLUSTERED 
(
	[ID_SEMV_VIEW_INFO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_BEM_PK_STAM_BEM]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_BEM] ADD  CONSTRAINT [STAM_BEM_PK_STAM_BEM] PRIMARY KEY NONCLUSTERED 
(
	[ID_STA_BEM] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_BKTO_PK_STAM_BKTO]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_BKTO] ADD  CONSTRAINT [STAM_BKTO_PK_STAM_BKTO] PRIMARY KEY NONCLUSTERED 
(
	[ID_BKTO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_DATEN_PK_STAM_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_DATEN] ADD  CONSTRAINT [STAM_DATEN_PK_STAM_DATEN] PRIMARY KEY NONCLUSTERED 
(
	[STAM_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD1_PK_STAM_FELD1]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD1] ADD  CONSTRAINT [STAM_FELD1_PK_STAM_FELD1] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD10_PK_STAM_FELD10]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD10] ADD  CONSTRAINT [STAM_FELD10_PK_STAM_FELD10] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD11_PK_STAM_FELD11]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD11] ADD  CONSTRAINT [STAM_FELD11_PK_STAM_FELD11] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD12_PK_STAM_FELD12]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD12] ADD  CONSTRAINT [STAM_FELD12_PK_STAM_FELD12] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD13_PK_STAM_FELD13]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD13] ADD  CONSTRAINT [STAM_FELD13_PK_STAM_FELD13] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD14_PK_STAM_FELD14]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD14] ADD  CONSTRAINT [STAM_FELD14_PK_STAM_FELD14] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD15_PK_STAM_FELD15]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD15] ADD  CONSTRAINT [STAM_FELD15_PK_STAM_FELD15] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD16_PK_STAM_FELD16]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD16] ADD  CONSTRAINT [STAM_FELD16_PK_STAM_FELD16] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD2_PK_STAM_FELD2]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD2] ADD  CONSTRAINT [STAM_FELD2_PK_STAM_FELD2] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD3_PK_STAM_FELD3]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD3] ADD  CONSTRAINT [STAM_FELD3_PK_STAM_FELD3] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD4_PK_STAM_FELD4]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD4] ADD  CONSTRAINT [STAM_FELD4_PK_STAM_FELD4] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD5_PK_STAM_FELD5]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD5] ADD  CONSTRAINT [STAM_FELD5_PK_STAM_FELD5] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD6_PK_STAM_FELD6]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD6] ADD  CONSTRAINT [STAM_FELD6_PK_STAM_FELD6] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD7_PK_STAM_FELD7]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD7] ADD  CONSTRAINT [STAM_FELD7_PK_STAM_FELD7] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD8_PK_STAM_FELD8]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD8] ADD  CONSTRAINT [STAM_FELD8_PK_STAM_FELD8] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_FELD9_PK_STAM_FELD9]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_FELD9] ADD  CONSTRAINT [STAM_FELD9_PK_STAM_FELD9] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_FELD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_JJJJ_DATEN_PK_STAM_JJJJ_DATEN]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_JJJJ_DATEN] ADD  CONSTRAINT [STAM_JJJJ_DATEN_PK_STAM_JJJJ_DATEN] PRIMARY KEY NONCLUSTERED 
(
	[STAM_JJJJ_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_JJJJ_KENNUNG_PK_STAM_JJJJ_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_JJJJ_KENNUNG] ADD  CONSTRAINT [STAM_JJJJ_KENNUNG_PK_STAM_JJJJ_KENNUNG] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_JJJJ] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_KENNUNG_PK_STAM_KENNUNG]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_KENNUNG] ADD  CONSTRAINT [STAM_KENNUNG_PK_STAM_KENNUNG] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_KST_PK_STAM_KST]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_KST] ADD  CONSTRAINT [STAM_KST_PK_STAM_KST] PRIMARY KEY NONCLUSTERED 
(
	[ID_KST] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_PRUEF_PK_STAM_PRUEF]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_PRUEF] ADD  CONSTRAINT [STAM_PRUEF_PK_STAM_PRUEF] PRIMARY KEY NONCLUSTERED 
(
	[STAM_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_SAFE_PK_STAM_SAFE]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_SAFE] ADD  CONSTRAINT [STAM_SAFE_PK_STAM_SAFE] PRIMARY KEY NONCLUSTERED 
(
	[STAM_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [STAM_TARIF_PK_STAM_TARIF]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[STAM_TARIF] ADD  CONSTRAINT [STAM_TARIF_PK_STAM_TARIF] PRIMARY KEY NONCLUSTERED 
(
	[ID_STAM_TARIF] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [TEL_USER_PK_TEL_USER]    Script Date: 31.07.2024 13:02:54 ******/
ALTER TABLE [dbo].[TEL_USER] ADD  CONSTRAINT [TEL_USER_PK_TEL_USER] PRIMARY KEY NONCLUSTERED 
(
	[ID_USER] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DATEN_ADRESSE] ADD  CONSTRAINT [DF__DATEN_ADR__NEW_D__3D5E1FD2]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[DATEN_MAIL] ADD  CONSTRAINT [DF__DATEN_MAI__NEW_D__239E4DCF]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[DATEN_PERSON] ADD  CONSTRAINT [DF__DATEN_PER__CH_AN__267ABA7A]  DEFAULT ('N') FOR [CH_ANREDE]
GO
ALTER TABLE [dbo].[DATEN_PERSON] ADD  CONSTRAINT [DF__DATEN_PER__NEW_D__276EDEB3]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EMV_EMAILS] ADD  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EPL] ADD  DEFAULT ('EUR') FOR [WAEHRUNG]
GO
ALTER TABLE [dbo].[EPOS] ADD  CONSTRAINT [DF__EPOS__EPREIS__4E1E9780]  DEFAULT ((0)) FOR [EPREIS]
GO
ALTER TABLE [dbo].[EPOS] ADD  CONSTRAINT [DF__EPOS__GPREIS__4F12BBB9]  DEFAULT ((0)) FOR [GPREIS]
GO
ALTER TABLE [dbo].[EPOS] ADD  CONSTRAINT [DF__EPOS__WAEHRUNG__5006DFF2]  DEFAULT (N'EUR') FOR [WAEHRUNG]
GO
ALTER TABLE [dbo].[EPOS] ADD  CONSTRAINT [DF__EPOS__ISGKU__50FB042B]  DEFAULT ((0)) FOR [ISGKU]
GO
ALTER TABLE [dbo].[EPOS] ADD  CONSTRAINT [DF__EPOS__NEW_DAT__51EF2864]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EPOS_CTGGRUPPE] ADD  CONSTRAINT [DF__EPOS_CTGG__NEW_D__34C8D9D1]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EPOS_CTPF] ADD  CONSTRAINT [DF__EPOS_CTPF__NEW_D__30F848ED]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EPOS_TEXT] ADD  CONSTRAINT [DF__EPOS_TEXT__NEW_D__5A846E65]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EPZ] ADD  CONSTRAINT [DF__EPZ__NEW_DAT__20ACD28B]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EVN_CARRIER] ADD  CONSTRAINT [DF__EVN_CARRI__NEW_D__1B9317B3]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EVN_JJJJ_EDI_DATEI] ADD  CONSTRAINT [DF__EVN_JJJJ___NEW_D__01342732]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EVN_MATERIAL] ADD  CONSTRAINT [DF__EVN_MATER__NEW_D__4AB81AF0]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EVN_TARIFZEIT] ADD  CONSTRAINT [DF__EVN_TARIF__NEW_D__4F7CD00D]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EVN_TBEREICH] ADD  CONSTRAINT [DF__EVN_TBERE__NEW_D__59FA5E80]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EVZ] ADD  CONSTRAINT [DF__EVZ__NEW_DAT__5EBF139D]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[FELD_NAMEN] ADD  CONSTRAINT [DF__FELD_NAME__NEW_D__7B7B4DDC]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH_JJ__FIX__25A691D2]  DEFAULT ((0)) FOR [FIX]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH_JJ__VAR__269AB60B]  DEFAULT ((0)) FOR [VAR]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH_JJ__EIN__278EDA44]  DEFAULT ((0)) FOR [EIN]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___FREMD__2882FE7D]  DEFAULT ((0)) FOR [FREMD]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___RABAT__297722B6]  DEFAULT ((0)) FOR [RABATT]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___GUTSC__2A6B46EF]  DEFAULT ((0)) FOR [GUTSCHRIFT]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___NETTO__2B5F6B28]  DEFAULT ((0)) FOR [NETTO]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___USTPF__2C538F61]  DEFAULT ((0)) FOR [USTPFL]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___UST_F__2D47B39A]  DEFAULT ((0)) FOR [UST_FIX]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___UST_V__2E3BD7D3]  DEFAULT ((0)) FOR [UST_VAR]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___UST_E__2F2FFC0C]  DEFAULT ((0)) FOR [UST_EIN]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___UST_F__30242045]  DEFAULT ((0)) FOR [UST_FREMD]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___UST_R__3118447E]  DEFAULT ((0)) FOR [UST_RABATT]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___UST_G__320C68B7]  DEFAULT ((0)) FOR [UST_GUTSCHRIFT]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH_JJ__UST__33008CF0]  DEFAULT ((0)) FOR [UST]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___BRUTT__33F4B129]  DEFAULT ((0)) FOR [BRUTTO]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH_J__MPAY__34E8D562]  DEFAULT ((0)) FOR [MPAY]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___UEBER__35DCF99B]  DEFAULT ((0)) FOR [UEBERTRAG]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___GESAM__36D11DD4]  DEFAULT ((0)) FOR [GESAMT]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___PAUSC__37C5420D]  DEFAULT ((0)) FOR [PAUSCHAL]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___NETTO__38B96646]  DEFAULT ((0)) FOR [NETTO_SOLL]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___WAEHR__39AD8A7F]  DEFAULT ('EUR') FOR [WAEHRUNG]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__GKU_RECH___NEW_D__3AA1AEB8]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_KENNUNG] ADD  CONSTRAINT [DF__GKU_RECH___NEW_D__787EE5A0]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[GKU_RECH_JJJJ_TYP] ADD  CONSTRAINT [DF__GKU_RECH___NEW_D__00200768]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[GL_CONFIG] ADD  CONSTRAINT [DF__GL_CONFIG__MANDA__71D1E811]  DEFAULT ((0)) FOR [MANDANT_ID]
GO
ALTER TABLE [dbo].[GL_CONFIG] ADD  CONSTRAINT [DF__GL_CONFIG__NEW_D__72C60C4A]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[GL_DIRECTORY] ADD  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[GRUPPE] ADD  CONSTRAINT [DF__GRUPPE__NEW_DAT__0C85DE4D]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[MANDANT] ADD  CONSTRAINT [DF__MANDANT__NEW_DAT__5441852A]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[MKST] ADD  CONSTRAINT [DF__MKST__NEW_DAT__6991A7CB]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NST_STAM_BEM] ADD  CONSTRAINT [DF__NST_STAM___NEW_D__5D95E53A]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NST_STAM_DATEN] ADD  CONSTRAINT [DF__NST_STAM___NEW_D__4DB4832C]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NST_STAM_JJJJ_BEM] ADD  CONSTRAINT [DF__NST_STAM___NEW_D__56E8E7AB]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NST_STAM_JJJJ_DATEN] ADD  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NST_STAM_JJJJ_KENNUNG] ADD  CONSTRAINT [DF__NST_STAM___NEW_D__31B762FC]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NST_STAM_KENNUNG] ADD  CONSTRAINT [DF__NST_STAM___NEW_D__18EBB532]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NST_STAM_PRUEF] ADD  DEFAULT ((0)) FOR [GRENZWERTFIX]
GO
ALTER TABLE [dbo].[NST_STAM_PRUEF] ADD  DEFAULT ((0)) FOR [GRENZWERTVARIABEL]
GO
ALTER TABLE [dbo].[NST_STAM_PRUEF] ADD  DEFAULT ((0)) FOR [ERSTATTUNG]
GO
ALTER TABLE [dbo].[NST_STAM_PRUEF] ADD  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_BEM] ADD  CONSTRAINT [DF__NSTA_JJJJ__NEW_D__690797E6]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_DATEN] ADD  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_EDI_DATEIEN] ADD  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ_G__FIX__05F8DC4F]  DEFAULT ((0)) FOR [FIX]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ_G__VAR__06ED0088]  DEFAULT ((0)) FOR [VAR]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ_G__EIN__07E124C1]  DEFAULT ((0)) FOR [EIN]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__FREMD__08D548FA]  DEFAULT ((0)) FOR [FREMD]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__RABAT__09C96D33]  DEFAULT ((0)) FOR [RABATT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__GUTSC__0ABD916C]  DEFAULT ((0)) FOR [GUTSCHRIFT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__NETTO__0BB1B5A5]  DEFAULT ((0)) FOR [NETTO]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__USTPF__0CA5D9DE]  DEFAULT ((0)) FOR [USTPFL]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__UST_F__0D99FE17]  DEFAULT ((0)) FOR [UST_FIX]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__UST_V__0E8E2250]  DEFAULT ((0)) FOR [UST_VAR]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__UST_E__0F824689]  DEFAULT ((0)) FOR [UST_EIN]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__UST_F__10766AC2]  DEFAULT ((0)) FOR [UST_FREMD]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__UST_R__116A8EFB]  DEFAULT ((0)) FOR [UST_RABATT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__UST_G__125EB334]  DEFAULT ((0)) FOR [UST_GUTSCHRIFT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ_G__UST__1352D76D]  DEFAULT ((0)) FOR [UST]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__BRUTT__1446FBA6]  DEFAULT ((0)) FOR [BRUTTO]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ___MPAY__153B1FDF]  DEFAULT ((0)) FOR [MPAY]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__UEBER__162F4418]  DEFAULT ((0)) FOR [UEBERTRAG]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__GESAM__17236851]  DEFAULT ((0)) FOR [GESAMT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__PAUSC__18178C8A]  DEFAULT ((0)) FOR [PAUSCHAL]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__NETTO__190BB0C3]  DEFAULT ((0)) FOR [NETTO_SOLL]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__WAEHR__19FFD4FC]  DEFAULT ('EUR') FOR [WAEHRUNG]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__NSTA_JJJJ__NEW_D__1AF3F935]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_KENNUNG] ADD  CONSTRAINT [DF__NSTA_JJJJ__NEW_D__3F115E1A]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[NSTA_JJJJ_TYP] ADD  CONSTRAINT [DF__NSTA_JJJJ__NEW_D__46B27FE2]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_BEM] ADD  CONSTRAINT [DF__RECH_JJJJ__NEW_D__414EAC47]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_DATEN] ADD  CONSTRAINT [DF__RECH_JJJJ__NEW_D__43A1090D]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_EDI_DATEI] ADD  CONSTRAINT [DF__RECH_JJJJ__KONVE__6D0D32F4]  DEFAULT (getdate()) FOR [KONVERTIER_DAT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_EDI_DATEIEN] ADD  CONSTRAINT [DF__RECH_JJJJ__NEW_D__74CE504D]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_EDI_RFN] ADD  CONSTRAINT [DF__RECH_JJJJ__NEW_D__440B1D61]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_FREIGABE] ADD  CONSTRAINT [DF__RECH_JJJJ__NEW_D__3A4CA8FD]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ_G__FIX__2057CCD0]  DEFAULT ((0)) FOR [FIX]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ_G__VAR__214BF109]  DEFAULT ((0)) FOR [VAR]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ_G__EIN__22401542]  DEFAULT ((0)) FOR [EIN]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__FREMD__2334397B]  DEFAULT ((0)) FOR [FREMD]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__RABAT__24285DB4]  DEFAULT ((0)) FOR [RABATT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__GUTSC__251C81ED]  DEFAULT ((0)) FOR [GUTSCHRIFT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__NETTO__2610A626]  DEFAULT ((0)) FOR [NETTO]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__USTPF__2704CA5F]  DEFAULT ((0)) FOR [USTPFL]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__UST_F__27F8EE98]  DEFAULT ((0)) FOR [UST_FIX]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__UST_V__28ED12D1]  DEFAULT ((0)) FOR [UST_VAR]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__UST_E__29E1370A]  DEFAULT ((0)) FOR [UST_EIN]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__UST_F__2AD55B43]  DEFAULT ((0)) FOR [UST_FREMD]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__UST_R__2BC97F7C]  DEFAULT ((0)) FOR [UST_RABATT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__UST_G__2CBDA3B5]  DEFAULT ((0)) FOR [UST_GUTSCHRIFT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ_G__UST__2DB1C7EE]  DEFAULT ((0)) FOR [UST]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__BRUTT__2EA5EC27]  DEFAULT ((0)) FOR [BRUTTO]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ___ALIB__2F9A1060]  DEFAULT ((0)) FOR [ALIB]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ___MPAY__308E3499]  DEFAULT ((0)) FOR [MPAY]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__UEBER__318258D2]  DEFAULT ((0)) FOR [UEBERTRAG]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__GESAM__32767D0B]  DEFAULT ((0)) FOR [GESAMT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__PAUSC__336AA144]  DEFAULT ((0)) FOR [PAUSCHAL]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__NETTO__345EC57D]  DEFAULT ((0)) FOR [NETTO_SOLL]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__WAEHR__3552E9B6]  DEFAULT ('EUR') FOR [WAEHRUNG]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__ISGKU__36470DEF]  DEFAULT ((0)) FOR [ISGKU]
GO
ALTER TABLE [dbo].[RECH_JJJJ_GEBUEHREN] ADD  CONSTRAINT [DF__RECH_JJJJ__NEW_D__373B3228]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_KENNUNG] ADD  CONSTRAINT [DF__RECH_JJJJ__ISGKU__12FDD1B2]  DEFAULT ((0)) FOR [ISGKU]
GO
ALTER TABLE [dbo].[RECH_JJJJ_KENNUNG] ADD  CONSTRAINT [DF__RECH_JJJJ__NEW_D__13F1F5EB]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[RECH_JJJJ_TYP] ADD  CONSTRAINT [DF__RECH_JJJJ__NEW_D__3DE82FB7]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[REK_PROTOKOLL] ADD  CONSTRAINT [DF__REK_PROTO__NEW_D__67DE6983]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[REPORT] ADD  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[REPORT_BEM] ADD  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[REPORT_DATEN] ADD  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[SEMV] ADD  CONSTRAINT [DF__SEMV__NEW_DAT__7BE56230]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[SEMV_EPOSDATA] ADD  CONSTRAINT [DF__SEMV_EPOS__NEW_D__7DCDAAA2]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[SEMV_EVNDATA] ADD  CONSTRAINT [DF__SEMV_EVND__NEW_D__7FB5F314]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[SEMV_MAILSTATUS] ADD  CONSTRAINT [DF__SEMV_MAIL__NEW_D__019E3B86]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[SEMV_MAILTEXT] ADD  CONSTRAINT [DF__SEMV_MAIL__NEW_D__038683F8]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[SEMV_RECHDATA] ADD  CONSTRAINT [DF__SEMV_RECH__NEW_D__056ECC6A]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_BEM] ADD  CONSTRAINT [DF__STAM_BEM__NEW_DA__603D47BB]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_BKTO] ADD  CONSTRAINT [DF__STAM_BKTO__NEW_D__38996AB5]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_DATEN] ADD  CONSTRAINT [DF__STAM_DATE__NEW_D__4C0144E4]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD1] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__46486B8E]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD10] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__408F9238]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD11] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__208CD6FA]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD12] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__2645B050]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD13] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__2BFE89A6]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD14] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__634EBE90]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD15] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__7755B73D]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD16] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__7D0E9093]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD2] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__02C769E9]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD3] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__1881A0DE]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD4] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__1E3A7A34]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD5] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__23F3538A]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD6] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__29AC2CE0]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD7] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__2F650636]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD8] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__351DDF8C]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_FELD9] ADD  CONSTRAINT [DF__STAM_FELD__NEW_D__3AD6B8E2]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_JJJJ_DATEN] ADD  CONSTRAINT [DF__STAM_JJJJ__NEW_D__0CDAE408]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_JJJJ_KENNUNG] ADD  CONSTRAINT [DF__STAM_JJJJ__NEW_D__0A688BB1]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_KENNUNG] ADD  CONSTRAINT [DF__STAM_KENN__NEW_D__6383C8BA]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_KST] ADD  CONSTRAINT [DF__STAM_KST__NEW_DA__05D8E0BE]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_PRUEF] ADD  CONSTRAINT [DF__STAM_PRUE__GRENZ__0A338187]  DEFAULT ((0)) FOR [GRENZWERTFIX]
GO
ALTER TABLE [dbo].[STAM_PRUEF] ADD  CONSTRAINT [DF__STAM_PRUE__GRENZ__0B27A5C0]  DEFAULT ((0)) FOR [GRENZWERTVARIABEL]
GO
ALTER TABLE [dbo].[STAM_PRUEF] ADD  CONSTRAINT [DF__STAM_PRUE__ERSTA__0C1BC9F9]  DEFAULT ((0)) FOR [ERSTATTUNG]
GO
ALTER TABLE [dbo].[STAM_PRUEF] ADD  CONSTRAINT [DF__STAM_PRUE__NEW_D__0D0FEE32]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_SAFE] ADD  CONSTRAINT [DF__STAM_SAFE__NEW_D__12C8C788]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[STAM_TARIF] ADD  CONSTRAINT [DF__STAM_TARI__NEW_D__63D8CE75]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[TEL_USER] ADD  CONSTRAINT [DF__TEL_USER__NEW_DA__2A4B4B5E]  DEFAULT (getdate()) FOR [NEW_DAT]
GO
ALTER TABLE [dbo].[EPL]  WITH CHECK ADD  CONSTRAINT [FK_EPL_BKTO_ID] FOREIGN KEY([BKTO_ID])
REFERENCES [dbo].[STAM_BKTO] ([ID_BKTO])
GO
ALTER TABLE [dbo].[EPL] CHECK CONSTRAINT [FK_EPL_BKTO_ID]
GO
ALTER TABLE [dbo].[EPL]  WITH CHECK ADD  CONSTRAINT [FK_EPL_EDIT_U_ID] FOREIGN KEY([EDIT_U_ID])
REFERENCES [dbo].[TEL_USER] ([ID_USER])
GO
ALTER TABLE [dbo].[EPL] CHECK CONSTRAINT [FK_EPL_EDIT_U_ID]
GO
ALTER TABLE [dbo].[EPL]  WITH CHECK ADD  CONSTRAINT [FK_EPL_NEW_U_ID] FOREIGN KEY([NEW_U_ID])
REFERENCES [dbo].[TEL_USER] ([ID_USER])
GO
ALTER TABLE [dbo].[EPL] CHECK CONSTRAINT [FK_EPL_NEW_U_ID]
GO
ALTER TABLE [dbo].[EPL]  WITH CHECK ADD  CONSTRAINT [FK_EPL_RFN_ID] FOREIGN KEY([RFN_ID])
REFERENCES [dbo].[RECH_JJJJ_EDI_RFN] ([ID_RFN])
GO
ALTER TABLE [dbo].[EPL] CHECK CONSTRAINT [FK_EPL_RFN_ID]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "TEL_USER"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "User_New"
            Begin Extent = 
               Top = 6
               Left = 243
               Bottom = 136
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "User_Edit"
            Begin Extent = 
               Top = 6
               Left = 448
               Bottom = 136
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Person"
            Begin Extent = 
               Top = 6
               Left = 653
               Bottom = 136
               Right = 872
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MAIL_AN"
            Begin Extent = 
               Top = 6
               Left = 910
               Bottom = 136
               Right = 1077
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MAIL_VON"
            Begin Extent = 
               Top = 6
               Left = 1115
               Bottom = 136
               Right = 1282
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
        ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'BENUTZER_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N' Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'BENUTZER_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'BENUTZER_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "EPL"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 6
               Left = 243
               Bottom = 136
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 448
               Bottom = 136
               Right = 655
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NewU"
            Begin Extent = 
               Top = 6
               Left = 693
               Bottom = 136
               Right = 860
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EditU"
            Begin Extent = 
               Top = 6
               Left = 898
               Bottom = 136
               Right = 1065
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPL_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPL_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPL_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "EPOS"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 229
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 267
               Bottom = 136
               Right = 452
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_DATEIEN"
            Begin Extent = 
               Top = 138
               Left = 1686
               Bottom = 268
               Right = 1853
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_DATEI"
            Begin Extent = 
               Top = 402
               Left = 1678
               Bottom = 532
               Right = 1863
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 6
               Left = 490
               Bottom = 136
               Right = 657
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 695
               Bottom = 136
               Right = 902
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EPZ"
            Begin Extent = 
               Top = 6
               Left = 940
               Bottom = 136
               ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPOS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'Right = 1118
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 1156
               Bottom = 136
               Right = 1341
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 1379
               Bottom = 136
               Right = 1559
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 1597
               Bottom = 136
               Right = 1764
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 138
               Left = 244
               Bottom = 268
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 450
               Bottom = 268
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 656
               Bottom = 268
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 862
               Bottom = 268
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 1068
               Bottom = 268
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 1274
               Bottom = 268
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 138
               Left = 1480
               Bottom = 268
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPOS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 270
               Left = 1480
               Bottom = 400
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KST"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_TYP"
            Begin Extent = 
               Top = 402
               Left = 243
               Bottom = 532
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 402
               Left = 448
               Bottom = 532
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "ZUSATZTEXT1"
            Begin Extent = 
               Top = 402
               Left = 653
               Bottom = 532
               Right = 820
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "ZUSATZTEXT2"
            Begin Extent = 
               Top = 402
               Left = 858
               Bottom = 532
               Right = 1025
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "ZUSATZTEXT3"
            Begin Extent = 
               Top = 402
               Left = 1063
               Bottom = 532
               Right = 1230
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "ZUSATZTEXT4"
            Begin Extent = 
               Top = 402
               Left = 1268
               Bottom = 532
               Right = 1435
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "ZUSATZTEXT5"
            Begin Extent = 
               Top = 402
               Left = 1473
               Bottom = 532
               Right = 1640
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EPOS_CTPF"
            Begin Extent = 
               Top = 534
               Left = 38
               Bottom = 664
               Right = 227' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPOS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane4', @value=N'
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EPOS_CTGGRUPPE"
            Begin Extent = 
               Top = 534
               Left = 265
               Bottom = 664
               Right = 467
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 534
               Left = 505
               Bottom = 664
               Right = 672
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 534
               Left = 710
               Bottom = 664
               Right = 877
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 64
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPOS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=4 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPOS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "EPOS_TEXT"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "TEL_USER"
            Begin Extent = 
               Top = 6
               Left = 243
               Bottom = 136
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPOSTEXTE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPOSTEXTE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "EPZ"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 216
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 254
               Bottom = 136
               Right = 461
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NewU"
            Begin Extent = 
               Top = 6
               Left = 499
               Bottom = 136
               Right = 666
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EditU"
            Begin Extent = 
               Top = 6
               Left = 704
               Bottom = 136
               Right = 871
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EPOS"
            Begin Extent = 
               Top = 6
               Left = 909
               Bottom = 136
               Right = 1100
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EPOS_CTGGRUPPE"
            Begin Extent = 
               Top = 6
               Left = 1138
               Bottom = 136
               Right = 1340
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EPOS_CTPF"
            Begin Extent = 
               Top = 6
               Left = 1378
               Bottom = 136
               Right = 1567
            End
       ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPZ_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'     DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 16
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPZ_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EPZ_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "EVN"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 68
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EVN_MATERIAL"
            Begin Extent = 
               Top = 6
               Left = 243
               Bottom = 136
               Right = 432
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EVN_TBEREICH"
            Begin Extent = 
               Top = 6
               Left = 470
               Bottom = 136
               Right = 655
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EVN_TARIFZEIT"
            Begin Extent = 
               Top = 6
               Left = 693
               Bottom = 136
               Right = 879
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EVN_CARRIER"
            Begin Extent = 
               Top = 6
               Left = 917
               Bottom = 136
               Right = 1095
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 1133
               Bottom = 136
               Right = 1318
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 1356
               Bottom = 136
               Right = 1536' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EVN_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 1574
               Bottom = 136
               Right = 1741
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 72
               Left = 38
               Bottom = 202
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 138
               Left = 244
               Bottom = 268
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 450
               Bottom = 268
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 656
               Bottom = 268
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 862
               Bottom = 268
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 1068
               Bottom = 268
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 1274
               Bottom = 268
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 138
               Left = 1480
               Bottom = 268
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 138
               Left = 1686
               Bottom = 268
               Right = 1854
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 204
               Left = 38
               Bottom = 334
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EVN_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KST"
            Begin Extent = 
               Top = 270
               Left = 1480
               Bottom = 400
               Right = 1647
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 270
               Left = 1685
               Bottom = 400
               Right = 1852
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EVZ"
            Begin Extent = 
               Top = 336
               Left = 38
               Bottom = 466
               Right = 226
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 402
               Left = 264
               Bottom = 532
               Right = 471
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EVN_JJJJ_EDI_DATEI"
            Begin Extent = 
               Top = 402
               Left = 919
               Bottom = 532
               Right = 1126
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_DATEI"
            Begin Extent = 
               Top = 402
               Left = 1164
               Bottom = 532
               Right = 1349
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 402
               Left = 509
               Bottom = 532
               Right = 676
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 402
               Left = 714
               Bottom = 532
               Right = 881
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 52
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 150' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EVN_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane4', @value=N'0
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EVN_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=4 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EVN_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "EVZ"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 226
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NewU"
            Begin Extent = 
               Top = 6
               Left = 264
               Bottom = 136
               Right = 431
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EditU"
            Begin Extent = 
               Top = 6
               Left = 469
               Bottom = 136
               Right = 636
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EVZ_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EVZ_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "RECH_JJJJ_GEBUEHREN"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 222
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 260
               Bottom = 136
               Right = 445
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 483
               Bottom = 136
               Right = 695
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 733
               Bottom = 136
               Right = 940
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 978
               Bottom = 136
               Right = 1163
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 1201
               Bottom = 136
               Right = 1381
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 1419
               Bottom = 136
  ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EXPORT_BUCHHALTUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'             Right = 1586
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 257
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 1624
               Bottom = 136
               Right = 1809
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 138
               Left = 295
               Bottom = 268
               Right = 463
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 138
               Left = 501
               Bottom = 268
               Right = 669
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 707
               Bottom = 268
               Right = 875
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 913
               Bottom = 268
               Right = 1081
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 1119
               Bottom = 268
               Right = 1287
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 1325
               Bottom = 268
               Right = 1493
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 1531
               Bottom = 268
               Right = 1699
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
              ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EXPORT_BUCHHALTUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N' Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 1480
               Bottom = 400
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_PRUEF"
            Begin Extent = 
               Top = 402
               Left = 244
               Bottom = 532
               Right = 453
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_FREIGABE"
            Begin Extent = 
               Top = 402
               Left = 491
               Bottom = 532
               Right = 682
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_TYP"
            Begin Extent = 
               Top = 402
               Left = 720
               Bottom = 532
               Right = 887
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "KSTG"
            Begin Extent = 
               Top = 402
               Left = 925
               Bottom = 532
               Right = 1092
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "KSTS"
            Begin Extent = 
               Top = 402
               Left = 1130
               Bottom = 532
               Right = 1297
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_FREIGABE"
            Begin Extent = 
               Top = 402
               Left = 1335
               Bottom = 532
               Right = 1502
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 402
               Left = 1540
               Bottom = 532
               Right = 1707
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 534
               Left = 38
               Bottom = 664
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_GEBUCHT"
            Begin Extent = 
               Top = 534
               Left = 243
               Bottom = 664
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 534
               Left = 448
               Bottom = 664
               R' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EXPORT_BUCHHALTUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane4', @value=N'ight = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 534
               Left = 653
               Bottom = 664
               Right = 820
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EXPORT_BUCHHALTUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=4 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'EXPORT_BUCHHALTUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "GKU_EPOS"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 234
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EPOS_CTPF"
            Begin Extent = 
               Top = 6
               Left = 243
               Bottom = 136
               Right = 432
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "EPOS_CTGGRUPPE"
            Begin Extent = 
               Top = 6
               Left = 470
               Bottom = 136
               Right = 672
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 6
               Left = 710
               Bottom = 136
               Right = 877
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 6
               Left = 915
               Bottom = 136
               Right = 1082
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'GKU_EPOS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'GKU_EPOS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'GKU_EPOS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "GKU_RECH_JJJJ_GEBUEHREN"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 248
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "GKU_RECH_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 286
               Bottom = 136
               Right = 471
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 509
               Bottom = 136
               Right = 694
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 732
               Bottom = 136
               Right = 939
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_DATEN"
            Begin Extent = 
               Top = 6
               Left = 977
               Bottom = 136
               Right = 1157
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 6
               Left = 1195
               Bottom = 136
               Right = 1414
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 6
               Left = 1452
               Bottom = 136
    ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'GKU_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'           Right = 1620
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 6
               Left = 1658
               Bottom = 136
               Right = 1826
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 244
               Bottom = 268
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 450
               Bottom = 268
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 656
               Bottom = 268
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 862
               Bottom = 268
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 138
               Left = 1068
               Bottom = 268
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 138
               Left = 1274
               Bottom = 268
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 138
               Left = 1480
               Bottom = 268
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
               Ri' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'GKU_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'ght = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1441
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "GKU_RECH_JJJJ_TYP"
            Begin Extent = 
               Top = 270
               Left = 1479
               Bottom = 400
               Right = 1663
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "KSTS"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 402
               Left = 243
               Bottom = 532
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 402
               Left = 448
               Bottom = 532
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 402
               Left = 653
               Bottom = 532
               Right = 820
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 402
               Left = 858
               Bottom = 532
               Right = 1025
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'GKU_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=3 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'GKU_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "GRUPPE"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "User_New"
            Begin Extent = 
               Top = 6
               Left = 243
               Bottom = 136
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "User_Edit"
            Begin Extent = 
               Top = 6
               Left = 448
               Bottom = 136
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'GRUPPE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'GRUPPE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[21] 4[23] 2[37] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "HWV_HARDWARE_KOMPLEX"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "HWV_HARDWARE_TYPEN_KOMPLEX"
            Begin Extent = 
               Top = 6
               Left = 303
               Bottom = 136
               Right = 571
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "HWV_HARDWARE_DETAIL"
            Begin Extent = 
               Top = 6
               Left = 609
               Bottom = 136
               Right = 877
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 915
               Bottom = 136
               Right = 1100
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 6
               Left = 1138
               Bottom = 136
               Right = 1305
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 6
               Left = 1343
               Bottom = 136
               Right = 1510
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'HWV_HARDWARE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N' = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 10
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'HWV_HARDWARE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'HWV_HARDWARE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 6
               Left = 243
               Bottom = 136
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 6
               Left = 448
               Bottom = 136
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 6
               Left = 653
               Bottom = 136
               Right = 820
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
     ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'MANDANT_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'    Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'MANDANT_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'MANDANT_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "NSTA_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 235
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NSTA_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 273
               Bottom = 136
               Right = 485
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NSTA_JJJJ_GEBUEHREN"
            Begin Extent = 
               Top = 6
               Left = 523
               Bottom = 136
               Right = 707
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 745
               Bottom = 136
               Right = 952
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NST_STAM_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 990
               Bottom = 136
               Right = 1187
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NST_STAM_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 1225
               Bottom = 136
               Right = 1410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 1448
               Bottom =' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_AUSW_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N' 136
               Right = 1615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 257
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NST_STAM_KENNUNG"
            Begin Extent = 
               Top = 138
               Left = 295
               Bottom = 268
               Right = 492
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NST_STAM_PRUEF"
            Begin Extent = 
               Top = 138
               Left = 530
               Bottom = 268
               Right = 739
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 6
               Left = 1653
               Bottom = 136
               Right = 1821
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 138
               Left = 777
               Bottom = 268
               Right = 945
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 983
               Bottom = 268
               Right = 1151
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 1189
               Bottom = 268
               Right = 1357
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 1395
               Bottom = 268
               Right = 1563
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 1601
               Bottom = 268
               Right = 1769
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_AUSW_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 1480
               Bottom = 400
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 402
               Left = 244
               Bottom = 532
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD_NST_AUFTEILUNG"
            Begin Extent = 
               Top = 534
               Left = 448
               Bottom = 664
               Right = 717
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_FREIGABE"
            Begin Extent = 
               Top = 402
               Left = 450
               Bottom = 532
               Right = 641
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NSTA_JJJJ_TYP"
            Begin Extent = 
               Top = 402
               Left = 679
               Bottom = 532
               Right = 846
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KST"
            Begin Extent = 
               Top = 402
               Left = 884
               Bottom = 532
               Right = 1051
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_FREIGABE"
            Begin Extent = 
               Top = 402
               Left = 1089
               Bottom = 532
               Right = 1256
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 402
               Left = 1294
               Bottom = 532
               Right = 1461
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 402
               Left = 1499
               Bottom = 532
               Right = 1666
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 534
               Left = 38
               Bottom = 664
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 534
               Left = 243
        ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_AUSW_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane4', @value=N'       Bottom = 664
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_AUSW_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=4 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_AUSW_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "NST_STAM_BEM"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 220
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "TEL_USER"
            Begin Extent = 
               Top = 6
               Left = 258
               Bottom = 136
               Right = 425
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_BEMERKUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_BEMERKUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "NST_STAM_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 223
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NST_STAM_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 261
               Bottom = 136
               Right = 458
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 6
               Left = 496
               Bottom = 136
               Right = 663
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 701
               Bottom = 136
               Right = 908
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 946
               Bottom = 136
               Right = 1113
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 6
               Left = 1151
               Bottom = 136
               Right = 1370
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 6
               Left = 1408
               Bottom = 136
              ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N' Right = 1576
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 6
               Left = 1614
               Bottom = 136
               Right = 1782
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 244
               Bottom = 268
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 450
               Bottom = 268
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 656
               Bottom = 268
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 862
               Bottom = 268
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 138
               Left = 1068
               Bottom = 268
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 138
               Left = 1274
               Bottom = 268
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 138
               Left = 1480
               Bottom = 268
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
               Right = 1030' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NST_STAM_PRUEF"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1483
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KST"
            Begin Extent = 
               Top = 270
               Left = 1521
               Bottom = 400
               Right = 1688
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 402
               Left = 243
               Bottom = 532
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 402
               Left = 448
               Bottom = 532
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=3 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "NST_STAM_DATEN"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 218
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NST_STAM_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 256
               Bottom = 136
               Right = 453
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 6
               Left = 491
               Bottom = 136
               Right = 658
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 696
               Bottom = 136
               Right = 903
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 941
               Bottom = 136
               Right = 1108
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 6
               Left = 1146
               Bottom = 136
               Right = 1365
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 6
               Left = 1403
               Bottom = 136
               Right = 1' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'571
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 6
               Left = 1609
               Bottom = 136
               Right = 1777
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 244
               Bottom = 268
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 450
               Bottom = 268
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 656
               Bottom = 268
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 862
               Bottom = 268
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 138
               Left = 1068
               Bottom = 268
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 138
               Left = 1274
               Bottom = 268
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 138
               Left = 1480
               Bottom = 268
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
               Right = 1030
        ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'    End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "NST_STAM_PRUEF"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1483
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KST"
            Begin Extent = 
               Top = 270
               Left = 1521
               Bottom = 400
               Right = 1688
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 402
               Left = 243
               Bottom = 532
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 402
               Left = 448
               Bottom = 532
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD_NST_AUFTEILUNG"
            Begin Extent = 
               Top = 402
               Left = 653
               Bottom = 532
               Right = 922
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 37
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=3 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NST_STAM_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "NSTA_JJJJ_BEM"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 216
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "TEL_USER"
            Begin Extent = 
               Top = 6
               Left = 254
               Bottom = 136
               Right = 421
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NSTA_JJJJ_BEMERKUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'NSTA_JJJJ_BEMERKUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 257
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "User_New"
            Begin Extent = 
               Top = 6
               Left = 295
               Bottom = 136
               Right = 462
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "User_Edit"
            Begin Extent = 
               Top = 6
               Left = 500
               Bottom = 136
               Right = 667
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 6
               Left = 705
               Bottom = 136
               Right = 872
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
    ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'PERSON_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'     Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'PERSON_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'PERSON_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "RECH_JJJJ_BEM"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 216
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "TEL_USER"
            Begin Extent = 
               Top = 6
               Left = 254
               Bottom = 136
               Right = 421
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECH_JJJJ_BEMERKUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECH_JJJJ_BEMERKUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[26] 4[16] 2[34] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "RECH_JJJJ_GEBUEHREN"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 222
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 270
               Left = 260
               Bottom = 400
               Right = 445
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_DATEN"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 250
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 138
               Left = 288
               Bottom = 268
               Right = 495
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 930
               Left = 256
               Bottom = 1060
               Right = 441
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_DATEN"
            Begin Extent = 
               Top = 930
               Left = 38
               Bottom = 1060
               Right = 218
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 500
               Bottom =' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N' 136
               Right = 667
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 6
               Left = 243
               Bottom = 136
               Right = 462
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KENNUNG"
            Begin Extent = 
               Top = 930
               Left = 479
               Bottom = 1060
               Right = 664
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_PRUEF"
            Begin Extent = 
               Top = 1062
               Left = 38
               Bottom = 1192
               Right = 247
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 666
               Left = 38
               Bottom = 796
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 666
               Left = 244
               Bottom = 796
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 666
               Left = 450
               Bottom = 796
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 666
               Left = 656
               Bottom = 796
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 798
               Left = 38
               Bottom = 928
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 798
               Left = 244
               Bottom = 928
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 798
               Left = 450
               Bottom = 928
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 798
               Left = 656
               Bottom = 928
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 402
               Left = 244
               Bottom = 532
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 402
               Left = 450
               Bottom = 532
               R' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'ight = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 402
               Left = 656
               Bottom = 532
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 534
               Left = 38
               Bottom = 664
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 534
               Left = 244
               Bottom = 664
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 534
               Left = 450
               Bottom = 664
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 534
               Left = 656
               Bottom = 664
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD_NST_AUFTEILUNG"
            Begin Extent = 
               Top = 138
               Left = 762
               Bottom = 268
               Right = 1031
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_FREIGABE"
            Begin Extent = 
               Top = 138
               Left = 533
               Bottom = 268
               Right = 724
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_TYP"
            Begin Extent = 
               Top = 270
               Left = 483
               Bottom = 400
               Right = 650
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "KSTG"
            Begin Extent = 
               Top = 930
               Left = 702
               Bottom = 1060
               Right = 869
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "KSTS"
            Begin Extent = 
               Top = 6
               Left = 705
               Bottom = 136
               Right = 872
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_FREIGABE"
            Begin Extent = 
               Top = 1062
               Left = 285
               Bottom = 1192
               Right = 452
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 270
               Left = 688
               Bottom = 400
               Right = 855
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 6
               Left = 910
               Bottom = 136
               Right = ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane4', @value=N'1077
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 6
               Left = 1115
               Bottom = 136
               Right = 1282
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 78
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=4 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "RECH_JJJJ_GEBUEHREN"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 222
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 260
               Bottom = 136
               Right = 445
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 483
               Bottom = 136
               Right = 695
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 733
               Bottom = 136
               Right = 940
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 978
               Bottom = 136
               Right = 1163
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 1201
               Bottom = 136
               Right = 1381
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 1419
               Bottom = 136
  ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECHPRUEFUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'             Right = 1586
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 257
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 1624
               Bottom = 136
               Right = 1809
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 138
               Left = 295
               Bottom = 268
               Right = 463
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 138
               Left = 501
               Bottom = 268
               Right = 669
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 707
               Bottom = 268
               Right = 875
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 913
               Bottom = 268
               Right = 1081
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 1119
               Bottom = 268
               Right = 1287
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 1325
               Bottom = 268
               Right = 1493
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 1531
               Bottom = 268
               Right = 1699
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
              ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECHPRUEFUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N' Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 1480
               Bottom = 400
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_PRUEF"
            Begin Extent = 
               Top = 402
               Left = 244
               Bottom = 532
               Right = 453
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_FREIGABE"
            Begin Extent = 
               Top = 402
               Left = 491
               Bottom = 532
               Right = 682
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_TYP"
            Begin Extent = 
               Top = 402
               Left = 720
               Bottom = 532
               Right = 887
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "KSTG"
            Begin Extent = 
               Top = 402
               Left = 925
               Bottom = 532
               Right = 1092
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "KSTS"
            Begin Extent = 
               Top = 402
               Left = 1130
               Bottom = 532
               Right = 1297
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_FREIGABE"
            Begin Extent = 
               Top = 402
               Left = 1335
               Bottom = 532
               Right = 1502
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 402
               Left = 1540
               Bottom = 532
               Right = 1707
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 534
               Left = 38
               Bottom = 664
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 534
               Left = 243
               Bottom = 664
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 534
               Left = 448
               Bottom = 664
               Righ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECHPRUEFUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane4', @value=N't = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECHPRUEFUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=4 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'RECHPRUEFUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "RECH_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 223
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "BKTO"
            Begin Extent = 
               Top = 6
               Left = 261
               Bottom = 136
               Right = 428
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RFN"
            Begin Extent = 
               Top = 6
               Left = 466
               Bottom = 136
               Right = 673
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_GEBUEHREN"
            Begin Extent = 
               Top = 6
               Left = 711
               Bottom = 136
               Right = 895
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'REK_VORMONAT_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'REK_VORMONAT_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'REK_VORMONAT_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "SEMV"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 239
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "SEMV_MAILSTATUS"
            Begin Extent = 
               Top = 6
               Left = 277
               Bottom = 136
               Right = 452
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 490
               Bottom = 136
               Right = 675
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 713
               Bottom = 136
               Right = 893
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 6
               Left = 931
               Bottom = 136
               Right = 1098
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 6
               Left = 1136
               Bottom = 136
               Right = 1355
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 6
               Left = 1393
               Bottom = 136
               Right = 1560' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'SEMV_MAILS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 6
               Left = 1598
               Bottom = 136
               Right = 1765
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'SEMV_MAILS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'SEMV_MAILS_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "SEMV"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 239
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "TEL_USER"
            Begin Extent = 
               Top = 6
               Left = 277
               Bottom = 136
               Right = 444
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "SEMV_VIEW_INFO"
            Begin Extent = 
               Top = 6
               Left = 482
               Bottom = 119
               Right = 681
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "SEMV_MAILTEXT"
            Begin Extent = 
               Top = 6
               Left = 719
               Bottom = 136
               Right = 914
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "SEMV_RECHDATA"
            Begin Extent = 
               Top = 6
               Left = 952
               Bottom = 136
               Right = 1153
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "SEMV_EPOSDATA"
            Begin Extent = 
               Top = 6
               Left = 1191
               Bottom = 136
               Right = 1390
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "SEMV_EVNDATA"
            Begin Extent = 
               Top = 6
               Left = 1428
               Bottom = 136
               Right = 1621
   ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'SEMV_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'         End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 6
               Left = 1659
               Bottom = 136
               Right = 1826
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 120
               Left = 482
               Bottom = 250
               Right = 649
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'SEMV_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'SEMV_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "STAM_BEM"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 216
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "TEL_USER"
            Begin Extent = 
               Top = 6
               Left = 254
               Bottom = 136
               Right = 421
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_BEMERKUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_BEMERKUNG_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "STAM_JJJJ_DATEN"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 218
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_JJJJ_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 256
               Bottom = 136
               Right = 441
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 6
               Left = 479
               Bottom = 136
               Right = 646
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 684
               Bottom = 136
               Right = 891
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 929
               Bottom = 136
               Right = 1096
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 6
               Left = 1134
               Bottom = 136
               Right = 1353
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 6
               Left = 1391
               Bottom = 136
               Right =' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N' 1559
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 6
               Left = 1597
               Bottom = 136
               Right = 1765
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 244
               Bottom = 268
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 450
               Bottom = 268
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 656
               Bottom = 268
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 862
               Bottom = 268
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 138
               Left = 1068
               Bottom = 268
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 138
               Left = 1274
               Bottom = 268
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 138
               Left = 1480
               Bottom = 268
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
               Right = 1030
      ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'      End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_PRUEF"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1483
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_SAFE"
            Begin Extent = 
               Top = 270
               Left = 1521
               Bottom = 400
               Right = 1688
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KST"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 402
               Left = 243
               Bottom = 532
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 402
               Left = 448
               Bottom = 532
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 402
               Left = 653
               Bottom = 532
               Right = 820
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=3 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_RECH_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "STAM_DATEN"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 218
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 256
               Bottom = 136
               Right = 441
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 6
               Left = 479
               Bottom = 136
               Right = 646
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 684
               Bottom = 136
               Right = 891
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 929
               Bottom = 136
               Right = 1096
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 6
               Left = 1134
               Bottom = 136
               Right = 1353
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 6
               Left = 1391
               Bottom = 136
               Right = 1559
   ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_SAFE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'         End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 6
               Left = 1597
               Bottom = 136
               Right = 1765
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 244
               Bottom = 268
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 450
               Bottom = 268
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 656
               Bottom = 268
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 862
               Bottom = 268
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 138
               Left = 1068
               Bottom = 268
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 138
               Left = 1274
               Bottom = 268
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 138
               Left = 1480
               Bottom = 268
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
               Right = 1030
            End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_SAFE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD_NST_AUFTEILUNG"
            Begin Extent = 
               Top = 402
               Left = 858
               Bottom = 532
               Right = 1127
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_PRUEF"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1483
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_SAFE"
            Begin Extent = 
               Top = 270
               Left = 1521
               Bottom = 400
               Right = 1688
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KST"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 402
               Left = 243
               Bottom = 532
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 402
               Left = 448
               Bottom = 532
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 402
               Left = 653
               Bottom = 532
               Right = 820
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_SAFE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=3 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_SAFE_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4[30] 2[40] 3) )"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2[66] 3) )"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 5
   End
   Begin DiagramPane = 
      PaneHidden = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "STAM_DATEN"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 136
               Right = 218
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KENNUNG"
            Begin Extent = 
               Top = 6
               Left = 256
               Bottom = 136
               Right = 441
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_BKTO"
            Begin Extent = 
               Top = 6
               Left = 479
               Bottom = 136
               Right = 646
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "RECH_JJJJ_EDI_RFN"
            Begin Extent = 
               Top = 6
               Left = 684
               Bottom = 136
               Right = 891
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MANDANT"
            Begin Extent = 
               Top = 6
               Left = 929
               Bottom = 136
               Right = 1096
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_PERSON"
            Begin Extent = 
               Top = 6
               Left = 1134
               Bottom = 136
               Right = 1353
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD1"
            Begin Extent = 
               Top = 6
               Left = 1391
               Bottom = 136
               Right = 1559
   ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'         End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD2"
            Begin Extent = 
               Top = 6
               Left = 1597
               Bottom = 136
               Right = 1765
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD3"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 268
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD4"
            Begin Extent = 
               Top = 138
               Left = 244
               Bottom = 268
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD5"
            Begin Extent = 
               Top = 138
               Left = 450
               Bottom = 268
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD6"
            Begin Extent = 
               Top = 138
               Left = 656
               Bottom = 268
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD7"
            Begin Extent = 
               Top = 138
               Left = 862
               Bottom = 268
               Right = 1030
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD8"
            Begin Extent = 
               Top = 138
               Left = 1068
               Bottom = 268
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD9"
            Begin Extent = 
               Top = 138
               Left = 1274
               Bottom = 268
               Right = 1442
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD10"
            Begin Extent = 
               Top = 138
               Left = 1480
               Bottom = 268
               Right = 1648
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD11"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 400
               Right = 206
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD12"
            Begin Extent = 
               Top = 270
               Left = 244
               Bottom = 400
               Right = 412
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD13"
            Begin Extent = 
               Top = 270
               Left = 450
               Bottom = 400
               Right = 618
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD14"
            Begin Extent = 
               Top = 270
               Left = 656
               Bottom = 400
               Right = 824
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD15"
            Begin Extent = 
               Top = 270
               Left = 862
               Bottom = 400
               Right = 1030
            End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N'
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_FELD16"
            Begin Extent = 
               Top = 270
               Left = 1068
               Bottom = 400
               Right = 1236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_PRUEF"
            Begin Extent = 
               Top = 270
               Left = 1274
               Bottom = 400
               Right = 1483
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "STAM_KST"
            Begin Extent = 
               Top = 270
               Left = 1521
               Bottom = 400
               Right = 1688
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "DATEN_MAIL"
            Begin Extent = 
               Top = 402
               Left = 38
               Bottom = 532
               Right = 205
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_NEW"
            Begin Extent = 
               Top = 402
               Left = 243
               Bottom = 532
               Right = 410
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "T_USER_EDIT"
            Begin Extent = 
               Top = 402
               Left = 448
               Bottom = 532
               Right = 615
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      PaneHidden = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_VIEW'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=3 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'STAM_VIEW'
GO
USE [master]
GO
ALTER DATABASE [TELIS] SET  READ_WRITE 
GO
USE TELIS
GO
INSERT INTO STAM_KENNUNG (IN_VIEW, FKTO, NEW_U_ID, NEW_DAT) VALUES (0,'123', 0, '11.09.2023');
DELETE FROM STAM_KENNUNG;
DBCC CHECKIDENT ('STAM_KENNUNG', reseed, -1);
GO
INSERT INTO STAM_FELD1 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD1;
DBCC CHECKIDENT ('STAM_FELD1', reseed, -1);
GO
INSERT INTO STAM_FELD2 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD2;
DBCC CHECKIDENT ('STAM_FELD2', reseed, -1);
GO
INSERT INTO STAM_FELD3 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD3
DBCC CHECKIDENT ('STAM_FELD3', reseed, -1);
GO
INSERT INTO STAM_FELD4 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD4;
DBCC CHECKIDENT ('STAM_FELD4', reseed, -1);
GO
INSERT INTO STAM_FELD5 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD5;
DBCC CHECKIDENT ('STAM_FELD5', reseed, -1);
GO
INSERT INTO STAM_FELD6 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD6;
DBCC CHECKIDENT ('STAM_FELD6', reseed, -1);
GO
INSERT INTO STAM_FELD7 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD7;
DBCC CHECKIDENT ('STAM_FELD7', reseed, -1);
GO
INSERT INTO STAM_FELD8 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD8;
DBCC CHECKIDENT ('STAM_FELD8', reseed, -1);
GO
INSERT INTO STAM_FELD9 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD9;
DBCC CHECKIDENT ('STAM_FELD9', reseed, -1);
GO
INSERT INTO STAM_FELD10 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD10;
DBCC CHECKIDENT ('STAM_FELD10', reseed, -1);
GO
INSERT INTO STAM_FELD11 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD11;
DBCC CHECKIDENT ('STAM_FELD11', reseed, -1);
GO
INSERT INTO STAM_FELD12 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD12;
DBCC CHECKIDENT ('STAM_FELD12', reseed, -1);
GO
INSERT INTO STAM_FELD13 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD13;
DBCC CHECKIDENT ('STAM_FELD13', reseed, -1);
GO
INSERT INTO STAM_FELD14 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD14;
DBCC CHECKIDENT ('STAM_FELD14', reseed, -1);
GO
INSERT INTO STAM_FELD15 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD15;
DBCC CHECKIDENT ('STAM_FELD15', reseed, -1);
GO
INSERT INTO STAM_FELD16 (IN_VIEW, M_ID, VC_NAME, NEW_U_ID, NEW_DAT) VALUES (0,0,'123', 0, '11.09.2023');
DELETE FROM STAM_FELD16;
DBCC CHECKIDENT ('STAM_FELD16', reseed, -1);
GO
INSERT INTO STAM_BEM (IN_VIEW, STAM_ID, VC_BEMERKUNG, NEW_U_ID, NEW_DAT) VALUES (0, 0,'123', 0, '11.09.2023');
DELETE FROM STAM_BEM;
DBCC CHECKIDENT ('STAM_BEM', reseed, -1);
GO
INSERT INTO DATEN_MAIL (IN_VIEW, VC_MAIL, NEW_U_ID, NEW_DAT) VALUES (0, '123', 0, '11.09.2023');
DELETE FROM DATEN_MAIL;
DBCC CHECKIDENT ('DATEN_MAIL', reseed, -1);
GO
INSERT INTO STAM_KST (IN_VIEW, NEW_U_ID, NEW_DAT) VALUES (0, 0, '11.09.2023');
DELETE FROM STAM_KST;
DBCC CHECKIDENT ('STAM_KST', reseed, -1);
GO
INSERT INTO GKU_EPOS (IN_VIEW, NEW_U_ID, NEW_DAT) VALUES (0, 0, '11.09.2023');
DELETE FROM GKU_EPOS;
DBCC CHECKIDENT ('GKU_EPOS', reseed, -1);
GO
INSERT INTO GKU_RECH_EPOS (IN_VIEW, NEW_U_ID, NEW_DAT) VALUES (0, 0, '11.09.2023');
DELETE FROM GKU_RECH_EPOS;
DBCC CHECKIDENT ('GKU_RECH_EPOS', reseed, -1);
GO
INSERT INTO GKU_RECH_JJJJ_KENNUNG (IN_VIEW, CH_TYP_RB, NEW_U_ID, NEW_DAT) VALUES (0, 'B', 0, '11.09.2023');
DELETE FROM GKU_RECH_JJJJ_KENNUNG;
DBCC CHECKIDENT ('GKU_RECH_JJJJ_KENNUNG', reseed, -1);
GO
INSERT INTO GKU_RECH_JJJJ_GEBUEHREN (IN_VIEW, GKU_RECH_ID, NEW_U_ID, NEW_DAT) VALUES (0, 0, 0, '11.09.2023');
DELETE FROM GKU_RECH_JJJJ_GEBUEHREN;
DBCC CHECKIDENT ('GKU_RECH_JJJJ_GEBUEHREN', reseed, -1);
GO
INSERT INTO NST_STAM_KENNUNG (IN_VIEW, STARTRUFNUMMER, NEW_U_ID, NEW_DAT) VALUES (0,'123', 0, '11.09.2023');
DELETE FROM NST_STAM_KENNUNG;
DBCC CHECKIDENT ('NST_STAM_KENNUNG', reseed, -1);
GO
INSERT INTO RECH_JJJJ_KENNUNG (IN_VIEW, CH_TYP_RB, FKTO, RENU, CH_RECHJAHR, CH_RECHMONAT, NEW_U_ID, NEW_DAT) VALUES (0,'R', '1234', '1234', '2023', '09', 0, '11.09.2023');
DELETE FROM RECH_JJJJ_KENNUNG;
DBCC CHECKIDENT ('RECH_JJJJ_KENNUNG', reseed, -1);
GO
INSERT INTO RECH_JJJJ_GEBUEHREN (IN_VIEW, RECH_ID, NEW_U_ID, NEW_DAT) VALUES (0, 0, 0, '11.09.2023');
DELETE FROM RECH_JJJJ_GEBUEHREN;
DBCC CHECKIDENT ('RECH_JJJJ_GEBUEHREN', reseed, -1);
GO
INSERT INTO EPOS (RECH_ID, IN_VIEW, NEW_U_ID, NEW_DAT) VALUES (0, 0, 0, '11.09.2023');
DELETE FROM EPOS;
DBCC CHECKIDENT ('EPOS', reseed, -1);
GO
INSERT INTO EVN (IN_VIEW, FKTO, CH_RECHJAHR, CH_RECHMONAT, NEW_U_ID, NEW_DAT) VALUES (0, '1234', '2023', '09', 0, '11.09.2023');
DELETE FROM EVN;
DBCC CHECKIDENT ('EVN', reseed, -1);
GO