CREATE TABLE `wohnheim` (
  `Oid` bigint(19) NOT NULL AUTO_INCREMENT,
  `InsTs` datetime DEFAULT NULL,
  `InsUser` varchar(256) DEFAULT NULL,
  `Notice` varchar(1024) DEFAULT NULL,
  `Tid` int(10) DEFAULT NULL,
  `UdpUser` varchar(256) DEFAULT NULL,
  `Version` bigint(19) DEFAULT NULL,
  `IsActive` tinyint(4) DEFAULT NULL,
  `SystemEntryID` int(10) DEFAULT NULL,
  `WohnheimName` varchar(256) DEFAULT NULL,
  `Strasse` varchar(256) DEFAULT NULL,
  `PLZ` varchar(256) DEFAULT NULL,
  `Ort` varchar(256) DEFAULT NULL,
  `Bemerkung` varchar(1024) DEFAULT NULL,
  PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1;

CREATE TABLE `customer2wohnheim` (
  `Oid` bigint(19) NOT NULL AUTO_INCREMENT,
  `WohnheimOid` bigint(19) DEFAULT NULL,
  `CustomerOid` bigint(19) DEFAULT NULL,
  `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,
  PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

CREATE TABLE `employee2wohnheim` (
  `Oid` bigint(19) NOT NULL AUTO_INCREMENT,
  `WohnheimOid` bigint(19) DEFAULT NULL,
  `EmployeeOid` bigint(19) DEFAULT NULL,
  `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,
  PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;



CREATE TABLE `signature` (
  `Oid` bigint(19) NOT NULL AUTO_INCREMENT,
  `ServiceRecordOid` bigint(19) DEFAULT NULL,
  `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,
  `Latitute` varchar(1024) DEFAULT NULL,
  `Longitute` varchar(1024) DEFAULT NULL,
  `Zeitstempel` datetime DEFAULT NULL,
  `DataBild` longtext,
  PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=latin1;
