Files
BeWoPlaner/Model/Changes_alle_fuer_neue_db.txt

1774 lines
66 KiB
Plaintext

ALTER TABLE `Customer` ADD COLUMN AusweisAktenzeichen VARCHAR(128) NULL DEFAULT NULL;
ALTER TABLE `temporarytoken` CHANGE COLUMN `RequestedLink` `RequestedLink` MEDIUMTEXT NULL DEFAULT NULL;
ALTER TABLE `notizeneintrag` CHANGE COLUMN `Notice` `Notice` MEDIUMTEXT NULL DEFAULT NULL ;
CREATE TABLE IF NOT EXISTS `confirmationreceiptsignature` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`SignatureImage` longtext,
`EmployeeOid` bigint(19) DEFAULT NULL,
PRIMARY KEY (`Oid`),
KEY `CONFIRMATIONRECEIPTSIGNATURE_EMPLOYEE_FK` (`EmployeeOid`),
CONSTRAINT `FK_CONFIRMATIONRECEIPTSIGNATURE2EMPLOYEE` FOREIGN KEY (`EmployeeOid`) REFERENCES `Employee` (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `confirmationreceiptsignature2servicerecord` (
`ConfirmationReceiptSignatureOid` bigint(19) DEFAULT NULL,
`ServiceRecordOid` bigint(19) DEFAULT NULL,
KEY `CONFSIG2SERVREC_CONFSIG_FK` (`ConfirmationReceiptSignatureOid`),
CONSTRAINT `FK_CONFSIG2SERVREC_CONFSIG` FOREIGN KEY (`ConfirmationReceiptSignatureOid`) REFERENCES `confirmationreceiptsignature` (`Oid`),
KEY `CONFSIG2SERVREC_SERVREC_FK` (`ServiceRecordOid`),
CONSTRAINT `FK_CONFSIG2SERVREC_SERVREC` FOREIGN KEY (`ServiceRecordOid`) REFERENCES `servicerecord` (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `quittierungsbelegsstatus` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`CustomerOid` bigint DEFAULT NULL,
`Startdatum` datetime DEFAULT NULL,
`Enddatum` datetime DEFAULT NULL,
`Erstellt` tinyint DEFAULT '0',
`ErstelltVon` varchar(50) DEFAULT NULL,
`ErstelltAm` datetime DEFAULT NULL,
`OrganisationOid` bigint DEFAULT '0',
`EmployeeOid` bigint DEFAULT '0',
`ServiceCategoryOid` bigint DEFAULT '0',
`Unterschrieben` tinyint DEFAULT '0',
`UnterschriebenAm` datetime DEFAULT NULL,
`UnterschriebenVon` varchar(50) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=735 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `diensteintrag` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`EmployeeOid` bigint(19) DEFAULT NULL,
`WohnheimOid` bigint(19) DEFAULT NULL,
`DienstOid` bigint(19) DEFAULT NULL,
`Zeile` int(10) DEFAULT NULL,
`Datum` datetime DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `dienstinfo` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`Dienstname` varchar(1024) DEFAULT NULL,
`Kurz` varchar(128) DEFAULT NULL,
`Farbe` varchar(16) DEFAULT NULL,
`Start` datetime DEFAULT NULL,
`Ende` datetime DEFAULT NULL,
`Pause` int(10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `servicerecord` ADD COLUMN Betrag DECIMAL(18,10) NULL DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD COLUMN HasServiceRecordEntry TINYINT(1);
ALTER TABLE `customerhistory` CHANGE COLUMN `Medication` `Medication` MEDIUMTEXT NULL DEFAULT NULL ;
ALTER TABLE `customer` CHANGE COLUMN `Medication` `Medication` MEDIUMTEXT NULL DEFAULT NULL ;
ALTER TABLE `Textbaustein` CHANGE COLUMN `Text` `Text` MEDIUMTEXT NULL DEFAULT NULL ;
ALTER TABLE `valuelistentry2object` ADD COLUMN `RatingTypeOid` BIGINT(19) NULL DEFAULT NULL;
ALTER TABLE `valuelistentry2object` ADD COLUMN `Rating` BIGINT(19) NULL DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `ratingtype` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`DisplayName` varchar(1024) DEFAULT NULL,
`RatingId` int(10) DEFAULT NULL,
`Position` int(10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `rating` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` MEDIUMTEXT DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`StartDate` datetime DEFAULT NULL,
`DisplayName` varchar(1024) DEFAULT NULL,
`RatingId` int(10) DEFAULT NULL,
`RTFNotice` MEDIUMTEXT NULL DEFAULT NULL,
`SupportConceptOid` bigint(19) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `goalrating` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(4096) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`RatingOid` bigint(19) DEFAULT NULL,
`ValueListEntryOid` bigint(19) DEFAULT NULL,
`RatingTypeOid` bigint(19) DEFAULT NULL,
PRIMARY KEY(`Oid`),
KEY `GOALRATING_RATING_FK` (`RatingOid`),
CONSTRAINT `FK_GOALRATING_RATING` FOREIGN KEY (`RatingOid`) REFERENCES `rating` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `bargeldkasse`
ADD COLUMN `Anfangsbestand` DECIMAL(18,10) NULL DEFAULT NULL AFTER `Auszahlungsintervall`;
ALTER TABLE `Query` CHANGE COLUMN `SQL` `SQL` VARCHAR(8000) NULL DEFAULT NULL ;
ALTER TABLE `Customer` ADD COLUMN SubstitutionNeed TINYINT(4);
ALTER TABLE `valuelistentry` CHANGE COLUMN `Abbreviation` `Abbreviation` VARCHAR(256) NULL DEFAULT NULL ;
ALTER TABLE `invoicebase` CHANGE COLUMN `RecipientDivision` `RecipientDivision` VARCHAR(256) NULL DEFAULT NULL ;
ALTER TABLE `notizeneintrag`
ADD COLUMN `EintragKategorieOid` BIGINT(19) NULL DEFAULT NULL;
ALTER TABLE `supportconceptapprovalperiod`
ADD COLUMN `BudgetOid` BIGINT(19) NULL DEFAULT NULL;
ALTER TABLE `supportconceptapprovalperiod`
ADD COLUMN `Bewilligungsart` INT(10) NOT NULL DEFAULT 0;
ALTER TABLE newschedulerappointment ADD COLUMN IsTask tinyint(1) DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD COLUMN TaskDescription mediumtext DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD COLUMN CompletedDate datetime DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD COLUMN CompletedNotice mediumtext DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD COLUMN DueDate datetime DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD COLUMN FormerTaskOid bigint(19) DEFAULT NULL;
ALTER TABLE `person`
ADD COLUMN `Migrationshintergrund` VARCHAR(1024) NULL AFTER `AufenthaltsStatusValueListEntryOid`;
CREATE TABLE IF NOT EXISTS `reporttemplate` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`DisplayName` varchar(1024) DEFAULT NULL,
`ReportType` int(10) DEFAULT NULL,
`ReferenceClass` varchar(1024) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `homeviewpanel` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(1024) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`isActive` tinyint(4) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`PanelType` int(10) DEFAULT NULL,
`HeaderTitel` varchar(1024) DEFAULT NULL,
`Value` MEDIUMTEXT DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `flexiblereportlayout` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`CreatorOid` bigint(19) NOT NULL,
`LayoutName` varchar(1024) DEFAULT NULL,
`LayoutString` mediumtext DEFAULT NULL,
`VisibleForAllEmployee` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`Oid`),
CONSTRAINT FOREIGN KEY (`CreatorOid`) REFERENCES `applicationuser` (`oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `BuchungsExport` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(1) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`Datum` datetime DEFAULT NULL,
`Name` varchar(1024) DEFAULT NULL,
`FileName` varchar(1024) DEFAULT NULL,
`Parameter` mediumtext DEFAULT NULL,
`Export` mediumtext DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `supportconcept2newschapp` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`SupportConceptOid` bigint(19) DEFAULT NULL,
`NewSchAppOid` bigint(19) DEFAULT NULL,
PRIMARY KEY(`Oid`),
KEY `SUPPORTCONCEPT2NEWSCHAPP_SUPPORTCONCEPT_FK` (`SupportConceptOid`),
CONSTRAINT `FK_SUPPORTCONCEPT2NEWSCHAPP_SUPPORTCONCEPT` FOREIGN KEY (`SupportConceptOid`) REFERENCES `supportconcept` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `person2newschapp` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`PersonOid` bigint(19) DEFAULT NULL,
`NewSchAppOid` bigint(19) DEFAULT NULL,
PRIMARY KEY(`Oid`),
KEY `PERSON2NEWSCHAPP_PERSON_FK` (`PersonOid`),
CONSTRAINT `FK_PERSON2NEWSCHAPP_PERSON` FOREIGN KEY (`PersonOid`) REFERENCES `person` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `organisation2newschapp` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`OrganisationOid` bigint(19) DEFAULT NULL,
`NewSchAppOid` bigint(19) DEFAULT NULL,
PRIMARY KEY(`Oid`),
KEY `ORGANISATION2NEWSCHAPP_ORGANISATION_FK` (`OrganisationOid`),
CONSTRAINT `FK_ORGANISATION2NEWSCHAPP_ORGANISATION` FOREIGN KEY (`OrganisationOid`) REFERENCES `organisation` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `DeletionHistory` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(1) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`DeletedEntityName` varchar(256) DEFAULT NULL,
`DeletingEmployeeName` varchar(256) DEFAULT NULL,
`DeletedEntityTableId` int(10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=3202 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `personhistory` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`ChangeType` int(10) DEFAULT NULL,
`Person_Oid` bigint(19) NOT NULL,
`Person_BankAccountOid` bigint(19) DEFAULT NULL,
`Person_AddressOid` bigint(19) DEFAULT NULL,
`Person_InvoiceAddressOid` bigint(19) DEFAULT NULL,
`Person_Tid` int(10) NOT NULL,
`Person_FirstName` varchar(256) DEFAULT NULL,
`Person_LastName` varchar(256) DEFAULT NULL,
`Person_Abbreviation` varchar(256) DEFAULT NULL,
`Person_DateOfBirth` datetime DEFAULT NULL,
`Person_Sex` int(10) DEFAULT NULL,
`Person_FamilyStatus` int(10) DEFAULT NULL,
`Person_Profession` varchar(256) DEFAULT NULL,
`Person_Type` int(10) DEFAULT NULL,
`Person_Notice` mediumtext,
`Person_InsTs` datetime DEFAULT NULL,
`Person_InsUser` varchar(256) DEFAULT NULL,
`Person_Version` bigint(19) DEFAULT NULL,
`Person_UdpUser` varchar(256) DEFAULT NULL,
`Person_IsActive` tinyint(4) DEFAULT NULL,
`Person_SystemEntryID` int(10) DEFAULT NULL,
`Person_Title` varchar(2048) DEFAULT NULL,
`Person_Function` varchar(2048) DEFAULT NULL,
`Person_IsMigrant` tinyint(4) DEFAULT NULL,
`Person_Nationalitaet` varchar(2048) DEFAULT NULL,
`Person_AufenthaltsStatus` varchar(2048) DEFAULT NULL
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `employeehistory` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`ChangeType` int(10) DEFAULT NULL,
`Employee_Oid` bigint(19) NOT NULL,
`Employee_PersonOid` bigint(19) NOT NULL,
`Employee_ApplicationUserOid` bigint(19) DEFAULT NULL,
`Employee_Tid` int(10) NOT NULL,
`Employee_PersonnelNumber` varchar(128) DEFAULT NULL,
`Employee_TaxNumber` varchar(128) DEFAULT NULL,
`Employee_HealthInsurance` varchar(128) DEFAULT NULL,
`Employee_InsuranceNumber` varchar(128) DEFAULT NULL,
`Employee_HourlyRate` decimal(18,10) DEFAULT NULL,
`Employee_EntryDate` datetime DEFAULT NULL,
`Employee_CancellationPeriod` int(10) DEFAULT NULL,
`Employee_ProbationPeriod` int(10) DEFAULT NULL,
`Employee_Sequence` int(10) DEFAULT NULL,
`Employee_IsActive` tinyint(4) DEFAULT NULL,
`Employee_Notice` varchar(1024) DEFAULT NULL,
`Employee_InsTs` datetime DEFAULT NULL,
`Employee_InsUser` varchar(256) DEFAULT NULL,
`Employee_Version` bigint(19) DEFAULT NULL,
`Employee_UdpUser` varchar(256) DEFAULT NULL,
`Employee_SystemEntryID` int(10) DEFAULT NULL,
`Employee_weeklyfls` decimal(18,10) DEFAULT NULL,
`Employee_weeklytotalhours` decimal(18,10) DEFAULT NULL,
`Employee_leavedays` decimal(18,10) DEFAULT NULL,
`Employee_IsQualified` tinyint(4) DEFAULT NULL,
`Employee_Text1` varchar(128) DEFAULT NULL,
`Employee_Text2` varchar(128) DEFAULT NULL,
`Employee_Text3` varchar(128) DEFAULT NULL,
`Employee_Text4` varchar(128) DEFAULT NULL,
`Employee_Text5` varchar(128) DEFAULT NULL,
`Employee_Notice2` mediumtext,
`Employee_EmployeeColor` varchar(9) DEFAULT NULL,
`Employee_EmployeeImage` longblob,
`Employee_EmployeeThumbnail` longblob,
`Employee_Pflege` tinyint(4) DEFAULT NULL,
`Employee_Toilettengang` tinyint(4) DEFAULT NULL,
`Employee_Aggressiv` tinyint(4) DEFAULT NULL,
`Employee_Schutzstufe` varchar(1024) DEFAULT NULL,
`Employee_Hygienebelehrung` tinyint(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `contacthistory` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`ChangeType` int(10) DEFAULT NULL,
`Contact_Oid` bigint(19) NOT NULL,
`Contact_Organisation2PersonOid` bigint(19) DEFAULT NULL,
`Contact_PersonOid` bigint(19) DEFAULT NULL,
`Contact_InvoiceBaseSenderOid` bigint(19) DEFAULT NULL,
`Contact_OrganisationOid` bigint(19) DEFAULT NULL,
`Contact_InvoiceBaseRecipientOid` bigint(19) DEFAULT NULL,
`Contact_Tid` int(10) NOT NULL,
`Contact_Type` int(10) DEFAULT NULL,
`Contact_Value` varchar(1024) DEFAULT NULL,
`Contact_Notice` varchar(1024) DEFAULT NULL,
`Contact_InsTs` datetime DEFAULT NULL,
`Contact_InsUser` varchar(256) DEFAULT NULL,
`Contact_Version` bigint(19) DEFAULT NULL,
`Contact_UdpUser` varchar(256) DEFAULT NULL,
`Contact_IsActive` tinyint(4) DEFAULT NULL,
`Contact_SystemEntryID` int(10) DEFAULT NULL
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `addresshistory` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`ChangeType` int(10) DEFAULT NULL,
`Address_Oid` bigint(19) NOT NULL,
`Address_Tid` int(10) NOT NULL,
`Address_Street` varchar(256) DEFAULT NULL,
`Address_PostalCode` varchar(128) DEFAULT NULL,
`Address_Town` varchar(256) DEFAULT NULL,
`Address_State` varchar(256) DEFAULT NULL,
`Address_Country` varchar(256) DEFAULT NULL,
`Address_Notice` varchar(1024) DEFAULT NULL,
`Address_InsTs` datetime DEFAULT NULL,
`Address_InsUser` varchar(256) DEFAULT NULL,
`Address_Version` bigint(19) DEFAULT NULL,
`Address_UdpUser` varchar(256) DEFAULT NULL,
`Address_IsActive` tinyint(4) DEFAULT NULL,
`Address_SystemEntryID` int(10) DEFAULT NULL,
`Address_AddressLine1` varchar(256) DEFAULT NULL,
`Address_AddressLine2` varchar(256) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `budget` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`Name` varchar(512) DEFAULT NULL,
`Betragshoehe` decimal(18,10) DEFAULT NULL
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `vorlagentabelle` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`ObjectOid` bigint DEFAULT NULL,
`ObjectTid` int DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Tabellenname` varchar(1024) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `dokumentvorlage` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`ObjectOid` bigint DEFAULT NULL,
`ObjectTid` int DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Tabellenzugehoerigkeit` bigint DEFAULT NULL,
`Name` varchar(1024) DEFAULT NULL,
`Beschreibung` varchar(1024) DEFAULT NULL,
`Data` mediumblob,
`Text` mediumtext,
`RTFText` mediumtext,
`Parent` bigint DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE confirmationreceiptsignature ADD COLUMN `TimeSpanString` varchar(128);
ALTER TABLE confirmationreceiptsignature ADD COLUMN `SignatureType` tinyint(4);
ALTER TABLE confirmationreceiptsignature ADD COLUMN CustomerOid BIGINT(19);
ALTER TABLE confirmationreceiptsignature ADD KEY CONFIRMATIONRECEIPTSIGNATURE_CUSTOMER_FK (CustomerOid);
ALTER TABLE confirmationreceiptsignature ADD CONSTRAINT FK_CONFIRMATIONRECEIPTSIGNATURE2CUSTOMER FOREIGN KEY (CustomerOid) REFERENCES Customer(Oid);
CREATE TABLE IF NOT EXISTS `dienstvertretung` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`EmployeeOid` bigint DEFAULT NULL,
`WohnheimOid` bigint DEFAULT NULL,
`DienstOid` bigint DEFAULT NULL,
`Zeile` int DEFAULT NULL,
`Datum` datetime DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `dienstvertretung`
ADD COLUMN `Startzeit` VARCHAR(256) NULL DEFAULT NULL AFTER `Datum`;
ALTER TABLE `dienstvertretung`
ADD COLUMN `Endzeit` VARCHAR(256) NULL DEFAULT NULL AFTER `Startzeit`;
ALTER TABLE `diensteintrag`
ADD COLUMN `Startzeit` VARCHAR(256) NULL DEFAULT NULL AFTER `Datum`;
ALTER TABLE `diensteintrag`
ADD COLUMN `Endzeit` VARCHAR(256) NULL DEFAULT NULL AFTER `Startzeit`;
ALTER TABLE `diensteintrag`
ADD COLUMN `DauerInStunden` DOUBLE NULL DEFAULT NULL AFTER `Endzeit`;
ALTER TABLE `dienstvertretung`
ADD COLUMN `DauerInStunden` DOUBLE NULL DEFAULT NULL AFTER `Endzeit`;
ALTER TABLE `employmenttype` ADD COLUMN `LeaveDays` DECIMAL NULL DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `geschenkterUrlaubstag` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`ObjectOid` bigint DEFAULT NULL,
`ObjectTid` int DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Employee` bigint DEFAULT NULL,
`Date` datetime DEFAULT NULL,
`AnzahlTage` DECIMAL(18,10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `regelmaessigerdienst` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`EmployeeOid` bigint DEFAULT NULL,
`WohnheimOid` bigint DEFAULT NULL,
`DienstOid` bigint DEFAULT NULL,
`Zeile` int DEFAULT NULL,
`Wochentag` varchar(256) DEFAULT NULL,
`Startzeit` varchar(256) DEFAULT NULL,
`Endzeit` varchar(256) DEFAULT NULL,
`DauerInStunden` double DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `dienstinfo`
ADD COLUMN `Wohnheim` BIGINT NULL AFTER `Pause`;
ALTER TABLE `valuelistentry`
CHANGE COLUMN `Notice` `Notice` VARCHAR(2048) NULL DEFAULT NULL ;
CREATE TABLE IF NOT EXISTS `supportconceptapprovalperiodhistory` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`IsActive` varchar(45) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`ChangeType` tinyint NOT NULL DEFAULT '0',
`supportconceptapprovalperiod_EndDate` datetime DEFAULT NULL,
`supportconceptapprovalperiod_StartDate` datetime DEFAULT NULL,
`supportconceptapprovalperiod_MonthlyPayment` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_IsApprovedFixedAmountShifting` tinyint(1) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedBEPerInterval` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedBEInterval` int DEFAULT NULL,
`supportconceptapprovalperiod_IsApprovedBEShifting` tinyint(1) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedBETotal` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedFixedAmount` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedFixedAmountInterval` int DEFAULT NULL,
`supportconceptapprovalperiod_CostBearer2SupportConceptHistoryOid` bigint DEFAULT NULL,
`supportconceptapprovalperiod_Percentage` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_SupportConceptHistoryOid` bigint DEFAULT NULL,
`supportconceptapprovalperiod_ServiceCategoryOid` bigint DEFAULT NULL,
`supportconceptapprovalperiod_ContactCountPerInterval` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_ContactCountInterval` int DEFAULT NULL,
`supportconceptapprovalperiod_BudgetOid` bigint DEFAULT NULL,
`supportconceptapprovalperiod_Bewilligungsart` int NOT NULL DEFAULT '0',
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `costbearer2supportconcepthistory` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Notice` varchar(1024) DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Tid` int NOT NULL,
`SystemEntryID` int DEFAULT NULL,
`CostBearer2SupportConcept_CostBearerOid` bigint DEFAULT NULL,
`CostBearer2SupportConcept_SupportConceptHistoryOid` bigint DEFAULT NULL,
`CostBearer2SupportConcept_HourlyRate` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_RateFactor` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_ApprovedFLS` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_ApprovedFLSTotal` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_Status` int DEFAULT NULL,
`CostBearer2SupportConcept_RequestedStartDate` datetime DEFAULT NULL,
`CostBearer2SupportConcept_RequestedEndDate` datetime DEFAULT NULL,
`CostBearer2SupportConcept_ApprovedStartDate` datetime DEFAULT NULL,
`CostBearer2SupportConcept_ApprovedEndDate` datetime DEFAULT NULL,
`CostBearer2SupportConcept_CustomerReferenceNumber` varchar(512) DEFAULT NULL,
`CostBearer2SupportConcept_MonthlyPayment` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_CostBearerContactPersonOid` bigint DEFAULT NULL,
`CostBearer2SupportConcept_AuswahlBezeichnung` varchar(512) DEFAULT NULL,
`ChangeType` tinyint DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `supportconcepthistory` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`SupportConcept_CustomerOid` bigint NOT NULL,
`SupportConcept_EmployeeOid` bigint DEFAULT NULL,
`Tid` int NOT NULL,
`SupportConcept_Conference` tinyint DEFAULT NULL,
`SupportConcept_Originator` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` mediumtext,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`SupportConcept_ConferenceDate` datetime DEFAULT NULL,
`SupportConcept_ApprovalDate` datetime DEFAULT NULL,
`SupportConcept_ConsultingNeeded` tinyint DEFAULT NULL,
`SupportConcept_RenewalSendDate` datetime DEFAULT NULL,
`SupportConcept_RequisitionSendDate` datetime DEFAULT NULL,
`SupportConcept_SupportConceptSendDate` datetime DEFAULT NULL,
`SupportConcept_ConferenceVenue` varchar(1024) DEFAULT NULL,
`ChangeType` tinyint DEFAULT NULL,
`SupportConceptOid` bigint DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `preis` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Name` varchar(512) DEFAULT NULL,
`Betrag` decimal(18,10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
ALTER TABLE `notizeneintrag` CHANGE COLUMN `Notice` `Notice` MEDIUMTEXT NULL DEFAULT NULL ;
ALTER TABLE `dienstinfo`
ADD COLUMN `Dauer` DOUBLE NULL DEFAULT NULL AFTER `Wohnheim`;
CREATE TABLE IF NOT EXISTS `contracthistory` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`ContractHistoryEmployeeOid` bigint DEFAULT NULL,
`ContractHistoryEmploymentTypeOid` bigint DEFAULT NULL,
`Notice` mediumtext,
`ChangeType` tinyint NOT NULL DEFAULT '0',
`ContractHistoryHourlyRate` decimal(18,10) DEFAULT NULL,
`ContractHistoryEntryDate` datetime DEFAULT NULL,
`ContractHistoryContractEndDate` datetime DEFAULT NULL,
`ContractHistoryCancellationPeriod` int DEFAULT NULL,
`ContractHistoryProbationPeriod` int DEFAULT NULL,
`ContractHistoryWeeklyFls` decimal(18,10) DEFAULT NULL,
`ContractHistoryWeeklyTotalhours` decimal(18,10) DEFAULT NULL,
`ContractHistoryLeaveDays` decimal(18,10) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UpdTs` DATETIME NULL DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`ContractHistoryWeeklyDays` int DEFAULT NULL,
`ContractHistoryMonthlyTotalHours` decimal(18,10) DEFAULT NULL,
`ContractHistoryMonthlyFLS` decimal(18,10) DEFAULT NULL,
`ContractHistoryHourlyRateCostRateValueOid` bigint DEFAULT NULL,
`ContractHistoryProbationPeriod2` decimal(18,10) DEFAULT NULL,
`ContractHistoryContractTypeValueListEntryOid` bigint DEFAULT NULL,
`ContractHistoryQualifikationsBedarfValueListEntryOid` bigint DEFAULT NULL,
PRIMARY KEY (`Oid`))
ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
ALTER TABLE `Bargeldtransaktion` ADD COLUMN Belegnummer VARCHAR(128) NULL DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `abwesenheitsinformationprint` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`ObjectOid` bigint DEFAULT NULL,
`ObjectTid` int DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Employee` varchar(256) DEFAULT NULL,
`ResturlaubVorjahr` varchar(256) DEFAULT NULL,
`VerfallenerResturlaub` varchar(256) DEFAULT NULL,
`Urlaubsanspruch` varchar(256) DEFAULT NULL,
`Resturlaub` varchar(256) DEFAULT NULL,
`TageKrankheit` varchar(256) DEFAULT NULL,
`TageUrlaub` varchar(256) DEFAULT NULL,
`GeschenkteUrlaubstage` varchar(256) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
ALTER TABLE `wohnheim`
ADD COLUMN `PflichtbesetzungStart` VARCHAR(45) NULL DEFAULT NULL AFTER `Bemerkung`,
ADD COLUMN `PflichtbesetzungEnde` VARCHAR(45) NULL DEFAULT NULL AFTER `PflichtbesetzungStart`,
ADD COLUMN `PflichtbesetzungEinblenden` INT NULL DEFAULT NULL AFTER `PflichtbesetzungEnde`,
ADD COLUMN `StandardZeilenanzahl` INT NULL DEFAULT NULL AFTER `PflichtbesetzungEinblenden`;
ALTER TABLE `wohnheim`
ADD COLUMN `Sortierungsart` INT NULL DEFAULT NULL AFTER `StandardZeilenanzahl`,
ADD COLUMN `AbsteigendeSortierung` INT NULL DEFAULT NULL AFTER `Sortierungsart`;
ALTER TABLE `servicerecord` CHANGE COLUMN `DistanceInMeter` `DistanceInMeter` decimal(18,10) NULL DEFAULT NULL;
ALTER TABLE `servicerecordhistory` CHANGE COLUMN `DistanceInMeter` `DistanceInMeter` decimal(18,10) NULL DEFAULT NULL;
ALTER TABLE `servicedescription` ADD COLUMN `Percentage` DECIMAL(18,10);
ALTER TABLE `valuelistentry` ADD COLUMN `ValueListEntryOid` BIGINT NULL;
ALTER TABLE `NewSchedulerAppointment` ADD COLUMN `CompletedUser` varchar(256) NULL;
ALTER TABLE `Person` ADD COLUMN `AufenthaltGueltigBis` datetime NULL;
ALTER TABLE `servicecategory` ADD COLUMN `ProzentBudget` DECIMAL(18,10);
ALTER TABLE `servicecategory` ADD COLUMN `ProzentStundenkonto` DECIMAL(18,10);
ALTER TABLE `servicedescription` ADD COLUMN `ProzentBudget` DECIMAL(18,10);
ALTER TABLE `servicedescription` ADD COLUMN `ProzentStundenkonto` DECIMAL(18,10);
ALTER TABLE newschedulerappointment ADD COLUMN ServiceRecordOid BIGINT DEFAULT NULL,
ADD FOREIGN KEY FK_SERVICERECORD(ServiceRecordOid) REFERENCES servicerecord(oid) ON DELETE NO ACTION ON UPDATE NO ACTION;
CREATE TABLE IF NOT EXISTS `servicerecord2newschapp`(
`Oid` BIGINT NOT NULL AUTO_INCREMENT,
`ServiceRecordOid` BIGINT DEFAULT NULL,
`NewSchAppOid` BIGINT DEFAULT NULL,
PRIMARY KEY (`Oid`),
KEY `KEY_SERVICERECORD` (`ServiceRecordOid`),
KEY `KEY_NEWSCHAPP` (`NewSchAppOid`),
CONSTRAINT `FK_SERVICERECORD` FOREIGN KEY (`ServiceRecordOid`) REFERENCES `servicerecord` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `FK_NEWSCHAPP` FOREIGN KEY (`NewSchAppOid`) REFERENCES `newschedulerappointment` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `ErrorMessage` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Version` bigint DEFAULT NULL,
`Tid` int NOT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`UpdTs` datetime DEFAULT NULL,
`Notice` MEDIUMTEXT DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Datum` datetime DEFAULT NULL,
`Message` MEDIUMTEXT DEFAULT NULL,
`MessageDetails` MEDIUMTEXT DEFAULT NULL,
`Modul` varchar(256) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
ALTER TABLE `address`
ADD COLUMN `Latitude` DECIMAL(8,6) NULL DEFAULT NULL AFTER `AddressLine2`,
ADD COLUMN `Longitude` DECIMAL(9,6) NULL DEFAULT NULL AFTER `Latitude`,
ADD COLUMN `L_Version` BIGINT(19) NULL DEFAULT NULL AFTER `Longitude`;
CREATE TABLE IF NOT EXISTS `AddressRoute` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Address1Oid` bigint DEFAULT NULL,
`Address1Version` bigint DEFAULT NULL,
`Address2Oid` bigint DEFAULT NULL,
`Address2Version` bigint DEFAULT NULL,
`DistanceMeter` int DEFAULT NULL,
`TimeSec` int DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `customer`
ADD COLUMN `Uebernahmeort` MEDIUMTEXT NULL,
ADD COLUMN `Verhalten` MEDIUMTEXT NULL,
ADD COLUMN `Betreuungsbedarf` MEDIUMTEXT NULL,
ADD COLUMN `BemerkungenSbd` MEDIUMTEXT NULL;
ALTER TABLE `employee`
ADD COLUMN `BemerkungenSbd` MEDIUMTEXT NULL;
ALTER TABLE `customer`
ADD COLUMN `HealthInsurance` VARCHAR(45) NULL DEFAULT NULL AFTER `BemerkungenSbd`,
ADD COLUMN `InsuranceNumber` VARCHAR(45) NULL DEFAULT NULL AFTER `HealthInsurance`;
CREATE TABLE IF NOT EXISTS `ValidationMessage` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Message` varchar(1024) DEFAULT NULL,
`UserOid` bigint DEFAULT NULL,
`EmployeeOid` bigint DEFAULT NULL,
`CustomerName` varchar(512) DEFAULT NULL,
`SupportConceptOid` bigint DEFAULT NULL,
`ServiceRecordStart` datetime DEFAULT NULL,
`ServiceRecordEnd` datetime DEFAULT NULL,
`ServiceRecordValidationResult` int DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
ALTER TABLE `applicationuser`
ADD COLUMN `LicenseType` VARCHAR(128) NULL DEFAULT NULL;
ALTER TABLE `invoicebase`
ADD COLUMN `StornoInvoiceBaseOid` BIGINT NULL DEFAULT NULL;
ALTER TABLE `Employee2Customer` ADD COLUMN `StartDate` datetime NULL;
ALTER TABLE `Employee2Customer` ADD COLUMN `EndDate` datetime NULL;
ALTER TABLE `Mandator` ADD COLUMN `LastModules` MEDIUMTEXT NULL;
ALTER TABLE `validationmessage`
ADD COLUMN `ServiceCategory` VARCHAR(512) NULL DEFAULT NULL,
ADD COLUMN `ServiceDescription` VARCHAR(512) NULL DEFAULT NULL;
ALTER TABLE `AbsenceReason` ADD COLUMN `Sichtbarkeit` int NULL;
ALTER TABLE `feiertag`
ADD COLUMN `OrganisationOid` BIGINT NULL DEFAULT NULL;
ALTER TABLE servicerecordhistory ADD COLUMN `CustomerConfirmationReceiptSignatureStateType` int DEFAULT 0;
ALTER TABLE servicerecordhistory ADD COLUMN `EmployeeConfirmationReceiptSignatureStateType` int DEFAULT 0;
ALTER TABLE servicerecordhistory ADD COLUMN `ServiceRecordSignatureStateType` int DEFAULT 0;
ALTER TABLE servicerecordhistory ADD COLUMN `CustomerConfirmationReceiptSignatureOid` BIGINT(18) DEFAULT NULL, ADD COLUMN `EmployeeConfirmationReceiptSignatureOid` BIGINT(18) DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `AdditionalServiceNotice` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`Notice` mediumtext,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UpdTs` varchar(256) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`RegionOid` bigint DEFAULT NULL,
`CustomerOid` bigint DEFAULT NULL,
`Monat` datetime DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `customer`
ADD COLUMN `VersichertenStatus` VARCHAR(256) NULL DEFAULT NULL;
ALTER TABLE `organisation`
ADD COLUMN `IKKrankenkasse` VARCHAR(256) NULL DEFAULT NULL,
ADD COLUMN `IKKostentrager` VARCHAR(256) NULL DEFAULT NULL,
ADD COLUMN `IKDatenannahmestelle` VARCHAR(256) NULL DEFAULT NULL;
ALTER TABLE `mandator`
ADD COLUMN `IKLeistungserbringer` VARCHAR(256) NULL;
ALTER TABLE signature
ADD COLUMN EmployeeOid BIGINT DEFAULT NULL,
ADD COLUMN CustomerOid BIGINT DEFAULT NULL,
ADD COLUMN BargeldtransaktionsOid BIGINT DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `bargeldtransaktionshistory` (
Oid BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
InsTs DATETIME DEFAULT NULL,
InsUser VARCHAR(256) DEFAULT NULL,
UdpUser VARCHAR(256) DEFAULT NULL,
Tid INT NOT NULL,
Notice VARCHAR(1024) DEFAULT NULL,
Version BIGINT DEFAULT NULL,
IsActive TINYINT DEFAULT NULL,
SystemEntryID INT DEFAULT NULL,
ChangeType TINYINT DEFAULT NULL,
Zahlungstyp TINYINT DEFAULT NULL,
Zahlungsdatum DATETIME DEFAULT NULL,
Betrag DECIMAL(18, 10) DEFAULT NULL,
Transaktionskassenbestand DECIMAL(18, 10) DEFAULT NULL,
BargeldtransaktionOid BIGINT DEFAULT NULL,
Belegnummer VARCHAR(128) DEFAULT NULL,
SignatureOid BIGINT DEFAULT NULL,
SignatureStateType INT DEFAULT '0',
BargeldtransaktionInsTs DATETIME DEFAULT NULL,
BargeldtransaktionInsUser VARCHAR(256) DEFAULT NULL,
BargeldtransaktionVersion BIGINT DEFAULT NULL,
BargeldtransaktionUdpUser VARCHAR(256) DEFAULT NULL
) ENGINE=InnoDB;
ALTER TABLE bargeldtransaktion ADD COLUMN SignatureOid BIGINT;
ALTER TABLE `goalrating` CHANGE COLUMN `Notice` `Notice` MEDIUMTEXT NULL DEFAULT NULL;
ALTER TABLE `invoicebase`
ADD COLUMN `IsReviewed` tinyint NULL DEFAULT 0 AFTER `Type`,
ADD COLUMN `IsSent` tinyint NULL DEFAULT 0 AFTER `IsReviewed`,
ADD COLUMN `IsExported` tinyint NULL DEFAULT 0 AFTER `IsSent`,
ADD COLUMN `PartialPayment` VARCHAR(512) NULL DEFAULT NULL AFTER `IsPaid`;
ALTER TABLE `organisation`
ADD COLUMN `Leistungserbringergruppe` VARCHAR(256) NULL DEFAULT NULL AFTER `IKDatenannahmestelle`;
CREATE TABLE IF NOT EXISTS `twofactorcode` (
Oid BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
InsTs DATETIME DEFAULT NULL,
UpdTs DATETIME DEFAULT NULL,
InsUser VARCHAR(256) DEFAULT NULL,
UdpUser VARCHAR(256) DEFAULT NULL,
Tid INT NOT NULL,
Notice VARCHAR(1024) DEFAULT NULL,
Version BIGINT DEFAULT NULL,
IsActive TINYINT DEFAULT NULL,
SystemEntryID INT DEFAULT NULL,
TFCode VARCHAR(16) DEFAULT NULL,
LoginName VARCHAR(256) DEFAULT NULL,
Password VARCHAR(1024) DEFAULT NULL,
IPAddress VARCHAR(256) DEFAULT NULL,
CreateDate DATETIME DEFAULT NULL,
UsedDate DATETIME DEFAULT NULL
) ENGINE=InnoDB;
ALTER TABLE `servicerecordhistory`
ADD INDEX `cb2scIdx` (`CostBearer2SupportConceptOid` ASC);
ALTER TABLE `vorlagentabelle`
ADD COLUMN `ImageName` VARCHAR(128) NULL AFTER `Tabellenname`;
CREATE TABLE IF NOT EXISTS `wohneinheit` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`Tid` int DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`WohnheimOid` bigint NOT NULL,
`Wohnname` varchar(256) NOT NULL,
`Zimmername` varchar(256) DEFAULT NULL,
`Miete` decimal(18,10) DEFAULT NULL,
`Heizung` decimal(18,10) DEFAULT NULL,
`Strom` decimal(18,10) DEFAULT NULL,
`Betriebskosten` decimal(18,10) DEFAULT NULL,
`SonstigeKosten` decimal(18,10) DEFAULT NULL,
`Kaution` decimal(18,10) DEFAULT NULL,
`QM` decimal(18,10) DEFAULT NULL,
`Baujahr` int DEFAULT NULL,
`Mobilierung` varchar(1024) DEFAULT NULL,
`Zusatznotiz` varchar(1024) DEFAULT NULL,
`Stock` varchar(256) DEFAULT NULL,
PRIMARY KEY (`Oid`),
CONSTRAINT `FK_WOHNEINHEIT_WOHNHEIM` FOREIGN KEY (`WohnheimOid`) REFERENCES `Wohnheim` (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `wohneinheitbelegung` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`Tid` int DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`WohneinheitOid` bigint NOT NULL,
`CustomerOid` bigint NOT NULL,
`StartDate` datetime NOT NULL,
`EndDate` datetime DEFAULT NULL,
`Kommentar` varchar(1024) DEFAULT NULL,
PRIMARY KEY (`Oid`),
CONSTRAINT `FK_WOHNEINHEITBELEGUNG_WOHNEINHEIT` FOREIGN KEY (`WohneinheitOid`) REFERENCES `Wohneinheit` (`Oid`),
CONSTRAINT `FK_WOHNEINHEITBELEGUNG_CUSTOMER` FOREIGN KEY (`CustomerOid`) REFERENCES `Customer` (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `CustomerFalldaten` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`Tid` int DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`EigenesAktenzeichen` varchar(256),
`Auftragseingang` datetime DEFAULT NULL,
`AuftragsherkunftValueListEntryOid` bigint DEFAULT NULL,
`VermittlungsgrundlageValueListEntryOid` bigint DEFAULT NULL,
`Tagessatze` decimal(18,10) DEFAULT NULL,
`Tagessatzhohe` decimal(18,10) DEFAULT NULL,
`HoheDerGeldstrafe` decimal(18,10) DEFAULT NULL,
`ZuLeistendeArbeitsstunden` decimal(18,10) DEFAULT NULL,
`Hinweis` varchar(256),
`Termin` datetime DEFAULT NULL,
`FalldatenBearbeitungsstatus` int DEFAULT NULL,
`Auftragsruckgabe` varchar(256),
`Verlauf` varchar(256),
`AbgeleisteteStunden` decimal(18,10) DEFAULT NULL,
`ErsparteHafttage` decimal(18,10) DEFAULT NULL,
`GeleisteteRatenzahlung` decimal(18,10) DEFAULT NULL,
`Bemerkung` varchar(256),
`GeleisteteEinmalzahlung` decimal(18,10) DEFAULT NULL,
`GrundArbeitsunfahig` tinyint,
`GrundSuchtproblem` tinyint,
`GrundPsychischeProbleme` tinyint,
`GrundKeineMotivation` tinyint,
`GrundInHaft` tinyint,
`GrundUnbekannt` tinyint,
`GrundKeinKontakt` tinyint,
`GrundNichtAngetreten` tinyint,
`GrundAbbruchDerTatigkeit` tinyint,
`GrundWiderruf` tinyint,
`Grund459StPO` tinyint,
`GrundAusbleibenDerZahlung` tinyint,
`BesonderheitMehrfacheBeauftragung` tinyint,
`BesonderheitMehrfacheVermittlung` tinyint,
`BesonderheitVermittlungAusHaft` tinyint,
`BesonderheitDurchBGBWAufgesucht` tinyint,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
ALTER TABLE `customerfalldaten`
ADD INDEX `FK_AUFTRAGSHERKUNFT_idx` (`AuftragsherkunftValueListEntryOid` ASC) VISIBLE,
ADD INDEX `FK_VERMITTLUNGSGRUNDLAGE_idx` (`VermittlungsgrundlageValueListEntryOid` ASC) VISIBLE;
ALTER TABLE `customerfalldaten`
ADD CONSTRAINT `FK_AUFTRAGSHERKUNFT`
FOREIGN KEY (`AuftragsherkunftValueListEntryOid`)
REFERENCES `valuelistentry` (`Oid`)
ON DELETE RESTRICT
ON UPDATE RESTRICT,
ADD CONSTRAINT `FK_VERMITTLUNGSGRUNDLAGE`
FOREIGN KEY (`VermittlungsgrundlageValueListEntryOid`)
REFERENCES `valuelistentry` (`Oid`)
ON DELETE RESTRICT
ON UPDATE RESTRICT;
ALTER TABLE `image`
ADD COLUMN `WohneinheitOid` BIGINT NULL DEFAULT NULL AFTER `PersonOid`;
ALTER TABLE `image`
ADD INDEX `FK_IMAGE_PERSON_idx` (`PersonOid` ASC) VISIBLE,
ADD INDEX `FK_IMAGE_WOHNEINHEIT_idx` (`WohneinheitOid` ASC) VISIBLE;
ALTER TABLE `image`
ADD CONSTRAINT `FK_IMAGE_PERSON`
FOREIGN KEY (`PersonOid`)
REFERENCES `person` (`Oid`)
ON DELETE CASCADE
ON UPDATE CASCADE,
ADD CONSTRAINT `FK_IMAGE_WOHNEINHEIT`
FOREIGN KEY (`WohneinheitOid`)
REFERENCES `wohneinheit` (`Oid`)
ON DELETE CASCADE
ON UPDATE CASCADE;
ALTER TABLE `image`
ADD COLUMN `Filename` VARCHAR(1024) NULL DEFAULT NULL AFTER `SystemEntryID`,
ADD COLUMN `Fullname` VARCHAR(1024) NULL DEFAULT NULL AFTER `Filename`;
ALTER TABLE `organisation`
ADD COLUMN `BusinessPartnerId` VARCHAR(256) NULL DEFAULT NULL AFTER `Leistungserbringergruppe`;
CREATE TABLE IF NOT EXISTS `aisettings` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`Description` varchar(256) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UpdTs` datetime DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`SettingsType` int DEFAULT NULL,
`Settings` MEDIUMTEXT DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `CustomerWohnhilfe` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`Tid` int DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`CustomerOid` bigint NOT NULL,
`Displayname` varchar(256) DEFAULT NULL,
`Verbandszugehorigkeit` tinyint DEFAULT NULL,
`Geschlecht` tinyint DEFAULT NULL,
`AlterAmStichtag` int DEFAULT NULL,
`Haushaltsgrosse` int DEFAULT NULL,
`BerichtseinheitID` varchar(256),
`Unterbringungsart` tinyint DEFAULT NULL,
`OrtDerEinrichtung` int DEFAULT NULL,
`Angebot` tinyint DEFAULT NULL,
`BeginnEinkommenssituation` tinyint,
`EndeEinkommenssituation` tinyint,
`BeginnAufstockungEinkommen` tinyint,
`EndeAufstockungEinkommen` tinyint,
`BeginnEigenesBankkonto` tinyint,
`EndeEigenesBankkonto` tinyint,
`Uberschuldung` tinyint,
`Berufsabschluss` tinyint,
`ErwerbsfahigkeitSinnSGB` tinyint,
`BeginnBeschaftigungsstatus` tinyint,
`EndeBeschaftigungsstatus` tinyint,
`DauerArbeitslosigkeit` tinyint,
`BeginnSozialeKontakte` tinyint,
`BeginnKontaktPartner` tinyint,
`BeginnKontaktMindKinder` tinyint,
`BeginnKontaktVolljahrKinderElternVerwandten` tinyint,
`BeginnKontaktFreundenBekannten` tinyint,
`BeginnKontaktSelbsthilfe` tinyint,
`BeginnKontaktSonstige` tinyint,
`EndeSozialeKontakte` tinyint,
`EndeKontaktPartner` tinyint,
`EndeKontaktMindKinder` tinyint,
`EndeKontaktVolljahrKinderElternVerwandten` tinyint,
`EndeKontaktFreundenBekannten` tinyint,
`EndeKontaktSelbsthilfe` tinyint,
`EndeKontaktSonstige` tinyint,
`BeginnKrankenversicherung` tinyint,
`EndeKrankenversicherung` tinyint,
`BeginnKontaktArzt` tinyint,
`EndeKontaktArzt` tinyint,
`VorlageSchwerbehindertenausweises` tinyint,
`Bundesland` tinyint DEFAULT NULL,
`IsWohnungslosenhilfe` tinyint,
`ArtDesHilfeangebots` tinyint,
`Betreuungsbeginn` datetime DEFAULT NULL,
`Betreuungsende` datetime DEFAULT NULL,
`BetreuungsdauerInTagen` int DEFAULT NULL,
`ArtDerBeendigung` tinyint,
`Geburtsdatum` datetime DEFAULT NULL,
`Geschlechtidentitat` tinyint,
`Staatsangehorigkeit` SMALLINT DEFAULT NULL,
`Aufenthaltsstatus` tinyint,
`Migrationshintergrund` tinyint,
`HochsterSchulabschluss` tinyint,
`Familienstand` tinyint,
`Haushaltsstruktur` tinyint,
`EigeneMindKinderAuserhalbHaushaltsstruktur` tinyint,
PRIMARY KEY (`Oid`),
CONSTRAINT `FK_CUSTOMERWOHNHILFE_CUSTOMER` FOREIGN KEY (`CustomerOid`) REFERENCES `customer` (`Oid`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `CustomerVermittlungArbeit` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`Tid` int DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`CustomerOid` bigint NOT NULL,
`EigenesAktenzeichen` varchar(256),
`Auftragseingang` datetime DEFAULT NULL,
`Auftragsherkunft` bigint DEFAULT NULL,
`Vermittlungsgrundlage` bigint DEFAULT NULL,
`Tagessatze` decimal(18,10) DEFAULT NULL,
`Tagessatzhohe` decimal(18,10) DEFAULT NULL,
`HoheDerGeldstrafe` decimal(18,10) DEFAULT NULL,
`ZuLeistendeArbeitsstunden` decimal(18,10) DEFAULT NULL,
`Hinweis` varchar(256),
`Termin` datetime DEFAULT NULL,
`CustomerVermittlungBearbeitungsstatus` tinyint DEFAULT NULL,
`Auftragsruckgabe` varchar(256),
`Verlauf` varchar(256),
`AbgeleisteteStunden` decimal(18,10) DEFAULT NULL,
`ErsparteHafttage` decimal(18,10) DEFAULT NULL,
`GeleisteteRatenzahlung` decimal(18,10) DEFAULT NULL,
`Bemerkung` varchar(256),
`GeleisteteEinmalzahlung` decimal(18,10) DEFAULT NULL,
`GrundArbeitsunfahig` tinyint,
`GrundSuchtproblem` tinyint,
`GrundPsychischeProbleme` tinyint,
`GrundKeineMotivation` tinyint,
`GrundInHaft` tinyint,
`GrundUnbekannt` tinyint,
`GrundKeinKontakt` tinyint,
`GrundNichtAngetreten` tinyint,
`GrundAbbruchDerTatigkeit` tinyint,
`GrundWiderruf` tinyint,
`Grund459StPO` tinyint,
`GrundAusbleibenDerZahlung` tinyint,
`BesonderheitMehrfacheBeauftragung` tinyint,
`BesonderheitMehrfacheVermittlung` tinyint,
`BesonderheitVermittlungAusHaft` tinyint,
`BesonderheitDurchBGBWAufgesucht` tinyint,
PRIMARY KEY (`Oid`),
CONSTRAINT `FK_CUSTOMERVERMITTLUNGARBEIT_CUSTOMER` FOREIGN KEY (`CustomerOid`) REFERENCES `customer` (`Oid`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
ALTER TABLE `customervermittlungarbeit`
ADD CONSTRAINT `FK_CUSTOMERVERMITTLUNGARBEIT_AUFTRAGSHERKUNFT`
FOREIGN KEY (`Auftragsherkunft`)
REFERENCES `valuelistentry` (`Oid`)
ON DELETE SET NULL
ON UPDATE CASCADE,
ADD CONSTRAINT `FK_CUSTOMERVERMITTLUNGARBEIT_VERMITTLUNGSGRUNDLAGE`
FOREIGN KEY (`Vermittlungsgrundlage`)
REFERENCES `valuelistentry` (`Oid`)
ON DELETE SET NULL
ON UPDATE CASCADE;
ALTER TABLE `organisation`
ADD COLUMN `BezDatenannahmestelle` VARCHAR(4096) NULL DEFAULT NULL AFTER `IKDatenannahmestelle`;
ALTER TABLE `organisation`
ADD COLUMN `Verfahrensstufe` INT NULL DEFAULT '1' AFTER `BusinessPartnerId`;
ALTER TABLE `organisation`
ADD COLUMN `GkvAusblenden` TINYINT NULL DEFAULT NULL AFTER `BusinessPartnerId`;
ALTER TABLE `mandator`
ADD COLUMN `BankAccountOid` BIGINT NULL DEFAULT NULL AFTER `IKLeistungserbringer`;
ALTER TABLE `mandator`
ADD COLUMN `SoziotherapieAnsprechpartnerOid` BIGINT NULL DEFAULT NULL AFTER `BankAccountOid`;
ALTER TABLE `mandator`
ADD COLUMN `Website` VARCHAR(2048) NULL DEFAULT NULL AFTER `Name`;
ALTER TABLE `mandator`
ADD COLUMN `ImageOid` BIGINT NULL DEFAULT NULL AFTER `SoziotherapieAnsprechpartnerOid`;
ALTER TABLE `mandator`
ADD COLUMN `ColorWaitTooLong` VARCHAR(16) NULL DEFAULT NULL AFTER `ImageOid`,
ADD COLUMN `ColorSendUrbelege` VARCHAR(16) NULL DEFAULT NULL AFTER `ColorWaitTooLong`,
ADD COLUMN `ShowGkvBzEinzel` TINYINT NULL DEFAULT NULL AFTER `ColorSendUrbelege`,
ADD COLUMN `ShowGkvBzUrbelege` TINYINT NULL DEFAULT NULL AFTER `ShowGkvBzEinzel`;
ALTER TABLE `customer`
ADD COLUMN `CustomerFalldatenOid` BIGINT NULL;
ALTER TABLE `InvoiceItem`
ADD COLUMN `CustomString1` VARCHAR(1024) NULL DEFAULT NULL,
ADD COLUMN `CustomString2` VARCHAR(1024) NULL DEFAULT NULL,
ADD COLUMN `CustomString3` VARCHAR(1024) NULL DEFAULT NULL,
ADD COLUMN `CustomString4` VARCHAR(1024) NULL DEFAULT NULL,
ADD COLUMN `CustomString5` VARCHAR(1024) NULL DEFAULT NULL,
ADD COLUMN `CustomNumber1` DECIMAL(18,10) NULL DEFAULT NULL,
ADD COLUMN `CustomNumber2` DECIMAL(18,10) NULL DEFAULT NULL,
ADD COLUMN `CustomNumber3` DECIMAL(18,10) NULL DEFAULT NULL,
ADD COLUMN `CustomNumber4` DECIMAL(18,10) NULL DEFAULT NULL,
ADD COLUMN `CustomNumber5` DECIMAL(18,10) NULL DEFAULT NULL,
ADD COLUMN `CustomDate1` datetime NULL DEFAULT NULL,
ADD COLUMN `CustomDate2` datetime NULL DEFAULT NULL,
ADD COLUMN `CustomDate3` datetime NULL DEFAULT NULL,
ADD COLUMN `CustomDate4` datetime NULL DEFAULT NULL,
ADD COLUMN `CustomDate5` datetime NULL DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `gkvabrechnung` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`AbrechnungsZeitraumStart` datetime DEFAULT NULL,
`AbrechnungsZeitraumEnde` datetime DEFAULT NULL,
`Betrag` decimal(18,10) DEFAULT NULL,
`Bezahlt` tinyint DEFAULT NULL,
`UrbelegeGesendet` tinyint DEFAULT NULL,
`ErstelltAm` datetime DEFAULT NULL,
`Verfahrensstufe` int DEFAULT '0',
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `gkvabrechnung2invoicebase` (
`GkvAbrechnungOid` bigint NOT NULL,
`InvoiceBaseOid` bigint NOT NULL,
PRIMARY KEY (`GkvAbrechnungOid`,`InvoiceBaseOid`),
KEY `fk_invoicebaseoid_idx` (`InvoiceBaseOid`),
CONSTRAINT `fk_gkvabrechnungoid` FOREIGN KEY (`GkvAbrechnungOid`) REFERENCES `gkvabrechnung` (`Oid`),
CONSTRAINT `fk_invoicebaseoid` FOREIGN KEY (`InvoiceBaseOid`) REFERENCES `invoicebase` (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `gkvtransferprotokoll` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`GkvAbrechnungOid` bigint DEFAULT NULL,
`AbsenderBezeichnung` varchar(4096) DEFAULT NULL,
`EmpfangerBezeichnung` varchar(4096) DEFAULT NULL,
`IKLeistungserbringer` varchar(256) DEFAULT NULL,
`IKKrankenkasse` varchar(256) DEFAULT NULL,
`IKKostentrager` varchar(256) DEFAULT NULL,
`IKDatenannahmestelle` varchar(256) DEFAULT NULL,
`Rechnungsnummer` varchar(64) DEFAULT NULL,
`Datenaustauschreferenz` int DEFAULT NULL,
`Transfernummer` int DEFAULT NULL,
`Transfername` varchar(256) DEFAULT NULL,
`ErstelltAm` datetime DEFAULT NULL,
`Dateityp` varchar(4096) DEFAULT NULL,
`Dateiname` varchar(4096) DEFAULT NULL,
`Dateigrosse` int DEFAULT NULL,
`Nutzdatendatei` mediumtext,
`Auftragsdatei` varchar(1024) DEFAULT NULL,
`SentApp8Success` tinyint NOT NULL DEFAULT '0',
`SentDakotaSuccess` tinyint NOT NULL DEFAULT '0',
`ResultType` int DEFAULT NULL,
`Fehlertitel` varchar(256) DEFAULT NULL,
`Fehlerdatum` datetime DEFAULT NULL,
`Fehlernachricht` varchar(4096) DEFAULT NULL,
PRIMARY KEY (`Oid`),
KEY `FK_GKVTRANSFERPROTOKOLL_GKVABRECHNUNG` (`GkvAbrechnungOid`),
CONSTRAINT `FK_GKVTRANSFERPROTOKOLL_GKVABRECHNUNG` FOREIGN KEY (`GkvAbrechnungOid`) REFERENCES `gkvabrechnung` (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `gkvabrechnung`
ADD COLUMN `OrganisationOid` BIGINT NULL DEFAULT NULL AFTER `Verfahrensstufe`;
ALTER TABLE `Parameter`
ADD COLUMN `DefaultValue` VARCHAR(256) NULL DEFAULT NULL;
ALTER TABLE `Contract`
ADD COLUMN `UpdTs` datetime NULL DEFAULT NULL;
ALTER TABLE `ContractHistory`
ADD COLUMN `ContractOid` bigint NULL DEFAULT NULL;
ALTER TABLE `AbsenceTime`
ADD COLUMN `UpdTs` datetime NULL DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `AbsenceTimeHistory` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`UpdTs` datetime DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`ChangeType` tinyint NULL DEFAULT NULL,
`AbsenceTimeOid` bigint NULL DEFAULT NULL,
`AbsenceReasonOid` bigint DEFAULT NULL,
`AbsenceTimeStart` datetime DEFAULT NULL,
`AbsenceTimeEnd` datetime DEFAULT NULL,
`AbsenceTimeKrankheitsMeldung` datetime DEFAULT NULL,
`AbsenceTimeNotice` varchar(1024) DEFAULT NULL,
`AbsenceTimeEmployeeOid` bigint DEFAULT NULL,
`AbsenceTimeCustomerOid` bigint DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `signaturehistory` (
`Oid` BIGINT AUTO_INCREMENT PRIMARY KEY,
`Tid` INT DEFAULT NULL,
`Version` BIGINT DEFAULT NULL,
`IsActive` TINYINT DEFAULT NULL,
`InsTs` DATETIME DEFAULT NULL,
`SystemEntryID` INT DEFAULT NULL,
`InsUser` VARCHAR(256) DEFAULT NULL,
`UdpUser` VARCHAR(256) DEFAULT NULL,
`Notice` VARCHAR(1024) DEFAULT NULL,
`SignatureOid` BIGINT DEFAULT NULL,
`SignatureType` INT DEFAULT NULL,
`SignatureInsTs` DATETIME DEFAULT NULL,
`CustomerOid` BIGINT DEFAULT NULL,
`EmployeeOid` BIGINT DEFAULT NULL,
`BargeldtransaktionsOid` BIGINT DEFAULT NULL,
`SignatureTimeSpanStart` DATETIME DEFAULT NULL,
`SignatureTimeSpanEnd` DATETIME DEFAULT NULL,
`SignatureEventType` INT DEFAULT NULL
) Engine=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `servicerecord2signaturehistory` (
`Oid` BIGINT AUTO_INCREMENT PRIMARY KEY,
`SignatureHistoryOid` BIGINT DEFAULT NULL,
`ServiceRecordOid` BIGINT DEFAULT NULL,
FOREIGN KEY (`SignatureHistoryOid`) REFERENCES `signaturehistory`(`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `CustomerVermittlungArbeit` ADD COLUMN AktenzeichenGericht VARCHAR(256) NULL DEFAULT NULL;
ALTER TABLE `dokumentvorlage`
CHANGE COLUMN `Text` `Text` LONGBLOB NULL DEFAULT NULL ;
ALTER TABLE `dokumentvorlage`
CHANGE COLUMN `RTFText` `RTFText` LONGBLOB NULL DEFAULT NULL ;
ALTER TABLE `organisation`
CHANGE COLUMN `GrosskundenanschriftAddressOid` `GrosskundenanschriftAddressOid` BIGINT(20) NULL DEFAULT NULL ;
ALTER TABLE `organisation`
ADD COLUMN `HausanschriftAddressOid` BIGINT NULL DEFAULT NULL AFTER `CostBearerOid`,
ADD COLUMN `PostfachanschriftAddressOid` BIGINT NULL DEFAULT NULL AFTER `HausanschriftAddressOid`,
ADD COLUMN `GrosskundenanschriftAddressOid` BIGINT NULL DEFAULT NULL AFTER `PostfachanschriftAddressOid`,
ADD INDEX `FK_ORGANISA_HAUSADD_idx` (`HausanschriftAddressOid` ASC),
ADD INDEX `FK_ORGANISA_POSTADD_idx` (`PostfachanschriftAddressOid` ASC),
ADD INDEX `FK_ORGANISA_GROSADD_idx` (`GrosskundenanschriftAddressOid` ASC);
;
ALTER TABLE `organisation`
ADD CONSTRAINT `FK_ORGANISA_HAUSADD`
FOREIGN KEY (`HausanschriftAddressOid`)
REFERENCES `address` (`Oid`)
ON DELETE CASCADE
ON UPDATE CASCADE,
ADD CONSTRAINT `FK_ORGANISA_POSTADD`
FOREIGN KEY (`PostfachanschriftAddressOid`)
REFERENCES `address` (`Oid`)
ON DELETE CASCADE
ON UPDATE CASCADE,
ADD CONSTRAINT `FK_ORGANISA_GROSADD`
FOREIGN KEY (`GrosskundenanschriftAddressOid`)
REFERENCES `address` (`Oid`)
ON DELETE CASCADE
ON UPDATE CASCADE;
ALTER TABLE `customer`
ADD COLUMN `EinkommenBeginnValueListEntryOid` BIGINT NULL DEFAULT NULL AFTER `CustomerFalldatenOid`,
ADD COLUMN `EinkommenEndeValueListEntryOid` BIGINT NULL DEFAULT NULL AFTER `EinkommenBeginnValueListEntryOid`,
ADD COLUMN `FremdHilfeValueListEntryOid` BIGINT NULL DEFAULT NULL AFTER `EinkommenEndeValueListEntryOid`,
ADD COLUMN `SozSchwierigkeitenValueListEntryOid` BIGINT NULL DEFAULT NULL AFTER `FremdHilfeValueListEntryOid`,
ADD COLUMN `SozBeziehungenValueListEntryOid` BIGINT NULL DEFAULT NULL AFTER `SozSchwierigkeitenValueListEntryOid`,
ADD COLUMN `ErstaufnahmeValueListEntryOid` BIGINT NULL DEFAULT NULL AFTER `SozBeziehungenValueListEntryOid`,
ADD COLUMN `RegionValueListEntryOid` BIGINT NULL DEFAULT NULL AFTER `ErstaufnahmeValueListEntryOid`;
ALTER TABLE `Employee`
ADD COLUMN `TaxClass` varchar(256) NULL DEFAULT NULL AFTER `TaxNumber`,
ADD COLUMN `ChildCount` varchar(256) NULL DEFAULT NULL AFTER `TaxClass`;
ALTER TABLE `EmployeeHistory`
ADD COLUMN `Employee_TaxClass` varchar(256) NULL DEFAULT NULL AFTER `Employee_TaxNumber`,
ADD COLUMN `Employee_ChildCount` varchar(256) NULL DEFAULT NULL AFTER `Employee_TaxClass`;
ALTER TABLE `Contract`
ADD COLUMN `GrossSalary` decimal(18,10) NULL DEFAULT NULL AFTER `CancellationPeriod`;
ALTER TABLE `ContractHistory`
ADD COLUMN `ContractHistoryGrossSalary` decimal(18,10) NULL DEFAULT NULL AFTER `ContractHistoryCancellationPeriod`;
ALTER TABLE `costbearer2supportconcept`
ADD COLUMN `KontoHilfeplan` varchar(512) NULL DEFAULT NULL AFTER `Auswahlbezeichnung`,
ADD COLUMN `KostenstelleHilfeplan` varchar(512) NULL DEFAULT NULL AFTER `KontoHilfeplan`;
ALTER TABLE `costbearer2supportconcepthistory`
ADD COLUMN `Costbearer2supportconcept_KontoHilfeplan` varchar(512) NULL DEFAULT NULL AFTER `Costbearer2supportconcept_Auswahlbezeichnung`,
ADD COLUMN `Costbearer2supportconcept_KostenstelleHilfeplan` varchar(512) NULL DEFAULT NULL AFTER `Costbearer2supportconcept_KontoHilfeplan`;
ALTER TABLE `Person`
ADD COLUMN `PlaceOfBirth` VARCHAR(512) NULL DEFAULT NULL;
ALTER TABLE `PersonHistory`
ADD COLUMN `Person_PlaceOfBirth` VARCHAR(512) NULL DEFAULT NULL;
ALTER TABLE `CustomerVermittlungArbeit`
DROP COLUMN `Verlauf`;
ALTER TABLE `CustomerVermittlungArbeit`
ADD COLUMN `Verlauf` bigint DEFAULT NULL;
ALTER TABLE `CustomerVermittlungArbeit`
DROP COLUMN `Auftragsruckgabe`;
ALTER TABLE `CustomerVermittlungArbeit`
ADD COLUMN `Auftragsruckgabe` datetime DEFAULT NULL;
ALTER TABLE `CustomerVermittlungArbeit`
ADD COLUMN `AuftraggeberOid` bigint DEFAULT NULL;
ALTER TABLE `CustomerVermittlungArbeit`
ADD COLUMN `AuftraggeberAnsprechpartnerOid` bigint DEFAULT NULL;
ALTER TABLE `CustomerVermittlungArbeit`
ADD COLUMN `EinsatzstelleOid` bigint DEFAULT NULL;
ALTER TABLE `CustomerVermittlungArbeit`
ADD COLUMN `EinsatzstelleAnsprechpartnerOid` bigint DEFAULT NULL;
ALTER TABLE `Employee`
ADD COLUMN `AusweisGueltigVon` datetime DEFAULT NULL;
ALTER TABLE `Employee`
ADD COLUMN `AusweisGueltigBis` datetime DEFAULT NULL;
ALTER TABLE `Employee`
ADD COLUMN `GradDerBehinderung` VARCHAR(20) DEFAULT NULL;
ALTER TABLE `Employee`
ADD COLUMN `AusweisBemerkung` VARCHAR(512) DEFAULT NULL;
ALTER TABLE `CustomerVermittlungArbeit`
ADD COLUMN `VgaType` int DEFAULT NULL;
ALTER TABLE `SignatureHistory`
ADD COLUMN `DataBild` longtext DEFAULT NULL;
CREATE TABLE `person2team` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`PersonOid` bigint DEFAULT NULL,
`TeamOid` bigint DEFAULT NULL,
`OwnChatRole` int DEFAULT NULL,
`Tid` int DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UpdTs` datetime DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
PRIMARY KEY (`Oid`),
KEY `IdxPerson2TeamPerson` (`PersonOid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `Team`
ADD COLUMN `IsOwnChatTeam` int DEFAULT NULL;
CREATE TABLE `StoredFile` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(255) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`Tid` int DEFAULT NULL,
`UdpUser` varchar(255) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`FileName` varchar(255),
`FilePath` varchar(1024),
`ContentType` varchar(127),
`Size` bigint,
`Checksum` varchar(64),
`BeWoObjectTid` int,
`BeWoObjectOid` bigint,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `invoicebase`
ADD COLUMN `XRechnungStoredFileOid` BIGINT NULL DEFAULT NULL AFTER `StornoInvoiceBaseOid`,
ADD INDEX `FK_IN_SFILE_idx` (`XRechnungStoredFileOid` ASC);
ALTER TABLE `invoicebase`
ADD CONSTRAINT `FK_IN_SFILE`
FOREIGN KEY (`XRechnungStoredFileOid`)
REFERENCES `storedfile` (`Oid`)
ON DELETE CASCADE
ON UPDATE CASCADE;
ALTER TABLE `team`
DROP FOREIGN KEY `FK_TEAM_LEADER_EMPLOYEE`;
ALTER TABLE `team`
CHANGE COLUMN `EmployeeOid` `EmployeeOid` BIGINT NULL ;
ALTER TABLE `team`
ADD CONSTRAINT `FK_TEAM_LEADER_EMPLOYEE`
FOREIGN KEY (`EmployeeOid`)
REFERENCES `employee` (`Oid`);
CREATE TABLE IF NOT EXISTS `OvertimeHistory` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`UpdTs` datetime DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`ChangeType` tinyint NULL DEFAULT NULL,
`OvertimeOid` bigint NULL DEFAULT NULL,
`OvertimeEmployeeOid` bigint DEFAULT NULL,
`OvertimeDatum` datetime DEFAULT NULL,
`OvertimeBetrag` decimal(18,10) DEFAULT NULL,
`OvertimeAuszahlungsartOid` bigint DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `wohneinheit`
ADD COLUMN `Details1` VARCHAR(1024) NULL,
ADD COLUMN `Details2` VARCHAR(1024) NULL,
ADD COLUMN `Details3` VARCHAR(1024) NULL,
ADD COLUMN `Details4` VARCHAR(1024) NULL,
ADD COLUMN `Details5` VARCHAR(1024) NULL,
ADD COLUMN `Details6` VARCHAR(1024) NULL,
ADD COLUMN `Details7` VARCHAR(1024) NULL,
ADD COLUMN `Details8` VARCHAR(1024) NULL,
ADD COLUMN `Details9` VARCHAR(1024) NULL,
ADD COLUMN `Details10` VARCHAR(1024) NULL;