

/****** Object:  Table [dbo].[DMS_Dokument]    Script Date: 17.02.2019 11:43:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[DMS_Dokument](
	[nreintrag] [int] IDENTITY(1,1) NOT NULL,
	[dms_strukturnr] [int] NULL,
	[bezeichnung] [varchar](255) NULL,
	[beschreibung] [varchar](1024) NULL,
	[pfad] [varchar](1024) NULL,
	[erstellt_am] [datetime] NULL,
	[mutiert_am] [datetime] NULL,
	[mutierer] [int] NULL,
	[aktiv] [bit] NULL,
	[indb] [bit] NULL,
	[Termin] [varchar](255) NULL,
	[Erinnerung] [bit] NULL,
	[Termintext] [varchar](1024) NULL,
	[Keyvalue] [int] NULL,
	[dokumentfile] [image] NULL,
	[nrfaktura] [int] NULL,
 CONSTRAINT [PK_DMS_Dokument] PRIMARY KEY CLUSTERED 
(
	[nreintrag] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

/****** Object:  Table [dbo].[DMS_Settings]    Script Date: 17.02.2019 11:43:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[DMS_Settings](
	[nreintrag] [INT] IDENTITY(1,1) NOT NULL,
	[Einstellung] [VARCHAR](255) NULL,
	[Wert] [VARCHAR](255) NULL,
	[erstellt_am] [DATETIME] NULL,
	[mutiert_am] [DATETIME] NULL,
	[mutierer] [INT] NULL,
	[aktiv] [BIT] NULL,
 CONSTRAINT [PK_DMS_Settings] PRIMARY KEY CLUSTERED 
(
	[nreintrag] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO

/****** Object:  Table [dbo].[DMS_Struktur]    Script Date: 17.02.2019 11:43:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[DMS_Struktur](
	[Eintragnr] [INT] IDENTITY(1,1) NOT NULL,
	[Parentid] [INT] NULL,
	[Bezeichnung] [VARCHAR](255) NULL,
	[erstellt_am] [DATETIME] NULL,
	[mutiert_am] [DATETIME] NULL,
	[mutierer] [INT] NULL,
	[aktiv] [BIT] NULL,
 CONSTRAINT [PK_DMS_Struktur] PRIMARY KEY CLUSTERED 
(
	[Eintragnr] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO

/****** Object:  Table [dbo].[dms_vorlage]    Script Date: 17.02.2019 11:43:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[dms_vorlage](
	[nreintrag] [INT] IDENTITY(1,1) NOT NULL,
	[strukturnr] [INT] NULL,
	[Bezeichnung] [VARCHAR](255) NULL,
	[Beschreibng] [VARCHAR](1024) NULL,
	[aktiv] [BIT] NULL,
	[erstllt_am] [DATETIME] NULL,
	[mutiert_am] [DATETIME] NULL,
	[mutierer] [INT] NULL,
	[vorlage] [IMAGE] NULL,
 CONSTRAINT [PK_dms_vorlage] PRIMARY KEY CLUSTERED 
(
	[nreintrag] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO


